We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e516b2 commit e7d9f2dCopy full SHA for e7d9f2d
mypy/build.py
@@ -2875,9 +2875,10 @@ def semantic_analysis_pass1(self) -> None:
2875
#
2876
# TODO: This should not be considered as a semantic analysis
2877
# pass -- it's an independent pass.
2878
- analyzer = SemanticAnalyzerPreAnalysis()
2879
- with self.wrap_context():
2880
- analyzer.visit_file(self.tree, self.xpath, self.id, options)
+ if not options.native_parser:
+ analyzer = SemanticAnalyzerPreAnalysis()
+ with self.wrap_context():
2881
+ analyzer.visit_file(self.tree, self.xpath, self.id, options)
2882
# TODO: Do this while constructing the AST?
2883
self.tree.names = SymbolTable()
2884
if not self.tree.is_stub:
0 commit comments