MCPcopy
hub / github.com/pytest-dev/pytest / getimfunc

Function getimfunc

src/_pytest/compat.py:229–233  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

227
228
229def getimfunc(func):
230 try:
231 return func.__func__
232 except AttributeError:
233 return func
234
235
236def safe_getattr(object: Any, name: str, default: Any) -> Any:

Callers 3

functionMethod · 0.90
resolve_fixture_functionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected