-
-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
django.core.management.commands.*
(#1829)
* Narrow overridden `Command.handle` signatures * Add missing entries in `BaseCommand` * Update `runserver` command * Update `loaddata` command * Update `flush` Command * Update `inspectdb` command `get_meta` signature * Update `makemessages` command types * Add missing allowlist entry after `cached_property` update
- Loading branch information
1 parent
53cdbe4
commit 5d54ac4
Showing
18 changed files
with
106 additions
and
47 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
django-stubs/contrib/contenttypes/management/commands/remove_stale_contenttypes.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
from typing import Literal | ||
from typing import Any, Literal | ||
|
||
from _typeshed import Unused | ||
from django.core.management import BaseCommand | ||
from django.db.models.deletion import Collector | ||
|
||
class Command(BaseCommand): ... | ||
class Command(BaseCommand): | ||
def handle(self, **options: Any) -> None: ... | ||
|
||
class NoFastDeleteCollector(Collector): | ||
def can_fast_delete(self, *args: Unused, **kwargs: Unused) -> Literal[False]: ... |
5 changes: 4 additions & 1 deletion
5
django-stubs/contrib/sessions/management/commands/clearsessions.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from typing import Any | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
class Command(BaseCommand): ... | ||
class Command(BaseCommand): | ||
def handle(self, **options: Any) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from typing import Any | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
class Command(BaseCommand): ... | ||
class Command(BaseCommand): | ||
def handle(self, **options: Any) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
from typing import Any | ||
|
||
from django.core.management.base import BaseCommand | ||
from django.core.management.color import Style | ||
|
||
class Command(BaseCommand): | ||
stealth_options: tuple[str] | ||
style: Style | ||
|
||
def handle(self, **options: Any) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from typing import Any | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
class Command(BaseCommand): | ||
output_transaction: bool | ||
|
||
def handle(self, **options: Any) -> str: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
from typing import Any | ||
|
||
from django.core.management.base import BaseCommand | ||
from django.db.migrations.loader import MigrationLoader | ||
from django.db.migrations.migration import Migration | ||
|
||
class Command(BaseCommand): | ||
verbosity: int | ||
interactive: bool | ||
|
||
def handle(self, **options: Any) -> None: ... | ||
def find_migration(self, loader: MigrationLoader, app_label: str, name: str) -> Migration: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from typing import Any | ||
|
||
from django.core.management.templates import TemplateCommand | ||
|
||
class Command(TemplateCommand): | ||
missing_args_message: str | ||
|
||
def handle(self, **options: Any) -> None: ... # type: ignore[override] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from typing import Any | ||
|
||
from django.core.management.templates import TemplateCommand | ||
|
||
class Command(TemplateCommand): | ||
missing_args_message: str | ||
|
||
def handle(self, **options: Any) -> None: ... # type: ignore[override] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters