Skip to content

Add empty method signatures in analytics module to silence static analyzers #12

Description

@tonyxiao

In `init.py', currently the code reads

for method in methods:
    setattr(this_module, method, uninitialized)

Which definitely works in runtime, but some IDEs (e.g. PyCharm) and static analyzers are not able to provider autocompletion and marks method calls to say analytics.track as warning and complain that method doesn't exist.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions