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

Function __getattr__

src/_pytest/python.py:904–908  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

902# Note: module __getattr__ only works on Python>=3.7. Unfortunately
903# we can't provide this deprecation warning on Python 3.6.
904def __getattr__(name: str) -> object:
905 if name == "Instance":
906 warnings.warn(INSTANCE_COLLECTOR, 2)
907 return InstanceDummy
908 raise AttributeError(f"module {__name__} has no attribute {name}")
909
910
911def hasinit(obj: object) -> bool:

Callers

nothing calls this directly

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected