Skip to content

[pywin32] Mark stub-only NamedTuples as @type_check_only#15514

Merged
brianschubert merged 1 commit intopython:mainfrom
donbarbos:pywin32-type_check_only
Mar 15, 2026
Merged

[pywin32] Mark stub-only NamedTuples as @type_check_only#15514
brianschubert merged 1 commit intopython:mainfrom
donbarbos:pywin32-type_check_only

Conversation

@donbarbos
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@brianschubert brianschubert changed the title [pywin32] Add type_check_only [pywin32] Mark stub-only NamedTuples as @type_check_only Mar 15, 2026
Copy link
Collaborator

@brianschubert brianschubert left a comment

Choose a reason for hiding this comment

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

Thanks! I was surprised that this wasn't already flagged by python/mypy#19574. Turns out there was a bug in how I was detecting if a named tuple is expressible using the class syntax, which incorrectly suppressed these hits. Now fixed in python/mypy@565e42f

@brianschubert brianschubert merged commit eca2ee5 into python:main Mar 15, 2026
39 checks 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