From ff946a734909f62ec3880cf7c9bbbd0339914081 Mon Sep 17 00:00:00 2001 From: Kaleb Barrett Date: Sat, 20 Apr 2024 15:51:36 -0400 Subject: [PATCH] Update `Coroutine.cr_frame` to return correct type (#11798) Update Coroutine.cr_frame to return correct type --- stdlib/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index a9f17cc80..745f1bec3 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -444,7 +444,7 @@ class Coroutine(Awaitable[_ReturnT_co], Generic[_YieldT_co, _SendT_contra, _Retu @property def cr_code(self) -> CodeType: ... @property - def cr_frame(self) -> FrameType: ... + def cr_frame(self) -> FrameType | None: ... @property def cr_running(self) -> bool: ... @abstractmethod