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:
William Schwartz
2020-12-01 00:42:56 -06:00
committed by GitHub
parent d9c851abce
commit eecf13a2fe

View File

@@ -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]: ...