run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -3,11 +3,8 @@ from typing import Any, Optional, Set, Tuple, Type
from django.db.migrations.migration import Migration
from django.db.migrations.operations.base import Operation
class SettingsReference(str):
def __new__(
self: Type[SettingsReference], value: str, setting_name: str
) -> SettingsReference: ...
def __new__(self: Type[SettingsReference], value: str, setting_name: str) -> SettingsReference: ...
setting_name: str = ...
def __init__(self, value: str, setting_name: str) -> None: ...
@@ -15,9 +12,7 @@ class OperationWriter:
operation: django.db.migrations.operations.models.CreateModel = ...
buff: List[Any] = ...
indentation: int = ...
def __init__(
self, operation: Operation, indentation: int = ...
) -> None: ...
def __init__(self, operation: Operation, indentation: int = ...) -> None: ...
def serialize(self) -> Tuple[str, Set[str]]: ...
def indent(self) -> None: ...
def unindent(self) -> None: ...