Skip to content

Commit

Permalink
Add timezone.localdate() (typeddjango#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekseev authored and mkurnikov committed Jul 2, 2019
1 parent 90cab6c commit db7b465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django-stubs/utils/timezone.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from contextlib import ContextDecorator
from datetime import datetime as datetime, time, timedelta as timedelta, tzinfo as tzinfo
from datetime import date, datetime as datetime, time, timedelta as timedelta, tzinfo as tzinfo
from typing import Optional, Union

_AnyTime = Union[time, datetime]
Expand Down Expand Up @@ -45,6 +45,7 @@ class override(ContextDecorator):
def __exit__(self, exc_type: object, exc_value: object, traceback: object) -> None: ...

def localtime(value: _AnyTime, timezone: Optional[tzinfo] = None) -> datetime: ...
def localdate(value: _AnyTime, timezone: Optional[tzinfo] = None) -> date: ...
def now() -> datetime: ...
def is_aware(value: _AnyTime) -> bool: ...
def is_naive(value: _AnyTime) -> bool: ...
Expand Down

0 comments on commit db7b465

Please sign in to comment.