Skip to content

Commit b8e1c4e

Browse files
[pre-commit.ci] pre-commit autoupdate (#151)
1 parent eab297c commit b8e1c4e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
repos:
33
- repo: https://github.com/asottile/pyupgrade
4-
rev: v2.16.0
4+
rev: v2.18.2
55
hooks:
66
- id: pyupgrade
77

src/decaylanguage/dec/dec.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def _add_charge_conjugate_decays(self):
523523
if len(misses) > 0:
524524
msg = """\nCorresponding 'Decay' statement for 'CDecay' statement(s) of following particle(s) not found:\n{}.
525525
Skipping creation of these charge-conjugate decay trees.""".format(
526-
"\n".join([m for m in misses])
526+
"\n".join(m for m in misses)
527527
)
528528
warnings.warn(msg)
529529

@@ -1134,10 +1134,8 @@ def get_charge_conjugate_decays(parsed_file):
11341134

11351135
try:
11361136
return sorted(
1137-
[
1138-
tree.children[0].children[0].value
1139-
for tree in parsed_file.find_data("cdecay")
1140-
]
1137+
tree.children[0].children[0].value
1138+
for tree in parsed_file.find_data("cdecay")
11411139
)
11421140
except Exception:
11431141
RuntimeError("Input parsed file does not seem to have the expected structure.")

0 commit comments

Comments
 (0)