Skip to content

Support --shadow-file with --native-parser#21623

Open
JukkaL wants to merge 1 commit into
masterfrom
native-parsers-shadow-file
Open

Support --shadow-file with --native-parser#21623
JukkaL wants to merge 1 commit into
masterfrom
native-parsers-shadow-file

Conversation

@JukkaL

@JukkaL JukkaL commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL requested a review from ilevkivskyi June 18, 2026 17:17

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, but there are couple problems in tests.

== Return code: 0

[case testShadowFileWithNativeParserParallel]
# cmd: mypy --native-parser --shadow-file a.py a_shadow.py main.py a.py b.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test name says Parallel but the command line doesn't specify --num-workers. You should add e.g. --num-workers=4.

reveal_type(x)
[out]
a.py:2: note: Revealed type is "str"
== Return code: 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is worth adding an incremental test for --shadow-file in parallel mode as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants