make pep561 compliant

This commit is contained in:
Maxim Kurnikov
2018-07-29 20:19:43 +03:00
parent 89bb6eac75
commit f471b7b1bf
372 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from django.db.models.base import Model
from typing import (
Any,
Iterator,
Type,
)
class AppConfig:
def __init__(self, app_name: str, app_module: Any) -> None: ...
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 = ...) -> 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: ...