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.
2 parents 4286063 + 4bb011e commit 0eb0fe8Copy full SHA for 0eb0fe8
trio/_core/_run.py
@@ -23,9 +23,6 @@
23
from sniffio import current_async_library_cvar
24
from sortedcontainers import SortedDict
25
26
-# An unfortunate name collision here with trio._util.Final
27
-from typing_extensions import Final as FinalT
28
-
29
from .. import _core
30
from .._util import Final, NoPublicConstructor, coroutine_or_error
31
from ._asyncgens import AsyncGenerators
@@ -47,6 +44,10 @@
47
44
if sys.version_info < (3, 11):
48
45
from exceptiongroup import BaseExceptionGroup
49
46
+if TYPE_CHECKING:
+ # An unfortunate name collision here with trio._util.Final
+ from typing_extensions import Final as FinalT
50
+
51
DEADLINE_HEAP_MIN_PRUNE_THRESHOLD: FinalT = 1000
52
53
_NO_SEND: FinalT = object()
0 commit comments