Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-29 11:20:54 +07:00
parent 180c815868
commit 1c59a281f1

View File

@@ -1,35 +1,36 @@
from typing import Any, Optional from typing import Any
_logger: Any from .fields import Field
from .models import BaseModel
class UserError(Exception): class UserError(Exception):
def __init__(self, message: Any) -> None: ... def __init__(self, message: str) -> None: ...
@property @property
def name(self): ... def name(self): ...
class RedirectWarning(Exception): class RedirectWarning(Exception):
def __init__(self, message: Any, action: Any, button_text: Any, additional_context: Optional[Any] = ...) -> None: ... def __init__(self, message: str, action: int, button_text: str, additional_context: dict | None = ...) -> None: ...
@property @property
def name(self): ... def name(self): ...
class AccessDenied(UserError): class AccessDenied(UserError):
__cause__: Any = ... __cause__: Any
traceback: Any = ... traceback: tuple[str, str, str]
def __init__(self, message: str = ...) -> None: ... def __init__(self, message: str = ...) -> None: ...
class AccessError(UserError): ... class AccessError(UserError): ...
class CacheMiss(KeyError): class CacheMiss(KeyError):
def __init__(self, record: Any, field: Any) -> None: ... def __init__(self, record: BaseModel, field: Field) -> None: ...
class MissingError(UserError): ... class MissingError(UserError): ...
class ValidationError(UserError): ... class ValidationError(UserError): ...
class except_orm(UserError): class except_orm(UserError):
def __init__(self, name: Any, value: Optional[Any] = ...) -> None: ... def __init__(self, name, value: Any | None = ...) -> None: ...
class Warning(UserError): class Warning(UserError):
def __init__(self, *args: Any, **kwargs: Any) -> None: ... def __init__(self, *args, **kwargs) -> None: ...
class QWebException(Exception): class QWebException(Exception):
def __init__(self, *args: Any, **kwargs: Any) -> None: ... def __init__(self, *args, **kwargs) -> None: ...