mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-07 10:20:58 +08:00
Add __class_getitem__ methods new in py313 (#12029)
This commit is contained in:
@@ -358,6 +358,8 @@ class GeneratorType(Generator[_YieldT_co, _SendT_contra, _ReturnT_co]):
|
||||
) -> _YieldT_co: ...
|
||||
@overload
|
||||
def throw(self, typ: BaseException, val: None = None, tb: TracebackType | None = ..., /) -> _YieldT_co: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
def __class_getitem__(cls, item: Any, /) -> Any: ...
|
||||
|
||||
@final
|
||||
class AsyncGeneratorType(AsyncGenerator[_YieldT_co, _SendT_contra]):
|
||||
@@ -401,6 +403,8 @@ class CoroutineType(Coroutine[_YieldT_co, _SendT_contra, _ReturnT_co]):
|
||||
) -> _YieldT_co: ...
|
||||
@overload
|
||||
def throw(self, typ: BaseException, val: None = None, tb: TracebackType | None = ..., /) -> _YieldT_co: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
def __class_getitem__(cls, item: Any, /) -> Any: ...
|
||||
|
||||
@final
|
||||
class MethodType:
|
||||
|
||||
Reference in New Issue
Block a user