Skip to content

Commit 0b6fabb

Browse files
committed
style: pre-commit
1 parent 9718959 commit 0b6fabb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/systems_reference.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3233,7 +3233,12 @@ def add_word_breaks(name: str) -> str:
32333233
if (
32343234
(
32353235
"zeroth_" in definition # deprecated names
3236-
or definition in ["absolute_zero", "ice_point", "fahrenheit_zero"] # current names
3236+
or definition
3237+
in [
3238+
"absolute_zero",
3239+
"ice_point",
3240+
"fahrenheit_zero",
3241+
] # current names
32373242
)
32383243
and not any(
32393244
op in definition for op in ["*", "/", "+", "-", "(", ")"]
@@ -3253,7 +3258,12 @@ def add_word_breaks(name: str) -> str:
32533258
if (
32543259
"zeroth_" in origin # deprecated names
32553260
or "point<" in origin
3256-
or origin in ["absolute_zero", "ice_point", "fahrenheit_zero"] # current names
3261+
or origin
3262+
in [
3263+
"absolute_zero",
3264+
"ice_point",
3265+
"fahrenheit_zero",
3266+
] # current names
32573267
) and "<" not in origin.replace("point<", ""):
32583268
definition = base_def
32593269
# Store origin without backticks - will be linkified later

0 commit comments

Comments
 (0)