Skip to content

Commit 3c1a94d

Browse files
committed
_public
1 parent 3caa5d1 commit 3c1a94d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trio/_core/_instrumentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
INSTRUMENT_LOGGER = logging.getLogger("trio.abc.Instrument")
1111

1212
if TYPE_CHECKING:
13-
from collections.abc import Callable, Sequence
13+
from collections.abc import Sequence
1414

1515
from typing_extensions import ParamSpec
1616

@@ -20,7 +20,7 @@
2020

2121
# Decorator to mark methods public. This does nothing by itself, but
2222
# trio/_tools/gen_exports.py looks for it.
23-
def _public(fn: Callable[P, T]) -> Callable[P, T]:
23+
def _public(fn: T) -> T:
2424
return fn
2525

2626

0 commit comments

Comments
 (0)