From 96f30e4e5d45db6783b3179299e063adcad08eee Mon Sep 17 00:00:00 2001 From: y-chan Date: Sun, 19 Nov 2023 16:56:13 +0900 Subject: [PATCH] pysen format --- run.py | 10 +++++----- voicevox_engine/library_manager.py | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/run.py b/run.py index 2d6ae7811..6e2ee8df2 100644 --- a/run.py +++ b/run.py @@ -28,10 +28,10 @@ from voicevox_engine import __version__ from voicevox_engine.cancellable_engine import CancellableEngine -from voicevox_engine.library_manager import LibraryManager from voicevox_engine.engine_manifest import EngineManifestLoader from voicevox_engine.engine_manifest.EngineManifest import EngineManifest from voicevox_engine.kana_parser import create_kana, parse_kana +from voicevox_engine.library_manager import LibraryManager from voicevox_engine.metas.MetasStore import MetasStore, construct_lookup from voicevox_engine.model import ( AccentPhrase, @@ -1247,12 +1247,12 @@ def custom_openapi(): "VvlibManifest" ] = VvlibManifest.schema() # ref_templateを指定しない場合、definitionsを参照してしまうので、手動で指定する - base_library_info = BaseLibraryInfo.schema(ref_template="#/components/schemas/{model}") + base_library_info = BaseLibraryInfo.schema( + ref_template="#/components/schemas/{model}" + ) # definitionsは既存のモデルを重複して定義するため、不要なので削除 del base_library_info["definitions"] - openapi_schema["components"]["schemas"][ - "BaseLibraryInfo" - ] = base_library_info + openapi_schema["components"]["schemas"]["BaseLibraryInfo"] = base_library_info app.openapi_schema = openapi_schema return openapi_schema diff --git a/voicevox_engine/library_manager.py b/voicevox_engine/library_manager.py index c4c525b41..9168a0a4b 100644 --- a/voicevox_engine/library_manager.py +++ b/voicevox_engine/library_manager.py @@ -11,7 +11,11 @@ from pydantic import ValidationError from semver.version import Version -from voicevox_engine.model import DownloadableLibraryInfo, InstalledLibraryInfo, VvlibManifest +from voicevox_engine.model import ( + DownloadableLibraryInfo, + InstalledLibraryInfo, + VvlibManifest, +) __all__ = ["LibraryManager"]