Browse Source

fix: python3.8 compatibility

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

2
tests/test_compat.py

@ -91,7 +91,7 @@ def test_propagates_pydantic_model_config():
model_config = ConfigDict(
arbitrary_types_allowed=True,
)
value: str | Missing = Missing()
value: Union[str, Missing] = Missing()
@app.post("/")
def foo(req: Model) -> str | None:

Loading…
Cancel
Save