File tree 1 file changed +6
-1
lines changed
typing_extensions/src_py3 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def _no_slots_copy(dct):
28
28
dict_copy .pop (slot , None )
29
29
return dict_copy
30
30
31
+
31
32
def _check_generic (cls , parameters , elen ):
32
33
"""Check correct count for parameters of a generic cls (internal helper).
33
34
This gives a nice error message in case of count mismatch.
@@ -2319,7 +2320,11 @@ def _collect_type_vars(types):
2319
2320
"""
2320
2321
tvars = []
2321
2322
for t in types :
2322
- if isinstance (t , typing .TypeVar ) and t not in tvars and not isinstance (t , _UnpackAlias ):
2323
+ if (
2324
+ isinstance (t , typing .TypeVar )
2325
+ and t not in tvars
2326
+ and not isinstance (t , _UnpackAlias )
2327
+ ):
2323
2328
tvars .append (t )
2324
2329
if isinstance (t , (typing ._GenericAlias , _types .GenericAlias )):
2325
2330
tvars .extend ([t for t in t .__parameters__ if t not in tvars ])
You can’t perform that action at this time.
0 commit comments