MCPcopy Create free account
hub / github.com/pytest-dev/pytest / getimfunc

Function getimfunc

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

Source from the content-addressed store, hash-verified

308
309
310def getimfunc(func):
311 try:
312 return func.__func__
313 except AttributeError:
314 return func
315
316
317def safe_getattr(object: Any, name: str, default: Any) -> Any:

Callers 4

functionMethod · 0.90
resolve_fixture_functionFunction · 0.90
collectMethod · 0.90

Calls

no outgoing calls

Tested by 1

collectMethod · 0.72