mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
62
django-stubs-generated/core/exceptions.pyi
Normal file
62
django-stubs-generated/core/exceptions.pyi
Normal file
@@ -0,0 +1,62 @@
|
||||
from typing import Any, Dict, Iterator, List, Optional, Tuple, Type, Union
|
||||
|
||||
from django.db.models.base import Model
|
||||
from django.forms.utils import ErrorDict, ErrorList
|
||||
|
||||
|
||||
class FieldDoesNotExist(Exception): ...
|
||||
class AppRegistryNotReady(Exception): ...
|
||||
|
||||
class ObjectDoesNotExist(Exception):
|
||||
silent_variable_failure: bool = ...
|
||||
|
||||
class MultipleObjectsReturned(Exception): ...
|
||||
class SuspiciousOperation(Exception): ...
|
||||
class SuspiciousMultipartForm(SuspiciousOperation): ...
|
||||
class SuspiciousFileOperation(SuspiciousOperation): ...
|
||||
class DisallowedHost(SuspiciousOperation): ...
|
||||
class DisallowedRedirect(SuspiciousOperation): ...
|
||||
class TooManyFieldsSent(SuspiciousOperation): ...
|
||||
class RequestDataTooBig(SuspiciousOperation): ...
|
||||
class PermissionDenied(Exception): ...
|
||||
class ViewDoesNotExist(Exception): ...
|
||||
class MiddlewareNotUsed(Exception): ...
|
||||
class ImproperlyConfigured(Exception): ...
|
||||
class FieldError(Exception): ...
|
||||
|
||||
NON_FIELD_ERRORS: str
|
||||
|
||||
class ValidationError(Exception):
|
||||
error_dict: Any = ...
|
||||
error_list: Any = ...
|
||||
message: Any = ...
|
||||
code: Any = ...
|
||||
params: Any = ...
|
||||
def __init__(
|
||||
self,
|
||||
message: Union[
|
||||
Dict[str, List[ValidationError]],
|
||||
Dict[str, ErrorList],
|
||||
List[Union[ValidationError, str]],
|
||||
ValidationError,
|
||||
ErrorList,
|
||||
str,
|
||||
],
|
||||
code: Optional[str] = ...,
|
||||
params: Optional[
|
||||
Union[
|
||||
Dict[str, Union[Tuple[str], Type[Model], Model, str]],
|
||||
Dict[str, Union[int, str]],
|
||||
]
|
||||
] = ...,
|
||||
) -> None: ...
|
||||
@property
|
||||
def message_dict(self) -> Dict[str, List[str]]: ...
|
||||
@property
|
||||
def messages(self) -> List[str]: ...
|
||||
def update_error_dict(
|
||||
self, error_dict: Union[Dict[str, List[ValidationError]], ErrorDict]
|
||||
) -> Union[Dict[str, List[ValidationError]], ErrorDict]: ...
|
||||
def __iter__(self) -> Iterator[Union[Tuple[str, List[str]], str]]: ...
|
||||
|
||||
class EmptyResultSet(Exception): ...
|
||||
Reference in New Issue
Block a user