Skip to content

Conversation

GastonAQS
Copy link
Contributor

Add support for Module, Interactive, Expression and FunctionType as valid objects to be used in ast.parse. Also some tests are being added.

Fixes: #14416

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Oct 6, 2025

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

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/ext/autodoc/type_comment.py:121: error: Unused "type: ignore" comment  [unused-ignore]

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks!

@srittau srittau merged commit bbe48c7 into python:main Oct 6, 2025
63 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.

ast.parse annotation excludes valid ast.AST subclasses

3 participants