mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 17:58:40 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -162,13 +162,13 @@ class SassMap(Mapping[_KT, _VT_co]):
|
||||
@overload
|
||||
def __init__(self: SassMap[str, _VT_co], **kwargs: _VT_co) -> None: ...
|
||||
@overload
|
||||
def __init__(self, __map: SupportsKeysAndGetItem[_KT, _VT_co]) -> None: ...
|
||||
def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT_co], /) -> None: ...
|
||||
@overload
|
||||
def __init__(self: SassMap[str, _VT_co], __map: SupportsKeysAndGetItem[str, _VT_co], **kwargs: _VT_co) -> None: ...
|
||||
def __init__(self: SassMap[str, _VT_co], map: SupportsKeysAndGetItem[str, _VT_co], /, **kwargs: _VT_co) -> None: ...
|
||||
@overload
|
||||
def __init__(self, __iterable: Iterable[tuple[_KT, _VT_co]]) -> None: ...
|
||||
def __init__(self, iterable: Iterable[tuple[_KT, _VT_co]], /) -> None: ...
|
||||
@overload
|
||||
def __init__(self: SassMap[str, _VT_co], __iterable: Iterable[tuple[str, _VT_co]], **kwargs: _VT_co) -> None: ...
|
||||
def __init__(self: SassMap[str, _VT_co], iterable: Iterable[tuple[str, _VT_co]], /, **kwargs: _VT_co) -> None: ...
|
||||
def __getitem__(self, key: _KT) -> _VT_co: ...
|
||||
def __iter__(self) -> Iterator[_KT]: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user