reformat with black

This commit is contained in:
Maxim Kurnikov
2018-07-29 23:34:58 +03:00
parent 4866354600
commit cf85607969
343 changed files with 6054 additions and 2158 deletions

View File

@@ -8,8 +8,16 @@ 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: Any) -> None: ...
def create_permissions(
app_config: AppConfig,
verbosity: int = ...,
interactive: bool = ...,
using: str = ...,
apps: Apps = ...,
**kwargs: Any,
) -> None: ...
def get_system_username() -> str: ...
def get_default_username(check_db: bool = ...) -> str: ...

View File

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

View File

@@ -1,11 +1,7 @@
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,
)
from typing import Optional, Union
class Command:
def __init__(self, *args, **kwargs) -> None: ...
@@ -15,6 +11,6 @@ class Command:
self,
field: Union[CharField, related.ForeignKey],
message: str,
default: Optional[str] = ...
default: Optional[str] = ...,
) -> Optional[str]: ...
def handle(self, *args, **options) -> None: ...
def handle(self, *args, **options) -> None: ...