mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-17 17:35:59 +08:00
improved version
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from django.db.models.base import Model
|
||||
from typing import (
|
||||
Any,
|
||||
Iterator,
|
||||
Type,
|
||||
)
|
||||
|
||||
|
||||
@@ -9,7 +11,11 @@ class AppConfig:
|
||||
def _path_from_module(self, module: Any) -> str: ...
|
||||
@classmethod
|
||||
def create(cls, entry: str) -> AppConfig: ...
|
||||
def get_model(self, model_name: str, require_ready: bool = ...) -> Any: ...
|
||||
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> Iterator[Any]: ...
|
||||
def get_model(self, model_name: str, require_ready: bool = ...) -> Type[Model]: ...
|
||||
def get_models(
|
||||
self,
|
||||
include_auto_created: bool = ...,
|
||||
include_swapped: bool = ...
|
||||
) -> Iterator[Type[Model]]: ...
|
||||
def import_models(self) -> None: ...
|
||||
def ready(self) -> None: ...
|
||||
Reference in New Issue
Block a user