Skip to content

Commit

Permalink
🐛 Fix types for Python < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 26, 2024
1 parent fb4edf4 commit da4a3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@


# Copy from click.parser._split_opt
def _split_opt(opt: str) -> tuple[str, str]:
def _split_opt(opt: str) -> Tuple[str, str]:
first = opt[:1]
if first.isalnum():
return "", opt
Expand Down

0 comments on commit da4a3d2

Please sign in to comment.