Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 336ed0d

Browse files
committed
fix comments
1 parent 8f93831 commit 336ed0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

numba_typing/type_annotations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def add_vals_to_signature(sign, vals):
6363
def convert_to_sig_list(types):
6464
'''Expands all Unions'''
6565
types_product = list(product(*types.values()))
66-
names = [name for name in types.keys()]
66+
names = list(types)
6767
result = []
6868

6969
for sig in types_product:
@@ -138,12 +138,12 @@ def replace_typevar(typ, typevar, final_typ):
138138
'''
139139

140140
if typ == typevar:
141-
return (final_typ)
141+
return final_typ
142142
elif isinstance(typ, _GenericAlias):
143143
result = list()
144144
for arg in typ.__args__:
145145
result.append(replace_typevar(arg, typevar, final_typ))
146146
result_type = typ.copy_with(tuple(result))
147-
return (result_type)
147+
return result_type
148148

149-
return (typ)
149+
return typ

0 commit comments

Comments
 (0)