We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32813cf commit 87e1d28Copy full SHA for 87e1d28
crates/ty_python_semantic/src/types/generics.rs
@@ -850,7 +850,7 @@ impl<'db> SpecializationBuilder<'db> {
850
Some(TypeVarBoundOrConstraints::Constraints(constraints)) => {
851
for constraint in constraints.iter(self.db) {
852
if ty.is_assignable_to(self.db, *constraint) {
853
- self.add_type_mapping(bound_typevar, *constraint);
+ self.add_type_mapping(bound_typevar, ty);
854
return Ok(());
855
}
856
0 commit comments