mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-23 20:31:32 +08:00
split error suppression for tests typechecking, fix ci, bunch of fixes
This commit is contained in:
@@ -12,3 +12,5 @@ from .base import Node as Node, NodeList as NodeList, Origin as Origin, Template
|
||||
from .context import Context as Context, RequestContext as RequestContext
|
||||
|
||||
from .library import Library as Library
|
||||
|
||||
from . import defaultfilters as defaultfilters
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from datetime import date, datetime, timedelta
|
||||
from datetime import _date, datetime, timedelta
|
||||
from decimal import Decimal
|
||||
from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
|
||||
|
||||
@@ -72,14 +72,14 @@ def unordered_list(
|
||||
value: Union[Iterator[Any], List[Union[List[Union[List[Union[List[str], str]], str]], str]]], autoescape: bool = ...
|
||||
) -> SafeText: ...
|
||||
def add(
|
||||
value: Union[List[int], Tuple[int, int], date, int, str],
|
||||
value: Union[List[int], Tuple[int, int], _date, int, str],
|
||||
arg: Union[List[int], Tuple[int, int], timedelta, int, str],
|
||||
) -> Union[List[int], Tuple[int, int, int, int], date, int, str]: ...
|
||||
) -> Union[List[int], Tuple[int, int, int, int], _date, int, str]: ...
|
||||
def get_digit(value: Union[int, str], arg: int) -> Union[int, str]: ...
|
||||
def date(value: Optional[Union[datetime, str]], arg: Optional[str] = ...) -> str: ...
|
||||
def date(value: Optional[Union[_date, datetime, str]], arg: Optional[str] = ...) -> str: ...
|
||||
def time(value: Optional[Union[datetime, str]], arg: Optional[str] = ...) -> str: ...
|
||||
def timesince_filter(value: Optional[date], arg: Optional[date] = ...) -> str: ...
|
||||
def timeuntil_filter(value: Optional[date], arg: Optional[date] = ...) -> str: ...
|
||||
def timesince_filter(value: Optional[_date], arg: Optional[_date] = ...) -> str: ...
|
||||
def timeuntil_filter(value: Optional[_date], arg: Optional[_date] = ...) -> str: ...
|
||||
def default(value: Optional[Union[int, str]], arg: Union[int, str]) -> Union[int, str]: ...
|
||||
def default_if_none(value: Optional[str], arg: Union[int, str]) -> Union[int, str]: ...
|
||||
def divisibleby(value: int, arg: int) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user