Skip to content

Commit 82f9c13

Browse files
committed
string literal typing comments 💬
1 parent a7d57e9 commit 82f9c13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/keboola/http_client/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from urllib3.util import Retry
1111

1212

13-
Cookie = "dict[str, str] | CookieJar"
13+
Cookie = "dict[str, str] | CookieJar" # string literal typing for Python 3.8
1414

1515
METHOD_RETRY_WHITELIST = ("GET", "POST", "PATCH", "UPDATE", "PUT", "DELETE")
1616
ALLOWED_METHODS = ["GET", "POST", "PATCH", "UPDATE", "PUT", "DELETE"]

tests/test_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def create_mock_resp(
1515
method: str,
1616
url: str,
1717
status_code: int = 200,
18-
json_data: "dict | None" = None,
18+
json_data: "dict | None" = None, # string literal typing for Python 3.8
1919
):
2020
"""
2121
Helper method to create a properly configured mock response.

0 commit comments

Comments
 (0)