Skip to content

Commit

Permalink
_public
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstum committed Feb 11, 2025
1 parent 3caa5d1 commit 3d61e02
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/trio/_core/_instrumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
INSTRUMENT_LOGGER = logging.getLogger("trio.abc.Instrument")

if TYPE_CHECKING:
from collections.abc import Callable, Sequence
from collections.abc import Sequence

from typing_extensions import ParamSpec

P = ParamSpec("P")
T = TypeVar("T")


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


Expand Down

0 comments on commit 3d61e02

Please sign in to comment.