diff --git a/django-stubs/utils/timezone.pyi b/django-stubs/utils/timezone.pyi index af5bb424f..d43325357 100644 --- a/django-stubs/utils/timezone.pyi +++ b/django-stubs/utils/timezone.pyi @@ -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] @@ -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: ...