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,29 @@
from django.apps.config import AppConfig
from django.apps.registry import Apps
from django.db.models.options import Options
from typing import (
List,
Tuple,
)
def _get_all_permissions(opts: Options) -> List[Tuple[str, str]]: ...
def _get_builtin_permissions(opts: Options) -> List[Tuple[str, str]]: ...
def create_permissions(
app_config: AppConfig,
verbosity: int = ...,
interactive: bool = ...,
using: str = ...,
apps: Apps = ...,
**kwargs
) -> None: ...
def get_default_username(check_db: bool = ...) -> str: ...
def get_system_username() -> str: ...

View File

@@ -0,0 +1,6 @@
from django.core.management.base import CommandParser
class Command:
def add_arguments(self, parser: CommandParser) -> None: ...
def handle(self, *args, **options) -> str: ...

View File

@@ -0,0 +1,20 @@
from django.core.management.base import CommandParser
from django.db.models.fields import CharField
from django.db.models.fields.related import ForeignKey
from typing import (
Optional,
Union,
)
class Command:
def __init__(self, *args, **kwargs) -> None: ...
def add_arguments(self, parser: CommandParser) -> None: ...
def execute(self, *args, **options) -> None: ...
def get_input_data(
self,
field: Union[CharField, related.ForeignKey],
message: str,
default: Optional[str] = ...
) -> Optional[str]: ...
def handle(self, *args, **options) -> None: ...