mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 01:45:59 +08:00
Update migration.pyi (#501)
* Update migration.pyi * Fixes tests * Fixes tests * Fixes tests
This commit is contained in:
@@ -38,7 +38,7 @@ jobs:
|
||||
|
||||
- name: Lint with black
|
||||
python: 3.7
|
||||
script: 'black --check django-stubs/'
|
||||
script: 'black --check django-stubs/ setup.py'
|
||||
|
||||
- name: Lint plugin code with flake8
|
||||
python: 3.7
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
black
|
||||
pytest-mypy-plugins==1.3.0
|
||||
pytest-mypy-plugins==1.6.1
|
||||
psycopg2-binary
|
||||
flake8==3.7.9
|
||||
flake8-pyi==19.3.0
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
from typing import Any, List, Tuple
|
||||
from typing import Tuple, List, Optional
|
||||
|
||||
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
|
||||
from django.db.migrations.state import ProjectState
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
class Migration:
|
||||
operations: List[Any] = ...
|
||||
dependencies: List[Any] = ...
|
||||
run_before: List[Any] = ...
|
||||
replaces: List[Any] = ...
|
||||
initial: Any = ...
|
||||
operations: List[Operation] = ...
|
||||
dependencies: List[Tuple[str, str]] = ...
|
||||
run_before: List[Tuple[str, str]] = ...
|
||||
replaces: List[Tuple[str, str]] = ...
|
||||
initial: Optional[bool] = ...
|
||||
atomic: bool = ...
|
||||
name: str = ...
|
||||
app_label: str = ...
|
||||
|
||||
@@ -70,7 +70,7 @@ class ParallelTestSuite(TestSuite):
|
||||
processes: Any = ...
|
||||
failfast: Any = ...
|
||||
def __init__(self, suite: Any, processes: Any, failfast: bool = ...) -> None: ...
|
||||
def run(self, result: Any): ...
|
||||
def run(self, result: Any): ... # type: ignore
|
||||
|
||||
class DiscoverRunner:
|
||||
test_suite: Any = ...
|
||||
|
||||
Reference in New Issue
Block a user