mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-03-04 22:31:26 +08:00
improved version
This commit is contained in:
@@ -4,7 +4,6 @@ from datetime import (
|
||||
timedelta,
|
||||
)
|
||||
from typing import (
|
||||
Any,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
@@ -13,7 +12,7 @@ from typing import (
|
||||
def _get_timezone_name(timezone: FixedOffset) -> str: ...
|
||||
|
||||
|
||||
def activate(timezone: Union[str, FixedOffset]) -> None: ...
|
||||
def activate(timezone: Union[FixedOffset, str]) -> None: ...
|
||||
|
||||
|
||||
def deactivate() -> None: ...
|
||||
@@ -53,7 +52,7 @@ def make_naive(value: datetime, timezone: FixedOffset = ...) -> datetime: ...
|
||||
def now() -> datetime: ...
|
||||
|
||||
|
||||
def template_localtime(value: Any, use_tz: Optional[bool] = ...) -> Any: ...
|
||||
def template_localtime(value: object, use_tz: Optional[bool] = ...) -> object: ...
|
||||
|
||||
|
||||
class FixedOffset:
|
||||
|
||||
Reference in New Issue
Block a user