Skip to content

Commit

Permalink
fix: change compatible type
Browse files Browse the repository at this point in the history
  • Loading branch information
pythoninja committed Oct 12, 2023
1 parent 6f4c7e2 commit 67f9099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sshgen/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
from typing import Annotated
from typing import Annotated, Optional

import typer

Expand Down Expand Up @@ -35,7 +35,7 @@ def _version_callback(value: bool) -> None:
# noinspection PyUnusedLocal
@app.callback()
def callback(
version: Annotated[bool | None, # noqa: ARG001
version: Annotated[Optional[bool], # noqa: ARG001, UP007
typer.Option('-v', '--version', callback=_version_callback, is_eager=True)] = None,
) -> None:
"""
Expand Down

0 comments on commit 67f9099

Please sign in to comment.