[mypyc] Add test for incremental builtin_base class construction across groups by georgesittas · Pull Request #21524 · python/mypy · GitHub
Skip to content

[mypyc] Add test for incremental builtin_base class construction across groups#21524

Merged
p-sawicki merged 2 commits into
python:masterfrom
VaggelisD:fix-load-type-map-builtin-base
May 22, 2026
Merged

[mypyc] Add test for incremental builtin_base class construction across groups#21524
p-sawicki merged 2 commits into
python:masterfrom
VaggelisD:fix-load-type-map-builtin-base

Conversation

@georgesittas

@georgesittas georgesittas commented May 20, 2026

Copy link
Copy Markdown
Contributor

The fix for this was included in #21369, but no dedicated test was added.

This adds testIncrementalBuiltinBaseClassConstruction to run-multimodule.test: three modules compiled with separate=True, where step 2 changes a helper module's signature to force the caller to be recompiled while the exception module is only loaded from cache.

@p-sawicki

Copy link
Copy Markdown
Collaborator

@georgesittas

Copy link
Copy Markdown
Contributor Author

@p-sawicki p-sawicki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

great, now it reproduces. thanks!

@p-sawicki p-sawicki merged commit e61adea into python:master May 22, 2026
18 checks passed
@georgesittas georgesittas deleted the fix-load-type-map-builtin-base branch May 22, 2026 15:22
georgesittas added a commit to VaggelisD/sqlglot-mypy that referenced this pull request Jun 4, 2026
…ss groups (python#21524)

The fix for this was included in python#21369, but no dedicated test was
added.

This adds `testIncrementalBuiltinBaseClassConstruction` to
`run-multimodule.test`: three modules compiled with `separate=True`,
where step 2 changes a helper module's signature to force the caller to
be recompiled while the exception module is only loaded from cache.
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