Skip to content

Commit 33d06cc

Browse files
committed
treat builtins overrides as typeshed files
1 parent 6447d48 commit 33d06cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/build.py

+2
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@ def parse_file(
837837
self.errors.ignored_files.add(path)
838838
tree = parse(source, path, id, self.errors, options=options)
839839
tree._fullname = id
840+
if options.use_builtins_fixtures and id in CORE_BUILTIN_MODULES:
841+
tree._is_typeshed_file = True
840842
self.add_stats(
841843
files_parsed=1,
842844
modules_parsed=int(not tree.is_stub),

0 commit comments

Comments
 (0)