Skip to content

Commit

Permalink
fix applied_migrations typing of recorder.pyi (#230)
Browse files Browse the repository at this point in the history
The function returns a dictionary, not a set. 

Values are instances of the Migration model declared in the class - not sure if / how we can re-use that type though
  • Loading branch information
gg-mmill authored Jun 14, 2024
1 parent f889fc4 commit bf20ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/db/migrations/recorder.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MigrationRecorder:
def migration_qs(self) -> QuerySet[Any]: ...
def has_table(self) -> bool: ...
def ensure_schema(self) -> None: ...
def applied_migrations(self) -> set[tuple[str, str]]: ...
def applied_migrations(self) -> dict[tuple[str, str], Any]: ...
def record_applied(self, app: str, name: str) -> None: ...
def record_unapplied(self, app: str, name: str) -> None: ...
def flush(self) -> None: ...

0 comments on commit bf20ead

Please sign in to comment.