Skip to content

Commit 07d4cbb

Browse files
Amin Farjadiamin-farjadi
authored andcommitted
fix(unit-test): fix failed CI.
1 parent f693de0 commit 07d4cbb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unit/event_handler/test_response_validation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from __future__ import annotations
2-
31
import json
42
from http import HTTPStatus
3+
from typing import Optional
54

65
import pytest
76
from pydantic import BaseModel, Field
@@ -18,7 +17,7 @@
1817

1918
class Todo(BaseModel):
2019
userId: int
21-
id_: int | None = Field(alias="id", default=None)
20+
id_: Optional[int] = Field(alias="id", default=None)
2221
title: str
2322
completed: bool
2423

0 commit comments

Comments
 (0)