Skip to content
Snippets Groups Projects

Introduce pyupgrade

Merged Yoann Schneider requested to merge introduce-pyupgrade into master
2 files
+ 3
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -46,7 +46,7 @@ def choose(instances, name_field="name", title="Pick one item", allow_skip=False
choices["0"] = choices["skip"] = None
for i, (id, name) in enumerate(items, 1):
print(f"{i}: {id} {name}")
choices[str((i))] = choices[str(id)] = choices[name] = id
choices[str(i)] = choices[str(id)] = choices[name] = id
# Get the first valid choice
while True:
Loading