[red-knot] Ban most `Type::Instance` types in type expressions #16872
Catch specific Instances and raise appropriate error for others in ty…
c9bb970b
Update crates/red_knot_python_semantic/src/types/class.rs
36632da3
Fix tests
2c2ba915
Add NewType to KnownClass
564fcac9
Add test and Fix NewType fallback
4dd5e2d2
Catch and allow NewType and GenericAlias instances in type expression
562a848b
carljm
approved these changes
on 2025-03-20
carljm
merged
63e78b41
into main 1 year ago
MatthewMckee4
deleted the ban-most-instance-type-in-type-expression branch 1 year ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub