Skip to content

Commit f389b90

Browse files
author
mose-x.zm
committed
change dict to Dict
1 parent 664a99a commit f389b90

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

dashscope/api_entities/dashscope_response.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class DashScopeAPIResponse(DictMixin):
9191
message: str
9292
output: Any
9393
usage: Any
94-
headers: dict
94+
headers: Dict[Any, Any]
9595

9696
def __init__(
9797
self,
@@ -101,7 +101,7 @@ def __init__(
101101
message: str = "",
102102
output: Any = None,
103103
usage: Any = None,
104-
headers: dict = None,
104+
headers: Dict[Any, Any] = None,
105105
**kwargs,
106106
):
107107
super().__init__(
@@ -260,7 +260,7 @@ def __init__(
260260
class GenerationResponse(DashScopeAPIResponse):
261261
output: GenerationOutput
262262
usage: GenerationUsage
263-
headers: dict
263+
headers: Dict[Any, Any]
264264

265265
@staticmethod
266266
def from_api_response(api_response: DashScopeAPIResponse):
@@ -344,7 +344,7 @@ def __init__(
344344
class MultiModalConversationResponse(DashScopeAPIResponse):
345345
output: MultiModalConversationOutput
346346
usage: MultiModalConversationUsage
347-
headers: dict
347+
headers: Dict[Any, Any]
348348

349349
@staticmethod
350350
def from_api_response(api_response: DashScopeAPIResponse):
@@ -396,7 +396,7 @@ def __init__(self, **kwargs):
396396
class TranscriptionResponse(DashScopeAPIResponse):
397397
output: TranscriptionOutput
398398
usage: TranscriptionUsage
399-
headers: dict
399+
headers: Dict[Any, Any]
400400

401401
@staticmethod
402402
def from_api_response(api_response: DashScopeAPIResponse):
@@ -448,7 +448,7 @@ def __init__(self, duration: int = 0, **kwargs):
448448
class RecognitionResponse(DashScopeAPIResponse):
449449
output: RecognitionOutput
450450
usage: RecognitionUsage
451-
headers: dict
451+
headers: Dict[Any, Any]
452452

453453
@staticmethod
454454
def from_api_response(api_response: DashScopeAPIResponse):
@@ -515,7 +515,7 @@ def __init__(self, characters: int = 0, **kwargs):
515515
class SpeechSynthesisResponse(DashScopeAPIResponse):
516516
output: SpeechSynthesisOutput
517517
usage: SpeechSynthesisUsage
518-
headers: dict
518+
headers: Dict[Any, Any]
519519

520520
@staticmethod
521521
def from_api_response(api_response: DashScopeAPIResponse):
@@ -637,7 +637,7 @@ def __init__(
637637
class ImageSynthesisResponse(DashScopeAPIResponse):
638638
output: ImageSynthesisOutput
639639
usage: ImageSynthesisUsage
640-
headers: dict
640+
headers: Dict[Any, Any]
641641

642642
@staticmethod
643643
def from_api_response(api_response: DashScopeAPIResponse):
@@ -673,7 +673,7 @@ def from_api_response(api_response: DashScopeAPIResponse):
673673
class VideoSynthesisResponse(DashScopeAPIResponse):
674674
output: VideoSynthesisOutput
675675
usage: VideoSynthesisUsage
676-
headers: dict
676+
headers: Dict[Any, Any]
677677

678678
@staticmethod
679679
def from_api_response(api_response: DashScopeAPIResponse):
@@ -751,7 +751,7 @@ def __init__(self, total_tokens=None, **kwargs):
751751
class ReRankResponse(DashScopeAPIResponse):
752752
output: ReRankOutput
753753
usage: GenerationUsage
754-
headers: dict
754+
headers: Dict[Any, Any]
755755

756756
@staticmethod
757757
def from_api_response(api_response: DashScopeAPIResponse):
@@ -826,7 +826,7 @@ def __init__(
826826
class TextToSpeechResponse(DashScopeAPIResponse):
827827
output: TextToSpeechOutput
828828
usage: MultiModalConversationUsage
829-
headers: dict
829+
headers: Dict[Any, Any]
830830

831831
@staticmethod
832832
def from_api_response(api_response: DashScopeAPIResponse):
@@ -910,7 +910,7 @@ def __init__(
910910
class ImageGenerationResponse(DashScopeAPIResponse):
911911
output: ImageGenerationOutput
912912
usage: ImageGenerationUsage
913-
headers: dict
913+
headers: Dict[Any, Any]
914914

915915
@staticmethod
916916
def from_api_response(api_response: DashScopeAPIResponse):

0 commit comments

Comments
 (0)