Skip to content

Commit 14060ab

Browse files
🎨 Auto format
1 parent cd7546c commit 14060ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Annotated, Literal, Union
1+
from typing import Annotated, Literal
22

33
import pytest
44
from sqlalchemy import text
@@ -332,7 +332,7 @@ def test_literal_optional_and_union_constraints(clear_sqlmodel):
332332
class Model(SQLModel, table=True):
333333
id: int | None = Field(default=None, primary_key=True)
334334
opt_str: Literal["x", "y"] | None = None
335-
union_int: Union[Literal[10, 20], None] = None
335+
union_int: Literal[10, 20] | None = None
336336

337337
engine = create_engine("sqlite://")
338338
SQLModel.metadata.create_all(engine)

0 commit comments

Comments
 (0)