Visitar URL original
[mypyc] Fix unsupported imports for type annotations by lgeiger · Pull Request #20390 · python/mypy · GitHub
The Wayback Machine - https://web.archive.org/web/20260517145900/https://github.com/python/mypy/pull/20390
Skip to content
/ mypy Public

[mypyc] Fix unsupported imports for type annotations#20390

Merged
hauntsaninja merged 1 commit into
python:masterfrom
lgeiger:fix-unbound-type
Dec 30, 2025
Merged

[mypyc] Fix unsupported imports for type annotations#20390
hauntsaninja merged 1 commit into
python:masterfrom
lgeiger:fix-unbound-type

Conversation

@lgeiger
Copy link
Copy Markdown
Contributor

@lgeiger lgeiger commented Dec 10, 2025 •

This is a follow up to #18874 which broke certain imports of type annotations.

/cc @advait-dixit @JukkaL

Fixes mypyc/mypyc#1099
Fixes mypyc/mypyc#1167
Fixes #20365
Closes mypyc/mypyc#1100

Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

This looks great, thank you!

@lgeiger
Copy link
Copy Markdown
Contributor Author

lgeiger commented Dec 29, 2025

@hauntsaninja thanks for the review! If there is anything that's still blocking this from being merged please let me know.

@hauntsaninja
Copy link
Copy Markdown
Collaborator

I just wanted to wait in case folks who know more about mypyc than me wanted to chime in :-) Thanks again!

@hauntsaninja hauntsaninja merged commit 29766b2 into python:master Dec 30, 2025
16 checks passed
@lgeiger lgeiger deleted the fix-unbound-type branch December 30, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mypyc] dataclass and NamedTuple fail when typed with np.ndarray [mypyc] dataclass and NamedTuple fail when typed with np.ndarray Issue with torch type hint in dataclass Unsupported imports for type annotations

3 participants