8000 fix(init.py): mypy error (types) · edvm/commitizen@2a94361 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 2a94361

Browse files
fix(init.py): mypy error (types)
closes commitizen-tools#285
1 parent 74738af commit 2a94361

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commitizen/commands/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __call__(self):
4747
def _ask_config_path(self) -> str:
4848
name = questionary.select(
4949
"Please choose a supported config file: (default: pyproject.toml)",
50-
choices=config_files,
50+
choices=config_files, # type: ignore
5151
default="pyproject.toml",
5252
style=self.cz.style,
5353
).ask()
@@ -79,7 +79,7 @@ def _ask_tag(self) -> str:
7979

8080
latest_tag = questionary.select(
8181
"Please choose the latest tag: ",
82-
choices=get_tag_names(),
82+
choices=get_tag_names(), # type: ignore
8383
style=self.cz.style,
8484
).ask()
8585

commitizen/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def get_latest_tag_name() -> Optional[str]:
123123
return c.out.strip()
124124

125125

126-
def get_tag_names() -> Optional[List[str]]:
126+
def get_tag_names() -> List[Optional[str]]:
127127
c = cmd.run("git tag --list")
128128
if c.err:
129129
return []

0 commit comments

Comments
 (0)
0