|
1 | 1 | import zipfile
|
2 |
| -from typing import Iterable, List, Optional, Tuple |
| 2 | +from typing import List, Optional, Set, Sequence, Tuple, Type |
3 | 3 |
|
| 4 | +from django.apps.config import AppConfig |
4 | 5 | from django.core.management.base import BaseCommand
|
| 6 | +from django.db.models.base import Model |
5 | 7 |
|
6 | 8 | READ_STDIN: str = ...
|
7 | 9 |
|
8 | 10 | class Command(BaseCommand):
|
| 11 | + ignore: bool = ... |
| 12 | + using: str = ... |
| 13 | + app_label: str = ... |
| 14 | + verbosity: int = ... |
| 15 | + excluded_models: Set[Type[Model]] = ... |
| 16 | + excluded_apps: Set[AppConfig] = ... |
| 17 | + format: str = ... |
9 | 18 | missing_args_message: str = ...
|
10 |
| - def loaddata(self, fixture_labels: Iterable[str]) -> None: ... |
| 19 | + def loaddata(self, fixture_labels: Sequence[str]) -> None: ... |
11 | 20 | def load_label(self, fixture_label: str) -> None: ...
|
12 |
| - def find_fixtures(self, fixture_label: str) -> List[Optional[str]]: ... |
| 21 | + def find_fixtures(self, fixture_label: str) -> List[Tuple[str, Optional[str], Optional[str]]]: ... |
13 | 22 | @property
|
14 | 23 | def fixture_dirs(self) -> List[str]: ...
|
15 |
| - def parse_name(self, fixture_name: str) -> Tuple[str, str, str]: ... |
| 24 | + def parse_name(self, fixture_name: str) -> Tuple[str, Optional[str], Optional[str]]: ... |
16 | 25 |
|
17 |
| -class SingleZipReader(zipfile.ZipFile): ... |
| 26 | +class SingleZipReader(zipfile.ZipFile): |
| 27 | + # Incompatible override |
| 28 | + # zipfile.ZipFile.read( |
| 29 | + # self, |
| 30 | + # name: typing.Union[typing.Text, zipfile.ZipInfo], |
| 31 | + # pwd: Optional[bytes] = ..., |
| 32 | + # ) -> bytes: ... |
| 33 | + def read(self) -> bytes: ... # type: ignore[override] |
18 | 34 |
|
19 | 35 | def humanize(dirname: str) -> str: ...
|
0 commit comments