Skip to content

Conversation

@A5rocks
Copy link
Collaborator

@A5rocks A5rocks commented Nov 22, 2025

Fixes #20284

@github-actions

This comment has been minimized.

@A5rocks A5rocks changed the title Provide a fullname for __module__s Provide a fullname for __module__ Nov 22, 2025
@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

OK, it looks like qualified name works as well.

@ilevkivskyi ilevkivskyi merged commit 4d82559 into python:master Nov 22, 2025
21 checks passed
@A5rocks A5rocks deleted the avoid-__module__-crash branch November 22, 2025 21:21
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.

Assertion failure crash with __module__ annotation: assert fullname

2 participants