Skip to content

Commit 2135741

Browse files
authored
Fixes syntax errors (#16)
* Fixes syntax errors
1 parent 44682ea commit 2135741

File tree

3 files changed

+178
-36
lines changed

3 files changed

+178
-36
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ dill = "*"
2626

2727
[packages]
2828
requests = "*"
29+
urllib3 = "*"

Pipfile.lock

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

src/k2hr3client/http.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def POST(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa
279279
self.urlparams = query
280280

281281
# 3. Constructs headers using K2hr3Api.headers property.
282-
if self._hdrs:
282+
if self._hdrs: # type: ignore
283283
self._hdrs.update(r3api.headers)
284284

285285
# 4. Sends a request.
@@ -303,7 +303,7 @@ def PUT(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa
303303
self.urlparams = query
304304

305305
# 3. Constructs headers using K2hr3Api.headers property.
306-
if self._hdrs:
306+
if self._hdrs: # type: ignore
307307
self._hdrs.update(r3api.headers)
308308

309309
# 5. Sends a request.
@@ -334,7 +334,7 @@ def GET(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa
334334
url = "?".join([self.url, self.urlparams])
335335

336336
# 3. Constructs headers using K2hr3Api.headers property.
337-
if self._hdrs:
337+
if self._hdrs: # type: ignore
338338
self._hdrs.update(r3api.headers)
339339

340340
# 4. Sends a request.
@@ -363,8 +363,8 @@ def HEAD(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # noqa
363363
url = "?".join([self.url, self.urlparams])
364364

365365
# 3. Constructs headers using K2hr3Api.headers property.
366-
if self._hdrs:
367-
self._hdrs.update(r3api.headers) # type: ignore
366+
if self._hdrs: # type: ignore
367+
self._hdrs.update(r3api.headers)
368368

369369
# 4. Sends a request.
370370
# NOTE: headers is expected "MutableMapping[str, str]"
@@ -393,8 +393,8 @@ def DELETE(self, r3api: K2hr3Api) -> bool: # pylint: disable=invalid-name # no
393393
url = "?".join([self.url, self.urlparams])
394394

395395
# 3. Constructs headers using K2hr3Api.headers property.
396-
if self._hdrs:
397-
self._hdrs.update(r3api.headers) # type: ignore
396+
if self._hdrs: # type: ignore
397+
self._hdrs.update(r3api.headers)
398398

399399
# 4. Sends a request.
400400
# NOTE: headers is expected "MutableMapping[str, str]"

0 commit comments

Comments
 (0)