-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix stubtest complaints for various .get()
methods
#10690
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
Conversation
…ions.UserDict.get()`
This comment has been minimized.
This comment has been minimized.
collections.ChainMap.get()
and collections.UserDict.get()
.get()
methods
This comment has been minimized.
This comment has been minimized.
Looks like a lot of the |
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Thanks for the great review @Daverball! |
@@ -96,6 +96,11 @@ class UserDict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): | |||
def __ior__(self, other: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ... | |||
@overload | |||
def __ior__(self, other: Iterable[tuple[_KT, _VT]]) -> Self: ... | |||
if sys.version_info >= (3, 12): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is from python/cpython#17910
key
anddefault
can be passed as keyword arguments for all of these methods