mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 21:14:49 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
61
django-stubs-generated/utils/dateformat.pyi
Normal file
61
django-stubs-generated/utils/dateformat.pyi
Normal file
@@ -0,0 +1,61 @@
|
||||
from datetime import datetime
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
re_formatchars: Any
|
||||
re_escaped: Any
|
||||
|
||||
class Formatter:
|
||||
def format(self, formatstr: str) -> str: ...
|
||||
|
||||
class TimeFormat(Formatter):
|
||||
data: Union[datetime.datetime, str] = ...
|
||||
timezone: Optional[django.utils.timezone.FixedOffset] = ...
|
||||
def __init__(self, obj: Union[datetime, str]) -> None: ...
|
||||
def a(self) -> str: ...
|
||||
def A(self) -> str: ...
|
||||
def B(self) -> None: ...
|
||||
def e(self) -> str: ...
|
||||
def f(self) -> Union[int, str]: ...
|
||||
def g(self) -> int: ...
|
||||
def G(self) -> int: ...
|
||||
def h(self) -> str: ...
|
||||
def H(self) -> str: ...
|
||||
def i(self) -> str: ...
|
||||
def O(self) -> str: ...
|
||||
def P(self) -> str: ...
|
||||
def s(self) -> str: ...
|
||||
def T(self) -> str: ...
|
||||
def u(self) -> str: ...
|
||||
def Z(self) -> Union[int, str]: ...
|
||||
|
||||
class DateFormat(TimeFormat):
|
||||
data: Union[datetime.datetime, str]
|
||||
timezone: Optional[django.utils.timezone.FixedOffset]
|
||||
year_days: Any = ...
|
||||
def b(self): ...
|
||||
def c(self) -> str: ...
|
||||
def d(self) -> str: ...
|
||||
def D(self): ...
|
||||
def E(self): ...
|
||||
def F(self): ...
|
||||
def I(self) -> str: ...
|
||||
def j(self) -> int: ...
|
||||
def l(self): ...
|
||||
def L(self) -> bool: ...
|
||||
def m(self) -> str: ...
|
||||
def M(self) -> str: ...
|
||||
def n(self) -> int: ...
|
||||
def N(self): ...
|
||||
def o(self) -> int: ...
|
||||
def r(self) -> str: ...
|
||||
def S(self) -> str: ...
|
||||
def t(self) -> str: ...
|
||||
def U(self) -> int: ...
|
||||
def w(self) -> int: ...
|
||||
def W(self) -> int: ...
|
||||
def y(self) -> str: ...
|
||||
def Y(self) -> int: ...
|
||||
def z(self) -> int: ...
|
||||
|
||||
def format(value: Union[datetime, str], format_string: str) -> str: ...
|
||||
def time_format(value: Union[datetime, str], format_string: str) -> str: ...
|
||||
Reference in New Issue
Block a user