mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-20 16:48:28 +08:00
improved version
This commit is contained in:
@@ -5,10 +5,10 @@ from datetime import (
|
||||
from typing import Union
|
||||
|
||||
|
||||
def format(value: Union[time, str, date], format_string: str) -> str: ...
|
||||
def format(value: Union[time, date, str], format_string: str) -> str: ...
|
||||
|
||||
|
||||
def time_format(value: Union[date, time, str], format_string: str) -> str: ...
|
||||
def time_format(value: Union[str, time, date], format_string: str) -> str: ...
|
||||
|
||||
|
||||
class DateFormat:
|
||||
@@ -41,7 +41,7 @@ class TimeFormat:
|
||||
def P(self) -> str: ...
|
||||
def T(self) -> str: ...
|
||||
def Z(self) -> Union[str, int]: ...
|
||||
def __init__(self, obj: Union[time, date, str]) -> None: ...
|
||||
def __init__(self, obj: Union[time, str, date]) -> None: ...
|
||||
def a(self) -> str: ...
|
||||
def e(self) -> str: ...
|
||||
def f(self) -> Union[str, int]: ...
|
||||
|
||||
Reference in New Issue
Block a user