Skip to content

Commit

Permalink
fix(init.py): mypy error (types)
Browse files Browse the repository at this point in the history
closes #285
  • Loading branch information
christian-hawk committed Oct 25, 2020
1 parent 74738af commit 2a94361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions commitizen/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __call__(self):
def _ask_config_path(self) -> str:
name = questionary.select(
"Please choose a supported config file: (default: pyproject.toml)",
choices=config_files,
choices=config_files, # type: ignore
default="pyproject.toml",
style=self.cz.style,
).ask()
Expand Down Expand Up @@ -79,7 +79,7 @@ def _ask_tag(self) -> str:

latest_tag = questionary.select(
"Please choose the latest tag: ",
choices=get_tag_names(),
choices=get_tag_names(), # type: ignore
style=self.cz.style,
).ask()

Expand Down
2 changes: 1 addition & 1 deletion commitizen/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_latest_tag_name() -> Optional[str]:
return c.out.strip()


def get_tag_names() -> Optional[List[str]]:
def get_tag_names() -> List[Optional[str]]:
c = cmd.run("git tag --list")
if c.err:
return []
Expand Down

0 comments on commit 2a94361

Please sign in to comment.