mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-08-31 03:47:01 +08:00
Fix return type of MigrationRecorder.applied_migrations() (#793)
Matches return type of MigrationLoader.applied_migrations, which reads from here.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any, Optional, Set, Tuple
|
from typing import Any, Dict, Optional, Set, Tuple
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.db.backends.base.base import BaseDatabaseWrapper
|
from django.db.backends.base.base import BaseDatabaseWrapper
|
||||||
@@ -15,7 +15,7 @@ class MigrationRecorder:
|
|||||||
def migration_qs(self) -> QuerySet: ...
|
def migration_qs(self) -> QuerySet: ...
|
||||||
def has_table(self) -> bool: ...
|
def has_table(self) -> bool: ...
|
||||||
def ensure_schema(self) -> None: ...
|
def ensure_schema(self) -> None: ...
|
||||||
def applied_migrations(self) -> Set[Tuple[str, str]]: ...
|
def applied_migrations(self) -> Dict[Tuple[str, str], Migration]: ...
|
||||||
def record_applied(self, app: str, name: str) -> None: ...
|
def record_applied(self, app: str, name: str) -> None: ...
|
||||||
def record_unapplied(self, app: str, name: str) -> None: ...
|
def record_unapplied(self, app: str, name: str) -> None: ...
|
||||||
def flush(self) -> None: ...
|
def flush(self) -> None: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user