From dd5b2ff75d46a27e7fa27706446852f9adee1de3 Mon Sep 17 00:00:00 2001 From: manoskary Date: Wed, 13 Sep 2023 10:10:55 +0000 Subject: [PATCH] Format code with black (bot) --- partitura/io/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/partitura/io/__init__.py b/partitura/io/__init__.py index 2e67cef2..2228321a 100644 --- a/partitura/io/__init__.py +++ b/partitura/io/__init__.py @@ -55,7 +55,7 @@ def load_score(filename: PathLike, force_note_ids="keep") -> Score: scr: :class:`partitura.score.Score` A score instance. """ - + extension = os.path.splitext(filename)[-1].lower() if extension in (".mxl", ".xml", ".musicxml"): # Load MusicXML @@ -95,7 +95,9 @@ def load_score(filename: PathLike, force_note_ids="keep") -> Score: ) return score else: - raise NotSupportedFormatError(f"{extension} file extension is not supported. If this should be supported, consider editing partitura/io/__init__.py file") + raise NotSupportedFormatError( + f"{extension} file extension is not supported. If this should be supported, consider editing partitura/io/__init__.py file" + ) def load_score_as_part(filename: PathLike) -> Part: