Skip to content

Commit

Permalink
Add annotation for mypy upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Nov 16, 2023
1 parent b53eef5 commit 548cb55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diracx/db/sql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def substract_date(**kwargs: float) -> datetime:
return datetime.now(tz=timezone.utc) - timedelta(**kwargs)


Column = partial(RawColumn, nullable=False)
NullColumn = partial(RawColumn, nullable=True)
Column: partial[RawColumn] = partial(RawColumn, nullable=False)
NullColumn: partial[RawColumn] = partial(RawColumn, nullable=True)
DateNowColumn = partial(Column, DateTime(timezone=True), server_default=utcnow())


Expand Down

0 comments on commit 548cb55

Please sign in to comment.