Skip to content

Commit a3d209f

Browse files
jakob-keller12rambau
authored andcommitted
build(poetry): drop typing-extensions dependency for Python >= 3.8
1 parent 7cc4d16 commit a3d209f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

commitizen/defaults.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import pathlib
2+
import sys
23
from collections import OrderedDict
34
from typing import Any, Dict, Iterable, List, MutableMapping, Optional, Tuple, Union
45

5-
from typing_extensions import TypedDict
6+
if sys.version_info < (3, 8):
7+
from typing_extensions import TypedDict
8+
else:
9+
from typing import TypedDict
610

711
# Type
812
Questions = Iterable[MutableMapping[str, Any]]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ tomlkit = ">=0.5.3,<1.0.0"
6565
jinja2 = ">=2.10.3"
6666
pyyaml = ">=3.08"
6767
argcomplete = ">=1.12.1,<2.2"
68-
typing-extensions = "^4.0.1"
68+
typing-extensions = { version = "^4.0.1", python = "<3.8" }
6969
charset-normalizer = ">=2.1.0,<3.1"
7070
# Use the Python 3.11 compatible API: https://github.com/python/importlib_metadata#compatibility
7171
importlib_metadata = { version = ">=4.13,<5"}

0 commit comments

Comments
 (0)