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 5e3ea17 commit 88e27d5Copy full SHA for 88e27d5
Lib/annotationlib.py
@@ -371,7 +371,7 @@ def __convert_to_ast(self, other):
371
elif type(other) in (list, tuple, set):
372
extra_names = {}
373
elts = []
374
-
+
375
# For sets, we need to ensure consistent ordering
376
if type(other) is set:
377
# For sets of types, sort by __name__
@@ -397,7 +397,7 @@ def __convert_to_ast(self, other):
397
if new_extra_names is not None:
398
extra_names.update(new_extra_names)
399
elts.append(new_elt)
400
401
ast_class = {list: ast.List, tuple: ast.Tuple, set: ast.Set}[type(other)]
402
return ast_class(elts), extra_names
403
else:
0 commit comments