File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
crates/ty_python_semantic/src/types Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -273,8 +273,6 @@ impl<'db> GenericAlias<'db> {
273273 db : & ' db dyn Db ,
274274 typevars : & mut FxOrderSet < TypeVarInstance < ' db > > ,
275275 ) {
276- // A tuple's specialization will include all of its element types, so we don't need to also
277- // look in `self.tuple`.
278276 self . specialization ( db) . find_legacy_typevars ( db, typevars) ;
279277 }
280278
Original file line number Diff line number Diff line change @@ -681,9 +681,8 @@ impl<'db> Specialization<'db> {
681681 for ty in self . types ( db) {
682682 ty. find_legacy_typevars ( db, typevars) ;
683683 }
684- if let Some ( t) = self . tuple_inner ( db) {
685- t. find_legacy_typevars ( db, typevars) ;
686- }
684+ // A tuple's specialization will include all of its element types, so we don't need to also
685+ // look in `self.tuple`.
687686 }
688687}
689688
Original file line number Diff line number Diff line change 1+ #![ expect( dead_code) ]
12//! Types describing fixed- and variable-length tuples.
23//!
34//! At runtime, a Python tuple is a fixed-length immutable list of values. There is no restriction
You can’t perform that action at this time.
0 commit comments