Skip to content

Commit 5be8c69

Browse files
committed
Refactor types: consolidate SingAudioQuery and related classes into a single module
1 parent a406ddd commit 5be8c69

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

vvclient/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from .errors import NotFoundError, HTTPException
88
from .types import AudioQueryType
9-
from .types.sing import AudioQuery as SingAudioQueryType, RequestPostAudioQuery
9+
from .types import SingAudioQuery as SingAudioQueryType, RequestPostAudioQuery
1010

1111

1212
class Route:

vvclient/types/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from .audio_query import AudioQueryType, AccentPhraseType, MoraType
44
from .speakers import SpeakerType, StyleType, SupportedFeatureType
5+
from .sing import *
56

67

78
__all__ = (
@@ -11,4 +12,8 @@
1112
"SpeakerType",
1213
"StyleType",
1314
"SupportedFeatureType",
15+
"SingAudioQuery",
16+
"Phoneme",
17+
"RequestPostAudioQuery",
18+
"Note",
1419
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Phoneme(TypedDict):
1818
note_id: str
1919

2020

21-
class AudioQuery(TypedDict):
21+
class SingAudioQuery(TypedDict):
2222
f0: List[int]
2323
volume: List[int]
2424
phonemes: List[Phoneme]

vvclient/types/sing/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)