Skip to content

Commit 3fcf068

Browse files
committed
fix(veresion_schemes): import missing Self for python 3.11
1 parent 4781e80 commit 3fcf068

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commitizen/version_schemes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
# Self is Python 3.11+ but backported in typing-extensions
3030
if sys.version_info < (3, 11):
3131
from typing_extensions import Self
32+
else:
33+
from typing import Self
3234

3335

3436
DEFAULT_VERSION_PARSER = r"v?(?P<version>([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?(\w+)?)"

0 commit comments

Comments
 (0)