Skip to content

Commit b230edc

Browse files
committed
Add typing-extensions for python3.10-
1 parent 5d10651 commit b230edc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

async_tls_client/session/session.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import uuid
22
from http.cookiejar import CookieJar
3-
from typing import Dict, List, Optional, Union, Unpack
3+
from typing import Dict, List, Optional, Union
4+
5+
# python 3.11 < support
6+
try:
7+
from typing import Unpack
8+
except ImportError:
9+
from typing_extensions import Unpack
410

511
from nocasedict import NocaseDict
612

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ classifiers = [
2828
]
2929
requires-python = ">=3.9"
3030
dependencies = [
31-
"nocasedict"
31+
"nocasedict",
32+
"typing-extensions"
3233
]
3334

3435
[project.urls]

0 commit comments

Comments
 (0)