Skip to content

Conversation

@intgr
Copy link
Collaborator

@intgr intgr commented Mar 10, 2023

Error was:

django-stubs/utils/datastructures.pyi:68: error: Signature of "setdefault" incompatible with supertype "MutableMapping"
django-stubs/utils/datastructures.pyi:68: note:      Superclass:
django-stubs/utils/datastructures.pyi:68: note:          @overload
django-stubs/utils/datastructures.pyi:68: note:          def setdefault(self, _K, None = ..., /) -> Optional[_V]
django-stubs/utils/datastructures.pyi:68: note:          @overload
django-stubs/utils/datastructures.pyi:68: note:          def setdefault(self, _K, _V, /) -> _V
django-stubs/utils/datastructures.pyi:68: note:      Subclass:
django-stubs/utils/datastructures.pyi:68: note:          def setdefault(self, key: _K, default: _V = ...) -> _V
Found 1 error in 1 file (checked 675 source files)

Related issues

Closes #1387

Copy link
Contributor

@adamchainz adamchainz left a comment

Choose a reason for hiding this comment

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

LGTM

@intgr intgr merged commit 0aa7bf1 into master Mar 10, 2023
@intgr intgr deleted the update-mypy branch March 10, 2023 17:59
@intgr
Copy link
Collaborator Author

intgr commented Mar 10, 2023

Thanks!

@intgr intgr restored the update-mypy branch March 11, 2023 12:31
@intgr intgr deleted the update-mypy branch March 16, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Development

Successfully merging this pull request may close these issues.

3 participants