Skip to content

Conversation

@Tpt
Copy link
Contributor

@Tpt Tpt commented Nov 21, 2025

No description provided.

@Tpt Tpt marked this pull request as ready for review November 21, 2025 15:39
@Tpt Tpt force-pushed the tpt/type-info-hint branch from 4c65f64 to d8018d7 Compare November 21, 2025 15:39
Comment on lines +34 to +35
#[cfg(feature = "experimental-inspect")]
const TYPE_HINT: TypeHint = TypeHint::module_attr("types", "EllipsisType");
Copy link
Member

Choose a reason for hiding this comment

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

I had to double-check whether this and NotImplemented should be special-cased like None.

My conclusion (from the typing spec, and mypy playground) is that they should not be special cased and the code here is correct 👍

@davidhewitt davidhewitt added this pull request to the merge queue Nov 26, 2025
Merged via the queue into PyO3:main with commit 19eff32 Nov 26, 2025
41 of 42 checks passed
@Tpt Tpt deleted the tpt/type-info-hint branch November 28, 2025 08:23
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