Skip to content
Snippets Groups Projects
Commit d918a9fc authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Erwan Rouchet
Browse files

Comply with UP034

parent 666187dc
No related branches found
No related tags found
1 merge request!2307Introduce pyupgrade
This commit is part of merge request !2307. Comments created here will be created in the context of that merge request.
......@@ -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:
......
......@@ -43,6 +43,8 @@ select = [
"UP031",
# f-string
"UP032",
# extraneous-parentheses
"UP034",
]
ignore = ["E501", "RET502", "RET503"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment