MCPcopy Index your code
hub / github.com/ipython/ipython / from_parent

Method from_parent

IPython/testing/plugin/pytest_ipdoctest.py:296–306  ·  view source on GitHub ↗

The public named constructor.

(  # type: ignore
        cls,
        parent: "Union[IPDoctestTextfile, IPDoctestModule]",
        *,
        name: str,
        runner: "IPDocTestRunner",
        dtest: "doctest.DocTest",
    )

Source from the content-addressed store, hash-verified

294
295 @classmethod
296 def from_parent( # type: ignore
297 cls,
298 parent: "Union[IPDoctestTextfile, IPDoctestModule]",
299 *,
300 name: str,
301 runner: "IPDocTestRunner",
302 dtest: "doctest.DocTest",
303 ) -> "IPDoctestItem":
304 # incompatible signature due to imposed limits on subclass
305 """The public named constructor."""
306 return super().from_parent(name=name, parent=parent, runner=runner, dtest=dtest)
307
308 def setup(self) -> None:
309 if self.dtest is not None:

Callers 5

pytest_collect_fileFunction · 0.45
collectMethod · 0.45
from_parentMethod · 0.45
collectMethod · 0.45
from_parentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected