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

Method from_parent

src/_pytest/python.py:750–752  ·  view source on GitHub ↗

The public constructor.

(cls, parent, *, name, obj=None, **kw)

Source from the content-addressed store, hash-verified

748
749 @classmethod
750 def from_parent(cls, parent, *, name, obj=None, **kw) -> Self: # type: ignore[override]
751 """The public constructor."""
752 return super().from_parent(name=name, parent=parent, **kw)
753
754 def newinstance(self):
755 return self.obj()

Callers 5

pytest_collect_directoryFunction · 0.45
_genfunctionsMethod · 0.45
from_parentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected