Skip to content

Commit ffc5d5a

Browse files
authored
chore: Update to Ruff 0.17 (#1515)
Co-authored-by: Dylan Anthony <dbanty@users.noreply.github.com>
1 parent dd5250d commit ffc5d5a

4 files changed

Lines changed: 25 additions & 33 deletions

File tree

‎end_to_end_tests/golden-records/my-test-api-client/my_test_api_client/models/body_upload_file_tests_upload_post.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
258258
from ..models.body_upload_file_tests_upload_post_some_nullable_object import (
259259
BodyUploadFileTestsUploadPostSomeNullableObject, # noqa: PLC0415
260260
)
261-
from ..models.body_upload_file_tests_upload_post_some_object import (
262-
BodyUploadFileTestsUploadPostSomeObject, # noqa: PLC0415
263-
)
261+
from ..models.body_upload_file_tests_upload_post_some_object import BodyUploadFileTestsUploadPostSomeObject # noqa: PLC0415
264262
from ..models.body_upload_file_tests_upload_post_some_optional_object import (
265263
BodyUploadFileTestsUploadPostSomeOptionalObject, # noqa: PLC0415
266264
)

‎end_to_end_tests/golden-records/my-test-api-client/my_test_api_client/models/model_with_union_property_inlined.py‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class ModelWithUnionPropertyInlined:
2525
fruit: ModelWithUnionPropertyInlinedApples | ModelWithUnionPropertyInlinedBananas | Unset = UNSET
2626

2727
def to_dict(self) -> dict[str, Any]:
28-
from ..models.model_with_union_property_inlined_apples import (
29-
ModelWithUnionPropertyInlinedApples, # noqa: PLC0415
30-
)
28+
from ..models.model_with_union_property_inlined_apples import ModelWithUnionPropertyInlinedApples # noqa: PLC0415
3129

3230
fruit: dict[str, Any] | Unset
3331
if isinstance(self.fruit, Unset):
@@ -47,12 +45,8 @@ def to_dict(self) -> dict[str, Any]:
4745

4846
@classmethod
4947
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
50-
from ..models.model_with_union_property_inlined_apples import (
51-
ModelWithUnionPropertyInlinedApples, # noqa: PLC0415
52-
)
53-
from ..models.model_with_union_property_inlined_bananas import (
54-
ModelWithUnionPropertyInlinedBananas, # noqa: PLC0415
55-
)
48+
from ..models.model_with_union_property_inlined_apples import ModelWithUnionPropertyInlinedApples # noqa: PLC0415
49+
from ..models.model_with_union_property_inlined_bananas import ModelWithUnionPropertyInlinedBananas # noqa: PLC0415
5650

5751
d = dict(src_dict)
5852

‎pdm.lock‎

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dev = [
4949
"pytest-cov",
5050
"pytest-mock>3",
5151
"python-multipart",
52-
"ruff>=0.2,<0.17",
52+
"ruff>=0.2,<0.18",
5353
"syrupy>=4",
5454
"hypothesis>=6.100",
5555
"types-PyYAML<7.0.0,>=6.0.3",

0 commit comments

Comments
 (0)