Skip to content

Commit e15824c

Browse files
committed
from __future__ import annotations for legacy Python versions
1 parent 841709f commit e15824c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/keboola/http_client/async_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
import logging
35
from typing import Any

src/keboola/http_client/http.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
from __future__ import annotations
2+
13
import functools
24
import logging
35
import urllib.parse as urlparse
4-
from http.cookiejar import CookieJar
6+
from http.cookiejar import CookieJar # noqa: F401 - false positive caused by stringified type annotation
57

68
import requests
79
from requests.adapters import HTTPAdapter
810
from urllib3.util import Retry
911

10-
Cookie = dict[str, str] | CookieJar
12+
Cookie = "dict[str, str] | CookieJar"
1113

1214
METHOD_RETRY_WHITELIST = ("GET", "POST", "PATCH", "UPDATE", "PUT", "DELETE")
1315
ALLOWED_METHODS = ["GET", "POST", "PATCH", "UPDATE", "PUT", "DELETE"]

0 commit comments

Comments
 (0)