Skip to content

Commit 878e327

Browse files
committed
restore the old test and sink the test
1 parent 09a97fa commit 878e327

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mypy/build.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1841,15 +1841,15 @@ def __init__(self,
18411841
if path:
18421842
self.abspath = os.path.abspath(path)
18431843
self.xpath = path or '<string>'
1844-
if path and source is None and self.manager.fscache.isdir(path):
1845-
source = ''
1846-
self.source = source
1847-
if path and self.manager.cache_enabled:
1844+
if path and source is None and self.manager.cache_enabled:
18481845
self.meta = find_cache_meta(self.id, path, manager)
18491846
# TODO: Get mtime if not cached.
18501847
if self.meta is not None:
18511848
self.interface_hash = self.meta.interface_hash
18521849
self.meta_source_hash = self.meta.hash
1850+
if path and source is None and self.manager.fscache.isdir(path):
1851+
source = ''
1852+
self.source = source
18531853
self.add_ancestors()
18541854
t0 = time.time()
18551855
self.meta = validate_meta(self.meta, self.id, self.path, self.ignore_all, manager)

0 commit comments

Comments
 (0)