Browse Source

fix: python3.8 combatibility

pull/12504/head
Nikita Zavadin 6 months ago
parent
commit
1b93374225
No known key found for this signature in database GPG Key ID: 9F14940057AA9BBD
  1. 2
      tests/test_compat.py

2
tests/test_compat.py

@ -95,7 +95,7 @@ def test_propagates_pydantic2_model_config():
value: Union[str, Missing] = Missing()
@app.post("/")
def foo(req: Model) -> str | None:
def foo(req: Model) -> Union[str, None]:
return req.value or None
client = TestClient(app)

Loading…
Cancel
Save