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