Skip to content

[pywin32] Annotate win32comext.mapi.emsabtags constants as int - #16601

Merged
srittau merged 1 commit into
python:mainfrom
RomanOdokienko:pywin32-emsabtags-int
Oct 23, 2026
Merged

srittau merged 1 commit into
python:mainfrom
RomanOdokienko:pywin32-emsabtags-int

Conversation

@RomanOdokienko

Copy link
Copy Markdown
Contributor

All 815 Incomplete constants in win32comext.mapi.emsabtags are built with PROP_TAG() (upstream), which returns an int (source; already -> int in our mapitags stub). This annotates them as int, matching the rest of the module and mapitags.

🤖 Generated with Claude Code

All 815 `Incomplete` constants are built with `PROP_TAG()`, which
returns an `int`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

scipy-stubs (https://github.com/scipy/scipy-stubs)
+ tests/misc/test_submodules_empty.pyi:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

@srittau
srittau merged commit 8dbf0fb into python:main Oct 23, 2026
74 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