mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 20:24:31 +08:00
fix some issues
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||||
|
|
||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand as BaseCommand
|
||||||
|
|
||||||
def find_commands(management_dir: str) -> List[str]: ...
|
def find_commands(management_dir: str) -> List[str]: ...
|
||||||
def load_command_class(app_name: str, name: str) -> BaseCommand: ...
|
def load_command_class(app_name: str, name: str) -> BaseCommand: ...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from re import RegexFlag
|
from re import RegexFlag
|
||||||
from typing import Any, Dict, List, Optional, Union
|
from typing import Any, Dict, List, Optional, Union, Pattern
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
from django.core.files.base import File
|
from django.core.files.base import File
|
||||||
@@ -9,6 +9,8 @@ from django.utils.functional import SimpleLazyObject
|
|||||||
|
|
||||||
EMPTY_VALUES: Any
|
EMPTY_VALUES: Any
|
||||||
|
|
||||||
|
def _lazy_re_compile(regex: Union[str, Pattern], flags: int = ...): ...
|
||||||
|
|
||||||
class RegexValidator:
|
class RegexValidator:
|
||||||
regex: SimpleLazyObject = ...
|
regex: SimpleLazyObject = ...
|
||||||
message: Any = ...
|
message: Any = ...
|
||||||
|
|||||||
@@ -31,12 +31,15 @@ class HttpRequest(BinaryIO):
|
|||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def get_host(self) -> str: ...
|
def get_host(self) -> str: ...
|
||||||
def get_port(self) -> str: ...
|
def get_port(self) -> str: ...
|
||||||
def get_full_path(self, force_append_slash: bool = False) -> str: ...
|
def get_full_path(self, force_append_slash: bool = ...) -> str: ...
|
||||||
def get_signed_cookie(self, key: str, default: str = ..., salt: str = "", max_age: int = None) -> str: ...
|
def get_full_path_info(self, force_append_slash: bool = ...) -> str: ...
|
||||||
|
def get_signed_cookie(
|
||||||
|
self, key: str, default: Any = ..., salt: str = ..., max_age: Optional[int] = ...
|
||||||
|
) -> Optional[str]: ...
|
||||||
def get_raw_uri(self) -> str: ...
|
def get_raw_uri(self) -> str: ...
|
||||||
def build_absolute_uri(self, location: str = None) -> str: ...
|
def build_absolute_uri(self, location: str = ...) -> str: ...
|
||||||
@property
|
@property
|
||||||
def scheme(self) -> str: ...
|
def scheme(self) -> Optional[str]: ...
|
||||||
def is_secure(self) -> bool: ...
|
def is_secure(self) -> bool: ...
|
||||||
def is_ajax(self) -> bool: ...
|
def is_ajax(self) -> bool: ...
|
||||||
encoding = ... # type: Optional[str]
|
encoding = ... # type: Optional[str]
|
||||||
|
|||||||
Reference in New Issue
Block a user