mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-01-25 20:36:45 +08:00
Fix loaddata.pyi
- Added some of the instance attributes from command arguments: ignore, using, app_label, verbosity, format. - Added class attribute: help. - Fixed return type of find_fixtures.
This commit is contained in:
@@ -6,10 +6,16 @@ from django.core.management.base import BaseCommand
|
||||
READ_STDIN: str = ...
|
||||
|
||||
class Command(BaseCommand):
|
||||
ignore: bool = ...
|
||||
using: str = ...
|
||||
app_label: str = ...
|
||||
verbosity: int = ...
|
||||
format: str = ...
|
||||
missing_args_message: str = ...
|
||||
help: str = ...
|
||||
def loaddata(self, fixture_labels: Iterable[str]) -> None: ...
|
||||
def load_label(self, fixture_label: str) -> None: ...
|
||||
def find_fixtures(self, fixture_label: str) -> List[Optional[str]]: ...
|
||||
def find_fixtures(self, fixture_label: str) -> List[Tuple[str, str, str]]: ...
|
||||
@property
|
||||
def fixture_dirs(self) -> List[str]: ...
|
||||
def parse_name(self, fixture_name: str) -> Tuple[str, str, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user