Skip to content

Commit ecabea6

Browse files
authored
kwargs追加 (#712)
1 parent 6a1c5ad commit ecabea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

annofabapi/wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _get_all_objects(func_get_list: Callable, limit: int, **kwargs_for_func_get_
197197

198198
return all_objects
199199

200-
def execute_http_get(self, url: str) -> requests.Response:
200+
def execute_http_get(self, url: str, **kwargs) -> requests.Response:
201201
"""
202202
指定したURLに対してHTTP GETを実行します。
203203
@@ -218,7 +218,7 @@ def execute_http_get(self, url: str) -> requests.Response:
218218
219219
220220
""" # noqa: E501
221-
return self.api._execute_http_request(http_method="get", url=url)
221+
return self.api._execute_http_request(http_method="get", url=url, **kwargs)
222222

223223
def download(self, url: str, dest_path: Union[str, Path], *, chunk_size: int = 1024 * 1024 * 500, logger_prefix: str = "") -> None:
224224
"""

0 commit comments

Comments
 (0)