mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user