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

Method is_source

mypy/modulefinder.py:164–169  ·  view source on GitHub ↗
(self, file: MypyFile)

Source from the content-addressed store, hash-verified

162 self.source_modules[source.module] = source.path or ""
163
164 def is_source(self, file: MypyFile) -> bool:
165 return (
166 (file.path and file.path in self.source_paths)
167 or file._fullname in self.source_modules
168 or self.source_text_present
169 )
170
171
172class FindModuleCache:

Callers 1

report_fileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected