We have a class in our code that's something like:
class Client:
def print(self, payload):
...
I would expect this code to not be flagged:
response = client.print(payload=blahblah)
However, flake8-debug incorrectly determines that this is a call to the builtin print function and flags it DB100.
Would it be safe to assume that print and breakpoint won't be called as methods, and to only accept calls on ast.Names for those?
We have a class in our code that's something like:
I would expect this code to not be flagged:
However, flake8-debug incorrectly determines that this is a call to the builtin
printfunction and flags itDB100.Would it be safe to assume that
printandbreakpointwon't be called as methods, and to only accept calls onast.Names for those?