mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
improved version
This commit is contained in:
@@ -12,7 +12,7 @@ from typing import (
|
||||
)
|
||||
|
||||
|
||||
def flatatt(attrs: Dict[str, Union[str, None]]) -> SafeText: ...
|
||||
def flatatt(attrs: Dict[str, Optional[str]]) -> SafeText: ...
|
||||
|
||||
|
||||
def from_current_timezone(value: datetime) -> datetime: ...
|
||||
@@ -33,11 +33,11 @@ class ErrorDict:
|
||||
|
||||
class ErrorList:
|
||||
def __contains__(self, item: str) -> bool: ...
|
||||
def __eq__(self, other: Union[List[str], ErrorList]) -> bool: ...
|
||||
def __eq__(self, other: Union[ErrorList, List[str]]) -> bool: ...
|
||||
def __getitem__(self, i: Union[str, int]) -> str: ...
|
||||
def __init__(
|
||||
self,
|
||||
initlist: Optional[Union[List[ValidationError], ErrorList, List[str]]] = ...,
|
||||
initlist: Optional[Union[ErrorList, List[str], List[ValidationError]]] = ...,
|
||||
error_class: Optional[str] = ...
|
||||
) -> None: ...
|
||||
def __reduce_ex__(
|
||||
|
||||
Reference in New Issue
Block a user