Update migration.pyi (#501)

* Update migration.pyi

* Fixes tests

* Fixes tests

* Fixes tests
This commit is contained in:
Nikita Sobolev authored and GitHub committed 2020-10-26 11:43:47 +03:00
1 parent 402b7d563f
commit 40c8bfa510
5 files changed
+11 -10

No files matched your search

+1 -1
View File
@@ -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 -1
View File
@@ -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
+7 -6
View File
@@ -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 = ...
+1 -1
View File
@@ -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 = ...
+1 -1
View File
@@ -21,7 +21,7 @@ with open("README.md", "r") as f:
readme = f.read() readme = f.read()
dependencies = [ dependencies = [
"mypy>=0.782,<0.790", "mypy>=0.790",
"typing-extensions", "typing-extensions",
"django", "django",
] ]