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

Method collect

mypy/test/data.py:733–744  ·  view source on GitHub ↗

Called by pytest on each of the object returned from pytest_pycollect_makeitem

(self)

Source from the content-addressed store, hash-verified

731
732class DataSuiteCollector(pytest.Class):
733 def collect(self) -> Iterator[DataFileCollector]:
734 """Called by pytest on each of the object returned from pytest_pycollect_makeitem"""
735
736 # obj is the object for which pytest_pycollect_makeitem returned self.
737 suite: DataSuite = self.obj
738
739 assert os.path.isdir(
740 suite.data_prefix
741 ), f"Test data prefix ({suite.data_prefix}) not set correctly"
742
743 for data_file in suite.files:
744 yield DataFileCollector.from_parent(parent=self, name=data_file)
745
746
747class DataFileFix(NamedTuple):

Callers

nothing calls this directly

Calls 2

from_parentMethod · 0.80
isdirMethod · 0.45

Tested by

no test coverage detected