Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3dc0bf6

Browse files
committed
style(defaults): annoate OrderedDict through 'OrderedDict' for 3.6 compatibility
1 parent 7f5d435 commit 3dc0bf6

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

commitizen/defaults.py

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
import collections
21
import pathlib
3-
from typing import (
4-
Any,
5-
Iterable,
6-
List,
7-
MutableMapping,
8-
Optional,
9-
OrderedDict,
10-
Tuple,
11-
Union,
12-
)
2+
from collections import OrderedDict
3+
from typing import Any, Iterable, List, MutableMapping, Optional, Tuple, Union
134

145
from typing_extensions import TypedDict
156

@@ -19,7 +10,7 @@
1910

2011
class CzSettings(TypedDict, total=False):
2112
bump_pattern: str
22-
bump_map: OrderedDict[str, str]
13+
bump_map: "OrderedDict[str, str]"
2314
change_type_order: List[str]
2415

2516
questions: Questions
@@ -74,7 +65,7 @@ class Settings(TypedDict, total=False):
7465
PATCH = "PATCH"
7566

7667
bump_pattern = r"^(BREAKING[\-\ ]CHANGE|feat|fix|refactor|perf)(\(.+\))?(!)?"
77-
bump_map = collections.OrderedDict(
68+
bump_map = OrderedDict(
7869
(
7970
(r"^.+!$", MAJOR),
8071
(r"^BREAKING[\-\ ]CHANGE", MAJOR),

0 commit comments

Comments
 (0)