MCPcopy Index your code
hub / github.com/python/mypy / from_parent

Method from_parent

mypy/test/data.py:764–769  ·  view source on GitHub ↗
(
        cls, parent: DataSuiteCollector, *, name: str  # type: ignore[override]
    )

Source from the content-addressed store, hash-verified

762
763 @classmethod # We have to fight with pytest here:
764 def from_parent(
765 cls, parent: DataSuiteCollector, *, name: str # type: ignore[override]
766 ) -> DataFileCollector:
767 collector = super().from_parent(parent, name=name)
768 assert isinstance(collector, DataFileCollector)
769 return collector
770
771 def collect(self) -> Iterator[DataDrivenTestCase]:
772 yield from split_test_cases(

Callers 3

split_test_casesFunction · 0.80
collectMethod · 0.80

Calls 1

isinstanceFunction · 0.85

Tested by

no test coverage detected