Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3211,7 +3211,11 @@ def parse_file(self, *, temporary: bool = False, raw_data: FileRawData | None =
# The file was already parsed.
return

if raw_data is None:
if raw_data is None and not (
self.options.native_parser
and self.source is None
and self.manager.fscache.exists(self.xpath, real_only=True)
):
source = self.get_source()
else:
source = ""
Expand Down
Loading