Derived from the flake8-bugbear linter.
What it does#
Checks for calls to
re.split that pass
flags as positional arguments.
Why is this bad?#
flags as positional arguments to
re.split can lead to confusion, as most methods in
re module accept
flags as the third positional argument, while
re.split have different signatures.
flags as keyword arguments.