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 3caa5d1 commit 3c1a94dCopy full SHA for 3c1a94d
src/trio/_core/_instrumentation.py
@@ -10,7 +10,7 @@
10
INSTRUMENT_LOGGER = logging.getLogger("trio.abc.Instrument")
11
12
if TYPE_CHECKING:
13
- from collections.abc import Callable, Sequence
+ from collections.abc import Sequence
14
15
from typing_extensions import ParamSpec
16
@@ -20,7 +20,7 @@
20
21
# Decorator to mark methods public. This does nothing by itself, but
22
# trio/_tools/gen_exports.py looks for it.
23
-def _public(fn: Callable[P, T]) -> Callable[P, T]:
+def _public(fn: T) -> T:
24
return fn
25
26
0 commit comments