Skip to content

Commit d22b0b2

Browse files
committed
fix: allow tests to run in py3.9 and older
1 parent fa1d9c6 commit d22b0b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_type_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_union_none():
3232
app = typer.Typer()
3333

3434
@app.command()
35-
def union_none(user: str | None = None):
35+
def union_none(user: "str | None" = None):
3636
if user:
3737
print(f"User: {user}")
3838
else:

0 commit comments

Comments
 (0)