mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 09:48:40 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -16,8 +16,8 @@ from six import moves as moves
|
||||
# TODO: We should switch to the _typeshed version of SupportsGetItem
|
||||
# once mypy updates its vendored copy of typeshed and makes a new release
|
||||
class _SupportsGetItem(Protocol[_KT_contra, _VT_co]):
|
||||
def __contains__(self, __x: Any) -> bool: ...
|
||||
def __getitem__(self, __key: _KT_contra) -> _VT_co: ...
|
||||
def __contains__(self, x: Any, /) -> bool: ...
|
||||
def __getitem__(self, key: _KT_contra, /) -> _VT_co: ...
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_K = TypeVar("_K")
|
||||
|
||||
Reference in New Issue
Block a user