mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Callable, List, Sequence, TypeVar
|
||||
from typing import Callable, Sequence, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -50,6 +50,6 @@ class Unpacker:
|
||||
def unpack_string(self) -> bytes: ...
|
||||
def unpack_opaque(self) -> bytes: ...
|
||||
def unpack_bytes(self) -> bytes: ...
|
||||
def unpack_list(self, unpack_item: Callable[[], _T]) -> List[_T]: ...
|
||||
def unpack_farray(self, n: int, unpack_item: Callable[[], _T]) -> List[_T]: ...
|
||||
def unpack_array(self, unpack_item: Callable[[], _T]) -> List[_T]: ...
|
||||
def unpack_list(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
|
||||
def unpack_farray(self, n: int, unpack_item: Callable[[], _T]) -> list[_T]: ...
|
||||
def unpack_array(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user