mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-19 10:21:14 +08:00
add tests for the django test suite
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .messages import Warning as Warning, Info as Info, Debug as Debug, Error as Error, Critical as Critical
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Optional, Union
|
||||
from typing import Any, Optional
|
||||
|
||||
DEBUG: int
|
||||
INFO: int
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, List, Optional
|
||||
from typing import Any, List
|
||||
|
||||
from django.core.checks.messages import Warning
|
||||
|
||||
|
||||
@@ -31,10 +31,15 @@ class FileSystemStorage(Storage):
|
||||
file_permissions_mode: Optional[int] = ...,
|
||||
directory_permissions_mode: Optional[int] = ...,
|
||||
) -> None: ...
|
||||
@property
|
||||
def base_location(self) -> str: ...
|
||||
@property
|
||||
def location(self) -> str: ...
|
||||
@property
|
||||
def base_url(self) -> str: ...
|
||||
@property
|
||||
def file_permissions_mode(self) -> Optional[int]: ...
|
||||
@property
|
||||
def directory_permissions_mode(self) -> Optional[int]: ...
|
||||
|
||||
class DefaultStorage(LazyObject): ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
|
||||
from django.core.management.base import BaseCommand as BaseCommand
|
||||
from django.core.management.base import BaseCommand as BaseCommand, CommandError as CommandError
|
||||
|
||||
def find_commands(management_dir: str) -> List[str]: ...
|
||||
def load_command_class(app_name: str, name: str) -> BaseCommand: ...
|
||||
|
||||
@@ -60,7 +60,7 @@ class BaseCommand:
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def print_help(self, prog_name: str, subcommand: str) -> None: ...
|
||||
def run_from_argv(self, argv: List[str]) -> None: ...
|
||||
def execute(self, *args: Any, **options: Any) -> Optional[Union[Tuple, str]]: ...
|
||||
def execute(self, *args: Any, **options: Any) -> Any: ...
|
||||
def check(
|
||||
self,
|
||||
app_configs: Optional[List[AppConfig]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user