mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 22:41:55 +08:00
* `django.db.{connection, connections, router}` are now hinted -- including `ConnectionHandler` and `ConnectionRouter` classes.
* Several improvements to `BaseDatabaseWrapper` attribute hints.
* In many places, database connections were hinted as `Any`, which I changed to `BaseDatabaseWrapper`.
* In a few places I added additional `SQLCompiler` hints.
* Minor tweaks to nearby code.
15 lines
523 B
Python
15 lines
523 B
Python
from typing import Any, List
|
|
|
|
from django.core.management.color import Style
|
|
from django.db.backends.base.base import BaseDatabaseWrapper
|
|
|
|
def sql_flush(
|
|
style: Style,
|
|
connection: BaseDatabaseWrapper,
|
|
only_django: bool = ...,
|
|
reset_sequences: bool = ...,
|
|
allow_cascade: bool = ...,
|
|
) -> List[str]: ...
|
|
def emit_pre_migrate_signal(verbosity: int, interactive: bool, db: str, **kwargs: Any) -> None: ...
|
|
def emit_post_migrate_signal(verbosity: int, interactive: bool, db: str, **kwargs: Any) -> None: ...
|