Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Feb 10, 2025
1 parent 604e1ed commit 0d16e6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions faker/providers/date_time/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from datetime import date as dtdate
from datetime import datetime
from datetime import time as dttime
from datetime import timedelta
from datetime import timezone
from datetime import timedelta, timezone
from datetime import tzinfo as TzInfo
from typing import Any, Callable, Dict, Iterator, Optional, Tuple, Union

Expand All @@ -23,7 +22,7 @@ def _get_local_timezone():
datetime.now().astimezone().tzinfo


def _get_next_month_start(dt: Union[dtdate, datetime]):
def _get_next_month_start(dt: Union[dtdate, datetime]) -> Union[dtdate, datetime]:
if dt.month == 12:
return dt.replace(year=dt.year + 1, month=1)
return dt.replace(month=dt.month + 1)
Expand Down

0 comments on commit 0d16e6c

Please sign in to comment.