Skip to content

Commit 1e6e9ca

Browse files
committed
more lint
1 parent 3677494 commit 1e6e9ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

typing_extensions/src_py3/typing_extensions.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def _no_slots_copy(dct):
2828
dict_copy.pop(slot, None)
2929
return dict_copy
3030

31+
3132
def _check_generic(cls, parameters, elen):
3233
"""Check correct count for parameters of a generic cls (internal helper).
3334
This gives a nice error message in case of count mismatch.
@@ -2319,7 +2320,11 @@ def _collect_type_vars(types):
23192320
"""
23202321
tvars = []
23212322
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+
):
23232328
tvars.append(t)
23242329
if isinstance(t, (typing._GenericAlias, _types.GenericAlias)):
23252330
tvars.extend([t for t in t.__parameters__ if t not in tvars])

0 commit comments

Comments
 (0)