From 6f67857285548ffefc9ae203556ad08dc2209af1 Mon Sep 17 00:00:00 2001 From: Hirotaka Wakabayashi Date: Mon, 30 Jun 2025 18:36:24 +0900 Subject: [PATCH] Fixes syntax errors --- src/k2hr3client/http.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/k2hr3client/http.py b/src/k2hr3client/http.py index e900afb..ab8c84c 100644 --- a/src/k2hr3client/http.py +++ b/src/k2hr3client/http.py @@ -280,7 +280,7 @@ def POST(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa # 3. Constructs headers using K2hr3Api.headers property. if self._hdrs: # type: ignore - self._hdrs.update(r3api.headers) + self._hdrs.update(r3api.headers) # type: ignore # 4. Sends a request. req = urllib.request.Request(self.url, data=query, # type: ignore @@ -304,7 +304,7 @@ def PUT(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa # 3. Constructs headers using K2hr3Api.headers property. if self._hdrs: # type: ignore - self._hdrs.update(r3api.headers) + self._hdrs.update(r3api.headers) # type: ignore # 5. Sends a request. req = urllib.request.Request("?".join([self.url, self.urlparams]), @@ -335,7 +335,7 @@ def GET(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa # 3. Constructs headers using K2hr3Api.headers property. if self._hdrs: # type: ignore - self._hdrs.update(r3api.headers) + self._hdrs.update(r3api.headers) # type: ignore # 4. Sends a request. req = urllib.request.Request(url, headers=self._hdrs, method="GET") # type: ignore # noqa @@ -364,7 +364,7 @@ def HEAD(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa # 3. Constructs headers using K2hr3Api.headers property. if self._hdrs: # type: ignore - self._hdrs.update(r3api.headers) + self._hdrs.update(r3api.headers) # type: ignore # 4. Sends a request. # NOTE: headers is expected "MutableMapping[str, str]" @@ -394,7 +394,7 @@ def DELETE(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # no # 3. Constructs headers using K2hr3Api.headers property. if self._hdrs: # type: ignore - self._hdrs.update(r3api.headers) + self._hdrs.update(r3api.headers) # type: ignore # 4. Sends a request. # NOTE: headers is expected "MutableMapping[str, str]"