mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
initial commit
This commit is contained in:
36
django/db/models/manager.pyi
Normal file
36
django/db/models/manager.pyi
Normal file
@@ -0,0 +1,36 @@
|
||||
from django.db.models.base import Model
|
||||
from django.db.models.query import QuerySet
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
Dict,
|
||||
List,
|
||||
Optional,
|
||||
Tuple,
|
||||
Type,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class BaseManager:
|
||||
def __eq__(self, other: Optional[Manager]) -> bool: ...
|
||||
def __init__(self) -> None: ...
|
||||
@staticmethod
|
||||
def __new__(cls: Any, *args, **kwargs) -> Manager: ...
|
||||
@classmethod
|
||||
def _get_queryset_methods(cls, queryset_class: Any) -> Dict[str, Callable]: ...
|
||||
def _set_creation_counter(self) -> None: ...
|
||||
def all(self) -> QuerySet: ...
|
||||
def check(self, **kwargs) -> List[Any]: ...
|
||||
def contribute_to_class(self, model: Any, name: str) -> None: ...
|
||||
@property
|
||||
def db(self) -> str: ...
|
||||
def db_manager(self, using: Optional[str] = ..., hints: Any = ...) -> Manager: ...
|
||||
def deconstruct(
|
||||
self
|
||||
) -> Union[Tuple[bool, str, None, Tuple[str, str, int, int], Dict[Any, Any]], Tuple[bool, str, None, Tuple, Dict[Any, Any]]]: ...
|
||||
def get_queryset(self) -> QuerySet: ...
|
||||
|
||||
|
||||
class EmptyManager:
|
||||
def __init__(self, model: Type[Model]) -> None: ...
|
||||
Reference in New Issue
Block a user