Skip to content

Commit

Permalink
馃帹 [pre-commit.ci] Auto format from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 30, 2022
1 parent 62169b8 commit 34d651a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_type_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def opt(user: Optional[str] = None):
assert result.exit_code == 0
assert "User: Camila" in result.output


def test_union_none():
app = typer.Typer()

Expand All @@ -36,7 +37,7 @@ def union_none(user: str | None = None):
print(f"User: {user}")
else:
print("No user")

result = runner.invoke(app)
assert result.exit_code == 0
assert "No user" in result.output
Expand Down

0 comments on commit 34d651a

Please sign in to comment.