Skip to content

Skip semantic analysis of source files to prevent mypy from crashing#1551

Merged
yoshikikanemoto merged 1 commit intofixtypestubfrom
fixtypestub_noanalysis
Mar 18, 2026
Merged

Skip semantic analysis of source files to prevent mypy from crashing#1551
yoshikikanemoto merged 1 commit intofixtypestubfrom
fixtypestub_noanalysis

Conversation

@woswos
Copy link
Copy Markdown
Collaborator

@woswos woswos commented Mar 18, 2026

This MR provides a workaround for mypy crashing while building #1539

Definition of the --no-analysis flag:

Don’t perform semantic analysis of source files. This may generate worse stubs – in particular, some module, class, and function aliases may be represented as variables with the Any type. This is generally only useful if semantic analysis causes a critical mypy error.

https://mypy.readthedocs.io/en/stable/stubgen.html#cmdoption-stubgen-no-analysis

@woswos woswos requested a review from yoshikikanemoto March 18, 2026 14:26
@woswos woswos self-assigned this Mar 18, 2026
@yoshikikanemoto yoshikikanemoto merged commit 12c4628 into fixtypestub Mar 18, 2026
1 check passed
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