Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 60403a5

Browse files
build(poetry): drop typing-extensions dependency for Python >= 3.8
1 parent 5398b1f commit 60403a5

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
@@ -60,7 +60,7 @@ tomlkit = ">=0.5.3,<1.0.0"
6060
jinja2 = ">=2.10.3"
6161
pyyaml = ">=3.08"
6262
argcomplete = ">=1.12.1,<2.2"
63-
typing-extensions = "^4.0.1"
63+
typing-extensions = { version = "^4.0.1", python = "<3.8" }
6464
charset-normalizer = ">=2.1.0,<3.1"
6565

6666
[tool.poetry.dev-dependencies]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /