Skip to content

Commit

Permalink
Move datetime to TYPE_CHECKING block
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasarus committed Jul 30, 2024
1 parent c2b2250 commit d4cdb8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion db/data_models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
from __future__ import annotations

import enum
from datetime import datetime
import typing

from sqlalchemy import inspect, Enum, ForeignKey, Table, Column, Integer
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship

if typing.TYPE_CHECKING:
from datetime import datetime


class State(enum.Enum):
"""
Expand Down
2 changes: 1 addition & 1 deletion db/utils/db_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from sqlalchemy import NullPool, create_engine
from sqlalchemy.orm import sessionmaker

from db.data_models import Instrument, Job, Run, Script, State, JobOwner, JobType, run_job_junction_table
from db.data_models import Instrument, Job, Run, Script, State, JobOwner, JobType
from db.utils import DatabaseInconsistencyError


Expand Down

0 comments on commit d4cdb8d

Please sign in to comment.