Skip to content

Commit 7301276

Browse files
feat(api): revert dpr breaking change
1 parent d94ada8 commit 7301276

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 48
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-e5b5a158784fff63311ceef956e8d5ce9e87c6b557d23ab737270040eb39adcd.yml
3-
openapi_spec_hash: b0293985a8806f367319af573d1b418c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-83a7f3659a437113f2a79e1e72794be19eff00ec232fd0206198c80364ccfebf.yml
3+
openapi_spec_hash: b327552548ab641eb4ea3b45e643dfce
44
config_hash: 47cb702ee2cb52c58d803ae39ade9b44

src/imagekitio/types/shared/transformation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class Transformation(BaseModel):
191191
[Distort effect](https://imagekit.io/docs/effects-and-enhancements#distort---e-distort).
192192
"""
193193

194-
dpr: Union[float, str, None] = None
194+
dpr: Optional[float] = None
195195
"""
196196
Accepts values between 0.1 and 5, or `auto` for automatic device pixel ratio
197197
(DPR) calculation. Also accepts arithmetic expressions.

src/imagekitio/types/shared_params/transformation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class Transformation(TypedDict, total=False):
189189
[Distort effect](https://imagekit.io/docs/effects-and-enhancements#distort---e-distort).
190190
"""
191191

192-
dpr: Union[float, str]
192+
dpr: float
193193
"""
194194
Accepts values between 0.1 and 5, or `auto` for automatic device pixel ratio
195195
(DPR) calculation. Also accepts arithmetic expressions.

0 commit comments

Comments
 (0)