Skip to content

Commit 32d0443

Browse files
committed
fix: pre-commit
1 parent c273aa5 commit 32d0443

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/pyconverter/xml2py/ast_tree.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
NO_RESIZE_LIST = [
9191
"Variablelist",
9292
"ItemizedList",
93-
"SimpleList"
93+
"SimpleList",
9494
"Caution",
9595
"XMLWarning",
9696
"ProgramListing",
@@ -3121,13 +3121,17 @@ def py_signature(self, custom_functions: CustomFunctions, indent="") -> str:
31213121
arg_sig = ", ".join(args)
31223122
return f"{indent}def {self.py_name}({arg_sig}, **kwargs):"
31233123

3124-
def custom_notes(self, custom_functions: CustomFunctions = None, automated_notes: List[str]= None) -> List[str]:
3124+
def custom_notes(
3125+
self, custom_functions: CustomFunctions = None, automated_notes: List[str] = None
3126+
) -> List[str]:
31253127
"""Customized notes for the command."""
31263128
lines = []
31273129
if custom_functions is not None and (
31283130
self.py_name in custom_functions.py_names and self.py_name in custom_functions.py_notes
31293131
):
3130-
if len("\n".join(automated_notes)) < len("\n".join(custom_functions.py_notes[self.py_name])):
3132+
if len("\n".join(automated_notes)) < len(
3133+
"\n".join(custom_functions.py_notes[self.py_name])
3134+
):
31313135
lines = custom_functions.py_notes[self.py_name]
31323136
return lines
31333137

@@ -3397,7 +3401,7 @@ def py_notes(self, note_elem_list, section_title):
33973401
resized_item = resize_length(item, self._max_length)
33983402
notes = notes.replace(item, resized_item)
33993403
lines.extend(notes.split("\n"))
3400-
3404+
34013405
return lines
34023406

34033407
@property

0 commit comments

Comments
 (0)