mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 02:15:59 +08:00
enable test typechecking for a bunch of django test suite folders
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Iterator, Type
|
||||
from typing import Any, Iterator, Type, Optional
|
||||
|
||||
from django.db.models.base import Model
|
||||
|
||||
@@ -6,14 +6,14 @@ MODELS_MODULE_NAME: str
|
||||
|
||||
class AppConfig:
|
||||
name: str = ...
|
||||
module: Any = ...
|
||||
module: Optional[Any] = ...
|
||||
apps: None = ...
|
||||
label: str = ...
|
||||
verbose_name: str = ...
|
||||
path: str = ...
|
||||
models_module: None = ...
|
||||
models: None = ...
|
||||
def __init__(self, app_name: str, app_module: None) -> None: ...
|
||||
def __init__(self, app_name: str, app_module: Optional[Any]) -> None: ...
|
||||
@classmethod
|
||||
def create(cls, entry: str) -> AppConfig: ...
|
||||
def get_model(self, model_name: str, require_ready: bool = ...) -> Type[Model]: ...
|
||||
|
||||
Reference in New Issue
Block a user