Skip to content

mypy: fix all return-value+type-var#412

Open
Avasam wants to merge 1 commit into
pypa:mainfrom
Avasam:mypy--fix-all-return-value+type-var
Open

mypy: fix all return-value+type-var#412
Avasam wants to merge 1 commit into
pypa:mainfrom
Avasam:mypy--fix-all-return-value+type-var

Conversation

@Avasam

@Avasam Avasam commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +1119 to +1120
if output_dir is None:
output_dir = ""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Feels odd allowing this to be None for type checking purposes, only to immediatly assert it can't be None.
If assert output_dir is not None is an invariant that must be kept, then msvc.Compiler.create_static_lib should check the return of _fix_object_args before passing it to library_filename

@Avasam Avasam force-pushed the mypy--fix-all-return-value+type-var branch from 50d02d4 to dacecb0 Compare July 11, 2026 01:58
@Avasam Avasam force-pushed the mypy--fix-all-return-value+type-var branch from dacecb0 to 50aa30e Compare July 11, 2026 03:01
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.

1 participant