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

Maint/typing #284

Merged
merged 54 commits into from
May 13, 2024
Merged

Maint/typing #284

merged 54 commits into from
May 13, 2024

Conversation

widerschein
Copy link
Member

@widerschein widerschein commented May 8, 2024

Reduce typing error count from 409 to 145. Common issues are

  • Wrong return type annotations, especially for optional properties
  • Optionals that are left unchecked
  • Missing annotations for locals
  • Use of __class__ attribute in static methods, which is not wholly wrong but questionable practice
  • Mixing up of class objects and class instance objects in annotations

Also fix runtime behavior in some places and add a mypy config file.

@widerschein widerschein marked this pull request as ready for review May 12, 2024 12:09
@widerschein widerschein enabled auto-merge (squash) May 12, 2024 12:13
@widerschein widerschein disabled auto-merge May 13, 2024 07:57
@widerschein widerschein merged commit 16b0a07 into main May 13, 2024
32 checks passed
@widerschein widerschein deleted the maint/typing branch May 13, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants