Skip to content

Commit 3dfe0e2

Browse files
Fix lint error and bump up version.
1 parent 6e9955c commit 3dfe0e2

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

centraldogma/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.0"
1+
__version__ = "0.4.1"

centraldogma/content_service.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ def get_files(
5656
path += "/" + path_pattern
5757

5858
handler = {
59-
HTTPStatus.OK: lambda resp: (lambda data: [
60-
Content.from_dict(content) for content in data
61-
] if isinstance(data, list) else [
62-
Content.from_dict(data)
63-
])(resp.json()),
59+
HTTPStatus.OK: lambda resp: (
60+
lambda data: (
61+
[Content.from_dict(content) for content in data]
62+
if isinstance(data, list)
63+
else [Content.from_dict(data)]
64+
)
65+
)(resp.json()),
6466
HTTPStatus.NO_CONTENT: lambda resp: [],
6567
}
6668
return self.client.request("get", path, params=params, handler=handler)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)