Skip to content

Commit

Permalink
fix py38
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Mar 18, 2024
1 parent e721104 commit a24764d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def test_inject_into_required_optional() -> None:
class Thing:
...

def f(i: Thing | None) -> Thing | None:
def f(i: Optional[Thing]) -> Optional[Thing]:
return i

with pytest.raises(TypeError, match="missing 1 required positional argument"):
Expand Down

0 comments on commit a24764d

Please sign in to comment.