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

Method from_parent

src/_pytest/nodes.py:610–619  ·  view source on GitHub ↗

The public constructor.

(
        cls,
        parent,
        *,
        fspath: None = None,
        path: Path | None = None,
        **kw,
    )

Source from the content-addressed store, hash-verified

608
609 @classmethod
610 def from_parent(
611 cls,
612 parent,
613 *,
614 fspath: None = None,
615 path: Path | None = None,
616 **kw,
617 ) -> Self:
618 """The public constructor."""
619 return super().from_parent(parent=parent, fspath=fspath, path=path, **kw)
620
621
622class File(FSCollector, abc.ABC):

Callers

nothing calls this directly

Calls 1

from_parentMethod · 0.45

Tested by

no test coverage detected