We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f693de0 commit 07d4cbbCopy full SHA for 07d4cbb
tests/unit/event_handler/test_response_validation.py
@@ -1,7 +1,6 @@
1
-from __future__ import annotations
2
-
3
import json
4
from http import HTTPStatus
+from typing import Optional
5
6
import pytest
7
from pydantic import BaseModel, Field
@@ -18,7 +17,7 @@
18
17
19
class Todo(BaseModel):
20
userId: int
21
- id_: int | None = Field(alias="id", default=None)
+ id_: Optional[int] = Field(alias="id", default=None)
22
title: str
23
completed: bool
24
0 commit comments