Skip to content

Commit ea4d093

Browse files
committed
fix linter scaleway-core
1 parent 11194c8 commit ea4d093

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

scaleway-core/scaleway_core/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def _request(
122122
if method == "POST" or method == "PUT" or method == "PATCH":
123123
additional_headers["Content-Type"] = "application/json; charset=utf-8"
124124

125-
if body is None:
126-
body = {}
125+
if body is None:
126+
body = {}
127127
if isinstance(body, bytes):
128128
raw_body = body
129129
else:

scaleway/scaleway/instance/v1/custom_api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from typing import Optional
2+
3+
from requests import Response
4+
25
from scaleway_core.bridge import Zone
36
from scaleway_core.utils import validate_path_param
47
from .api import InstanceV1API
@@ -14,7 +17,7 @@ class InstanceUtilsV1API(InstanceV1API):
1417

1518
def get_server_user_data(
1619
self, server_id: str, key: str, zone: Optional[Zone] = None
17-
):
20+
) -> Response:
1821
"""
1922
GetServerUserData gets the content of a user data on a server for the given key.
2023
:param zone: Zone to target. If none is passed will use default zone from the config.
@@ -50,7 +53,7 @@ def get_server_user_data(
5053

5154
def set_server_user_data(
5255
self, server_id: str, key: str, content: bytes, zone: Optional[Zone] = None
53-
):
56+
) -> Response:
5457
"""
5558
Sets the content of a user data on a server for the given key.
5659
:param zone: Zone to target. If none is passed, it will use the default zone from the config.

scaleway/scaleway/instance/v1/tests.py

Whitespace-only changes.

0 commit comments

Comments
 (0)