Skip to content

Mypy + Bots = possible bugs due to missing parameters #3

@smoehrle

Description

@smoehrle

Mypy fails to detect missing constructor arguments for bots due to the dynamic kwargs initialization
Possible fixes:

  • Change **kwargs to named parameters (issue if there are duplications e.g. username for IgnoreOwnMsgsMixin / MentionMixin)
  • Leave as is because bots are constructed on startup and therefore this type of bug is easily detected

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