Skip to content

Commit

Permalink
Fix Linting
Browse files Browse the repository at this point in the history
Typing
  • Loading branch information
opauloxavier committed Oct 7, 2024
1 parent 31a1a46 commit d0a18cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/junglescout/models/responses/serializer_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
from typing import Optional


def serialize_datetime(dt: Optional[datetime]) -> str:
def serialize_datetime(dt: Optional[datetime]) -> Optional[str]:
"""Serialize a datetime object to a datetime string."""
return dt.strftime("%Y-%m-%dT%H:%M:%S.%f") if dt else None


def serialize_date(dt: Optional[datetime]) -> str:
def serialize_date(dt: Optional[datetime]) -> Optional[str]:
"""Serialize a datetime object to a date string."""
return dt.strftime("%Y-%m-%d") if dt else None

0 comments on commit d0a18cc

Please sign in to comment.