We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc8479e commit dec9578Copy full SHA for dec9578
commitizen/tags.py
@@ -8,8 +8,6 @@
8
from string import Template
9
from typing import TYPE_CHECKING, NamedTuple
10
11
-from typing_extensions import Self
12
-
13
from commitizen import out
14
from commitizen.defaults import DEFAULT_SETTINGS, Settings, get_tag_regexes
15
from commitizen.git import GitTag
@@ -24,6 +22,12 @@
24
22
if TYPE_CHECKING:
25
23
from commitizen.version_schemes import VersionScheme
26
+ # Self is Python 3.11+ but backported in typing-extensions
+ if sys.version_info < (3, 11):
27
+ from typing_extensions import Self
28
+ else:
29
+ from typing import Self
30
+
31
32
class VersionTag(NamedTuple):
33
"""Represent a version and its matching tag form."""
0 commit comments