Skip to content

Commit eb32952

Browse files
authored
Partially fix #2908 (cython workaround) (#2911)
1 parent e317d9c commit eb32952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trio/_core/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ def spawn_impl(
17581758
except AttributeError:
17591759
name = repr(name)
17601760

1761-
if not hasattr(coro, "cr_frame"):
1761+
if getattr(coro, "cr_frame", None) is None:
17621762
# This async function is implemented in C or Cython
17631763
async def python_wrapper(orig_coro: Awaitable[RetT]) -> RetT:
17641764
return await orig_coro

0 commit comments

Comments
 (0)