mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 16:57:12 +08:00
finish moving generated stubs
This commit is contained in:
@@ -29,24 +29,19 @@ class CommandParser(ArgumentParser):
|
||||
def handle_default_options(options: Namespace) -> None: ...
|
||||
def no_translations(handle_func: Callable) -> Callable: ...
|
||||
|
||||
class DjangoHelpFormatter(HelpFormatter):
|
||||
show_last: Any = ...
|
||||
def add_usage(self, usage: None, actions: List[Any], *args: Any, **kwargs: Any) -> None: ...
|
||||
def add_arguments(self, actions: List[Any]) -> None: ...
|
||||
class DjangoHelpFormatter(HelpFormatter): ...
|
||||
|
||||
class OutputWrapper(TextIOBase):
|
||||
@property
|
||||
def style_func(self): ...
|
||||
@style_func.setter
|
||||
def style_func(self, style_func: Any): ...
|
||||
style_func: Any = ...
|
||||
ending: str = ...
|
||||
def __init__(
|
||||
self, out: Union[StringIO, TextIOWrapper], style_func: Optional[Callable] = ..., ending: str = ...
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str) -> Callable: ...
|
||||
def isatty(self) -> bool: ...
|
||||
def write(self, msg: str, style_func: Optional[Callable] = ..., ending: Optional[str] = ...) -> None: ...
|
||||
|
||||
class BaseCommand:
|
||||
help: str = ...
|
||||
@@ -80,13 +75,9 @@ class BaseCommand:
|
||||
|
||||
class AppCommand(BaseCommand):
|
||||
missing_args_message: str = ...
|
||||
def add_arguments(self, parser: Any) -> None: ...
|
||||
def handle(self, *app_labels: Any, **options: Any): ...
|
||||
def handle_app_config(self, app_config: Any, **options: Any) -> None: ...
|
||||
|
||||
class LabelCommand(BaseCommand):
|
||||
label: str = ...
|
||||
missing_args_message: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def handle(self, *labels: Any, **options: Any) -> str: ...
|
||||
def handle_label(self, label: Any, **options: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user