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

Harmonize mypy.ini config with django-stubs #479

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Oct 4, 2023

  • Most of the overrides in tests/plugins.ini are no longer needed
  • Removed lots of unneeded # type: ignore comments
  • Will create a separate PR to update disallow_untyped_defs and disallow_incomplete_defs too

Related issues

intgr added 2 commits October 5, 2023 01:12
* Most of the overrides in `tests/plugins.ini` are no longer needed
* Removed lots of unneeded `# type: ignore` comments
* Will create a separate PR to update `disallow_untyped_defs` and `disallow_incomplete_defs` too
@intgr intgr marked this pull request as ready for review October 4, 2023 22:22
@@ -46,9 +46,9 @@ class OR(_SupportsHasPermission):
class NOT(_SupportsHasPermission):
def __init__(self, op1: _SupportsHasPermission) -> None: ...

class BasePermissionMetaclass(OperationHolderMixin, type): ... # type: ignore[misc]
class BasePermissionMetaclass(OperationHolderMixin, type): ... # type: ignore[misc,unused-ignore]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives different mypy errors depending on Python version, hence ignoring unused-ignore

Comment on lines +12 to +14
# TODO: enable disallow_*_defs later
disallow_untyped_defs = false
disallow_incomplete_defs = false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be handled in #480

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@intgr intgr merged commit adf6975 into typeddjango:master Oct 5, 2023
8 checks passed
@intgr intgr deleted the harmonize-mypy-ini branch October 5, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants