Add properties to runserver.Command (#135)

This commit is contained in:
Swen Kooij
2019-08-16 15:44:49 +03:00
committed by Nikita Sobolev
parent 0545c2d3ea
commit 7bf1664307
2 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
from argparse import ArgumentParser, HelpFormatter, Namespace
from io import StringIO, TextIOBase, TextIOWrapper
from typing import Any, Callable, List, Optional, Union
from typing import Any, Callable, List, Optional, Union, Tuple
from django.apps.config import AppConfig
from django.core.management.color import Style
@@ -36,8 +36,8 @@ class BaseCommand:
output_transaction: bool = ...
requires_migrations_checks: bool = ...
requires_system_checks: bool = ...
base_stealth_options: Any = ...
stealth_options: Any = ...
base_stealth_options: Tuple[str, ...] = ...
stealth_options: Tuple[str, ...] = ...
stdout: OutputWrapper = ...
stderr: OutputWrapper = ...
style: Style = ...

View File

@@ -1,3 +1,7 @@
from django.core.management.base import BaseCommand
class Command(BaseCommand): ...
class Command(BaseCommand):
default_addr: str = ...
default_addr_ipv6: str = ...
default_port: int = ...
protocol: str = ...