Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
0
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/__init__.pyi
vendored
Normal file
0
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/__init__.pyi
vendored
Normal file
11
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/_os.pyi
vendored
Normal file
11
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/_os.pyi
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
from os.path import abspath
|
||||
from pathlib import Path
|
||||
from typing import Any, Union
|
||||
|
||||
abspathu = abspath
|
||||
|
||||
def upath(path: Any): ...
|
||||
def npath(path: Any): ...
|
||||
def safe_join(base: Union[bytes, str], *paths: Any) -> str: ...
|
||||
def symlinks_supported() -> Any: ...
|
||||
def to_path(value: Union[Path, str]) -> Path: ...
|
30
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/archive.pyi
vendored
Normal file
30
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/archive.pyi
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
from typing import Any, Dict, Iterable, Sequence, Type
|
||||
|
||||
class ArchiveException(Exception): ...
|
||||
class UnrecognizedArchiveFormat(ArchiveException): ...
|
||||
|
||||
def extract(path: str, to_path: str = ...) -> None: ...
|
||||
|
||||
class Archive:
|
||||
def __init__(self, file: str) -> None: ...
|
||||
def __enter__(self) -> Archive: ...
|
||||
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
|
||||
def extract(self, to_path: str = ...) -> None: ...
|
||||
def list(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
class BaseArchive:
|
||||
def split_leading_dir(self, path: str) -> Sequence[str]: ...
|
||||
def has_leading_dir(self, paths: Iterable[str]) -> bool: ...
|
||||
def extract(self, to_path: str) -> None: ...
|
||||
def list(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
class TarArchive(BaseArchive):
|
||||
def __init__(self, file: str) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
class ZipArchive(BaseArchive):
|
||||
def __init__(self, file: str) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
extension_map: Dict[str, Type[BaseArchive]]
|
67
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/autoreload.pyi
vendored
Normal file
67
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/autoreload.pyi
vendored
Normal file
|
@ -0,0 +1,67 @@
|
|||
import threading
|
||||
import types
|
||||
from pathlib import Path
|
||||
from typing import Any, Callable, List, Optional, Set, Dict, Union, Iterator, Tuple, Iterable
|
||||
|
||||
from django.apps.registry import Apps
|
||||
|
||||
USE_INOTIFY: bool
|
||||
fd: Any
|
||||
RUN_RELOADER: bool
|
||||
FILE_MODIFIED: int
|
||||
I18N_MODIFIED: int
|
||||
|
||||
def gen_filenames(only_new: bool = ...) -> List[str]: ...
|
||||
def clean_files(filelist: List[Optional[str]]) -> List[str]: ...
|
||||
def reset_translations() -> None: ...
|
||||
def inotify_code_changed(): ...
|
||||
def code_changed(): ...
|
||||
def check_errors(fn: Callable) -> Callable: ...
|
||||
def raise_last_exception() -> None: ...
|
||||
def ensure_echo_on() -> None: ...
|
||||
def reloader_thread() -> None: ...
|
||||
def restart_with_reloader() -> int: ...
|
||||
def python_reloader(main_func: Any, args: Any, kwargs: Any) -> None: ...
|
||||
def main(main_func: Any, args: Optional[Any] = ..., kwargs: Optional[Any] = ...) -> None: ...
|
||||
def iter_all_python_module_files() -> Set[Path]: ...
|
||||
def iter_modules_and_files(
|
||||
modules: Iterable[types.ModuleType], extra_files: Iterable[Union[str, Path]]
|
||||
) -> Set[Path]: ...
|
||||
def common_roots(paths: Iterable[Path]) -> Iterator[Path]: ...
|
||||
def sys_path_directories() -> Iterator[Path]: ...
|
||||
|
||||
class BaseReloader:
|
||||
extra_files: Set[Path]
|
||||
directory_globs: Dict[Path, Set[str]]
|
||||
def __init__(self) -> None: ...
|
||||
def watch_dir(self, path: Union[str, Path], glob: str) -> None: ...
|
||||
def watch_file(self, path: Union[str, Path]) -> None: ...
|
||||
def watched_files(self, include_globs: bool = ...) -> Iterator[Path]: ...
|
||||
def wait_for_apps_ready(self, app_reg: Apps, django_main_thread: threading.Thread) -> bool: ...
|
||||
def run(self, django_main_thread: threading.Thread) -> None: ...
|
||||
def run_loop(self) -> None: ...
|
||||
def tick(self) -> Iterator[None]: ...
|
||||
@classmethod
|
||||
def check_availability(cls) -> bool: ...
|
||||
def notify_file_changed(self, path: Union[str, Path]) -> None: ...
|
||||
@property
|
||||
def should_stop(self) -> bool: ...
|
||||
def stop(self) -> None: ...
|
||||
|
||||
class StatReloader(BaseReloader):
|
||||
SLEEP_TIME: int = ...
|
||||
def snapshot_files(self) -> Iterator[Tuple[Path, int]]: ...
|
||||
|
||||
class WatchmanUnavailable(RuntimeError): ...
|
||||
|
||||
class WatchmanReloader(BaseReloader):
|
||||
@property
|
||||
def client(self) -> Any: ...
|
||||
def watched_roots(self, watched_files: Iterable[Path]) -> Set[Path]: ...
|
||||
def update_watches(self) -> None: ...
|
||||
def request_processed(self, **kwargs: Any) -> None: ...
|
||||
def check_server_status(self, inner_ex: Optional[BaseException] = ...) -> bool: ...
|
||||
|
||||
def get_reloader() -> BaseReloader: ...
|
||||
def start_django(reloader: BaseReloader, main_func: Callable, *args: Any, **kwargs: Any) -> None: ...
|
||||
def run_with_reloader(main_func: Callable, *args: Any, **kwargs: Any) -> None: ...
|
24
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/baseconv.pyi
vendored
Normal file
24
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/baseconv.pyi
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
from typing import Any, Tuple, Union
|
||||
|
||||
BASE2_ALPHABET: str
|
||||
BASE16_ALPHABET: str
|
||||
BASE56_ALPHABET: str
|
||||
BASE36_ALPHABET: str
|
||||
BASE62_ALPHABET: str
|
||||
BASE64_ALPHABET: Any
|
||||
|
||||
class BaseConverter:
|
||||
decimal_digits: str = ...
|
||||
sign: str = ...
|
||||
digits: str = ...
|
||||
def __init__(self, digits: str, sign: str = ...) -> None: ...
|
||||
def encode(self, i: int) -> str: ...
|
||||
def decode(self, s: str) -> int: ...
|
||||
def convert(self, number: Union[int, str], from_digits: str, to_digits: str, sign: str) -> Tuple[int, str]: ...
|
||||
|
||||
base2: Any
|
||||
base16: Any
|
||||
base36: Any
|
||||
base56: Any
|
||||
base62: Any
|
||||
base64: Any
|
31
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/cache.pyi
vendored
Normal file
31
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/cache.pyi
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
from typing import Any, Optional, Tuple
|
||||
|
||||
from django.core.cache.backends.base import BaseCache
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.http.response import HttpResponse, HttpResponseBase
|
||||
|
||||
cc_delim_re: Any
|
||||
|
||||
def patch_cache_control(response: HttpResponseBase, **kwargs: Any) -> None: ...
|
||||
def get_max_age(response: HttpResponse) -> Optional[int]: ...
|
||||
def set_response_etag(response: HttpResponseBase) -> HttpResponseBase: ...
|
||||
def get_conditional_response(
|
||||
request: WSGIRequest,
|
||||
etag: Optional[str] = ...,
|
||||
last_modified: Optional[int] = ...,
|
||||
response: Optional[HttpResponse] = ...,
|
||||
) -> Optional[HttpResponse]: ...
|
||||
def patch_response_headers(response: HttpResponseBase, cache_timeout: float = ...) -> None: ...
|
||||
def add_never_cache_headers(response: HttpResponseBase) -> None: ...
|
||||
def patch_vary_headers(response: HttpResponseBase, newheaders: Tuple[str]) -> None: ...
|
||||
def has_vary_header(response: HttpResponse, header_query: str) -> bool: ...
|
||||
def get_cache_key(
|
||||
request: WSGIRequest, key_prefix: Optional[str] = ..., method: str = ..., cache: Optional[BaseCache] = ...
|
||||
) -> Optional[str]: ...
|
||||
def learn_cache_key(
|
||||
request: WSGIRequest,
|
||||
response: HttpResponse,
|
||||
cache_timeout: Optional[float] = ...,
|
||||
key_prefix: Optional[str] = ...,
|
||||
cache: Optional[BaseCache] = ...,
|
||||
) -> str: ...
|
15
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/crypto.pyi
vendored
Normal file
15
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/crypto.pyi
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
from hmac import HMAC
|
||||
from typing import Callable, Optional, Union
|
||||
|
||||
using_sysrandom: bool
|
||||
|
||||
def salted_hmac(key_salt: str, value: Union[bytes, str], secret: Optional[Union[bytes, str]] = ...) -> HMAC: ...
|
||||
def get_random_string(length: int = ..., allowed_chars: str = ...) -> str: ...
|
||||
def constant_time_compare(val1: Union[bytes, str], val2: Union[bytes, str]) -> bool: ...
|
||||
def pbkdf2(
|
||||
password: Union[bytes, str],
|
||||
salt: Union[bytes, str],
|
||||
iterations: int,
|
||||
dklen: int = ...,
|
||||
digest: Optional[Callable] = ...,
|
||||
) -> bytes: ...
|
75
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/datastructures.pyi
vendored
Normal file
75
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/datastructures.pyi
vendored
Normal file
|
@ -0,0 +1,75 @@
|
|||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
Dict,
|
||||
Iterable,
|
||||
List,
|
||||
Mapping,
|
||||
MutableMapping,
|
||||
MutableSet,
|
||||
Tuple,
|
||||
TypeVar,
|
||||
Union,
|
||||
overload,
|
||||
Iterator,
|
||||
Optional,
|
||||
)
|
||||
|
||||
from typing_extensions import Literal
|
||||
|
||||
_K = TypeVar("_K")
|
||||
_V = TypeVar("_V")
|
||||
|
||||
class OrderedSet(MutableSet[_K]):
|
||||
dict: Dict[_K, None] = ...
|
||||
def __init__(self, iterable: Optional[Iterable[_K]] = ...) -> None: ...
|
||||
def __contains__(self, item: object) -> bool: ...
|
||||
def __iter__(self) -> Iterator[_K]: ...
|
||||
def __len__(self) -> int: ...
|
||||
def add(self, x: _K) -> None: ...
|
||||
def discard(self, item: _K) -> None: ...
|
||||
|
||||
class MultiValueDictKeyError(KeyError): ...
|
||||
|
||||
_D = TypeVar("_D", bound="MultiValueDict")
|
||||
|
||||
class MultiValueDict(MutableMapping[_K, _V]):
|
||||
@overload
|
||||
def __init__(self, key_to_list_mapping: Mapping[_K, Optional[List[_V]]] = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, key_to_list_mapping: Iterable[Tuple[_K, List[_V]]] = ...) -> None: ...
|
||||
def getlist(self, key: _K, default: Any = ...) -> List[_V]: ...
|
||||
def setlist(self, key: _K, list_: List[_V]) -> None: ...
|
||||
def setlistdefault(self, key: _K, default_list: Optional[List[_V]] = ...) -> List[_V]: ...
|
||||
def appendlist(self, key: _K, value: _V) -> None: ...
|
||||
def lists(self) -> Iterable[Tuple[_K, List[_V]]]: ...
|
||||
def dict(self) -> Dict[_K, Union[_V, List[_V]]]: ...
|
||||
def copy(self: _D) -> _D: ...
|
||||
# These overrides are needed to convince mypy that this isn't an abstract class
|
||||
def __delitem__(self, item: _K) -> None: ...
|
||||
def __getitem__(self, item: _K) -> Union[_V, Literal[[]]]: ... # type: ignore
|
||||
def __setitem__(self, k: _K, v: Union[_V, List[_V]]) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[_K]: ...
|
||||
|
||||
class ImmutableList(Tuple[_V, ...]):
|
||||
warning: str = ...
|
||||
def __init__(self, *args: Any, warning: str = ..., **kwargs: Any) -> None: ...
|
||||
def complain(self, *wargs: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
class DictWrapper(Dict[str, _V]):
|
||||
func: Callable[[_V], _V] = ...
|
||||
prefix: str = ...
|
||||
@overload
|
||||
def __init__(self, data: Mapping[str, _V], func: Callable[[_V], _V], prefix: str) -> None: ...
|
||||
@overload
|
||||
def __init__(self, data: Iterable[Tuple[str, _V]], func: Callable[[_V], _V], prefix: str) -> None: ...
|
||||
|
||||
_T = TypeVar("_T", bound="CaseInsensitiveMapping")
|
||||
|
||||
class CaseInsensitiveMapping(Mapping):
|
||||
def __init__(self, data: Any) -> None: ...
|
||||
def __getitem__(self, key: str) -> Any: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
def copy(self: _T) -> _T: ...
|
63
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/dateformat.pyi
vendored
Normal file
63
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/dateformat.pyi
vendored
Normal file
|
@ -0,0 +1,63 @@
|
|||
from datetime import datetime, date
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from django.utils.timezone import FixedOffset
|
||||
|
||||
re_formatchars: Any
|
||||
re_escaped: Any
|
||||
|
||||
class Formatter:
|
||||
def format(self, formatstr: str) -> str: ...
|
||||
|
||||
class TimeFormat(Formatter):
|
||||
data: Union[datetime, str] = ...
|
||||
timezone: Optional[FixedOffset] = ...
|
||||
def __init__(self, obj: Union[datetime, str]) -> None: ...
|
||||
def a(self) -> str: ...
|
||||
def A(self) -> str: ...
|
||||
def B(self) -> None: ...
|
||||
def e(self) -> str: ...
|
||||
def f(self) -> Union[int, str]: ...
|
||||
def g(self) -> int: ...
|
||||
def G(self) -> int: ...
|
||||
def h(self) -> str: ...
|
||||
def H(self) -> str: ...
|
||||
def i(self) -> str: ...
|
||||
def O(self) -> str: ...
|
||||
def P(self) -> str: ...
|
||||
def s(self) -> str: ...
|
||||
def T(self) -> str: ...
|
||||
def u(self) -> str: ...
|
||||
def Z(self) -> Union[int, str]: ...
|
||||
|
||||
class DateFormat(TimeFormat):
|
||||
data: Union[datetime, str]
|
||||
timezone: Optional[FixedOffset]
|
||||
year_days: Any = ...
|
||||
def b(self): ...
|
||||
def c(self) -> str: ...
|
||||
def d(self) -> str: ...
|
||||
def D(self): ...
|
||||
def E(self): ...
|
||||
def F(self): ...
|
||||
def I(self) -> str: ...
|
||||
def j(self) -> int: ...
|
||||
def l(self): ...
|
||||
def L(self) -> bool: ...
|
||||
def m(self) -> str: ...
|
||||
def M(self) -> str: ...
|
||||
def n(self) -> int: ...
|
||||
def N(self): ...
|
||||
def o(self) -> int: ...
|
||||
def r(self) -> str: ...
|
||||
def S(self) -> str: ...
|
||||
def t(self) -> str: ...
|
||||
def U(self) -> int: ...
|
||||
def w(self) -> int: ...
|
||||
def W(self) -> int: ...
|
||||
def y(self) -> str: ...
|
||||
def Y(self) -> int: ...
|
||||
def z(self) -> int: ...
|
||||
|
||||
def format(value: Union[datetime, str, date], format_string: str) -> str: ...
|
||||
def time_format(value: Union[datetime, str], format_string: str) -> str: ...
|
14
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/dateparse.pyi
vendored
Normal file
14
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/dateparse.pyi
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
from datetime import date, datetime, time, timedelta
|
||||
from typing import Any, Optional
|
||||
|
||||
date_re: Any
|
||||
time_re: Any
|
||||
datetime_re: Any
|
||||
standard_duration_re: Any
|
||||
iso8601_duration_re: Any
|
||||
postgres_interval_re: Any
|
||||
|
||||
def parse_date(value: str) -> Optional[date]: ...
|
||||
def parse_time(value: str) -> Optional[time]: ...
|
||||
def parse_datetime(value: str) -> Optional[datetime]: ...
|
||||
def parse_duration(value: str) -> Optional[timedelta]: ...
|
8
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/dates.pyi
vendored
Normal file
8
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/dates.pyi
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
from typing import Dict
|
||||
|
||||
WEEKDAYS: Dict[int, str]
|
||||
WEEKDAYS_ABBR: Dict[int, str]
|
||||
MONTHS: Dict[int, str]
|
||||
MONTHS_3: Dict[int, str]
|
||||
MONTHS_AP: Dict[int, str]
|
||||
MONTHS_ALT: Dict[int, str]
|
10
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/datetime_safe.pyi
vendored
Normal file
10
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/datetime_safe.pyi
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
from datetime import date as real_date, datetime as real_datetime, time as real_time
|
||||
from typing import Union
|
||||
|
||||
class date(real_date): ...
|
||||
class datetime(real_datetime): ...
|
||||
class time(real_time): ...
|
||||
|
||||
def new_date(d: date) -> date: ...
|
||||
def new_datetime(d: date) -> datetime: ...
|
||||
def strftime(dt: Union[date, datetime], fmt: str) -> str: ...
|
3
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/deconstruct.pyi
vendored
Normal file
3
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/deconstruct.pyi
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
def deconstructible(*args: Any, path: Optional[Any] = ...) -> Any: ...
|
20
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/decorators.pyi
vendored
Normal file
20
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/decorators.pyi
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
from typing import Any, Callable, Iterable, Optional, Type, Union, TypeVar
|
||||
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
from django.views.generic.base import View
|
||||
|
||||
_T = TypeVar("_T", bound=Union[View, Callable]) # Any callable
|
||||
|
||||
class classonlymethod(classmethod): ...
|
||||
|
||||
def method_decorator(decorator: Union[Callable, Iterable[Callable]], name: str = ...) -> Callable[[_T], _T]: ...
|
||||
def decorator_from_middleware_with_args(middleware_class: type) -> Callable: ...
|
||||
def decorator_from_middleware(middleware_class: type) -> Callable: ...
|
||||
def available_attrs(fn: Callable): ...
|
||||
def make_middleware_decorator(middleware_class: Type[MiddlewareMixin]) -> Callable: ...
|
||||
|
||||
class classproperty:
|
||||
fget: Optional[Callable] = ...
|
||||
def __init__(self, method: Optional[Callable] = ...) -> None: ...
|
||||
def __get__(self, instance: Any, cls: Optional[type] = ...) -> Any: ...
|
||||
def getter(self, method: Callable) -> classproperty: ...
|
35
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/deprecation.pyi
vendored
Normal file
35
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/deprecation.pyi
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
from typing import Any, Callable, Optional, Type
|
||||
|
||||
from django.http.request import HttpRequest
|
||||
from django.http.response import HttpResponse
|
||||
|
||||
class RemovedInDjango30Warning(PendingDeprecationWarning): ...
|
||||
class RemovedInDjango31Warning(PendingDeprecationWarning): ...
|
||||
class RemovedInDjango40Warning(PendingDeprecationWarning): ...
|
||||
class RemovedInNextVersionWarning(DeprecationWarning): ...
|
||||
|
||||
class warn_about_renamed_method:
|
||||
class_name: str = ...
|
||||
old_method_name: str = ...
|
||||
new_method_name: str = ...
|
||||
deprecation_warning: Type[DeprecationWarning] = ...
|
||||
def __init__(
|
||||
self, class_name: str, old_method_name: str, new_method_name: str, deprecation_warning: Type[DeprecationWarning]
|
||||
) -> None: ...
|
||||
def __call__(self, f: Callable) -> Callable: ...
|
||||
|
||||
class RenameMethodsBase(type):
|
||||
renamed_methods: Any = ...
|
||||
def __new__(cls, name: Any, bases: Any, attrs: Any): ...
|
||||
|
||||
class DeprecationInstanceCheck(type):
|
||||
alternative: str
|
||||
deprecation_warning: Type[Warning]
|
||||
def __instancecheck__(self, instance: Any): ...
|
||||
|
||||
GetResponseCallable = Callable[[HttpRequest], HttpResponse]
|
||||
|
||||
class MiddlewareMixin:
|
||||
get_response: Optional[GetResponseCallable] = ...
|
||||
def __init__(self, get_response: Optional[GetResponseCallable] = ...) -> None: ...
|
||||
def __call__(self, request: HttpRequest) -> HttpResponse: ...
|
5
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/duration.pyi
vendored
Normal file
5
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/duration.pyi
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
from datetime import timedelta
|
||||
|
||||
def duration_string(duration: timedelta) -> str: ...
|
||||
def duration_iso_string(duration: timedelta) -> str: ...
|
||||
def duration_microseconds(delta: timedelta) -> int: ...
|
59
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/encoding.pyi
vendored
Normal file
59
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/encoding.pyi
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
import datetime
|
||||
from decimal import Decimal
|
||||
from typing import Any, TypeVar, overload, Union
|
||||
|
||||
from django.utils.functional import Promise
|
||||
from typing_extensions import Literal
|
||||
|
||||
class DjangoUnicodeDecodeError(UnicodeDecodeError):
|
||||
obj: bytes = ...
|
||||
def __init__(self, obj: bytes, *args: Any) -> None: ...
|
||||
|
||||
_P = TypeVar("_P", bound=Promise)
|
||||
_S = TypeVar("_S", bound=str)
|
||||
_PT = TypeVar("_PT", None, int, float, Decimal, datetime.datetime, datetime.date, datetime.time)
|
||||
@overload
|
||||
def smart_text(s: _P, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> _P: ...
|
||||
@overload
|
||||
def smart_text(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) -> _PT: ...
|
||||
@overload
|
||||
def smart_text(s: _S, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> _S: ...
|
||||
@overload
|
||||
def smart_text(s: Any, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> str: ...
|
||||
def is_protected_type(obj: Any) -> bool: ...
|
||||
@overload
|
||||
def force_text(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) -> _PT: ...
|
||||
@overload
|
||||
def force_text(s: _S, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> _S: ...
|
||||
@overload
|
||||
def force_text(s: Any, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> str: ...
|
||||
@overload
|
||||
def smart_bytes(s: _P, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> _P: ...
|
||||
@overload
|
||||
def smart_bytes(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) -> _PT: ...
|
||||
@overload
|
||||
def smart_bytes(s: Any, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> bytes: ...
|
||||
@overload
|
||||
def force_bytes(s: _PT, encoding: str = ..., strings_only: Literal[True] = ..., errors: str = ...) -> _PT: ...
|
||||
@overload
|
||||
def force_bytes(s: Any, encoding: str = ..., strings_only: bool = ..., errors: str = ...) -> bytes: ...
|
||||
|
||||
smart_str = smart_text
|
||||
force_str = force_text
|
||||
@overload
|
||||
def iri_to_uri(iri: None) -> None: ...
|
||||
@overload
|
||||
def iri_to_uri(iri: Union[str, Promise]) -> str: ...
|
||||
@overload
|
||||
def uri_to_iri(iri: None) -> None: ...
|
||||
@overload
|
||||
def uri_to_iri(iri: str) -> str: ...
|
||||
def escape_uri_path(path: str) -> str: ...
|
||||
def repercent_broken_unicode(path: bytes) -> bytes: ...
|
||||
@overload
|
||||
def filepath_to_uri(path: None) -> None: ...
|
||||
@overload
|
||||
def filepath_to_uri(path: str) -> str: ...
|
||||
def get_system_encoding() -> str: ...
|
||||
|
||||
DEFAULT_LOCALE_ENCODING: Any
|
76
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/feedgenerator.pyi
vendored
Normal file
76
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/feedgenerator.pyi
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
from datetime import date, datetime
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
from xml.sax import ContentHandler # type: ignore
|
||||
|
||||
def rfc2822_date(date: date) -> str: ...
|
||||
def rfc3339_date(date: date) -> str: ...
|
||||
def get_tag_uri(url: str, date: Optional[date]) -> str: ...
|
||||
|
||||
class SyndicationFeed:
|
||||
feed: Dict[str, Any] = ...
|
||||
items: List[Dict[str, Any]] = ...
|
||||
def __init__(
|
||||
self,
|
||||
title: str,
|
||||
link: str,
|
||||
description: Optional[str],
|
||||
language: Optional[str] = ...,
|
||||
author_email: Optional[str] = ...,
|
||||
author_name: Optional[str] = ...,
|
||||
author_link: Optional[str] = ...,
|
||||
subtitle: Optional[str] = ...,
|
||||
categories: Optional[Tuple[str, str]] = ...,
|
||||
feed_url: Optional[str] = ...,
|
||||
feed_copyright: Optional[str] = ...,
|
||||
feed_guid: Optional[str] = ...,
|
||||
ttl: Optional[int] = ...,
|
||||
**kwargs: Any
|
||||
) -> None: ...
|
||||
def add_item(
|
||||
self,
|
||||
title: str,
|
||||
link: str,
|
||||
description: str,
|
||||
author_email: Optional[str] = ...,
|
||||
author_name: Optional[str] = ...,
|
||||
author_link: Optional[str] = ...,
|
||||
pubdate: Optional[datetime] = ...,
|
||||
comments: None = ...,
|
||||
unique_id: Optional[str] = ...,
|
||||
unique_id_is_permalink: Optional[bool] = ...,
|
||||
categories: Optional[Tuple] = ...,
|
||||
item_copyright: Optional[str] = ...,
|
||||
ttl: None = ...,
|
||||
updateddate: Optional[datetime] = ...,
|
||||
enclosures: Optional[List[Enclosure]] = ...,
|
||||
**kwargs: Any
|
||||
) -> None: ...
|
||||
def num_items(self): ...
|
||||
def root_attributes(self) -> Dict[Any, Any]: ...
|
||||
def add_root_elements(self, handler: ContentHandler) -> None: ...
|
||||
def item_attributes(self, item: Dict[str, Any]) -> Dict[Any, Any]: ...
|
||||
def add_item_elements(self, handler: ContentHandler, item: Dict[str, Any]) -> None: ...
|
||||
def write(self, outfile: Any, encoding: Any) -> None: ...
|
||||
def writeString(self, encoding: str) -> str: ...
|
||||
def latest_post_date(self) -> datetime: ...
|
||||
|
||||
class Enclosure:
|
||||
length: Any
|
||||
mime_type: str
|
||||
url: str = ...
|
||||
def __init__(self, url: str, length: Union[int, str], mime_type: str) -> None: ...
|
||||
|
||||
class RssFeed(SyndicationFeed):
|
||||
content_type: str = ...
|
||||
def write_items(self, handler: ContentHandler) -> None: ...
|
||||
def endChannelElement(self, handler: ContentHandler) -> None: ...
|
||||
|
||||
class RssUserland091Feed(RssFeed): ...
|
||||
class Rss201rev2Feed(RssFeed): ...
|
||||
|
||||
class Atom1Feed(SyndicationFeed):
|
||||
content_type: str = ...
|
||||
ns: str = ...
|
||||
def write_items(self, handler: ContentHandler) -> None: ...
|
||||
|
||||
DefaultFeed = Rss201rev2Feed
|
31
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/formats.pyi
vendored
Normal file
31
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/formats.pyi
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
from datetime import datetime, date, time
|
||||
from decimal import Decimal
|
||||
from typing import Any, Iterator, List, Optional, Union
|
||||
|
||||
ISO_INPUT_FORMATS: Any
|
||||
FORMAT_SETTINGS: Any
|
||||
|
||||
def reset_format_cache() -> None: ...
|
||||
def iter_format_modules(lang: str, format_module_path: Optional[Union[List[str], str]] = ...) -> Iterator[Any]: ...
|
||||
def get_format_modules(lang: Optional[str] = ..., reverse: bool = ...) -> List[Any]: ...
|
||||
def get_format(format_type: str, lang: Optional[str] = ..., use_l10n: Optional[bool] = ...) -> str: ...
|
||||
|
||||
get_format_lazy: Any
|
||||
|
||||
def date_format(
|
||||
value: Union[date, datetime, str], format: Optional[str] = ..., use_l10n: Optional[bool] = ...
|
||||
) -> str: ...
|
||||
def time_format(
|
||||
value: Union[time, datetime, str], format: Optional[str] = ..., use_l10n: Optional[bool] = ...
|
||||
) -> str: ...
|
||||
def number_format(
|
||||
value: Union[Decimal, float, str],
|
||||
decimal_pos: Optional[int] = ...,
|
||||
use_l10n: Optional[bool] = ...,
|
||||
force_grouping: bool = ...,
|
||||
) -> str: ...
|
||||
def localize(value: Any, use_l10n: Optional[bool] = ...) -> Any: ...
|
||||
def localize_input(
|
||||
value: Optional[Union[datetime, Decimal, float, str]], default: Optional[str] = ...
|
||||
) -> Optional[str]: ...
|
||||
def sanitize_separators(value: Union[Decimal, int, str]) -> Union[Decimal, int, str]: ...
|
59
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/functional.pyi
vendored
Normal file
59
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/functional.pyi
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union, TypeVar, Generic, overload
|
||||
from functools import wraps as wraps # noqa: F401
|
||||
|
||||
from django.db.models.base import Model
|
||||
|
||||
def curry(_curried_func: Any, *args: Any, **kwargs: Any): ...
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
class cached_property(Generic[_T]):
|
||||
func: Callable[..., _T] = ...
|
||||
__doc__: Any = ...
|
||||
name: str = ...
|
||||
def __init__(self, func: Callable[..., _T], name: Optional[str] = ...): ...
|
||||
@overload
|
||||
def __get__(self, instance: None, cls: Type[Any] = ...) -> "cached_property[_T]": ...
|
||||
@overload
|
||||
def __get__(self, instance: object, cls: Type[Any] = ...) -> _T: ...
|
||||
|
||||
class Promise: ...
|
||||
|
||||
def lazy(func: Union[Callable, Type[str]], *resultclasses: Any) -> Callable: ...
|
||||
def lazystr(text: Any): ...
|
||||
def keep_lazy(*resultclasses: Any) -> Callable: ...
|
||||
def keep_lazy_text(func: Callable) -> Callable: ...
|
||||
|
||||
empty: Any
|
||||
|
||||
def new_method_proxy(func: Any): ...
|
||||
|
||||
class LazyObject:
|
||||
def __init__(self) -> None: ...
|
||||
__getattr__: Any = ...
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
def __reduce__(self) -> Tuple[Callable, Tuple[Model]]: ...
|
||||
def __copy__(self): ...
|
||||
def __deepcopy__(self, memo: Any): ...
|
||||
__bytes__: Any = ...
|
||||
__bool__: Any = ...
|
||||
__dir__: Any = ...
|
||||
__class__: Any = ...
|
||||
__ne__: Any = ...
|
||||
__hash__: Any = ...
|
||||
__getitem__: Any = ...
|
||||
__setitem__: Any = ...
|
||||
__delitem__: Any = ...
|
||||
__iter__: Any = ...
|
||||
__len__: Any = ...
|
||||
__contains__: Any = ...
|
||||
|
||||
def unpickle_lazyobject(wrapped: Model) -> Model: ...
|
||||
|
||||
class SimpleLazyObject(LazyObject):
|
||||
def __init__(self, func: Callable) -> None: ...
|
||||
def __copy__(self) -> List[int]: ...
|
||||
def __deepcopy__(self, memo: Dict[Any, Any]) -> List[int]: ...
|
||||
|
||||
def partition(predicate: Callable, values: List[Model]) -> Tuple[List[Model], List[Model]]: ...
|
3
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/hashable.pyi
vendored
Normal file
3
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/hashable.pyi
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
from typing import Any
|
||||
|
||||
def make_hashable(value: Any) -> Any: ...
|
37
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/html.pyi
vendored
Normal file
37
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/html.pyi
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
from html.parser import HTMLParser
|
||||
from typing import Any, Iterator, List, Optional, Tuple, Union
|
||||
|
||||
from django.utils.safestring import SafeText
|
||||
|
||||
TRAILING_PUNCTUATION_CHARS: str
|
||||
WRAPPING_PUNCTUATION: Any
|
||||
DOTS: Any
|
||||
unencoded_ampersands_re: Any
|
||||
word_split_re: Any
|
||||
simple_url_re: Any
|
||||
simple_url_2_re: Any
|
||||
|
||||
def escape(text: Any) -> SafeText: ...
|
||||
def escapejs(value: Any) -> SafeText: ...
|
||||
def json_script(value: Any, element_id: str) -> SafeText: ...
|
||||
def conditional_escape(text: Any) -> str: ...
|
||||
def format_html(format_string: str, *args: Any, **kwargs: Any) -> SafeText: ...
|
||||
def format_html_join(
|
||||
sep: str, format_string: str, args_generator: Union[Iterator[Any], List[Tuple[str]]]
|
||||
) -> SafeText: ...
|
||||
def linebreaks(value: Any, autoescape: bool = ...) -> str: ...
|
||||
|
||||
class MLStripper(HTMLParser):
|
||||
fed: Any = ...
|
||||
def __init__(self) -> None: ...
|
||||
def handle_data(self, d: str) -> None: ...
|
||||
def handle_entityref(self, name: str) -> None: ...
|
||||
def handle_charref(self, name: str) -> None: ...
|
||||
def get_data(self) -> str: ...
|
||||
|
||||
def strip_tags(value: str) -> str: ...
|
||||
def strip_spaces_between_tags(value: str) -> str: ...
|
||||
def smart_urlquote(url: str) -> str: ...
|
||||
def urlize(text: str, trim_url_limit: Optional[int] = ..., nofollow: bool = ..., autoescape: bool = ...) -> str: ...
|
||||
def avoid_wrapping(value: str) -> str: ...
|
||||
def html_safe(klass: Any): ...
|
37
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/http.pyi
vendored
Normal file
37
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/http.pyi
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
from typing import Any, Iterable, List, Optional, Tuple, Union
|
||||
|
||||
ETAG_MATCH: Any
|
||||
MONTHS: Any
|
||||
RFC1123_DATE: Any
|
||||
RFC850_DATE: Any
|
||||
ASCTIME_DATE: Any
|
||||
RFC3986_GENDELIMS: str
|
||||
RFC3986_SUBDELIMS: str
|
||||
FIELDS_MATCH: Any
|
||||
|
||||
def urlquote(url: str, safe: str = ...) -> str: ...
|
||||
def urlquote_plus(url: str, safe: str = ...) -> str: ...
|
||||
def urlunquote(quoted_url: str) -> str: ...
|
||||
def urlunquote_plus(quoted_url: str) -> str: ...
|
||||
def urlencode(query: Any, doseq: bool = ...) -> str: ...
|
||||
def cookie_date(epoch_seconds: Optional[float] = ...) -> str: ...
|
||||
def http_date(epoch_seconds: Optional[float] = ...) -> str: ...
|
||||
def parse_http_date(date: str) -> int: ...
|
||||
def parse_http_date_safe(date: str) -> Optional[int]: ...
|
||||
def base36_to_int(s: str) -> int: ...
|
||||
def int_to_base36(i: int) -> str: ...
|
||||
def urlsafe_base64_encode(s: bytes) -> str: ...
|
||||
def urlsafe_base64_decode(s: Union[bytes, str]) -> bytes: ...
|
||||
def parse_etags(etag_str: str) -> List[str]: ...
|
||||
def quote_etag(etag_str: str) -> str: ...
|
||||
def is_same_domain(host: str, pattern: str) -> bool: ...
|
||||
def url_has_allowed_host_and_scheme(
|
||||
url: Optional[str], allowed_hosts: Optional[Union[str, Iterable[str]]], require_https: bool = ...
|
||||
) -> bool: ...
|
||||
def is_safe_url(
|
||||
url: Optional[str], allowed_hosts: Optional[Union[str, Iterable[str]]], require_https: bool = ...
|
||||
) -> bool: ...
|
||||
def limited_parse_qsl(
|
||||
qs: str, keep_blank_values: bool = ..., encoding: str = ..., errors: str = ..., fields_limit: Optional[int] = ...
|
||||
) -> List[Tuple[str, str]]: ...
|
||||
def escape_leading_slashes(url: str) -> str: ...
|
8
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/inspect.pyi
vendored
Normal file
8
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/inspect.pyi
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
from typing import Callable, List, Tuple
|
||||
|
||||
def get_func_args(func: Callable) -> List[str]: ...
|
||||
def get_func_full_args(func: Callable) -> List[Tuple[str]]: ...
|
||||
def func_accepts_kwargs(func: Callable) -> bool: ...
|
||||
def func_accepts_var_args(func: Callable) -> bool: ...
|
||||
def method_has_no_args(meth: Callable) -> bool: ...
|
||||
def func_supports_parameter(func: Callable, parameter: str) -> bool: ...
|
4
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/ipv6.pyi
vendored
Normal file
4
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/ipv6.pyi
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
from typing import Any
|
||||
|
||||
def clean_ipv6_address(ip_str: Any, unpack_ipv4: bool = ..., error_message: Any = ...): ...
|
||||
def is_valid_ipv6_address(ip_str: str) -> bool: ...
|
3
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/itercompat.pyi
vendored
Normal file
3
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/itercompat.pyi
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
from typing import Any
|
||||
|
||||
def is_iterable(x: Any) -> bool: ...
|
26
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/jslex.pyi
vendored
Normal file
26
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/jslex.pyi
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
from typing import Any, Dict, Iterator, List, Optional, Tuple
|
||||
|
||||
class Tok:
|
||||
num: int = ...
|
||||
id: int = ...
|
||||
name: str = ...
|
||||
regex: str = ...
|
||||
next: Optional[str] = ...
|
||||
def __init__(self, name: str, regex: str, next: Optional[str] = ...) -> None: ...
|
||||
|
||||
def literals(choices: str, prefix: str = ..., suffix: str = ...) -> str: ...
|
||||
|
||||
class Lexer:
|
||||
regexes: Any = ...
|
||||
toks: Any = ...
|
||||
state: Any = ...
|
||||
def __init__(self, states: Dict[str, List[Tok]], first: str) -> None: ...
|
||||
def lex(self, text: str) -> Iterator[Tuple[str, str]]: ...
|
||||
|
||||
class JsLexer(Lexer):
|
||||
both_before: Any = ...
|
||||
both_after: Any = ...
|
||||
states: Any = ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
def prepare_js_for_gettext(js: str) -> str: ...
|
45
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/log.pyi
vendored
Normal file
45
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/log.pyi
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
import logging.config
|
||||
from logging import LogRecord
|
||||
from typing import Any, Callable, Dict, Optional, Union
|
||||
|
||||
from django.core.management.color import Style
|
||||
|
||||
request_logger: Any
|
||||
DEFAULT_LOGGING: Any
|
||||
|
||||
def configure_logging(logging_config: str, logging_settings: Dict[str, Any]) -> None: ...
|
||||
|
||||
class AdminEmailHandler(logging.Handler):
|
||||
include_html: bool = ...
|
||||
email_backend: Optional[str] = ...
|
||||
def __init__(self, include_html: bool = ..., email_backend: Optional[str] = ...) -> None: ...
|
||||
def send_mail(self, subject: str, message: str, *args: Any, **kwargs: Any) -> None: ...
|
||||
def connection(self) -> Any: ...
|
||||
def format_subject(self, subject: str) -> str: ...
|
||||
|
||||
class CallbackFilter(logging.Filter):
|
||||
callback: Callable = ...
|
||||
def __init__(self, callback: Callable) -> None: ...
|
||||
def filter(self, record: Union[str, LogRecord]) -> bool: ...
|
||||
|
||||
class RequireDebugFalse(logging.Filter):
|
||||
def filter(self, record: Union[str, LogRecord]) -> bool: ...
|
||||
|
||||
class RequireDebugTrue(logging.Filter):
|
||||
def filter(self, record: Union[str, LogRecord]) -> bool: ...
|
||||
|
||||
class ServerFormatter(logging.Formatter):
|
||||
datefmt: None
|
||||
style: Style = ...
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def uses_server_time(self) -> bool: ...
|
||||
|
||||
def log_response(
|
||||
message: str,
|
||||
*args: Any,
|
||||
response: Optional[Any] = ...,
|
||||
request: Optional[Any] = ...,
|
||||
logger: Any = ...,
|
||||
level: Optional[Any] = ...,
|
||||
exc_info: Optional[Any] = ...
|
||||
) -> None: ...
|
10
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/lorem_ipsum.pyi
vendored
Normal file
10
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/lorem_ipsum.pyi
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
from typing import Any, List
|
||||
|
||||
COMMON_P: str
|
||||
WORDS: Any
|
||||
COMMON_WORDS: Any
|
||||
|
||||
def sentence() -> str: ...
|
||||
def paragraph() -> str: ...
|
||||
def paragraphs(count: int, common: bool = ...) -> List[str]: ...
|
||||
def words(count: int, common: bool = ...) -> str: ...
|
6
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/module_loading.pyi
vendored
Normal file
6
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/module_loading.pyi
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
from typing import Any
|
||||
|
||||
def import_string(dotted_path: str) -> Any: ...
|
||||
def autodiscover_modules(*args: Any, **kwargs: Any) -> None: ...
|
||||
def module_has_submodule(package: Any, module_name: str) -> bool: ...
|
||||
def module_dir(module: Any) -> str: ...
|
12
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/numberformat.pyi
vendored
Normal file
12
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/numberformat.pyi
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
from decimal import Decimal
|
||||
from typing import Optional, Sequence, Union
|
||||
|
||||
def format(
|
||||
number: Union[Decimal, float, str],
|
||||
decimal_sep: str,
|
||||
decimal_pos: Optional[int] = ...,
|
||||
grouping: Union[int, Sequence[int]] = ...,
|
||||
thousand_sep: str = ...,
|
||||
force_grouping: bool = ...,
|
||||
use_l10n: Optional[bool] = ...,
|
||||
) -> str: ...
|
16
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/regex_helper.pyi
vendored
Normal file
16
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/regex_helper.pyi
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
from typing import Any, Iterator, List, Optional, Tuple, Type, Union
|
||||
|
||||
ESCAPE_MAPPINGS: Any
|
||||
|
||||
class Choice(list): ...
|
||||
class Group(list): ...
|
||||
class NonCapture(list): ...
|
||||
|
||||
def normalize(pattern: str) -> List[Tuple[str, List[str]]]: ...
|
||||
def next_char(input_iter: Any) -> None: ...
|
||||
def walk_to_end(ch: str, input_iter: Iterator[Any]) -> None: ...
|
||||
def get_quantifier(ch: str, input_iter: Iterator[Any]) -> Tuple[int, Optional[str]]: ...
|
||||
def contains(source: Union[Group, NonCapture, str], inst: Type[Group]) -> bool: ...
|
||||
def flatten_result(
|
||||
source: Optional[Union[List[Union[Choice, Group, str]], Group, NonCapture]]
|
||||
) -> Tuple[List[str], List[List[str]]]: ...
|
26
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/safestring.pyi
vendored
Normal file
26
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/safestring.pyi
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
from typing import TypeVar, overload, Callable, Any
|
||||
|
||||
_SD = TypeVar("_SD", bound="SafeData")
|
||||
|
||||
class SafeData:
|
||||
def __html__(self: _SD) -> _SD: ...
|
||||
|
||||
class SafeText(str, SafeData):
|
||||
@overload
|
||||
def __add__(self, rhs: SafeText) -> SafeText: ...
|
||||
@overload
|
||||
def __add__(self, rhs: str) -> str: ...
|
||||
@overload
|
||||
def __iadd__(self, rhs: SafeText) -> SafeText: ...
|
||||
@overload
|
||||
def __iadd__(self, rhs: str) -> str: ...
|
||||
|
||||
SafeString = SafeText
|
||||
|
||||
_C = TypeVar("_C", bound=Callable)
|
||||
@overload
|
||||
def mark_safe(s: _SD) -> _SD: ...
|
||||
@overload
|
||||
def mark_safe(s: _C) -> _C: ...
|
||||
@overload
|
||||
def mark_safe(s: Any) -> SafeText: ...
|
106
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/six.pyi
vendored
Normal file
106
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/six.pyi
vendored
Normal file
|
@ -0,0 +1,106 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import types
|
||||
import typing
|
||||
import unittest
|
||||
from typing import (
|
||||
Any,
|
||||
AnyStr,
|
||||
Callable,
|
||||
Dict,
|
||||
ItemsView,
|
||||
Iterable,
|
||||
KeysView,
|
||||
Mapping,
|
||||
NoReturn,
|
||||
Optional,
|
||||
Pattern,
|
||||
Text,
|
||||
Tuple,
|
||||
Type,
|
||||
TypeVar,
|
||||
Union,
|
||||
ValuesView,
|
||||
overload,
|
||||
)
|
||||
|
||||
# Exports
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_K = TypeVar("_K")
|
||||
_V = TypeVar("_V")
|
||||
|
||||
# TODO make constant, then move this stub to 2and3
|
||||
# https://github.com/python/typeshed/issues/17
|
||||
PY2 = False
|
||||
PY3 = True
|
||||
PY34 = ... # type: bool
|
||||
|
||||
string_types = (str,)
|
||||
integer_types = (int,)
|
||||
class_types = (type,)
|
||||
text_type = str
|
||||
binary_type = bytes
|
||||
|
||||
MAXSIZE = ... # type: int
|
||||
|
||||
# def add_move
|
||||
# def remove_move
|
||||
|
||||
def callable(obj: object) -> bool: ...
|
||||
def get_unbound_function(unbound: types.FunctionType) -> types.FunctionType: ...
|
||||
def create_bound_method(func: types.FunctionType, obj: object) -> types.MethodType: ...
|
||||
def create_unbound_method(func: types.FunctionType, cls: type) -> types.FunctionType: ...
|
||||
|
||||
Iterator = object
|
||||
|
||||
def get_method_function(meth: types.MethodType) -> types.FunctionType: ...
|
||||
def get_method_self(meth: types.MethodType) -> Optional[object]: ...
|
||||
def get_function_closure(fun: types.FunctionType) -> Optional[Tuple[types._Cell, ...]]: ...
|
||||
def get_function_code(fun: types.FunctionType) -> types.CodeType: ...
|
||||
def get_function_defaults(fun: types.FunctionType) -> Optional[Tuple[Any, ...]]: ...
|
||||
def get_function_globals(fun: types.FunctionType) -> Dict[str, Any]: ...
|
||||
def iterkeys(d: Mapping[_K, _V]) -> typing.Iterator[_K]: ...
|
||||
def itervalues(d: Mapping[_K, _V]) -> typing.Iterator[_V]: ...
|
||||
def iteritems(d: Mapping[_K, _V]) -> typing.Iterator[Tuple[_K, _V]]: ...
|
||||
|
||||
# def iterlists
|
||||
|
||||
def viewkeys(d: Mapping[_K, _V]) -> KeysView[_K]: ...
|
||||
def viewvalues(d: Mapping[_K, _V]) -> ValuesView[_V]: ...
|
||||
def viewitems(d: Mapping[_K, _V]) -> ItemsView[_K, _V]: ...
|
||||
def b(s: str) -> binary_type: ...
|
||||
def u(s: str) -> text_type: ...
|
||||
|
||||
unichr = chr
|
||||
|
||||
def int2byte(i: int) -> bytes: ...
|
||||
def byte2int(bs: binary_type) -> int: ...
|
||||
def indexbytes(buf: binary_type, i: int) -> int: ...
|
||||
def iterbytes(buf: binary_type) -> typing.Iterator[int]: ...
|
||||
def assertCountEqual(
|
||||
self: unittest.TestCase, first: Iterable[_T], second: Iterable[_T], msg: Optional[str] = ...
|
||||
) -> None: ...
|
||||
@overload
|
||||
def assertRaisesRegex(self: unittest.TestCase, msg: Optional[str] = ...) -> Any: ...
|
||||
@overload
|
||||
def assertRaisesRegex(self: unittest.TestCase, callable_obj: Callable[..., Any], *args: Any, **kwargs: Any) -> Any: ...
|
||||
def assertRegex(
|
||||
self: unittest.TestCase, text: AnyStr, expected_regex: Union[AnyStr, Pattern[AnyStr]], msg: Optional[str] = ...
|
||||
) -> None: ...
|
||||
|
||||
exec_ = exec
|
||||
|
||||
def reraise(
|
||||
tp: Optional[Type[BaseException]], value: Optional[BaseException], tb: Optional[types.TracebackType] = ...
|
||||
) -> NoReturn: ...
|
||||
def raise_from(value: Union[BaseException, Type[BaseException]], from_value: Optional[BaseException]) -> NoReturn: ...
|
||||
|
||||
print_ = print
|
||||
|
||||
def with_metaclass(meta: type, *bases: type) -> type: ...
|
||||
def add_metaclass(metaclass: type) -> Callable[[_T], _T]: ...
|
||||
def ensure_binary(s: Union[bytes, Text], encoding: str = ..., errors: str = ...) -> bytes: ...
|
||||
def ensure_str(s: Union[bytes, Text], encoding: str = ..., errors: str = ...) -> str: ...
|
||||
def ensure_text(s: Union[bytes, Text], encoding: str = ..., errors: str = ...) -> Text: ...
|
||||
def python_2_unicode_compatible(klass: _T) -> _T: ...
|
18
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/termcolors.pyi
vendored
Normal file
18
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/termcolors.pyi
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
from typing import Any, Callable, Dict, Optional, Tuple, Union, Sequence
|
||||
|
||||
color_names: Any
|
||||
foreground: Any
|
||||
background: Any
|
||||
RESET: str
|
||||
opt_dict: Any
|
||||
|
||||
def colorize(text: Optional[str] = ..., opts: Sequence[str] = ..., **kwargs: Any) -> str: ...
|
||||
def make_style(opts: Tuple = ..., **kwargs: Any) -> Callable: ...
|
||||
|
||||
NOCOLOR_PALETTE: str
|
||||
DARK_PALETTE: str
|
||||
LIGHT_PALETTE: str
|
||||
PALETTES: Any
|
||||
DEFAULT_PALETTE: str = ...
|
||||
|
||||
def parse_color_setting(config_string: str) -> Optional[Dict[str, Dict[str, Union[Tuple[str], str]]]]: ...
|
47
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/text.pyi
vendored
Normal file
47
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/text.pyi
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
from typing import Any, Iterable, Iterator, List, Optional, Union
|
||||
|
||||
from django.db.models.base import Model
|
||||
from django.utils.functional import SimpleLazyObject
|
||||
from django.utils.safestring import SafeText
|
||||
|
||||
def capfirst(x: Optional[str]) -> Optional[str]: ...
|
||||
|
||||
re_words: Any
|
||||
re_chars: Any
|
||||
re_tag: Any
|
||||
re_newlines: Any
|
||||
re_camel_case: Any
|
||||
|
||||
def wrap(text: str, width: int) -> str: ...
|
||||
|
||||
class Truncator(SimpleLazyObject):
|
||||
def __init__(self, text: Union[Model, str]) -> None: ...
|
||||
def add_truncation_text(self, text: str, truncate: Optional[str] = ...) -> str: ...
|
||||
def chars(self, num: int, truncate: Optional[str] = ..., html: bool = ...) -> str: ...
|
||||
def words(self, num: int, truncate: Optional[str] = ..., html: bool = ...) -> str: ...
|
||||
|
||||
def get_valid_filename(s: str) -> str: ...
|
||||
def get_text_list(list_: List[str], last_word: str = ...) -> str: ...
|
||||
def normalize_newlines(text: str) -> str: ...
|
||||
def phone2numeric(phone: str) -> str: ...
|
||||
def compress_string(s: bytes) -> bytes: ...
|
||||
|
||||
class StreamingBuffer:
|
||||
vals: List[bytes] = ...
|
||||
def __init__(self) -> None: ...
|
||||
def write(self, val: bytes) -> None: ...
|
||||
def read(self) -> bytes: ...
|
||||
def flush(self): ...
|
||||
def close(self): ...
|
||||
|
||||
def compress_sequence(sequence: Iterable[bytes]) -> Iterator[bytes]: ...
|
||||
|
||||
smart_split_re: Any
|
||||
|
||||
def smart_split(text: str) -> Iterator[str]: ...
|
||||
def unescape_entities(text: str) -> str: ...
|
||||
def unescape_string_literal(s: str) -> str: ...
|
||||
def slugify(value: str, allow_unicode: bool = ...) -> SafeText: ...
|
||||
def camel_case_to_spaces(value: str) -> str: ...
|
||||
|
||||
format_lazy: Any
|
10
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/timesince.pyi
vendored
Normal file
10
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/timesince.pyi
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
from datetime import date
|
||||
from typing import Any, Optional, Dict
|
||||
|
||||
TIME_STRINGS: Dict[str, str]
|
||||
TIMESINCE_CHUNKS: Any
|
||||
|
||||
def timesince(
|
||||
d: date, now: Optional[date] = ..., reversed: bool = ..., time_strings: Optional[Dict[str, str]] = ...
|
||||
) -> str: ...
|
||||
def timeuntil(d: date, now: Optional[date] = ..., time_strings: Optional[Dict[str, str]] = ...) -> str: ...
|
62
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/timezone.pyi
vendored
Normal file
62
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/timezone.pyi
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
import types
|
||||
from contextlib import ContextDecorator
|
||||
from datetime import date, datetime as datetime, time, timedelta as timedelta, tzinfo as tzinfo, timezone
|
||||
from typing import Optional, Union, Type
|
||||
|
||||
from pytz import BaseTzInfo
|
||||
|
||||
_AnyTime = Union[time, datetime]
|
||||
|
||||
class UTC(tzinfo):
|
||||
def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
|
||||
def tzname(self, dt: Optional[datetime]) -> str: ...
|
||||
def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
|
||||
|
||||
class FixedOffset(tzinfo):
|
||||
def __init__(self, offset: Optional[int] = ..., name: Optional[str] = ...) -> None: ...
|
||||
def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
|
||||
def tzname(self, dt: Optional[datetime]) -> str: ...
|
||||
def dst(self, dt: Optional[Union[datetime, timedelta]]) -> Optional[timedelta]: ...
|
||||
|
||||
class ReferenceLocalTimezone(tzinfo):
|
||||
STDOFFSET: timedelta = ...
|
||||
DSTOFFSET: timedelta = ...
|
||||
DSTDIFF: timedelta = ...
|
||||
def __init__(self) -> None: ...
|
||||
def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
|
||||
def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
|
||||
def tzname(self, dt: Optional[datetime]) -> str: ...
|
||||
|
||||
class LocalTimezone(ReferenceLocalTimezone):
|
||||
def tzname(self, dt: Optional[datetime]) -> str: ...
|
||||
|
||||
utc: UTC = ...
|
||||
|
||||
def get_fixed_timezone(offset: Union[timedelta, int]) -> timezone: ...
|
||||
def get_default_timezone() -> BaseTzInfo: ...
|
||||
def get_default_timezone_name() -> str: ...
|
||||
|
||||
# Strictly speaking, it is possible to activate() a non-pytz timezone,
|
||||
# in which case BaseTzInfo is incorrect. However, this is unlikely,
|
||||
# so we use it anyway, to keep things ergonomic for most users.
|
||||
def get_current_timezone() -> BaseTzInfo: ...
|
||||
def get_current_timezone_name() -> str: ...
|
||||
def activate(timezone: Union[tzinfo, str]) -> None: ...
|
||||
def deactivate() -> None: ...
|
||||
|
||||
class override(ContextDecorator):
|
||||
timezone: tzinfo = ...
|
||||
old_timezone: Optional[tzinfo] = ...
|
||||
def __init__(self, timezone: Optional[Union[str, tzinfo]]) -> None: ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: Type[BaseException], exc_value: BaseException, traceback: types.TracebackType
|
||||
) -> None: ...
|
||||
|
||||
def localtime(value: Optional[_AnyTime] = ..., timezone: Optional[tzinfo] = ...) -> datetime: ...
|
||||
def localdate(value: Optional[_AnyTime] = ..., timezone: Optional[tzinfo] = ...) -> date: ...
|
||||
def now() -> datetime: ...
|
||||
def is_aware(value: _AnyTime) -> bool: ...
|
||||
def is_naive(value: _AnyTime) -> bool: ...
|
||||
def make_aware(value: _AnyTime, timezone: Optional[tzinfo] = ..., is_dst: Optional[bool] = ...) -> datetime: ...
|
||||
def make_naive(value: _AnyTime, timezone: Optional[tzinfo] = ...) -> datetime: ...
|
6
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/topological_sort.pyi
vendored
Normal file
6
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/topological_sort.pyi
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
from typing import Any, Dict, Iterator, Set, Container, List
|
||||
|
||||
class CyclicDependencyError(ValueError): ...
|
||||
|
||||
def topological_sort_as_sets(dependency_graph: Dict[Any, Any]) -> Iterator[Set[Any]]: ...
|
||||
def stable_topological_sort(l: Container[Any], dependency_graph: Dict[Any, Any]) -> List[Any]: ...
|
72
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/translation/__init__.pyi
vendored
Normal file
72
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/translation/__init__.pyi
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
import functools
|
||||
from contextlib import ContextDecorator
|
||||
from typing import Any, Optional, Callable
|
||||
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
|
||||
LANGUAGE_SESSION_KEY: str
|
||||
|
||||
class TranslatorCommentWarning(SyntaxWarning): ...
|
||||
|
||||
class Trans:
|
||||
activate: Callable
|
||||
check_for_language: functools._lru_cache_wrapper
|
||||
deactivate: Callable
|
||||
deactivate_all: Callable
|
||||
get_language: Callable
|
||||
get_language_bidi: Callable
|
||||
get_language_from_path: Callable
|
||||
get_language_from_request: Callable
|
||||
gettext: Callable
|
||||
gettext_noop: Callable
|
||||
ngettext: Callable
|
||||
npgettext: Callable
|
||||
pgettext: Callable
|
||||
def __getattr__(self, real_name: Any): ...
|
||||
|
||||
def gettext_noop(message: str) -> str: ...
|
||||
|
||||
ugettext_noop = gettext_noop
|
||||
|
||||
def gettext(message: str) -> str: ...
|
||||
|
||||
ugettext = gettext
|
||||
|
||||
def ngettext(singular: str, plural: str, number: float) -> str: ...
|
||||
|
||||
ungettext = ngettext
|
||||
|
||||
def pgettext(context: str, message: str) -> str: ...
|
||||
def npgettext(context: str, singular: str, plural: str, number: int) -> str: ...
|
||||
|
||||
gettext_lazy = gettext
|
||||
ugettext_lazy = ugettext
|
||||
pgettext_lazy = pgettext
|
||||
ngettext_lazy = ngettext
|
||||
ungettext_lazy = ungettext
|
||||
npgettext_lazy = npgettext
|
||||
|
||||
def activate(language: str) -> None: ...
|
||||
def deactivate() -> None: ...
|
||||
|
||||
class override(ContextDecorator):
|
||||
language: Optional[str] = ...
|
||||
deactivate: bool = ...
|
||||
def __init__(self, language: Optional[str], deactivate: bool = ...) -> None: ...
|
||||
old_language: Optional[str] = ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
|
||||
|
||||
def get_language() -> Optional[str]: ...
|
||||
def get_language_from_path(path: str) -> Optional[str]: ...
|
||||
def get_language_bidi() -> bool: ...
|
||||
def check_for_language(lang_code: Optional[str]) -> bool: ...
|
||||
def to_language(locale: str) -> str: ...
|
||||
def to_locale(language: str) -> str: ...
|
||||
def get_language_from_request(request: WSGIRequest, check_path: bool = ...) -> str: ...
|
||||
def templatize(src: str, **kwargs: Any) -> str: ...
|
||||
def deactivate_all() -> None: ...
|
||||
def get_supported_language_variant(lang_code: str, strict: bool = ...) -> str: ...
|
||||
def get_language_info(lang_code: str) -> Any: ...
|
||||
|
||||
from . import trans_real as trans_real
|
|
@ -0,0 +1,7 @@
|
|||
from pathlib import Path
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.utils.autoreload import BaseReloader
|
||||
|
||||
def watch_for_translation_changes(sender: BaseReloader, **kwargs: Any) -> None: ...
|
||||
def translation_file_changed(sender: Optional[BaseReloader], file_path: Path, **kwargs: Any) -> bool: ...
|
14
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/translation/template.pyi
vendored
Normal file
14
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/translation/template.pyi
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
from typing import Any
|
||||
|
||||
dot_re: Any
|
||||
|
||||
def blankout(src: str, char: str) -> str: ...
|
||||
|
||||
context_re: Any
|
||||
inline_re: Any
|
||||
block_re: Any
|
||||
endblock_re: Any
|
||||
plural_re: Any
|
||||
constant_re: Any
|
||||
|
||||
def templatize(src: str, origin: str = ...) -> str: ...
|
|
@ -0,0 +1,25 @@
|
|||
from typing import Any
|
||||
|
||||
def gettext(message: Any): ...
|
||||
|
||||
gettext_noop = gettext
|
||||
gettext_lazy = gettext
|
||||
_ = gettext
|
||||
|
||||
def ngettext(singular: str, plural: str, number: int) -> str: ...
|
||||
|
||||
ngettext_lazy = ngettext
|
||||
|
||||
def pgettext(context: Any, message: Any): ...
|
||||
def npgettext(context: Any, singular: Any, plural: Any, number: Any): ...
|
||||
def activate(x: Any): ...
|
||||
def deactivate(): ...
|
||||
|
||||
deactivate_all = deactivate
|
||||
|
||||
def get_language(): ...
|
||||
def get_language_bidi() -> bool: ...
|
||||
def check_for_language(x: str) -> bool: ...
|
||||
def get_language_from_request(request: None, check_path: bool = ...) -> str: ...
|
||||
def get_language_from_path(request: str) -> None: ...
|
||||
def get_supported_language_variant(lang_code: str, strict: bool = ...) -> str: ...
|
|
@ -0,0 +1,42 @@
|
|||
import gettext as gettext_module
|
||||
from collections import OrderedDict
|
||||
from gettext import NullTranslations
|
||||
from typing import Any, List, Optional, Tuple, Callable
|
||||
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
|
||||
CONTEXT_SEPARATOR: str
|
||||
accept_language_re: Any
|
||||
language_code_re: Any
|
||||
language_code_prefix_re: Any
|
||||
|
||||
def reset_cache(**kwargs: Any) -> None: ...
|
||||
|
||||
class DjangoTranslation(gettext_module.GNUTranslations):
|
||||
domain: str = ...
|
||||
plural: Callable = ...
|
||||
def __init__(self, language: str, domain: Optional[str] = ..., localedirs: Optional[List[str]] = ...) -> None: ...
|
||||
def merge(self, other: NullTranslations) -> None: ...
|
||||
def language(self): ...
|
||||
def to_language(self) -> str: ...
|
||||
|
||||
def translation(language: str) -> DjangoTranslation: ...
|
||||
def activate(language: str) -> None: ...
|
||||
def deactivate() -> None: ...
|
||||
def deactivate_all() -> None: ...
|
||||
def get_language() -> Optional[str]: ...
|
||||
def get_language_bidi() -> bool: ...
|
||||
def catalog(): ...
|
||||
def gettext(message: str) -> str: ...
|
||||
def pgettext(context: str, message: str) -> str: ...
|
||||
def gettext_noop(message: str) -> str: ...
|
||||
def do_ntranslate(singular: str, plural: str, number: float, translation_function: str) -> str: ...
|
||||
def ngettext(singular: str, plural: str, number: float) -> str: ...
|
||||
def npgettext(context: str, singular: str, plural: str, number: int) -> str: ...
|
||||
def all_locale_paths() -> List[str]: ...
|
||||
def check_for_language(lang_code: Optional[str]) -> bool: ...
|
||||
def get_languages() -> OrderedDict: ...
|
||||
def get_supported_language_variant(lang_code: Optional[str], strict: bool = ...) -> str: ...
|
||||
def get_language_from_path(path: str, strict: bool = ...) -> Optional[str]: ...
|
||||
def get_language_from_request(request: WSGIRequest, check_path: bool = ...) -> str: ...
|
||||
def parse_accept_lang_header(lang_string: str) -> Tuple: ...
|
21
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/tree.pyi
vendored
Normal file
21
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/tree.pyi
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
from typing import Any, Dict, Iterable, Optional, Tuple, Union, Sequence, List
|
||||
|
||||
from django.db.models.sql.where import NothingNode
|
||||
|
||||
_NodeChildren = Iterable[Union["Node", NothingNode, Sequence[Any]]]
|
||||
|
||||
class Node:
|
||||
children: List[Any]
|
||||
default: Any = ...
|
||||
connector: str = ...
|
||||
negated: bool = ...
|
||||
def __init__(
|
||||
self, children: Optional[_NodeChildren] = ..., connector: Optional[str] = ..., negated: bool = ...
|
||||
) -> None: ...
|
||||
def __deepcopy__(self, memodict: Dict[Any, Any]) -> Node: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __bool__(self) -> bool: ...
|
||||
def __contains__(self, other: Tuple[str, int]) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
def add(self, data: Any, conn_type: str, squash: bool = ...) -> Any: ...
|
||||
def negate(self) -> None: ...
|
13
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/version.pyi
vendored
Normal file
13
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/version.pyi
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
from typing import Any, Optional, Tuple
|
||||
|
||||
PY36: Any
|
||||
PY37: Any
|
||||
PY38: Any
|
||||
PY39: Any
|
||||
|
||||
def get_version(version: Optional[Tuple[int, int, int, str, int]] = ...) -> str: ...
|
||||
def get_main_version(version: Tuple[int, int, int, str, int] = ...) -> str: ...
|
||||
def get_complete_version(version: Optional[Tuple[int, int, int, str, int]] = ...) -> Tuple[int, int, int, str, int]: ...
|
||||
def get_docs_version(version: None = ...) -> str: ...
|
||||
def get_git_changeset(): ...
|
||||
def get_version_tuple(version: str) -> Tuple[int, int, int]: ...
|
11
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/xmlutils.pyi
vendored
Normal file
11
venv/Lib/site-packages/jedi/third_party/django-stubs/django-stubs/utils/xmlutils.pyi
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
from typing import Dict, Optional
|
||||
from xml.sax.saxutils import XMLGenerator
|
||||
|
||||
class UnserializableContentError(ValueError): ...
|
||||
|
||||
class SimplerXMLGenerator(XMLGenerator):
|
||||
def addQuickElement(
|
||||
self, name: str, contents: Optional[str] = ..., attrs: Optional[Dict[str, str]] = ...
|
||||
) -> None: ...
|
||||
def characters(self, content: str) -> None: ...
|
||||
def startElement(self, name: str, attrs: Dict[str, str]) -> None: ...
|
Loading…
Add table
Add a link
Reference in a new issue