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

Function __getattr__

src/pytest/__init__.py:165–171  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

163
164
165def __getattr__(name: str) -> object:
166 if name == "Instance":
167 # The import emits a deprecation warning.
168 from _pytest.python import Instance
169
170 return Instance
171 raise AttributeError(f"module {__name__} has no attribute {name}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected