spitch 1.23.0__py3-none-any.whl → 1.24.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of spitch might be problematic. Click here for more details.
- spitch/_response.py +2 -1
- spitch/_version.py +1 -1
- {spitch-1.23.0.dist-info → spitch-1.24.0.dist-info}/METADATA +2 -2
- {spitch-1.23.0.dist-info → spitch-1.24.0.dist-info}/RECORD +6 -6
- {spitch-1.23.0.dist-info → spitch-1.24.0.dist-info}/WHEEL +0 -0
- {spitch-1.23.0.dist-info → spitch-1.24.0.dist-info}/licenses/LICENSE +0 -0
spitch/_response.py
CHANGED
|
@@ -126,7 +126,7 @@ class BaseAPIResponse(Generic[R]):
|
|
|
126
126
|
)
|
|
127
127
|
|
|
128
128
|
def _parse(self, *, to: type[_T] | None = None) -> R | _T:
|
|
129
|
-
|
|
129
|
+
cast_to = to if to is not None else self._cast_to
|
|
130
130
|
|
|
131
131
|
# unwrap `Annotated[T, ...]` -> `T`
|
|
132
132
|
if cast_to and is_annotated_type(cast_to):
|
|
@@ -261,6 +261,7 @@ class BaseAPIResponse(Generic[R]):
|
|
|
261
261
|
)
|
|
262
262
|
|
|
263
263
|
|
|
264
|
+
|
|
264
265
|
class APIResponse(BaseAPIResponse[R]):
|
|
265
266
|
@overload
|
|
266
267
|
def parse(self, *, to: type[_T]) -> _T: ...
|
spitch/_version.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: spitch
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.24.0
|
|
4
4
|
Summary: The official Python library for the spitch API
|
|
5
5
|
Project-URL: Homepage, https://github.com/spi-tch/spitch-python
|
|
6
6
|
Project-URL: Repository, https://github.com/spi-tch/spitch-python
|
|
7
|
-
Author-email: Spitch <
|
|
7
|
+
Author-email: Spitch <dev@spitch.app>
|
|
8
8
|
License-Expression: Apache-2.0
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
@@ -8,10 +8,10 @@ spitch/_files.py,sha256=wV8OmI8oHeNVRtF-7aAEu22jtRG4FzjOioE8lBp-jNA,3617
|
|
|
8
8
|
spitch/_models.py,sha256=l6MV_1qor7alt-wmx365DEIjAUYGxkrbwc2slEkyJ-I,28765
|
|
9
9
|
spitch/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
spitch/_resource.py,sha256=TLFPcOOmtxZOQLh3XCNPB_BdrQpp0MIYoKoH52aRAu8,1100
|
|
11
|
-
spitch/_response.py,sha256=
|
|
11
|
+
spitch/_response.py,sha256=3pGMe_eI_h4UPlyp8v6Xn_hu3Lv2i8KGnmKGZ1ZlMyc,28691
|
|
12
12
|
spitch/_streaming.py,sha256=5SpId2EIfF8Ee8UUYmJxqgHUGP1ZdHCUHhHCdNJREFA,10100
|
|
13
13
|
spitch/_types.py,sha256=uuSZot9wXgdAMJzfF3raLmt3DvhThG7skqUC98_Dm1k,6167
|
|
14
|
-
spitch/_version.py,sha256=
|
|
14
|
+
spitch/_version.py,sha256=T_6UR84JJ-VvKT_HKAkEtxfEcJCjMW-_55q3IGQ9kCg,159
|
|
15
15
|
spitch/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
spitch/_utils/__init__.py,sha256=k266EatJr88V8Zseb7xUimTlCeno9SynRfLwadHP1b4,2016
|
|
17
17
|
spitch/_utils/_logs.py,sha256=ApRyYK_WgZfEr_ygBUBXWMlTgeMr2tdNOGlH8jE4oJc,774
|
|
@@ -34,7 +34,7 @@ spitch/types/text_tone_mark_params.py,sha256=63P5VElxanYkDP1ZLEuQt97JSgVpMCaAo4W
|
|
|
34
34
|
spitch/types/text_tone_mark_response.py,sha256=WGxZsBxLceZ03VM5dafZshp6azdDxpNHcJHhBX7A5DY,277
|
|
35
35
|
spitch/types/text_translate_params.py,sha256=rU5hbTyBaP5L_akmgswHoNLcTKWN0Gz1kL1yt3EQL44,404
|
|
36
36
|
spitch/types/text_translate_response.py,sha256=Az3QSpvarlCNTiB7uVzMH21YoWHWJMBEvgdKgVJZW4M,279
|
|
37
|
-
spitch-1.
|
|
38
|
-
spitch-1.
|
|
39
|
-
spitch-1.
|
|
40
|
-
spitch-1.
|
|
37
|
+
spitch-1.24.0.dist-info/METADATA,sha256=TqFUgeMC-YHY9CzJ9ZKCXmD4lLmg-UtAkfc4wIKE4yo,13285
|
|
38
|
+
spitch-1.24.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
39
|
+
spitch-1.24.0.dist-info/licenses/LICENSE,sha256=C0lDWY-no8IxmnqzQA9BA7Z8jeh_bogVPfeWSgeDDcc,11336
|
|
40
|
+
spitch-1.24.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|