Skip to content

Commit

Permalink
Updated type annotations to accommodate upcoming Typeshed changes
Browse files Browse the repository at this point in the history
The related PR: python/typeshed#13355
  • Loading branch information
agronholm committed Jan 2, 2025
1 parent 96d1f12 commit 1dc2499
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/anyio/to_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from collections import deque
from collections.abc import Callable, Mapping
from textwrap import dedent
from typing import Any, TypeVar
from typing import Any, Final, TypeVar

from . import to_thread
from ._core._exceptions import BrokenWorkerIntepreter
Expand All @@ -19,10 +19,10 @@
else:
from typing_extensions import TypeVarTuple, Unpack

UNBOUND = 2 # I have no clue how this works, but it was used in the stdlib
FMT_UNPICKLED = 0
FMT_PICKLED = 1
DEFAULT_CPU_COUNT = 8 # this is just an arbitrarily selected value
UNBOUND: Final = 2 # I have no clue how this works, but it was used in the stdlib
FMT_UNPICKLED: Final = 0
FMT_PICKLED: Final = 1
DEFAULT_CPU_COUNT: Final = 8 # this is just an arbitrarily selected value

T_Retval = TypeVar("T_Retval")
PosArgsT = TypeVarTuple("PosArgsT")
Expand Down

0 comments on commit 1dc2499

Please sign in to comment.