Nikita Zavadin
6 months ago
No known key found for this signature in database
GPG Key ID: 9F14940057AA9BBD
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|