Fix comment referencing incorrect type name (#11832)

This commit is contained in:
Anuraag (Rag) Agrawal
2024-04-25 10:54:17 +09:00
committed by GitHub
parent aed7081297
commit 273e9ea6dd

View File

@@ -151,7 +151,7 @@ class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
def keys(self) -> Iterable[_KT]: ...
def __getitem__(self, key: _KT, /) -> _VT_co: ...
# This protocol is currently under discussion. Use SupportsGetItemAndContains
# This protocol is currently under discussion. Use SupportsContainsAndGetItem
# instead, if you require the __contains__ method.
# See https://github.com/python/typeshed/issues/11822.
class SupportsGetItem(Protocol[_KT_contra, _VT_co]):