Skip to content

False positive for method named print #9

Description

@chrisbouchard

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions