mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
types.CoroutineType.cr_frame may be None on 3.12+ (#14802)
This commit is contained in:
+7
-2
@@ -462,8 +462,13 @@ class CoroutineType(Coroutine[_YieldT_co, _SendT_nd_contra, _ReturnT_nd_co]):
|
||||
def cr_await(self) -> Any | None: ...
|
||||
@property
|
||||
def cr_code(self) -> CodeType: ...
|
||||
@property
|
||||
def cr_frame(self) -> FrameType: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
@property
|
||||
def cr_frame(self) -> FrameType | None: ...
|
||||
else:
|
||||
@property
|
||||
def cr_frame(self) -> FrameType: ...
|
||||
|
||||
@property
|
||||
def cr_running(self) -> bool: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user