Skip to content

Commit 2fad3fa

Browse files
committed
add: type processing
1 parent a5af694 commit 2fad3fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

foliant/preprocessors/showcommits.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,11 @@ def process_file(self, markdown_file_path):
360360
with open(markdown_file_path, 'w', encoding='utf8') as markdown_file:
361361
markdown_file.write(processed_markdown_content)
362362

363-
def process_all_files(self, list_of_files):
363+
def process_all_files(self, list_of_files: list):
364364
threads = []
365365
for markdown_file_path in list_of_files:
366+
if isinstance(markdown_file_path, (str, Path)):
367+
markdown_file_path = Path(markdown_file_path)
366368
process_file_thread = threading.Thread(target=self.process_file,
367369
args=[markdown_file_path])
368370
process_file_thread.start()

0 commit comments

Comments
 (0)