MCPcopy Index your code
hub / github.com/pytest-dev/pytest / signature

Function signature

src/_pytest/compat.py:68–72  ·  view source on GitHub ↗

Return signature without evaluating annotations.

(obj: Callable[..., Any])

Source from the content-addressed store, hash-verified

66
67
68def signature(obj: Callable[..., Any]) -> Signature:
69 """Return signature without evaluating annotations."""
70 if sys.version_info >= (3, 14):
71 return inspect.signature(obj, annotation_format=Format.STRING)
72 return inspect.signature(obj)
73
74
75def getlocation(function, curdir: str | os.PathLike[str] | None = None) -> str:

Callers 4

_createMethod · 0.90
getfuncargnamesFunction · 0.85
get_default_arg_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…