We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf54ab1 commit 9d1046eCopy full SHA for 9d1046e
returns/primitives/reawaitable.py
@@ -58,7 +58,8 @@ def _is_in_trio_context() -> bool:
58
Returns:
59
bool: True if we're in a trio context
60
"""
61
- if not has_trio: # pragma: no cover
+ # Early return if trio is not available
62
+ if not has_trio:
63
return False
64
65
# Import trio here since we already checked it's available
0 commit comments