Skip to content

Commit

Permalink
fixed for python 3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbenav committed Jan 31, 2024
1 parent ca52325 commit 097bbf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/sqlmodel/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Optional

import pytest
import pytest_asyncio
from datetime import datetime
Expand All @@ -20,7 +22,7 @@ class ModelTest(SQLModel, table=True):
tier_id: int = Field(foreign_key="tier.id")
tier: "TierModel" = Relationship(back_populates="tests")
is_deleted: bool = Field(default=False)
deleted_at: datetime | None = Field(default=None)
deleted_at: Optional[datetime] = Field(default=None)


class TierModel(SQLModel, table=True):
Expand Down

0 comments on commit 097bbf3

Please sign in to comment.