Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
svlandeg committed Aug 26, 2024
1 parent 21b23f6 commit 51b8712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typer/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def is_union(tp: Optional[Type[Any]]) -> bool:


if sys.version_info < (3, 8):
# Even though this implementation is slower, we need it for python 3.6/3.7:
# In python 3.6/3.7 "Literal" is not a builtin type and uses a different
# Even though this implementation is slower, we need it for python 3.7:
# In python 3.7 "Literal" is not a builtin type and uses a different
# mechanism.
# for this reason `Literal[None] is Literal[None]` evaluates to `False`,
# breaking the faster implementation used for the other python versions.
Expand Down

0 comments on commit 51b8712

Please sign in to comment.