ruff
[red-knot] Ban most `Type::Instance` types in type expressions
#16872
Merged

[red-knot] Ban most `Type::Instance` types in type expressions #16872

MatthewMckee4
MatthewMckee4 Catch specific Instances and raise appropriate error for others in ty…
c9bb970b
MatthewMckee4 MatthewMckee4 requested a review from carljm carljm 1 year ago
MatthewMckee4 MatthewMckee4 requested a review from AlexWaygood AlexWaygood 1 year ago
MatthewMckee4 MatthewMckee4 requested a review from sharkdp sharkdp 1 year ago
MatthewMckee4 MatthewMckee4 requested a review from dcreager dcreager 1 year ago
AlexWaygood AlexWaygood added ty
AlexWaygood
AlexWaygood commented on 2025-03-20
github-actions
MatthewMckee4 Update crates/red_knot_python_semantic/src/types/class.rs
36632da3
MatthewMckee4 Fix tests
2c2ba915
AlexWaygood
MatthewMckee4 Add NewType to KnownClass
564fcac9
MatthewMckee4 Add test and Fix NewType fallback
4dd5e2d2
MatthewMckee4 Catch and allow NewType and GenericAlias instances in type expression
562a848b
carljm
carljm approved these changes on 2025-03-20
carljm
AlexWaygood AlexWaygood closed this 1 year ago
AlexWaygood AlexWaygood reopened this 1 year ago
carljm
carljm carljm merged 63e78b41 into main 1 year ago
carljm
MatthewMckee4 MatthewMckee4 deleted the ban-most-instance-type-in-type-expression branch 1 year ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone