mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 18:42:41 +08:00
Add __class_getitem__ methods new in py313 (#12029)
This commit is contained in:
1 parent
1781cde60a
commit
0152a6c134
3 files changed
+8
-4
No files matched your search
@@ -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