Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mypy: add --disallow-incomplete-defs option #2616

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Exirel
Copy link
Contributor

@Exirel Exirel commented Sep 1, 2024

Description

Tin, with the necessary type definition fix. Related to #2603 for Sopel 8.0.1.

Note: I used Any in several places, in particular in sopel.tools.identifiers. I'm not really happy about it. However, the best fix is to properly type annotate instances, i.e. doing something like users: dict[str, User] = SopelIdentifierMemory() as it should properly type check the users sopel memory object.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make lint and make test)
  • I have tested the functionality of the things this change touches

@Exirel Exirel added the Housekeeping Code cleanup, removal of deprecated stuff, etc. label Sep 1, 2024
@Exirel Exirel added this to the 8.0.1 milestone Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Housekeeping Code cleanup, removal of deprecated stuff, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant