File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13import os
24import subprocess
35from collections .abc import Mapping
4- from typing import NamedTuple , Union
6+ from typing import NamedTuple
57
68from charset_normalizer import from_bytes
79
@@ -29,7 +31,7 @@ def _try_decode(bytes_: bytes) -> str:
2931 raise CharacterSetDecodeError () from e
3032
3133
32- def run (cmd : str , env : Union [ Mapping [str , str ], None ] = None ) -> Command :
34+ def run (cmd : str , env : Mapping [str , str ] | None = None ) -> Command :
3335 if env is not None :
3436 env = {** os .environ , ** env }
3537 process = subprocess .Popen (
Original file line number Diff line number Diff line change 11import os
22import re
33import tempfile
4- from typing import Union
54
65from commitizen import git
76from commitizen .cz import exceptions
87
98_RE_LOCAL_VERSION = re .compile (r"\+.+" )
109
1110
12- def required_validator (answer : str , msg : Union [ str , None ] = None ) -> str :
11+ def required_validator (answer : str , msg : object = None ) -> str :
1312 if not answer :
1413 raise exceptions .AnswerRequiredError (msg )
1514 return answer
You can’t perform that action at this time.
0 commit comments