Skip to content

Commit 69f863b

Browse files
committed
Fix Optional in test
1 parent 1ce12c6 commit 69f863b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pydantic/test_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Model(SQLModel):
7373

7474

7575
@pytest.mark.parametrize("alias_priority", [None, 2])
76-
def test_alias_priority_2(alias_priority: Optional[int]):
76+
def test_alias_priority_2(alias_priority: int | None):
7777
def to_camel(string: str) -> str:
7878
return "".join(word.capitalize() for word in string.split("_"))
7979

0 commit comments

Comments
 (0)