mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 19:11:26 +08:00
types.CoroutineType.cr_frame may be None on 3.12+ (#14802)
This commit is contained in:
1 parent
332fcabae4
commit
284acd45d3
1 file changed
+7
-2
+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