Skip to content

Comments

[red-knot] Disambiguate display for intersection types#16914

Merged
carljm merged 1 commit intoastral-sh:mainfrom
MatthewMckee4:fix-intersection-callable-display
Mar 23, 2025
Merged

[red-knot] Disambiguate display for intersection types#16914
carljm merged 1 commit intoastral-sh:mainfrom
MatthewMckee4:fix-intersection-callable-display

Conversation

@MatthewMckee4
Copy link
Contributor

@MatthewMckee4 MatthewMckee4 commented Mar 22, 2025

Summary

Fixes #16912

Create a new type DisplayMaybeParenthesizedType that is now used in Union and Intersection display

Test Plan

Update callable annotations

@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅

@AlexWaygood AlexWaygood added the ty Multi-file analysis & type inference label Mar 22, 2025
Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

Thank you!

@carljm carljm merged commit 08a0995 into astral-sh:main Mar 23, 2025
23 checks passed
@MatthewMckee4 MatthewMckee4 deleted the fix-intersection-callable-display branch March 24, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[red-knot] Disambiguate display for intersection types

3 participants