Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected_4Classes/1908264_cm.tif +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/apps/__init__.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/apps/config.pyi +23 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/apps/registry.pyi +40 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/apps.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/checks.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/fields.pyi +95 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/forms.pyi +41 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/models.pyi +24 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/__init__.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/cookie.pyi +20 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/fallback.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/session.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/postgres/search.pyi +63 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/managers.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/middleware.pyi +5 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/requests.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/apps.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/finders.pyi +43 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/handlers.pyi +12 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/storage.pyi +55 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/syndication/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/syndication/views.pyi +27 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/__init__.pyi +136 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/constraints.pyi +27 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/enums.pyi +30 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/fields/proxy.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/fields/related_lookups.pyi +48 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/functions/__init__.pyi +93 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/functions/datetime.pyi +32 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/indexes.pyi +34 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/lookups.pyi +104 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/manager.pyi +45 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/options.pyi +123 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/sql/datastructures.pyi +49 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/sql/subqueries.pyi +45 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/utils.pyi +5 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/cache.pyi +31 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/clickjacking.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/common.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/csrf.pyi +33 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/gzip.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/http.pyi +7 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/locale.pyi +10 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/security.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/template/backends/__init__.pyi +0 -0
.gitattributes
CHANGED
|
@@ -491,3 +491,5 @@ material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/_cffi_backen
|
|
| 491 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pillow.libs/libopenjp2-56811f71.so.2.5.3 filter=lfs diff=lfs merge=lfs -text
|
| 492 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/IPython/core/__pycache__/interactiveshell.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 493 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/_qhull.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 491 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pillow.libs/libopenjp2-56811f71.so.2.5.3 filter=lfs diff=lfs merge=lfs -text
|
| 492 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/IPython/core/__pycache__/interactiveshell.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 493 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/_qhull.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 494 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/pillow.libs/libpng16-ade663c1.so.16.47.0 filter=lfs diff=lfs merge=lfs -text
|
| 495 |
+
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected_4Classes/1908264_cm.tif filter=lfs diff=lfs merge=lfs -text
|
material/dataset/Datasets/Electron Microscopy Image Masks/TiO2_Masks_Manual_4connected_4Classes/1908264_cm.tif
ADDED
|
|
Git LFS Details
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/apps/__init__.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .config import AppConfig as AppConfig
|
| 2 |
+
|
| 3 |
+
from .registry import apps as apps
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/apps/config.pyi
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Iterator, Type, Optional, Dict
|
| 2 |
+
|
| 3 |
+
from django.apps.registry import Apps
|
| 4 |
+
from django.db.models.base import Model
|
| 5 |
+
|
| 6 |
+
MODELS_MODULE_NAME: str
|
| 7 |
+
|
| 8 |
+
class AppConfig:
|
| 9 |
+
name: str = ...
|
| 10 |
+
module: Optional[Any] = ...
|
| 11 |
+
apps: Optional[Apps] = ...
|
| 12 |
+
label: str = ...
|
| 13 |
+
verbose_name: str = ...
|
| 14 |
+
path: str = ...
|
| 15 |
+
models_module: Optional[str] = ...
|
| 16 |
+
models: Dict[str, Type[Model]] = ...
|
| 17 |
+
def __init__(self, app_name: str, app_module: Optional[Any]) -> None: ...
|
| 18 |
+
@classmethod
|
| 19 |
+
def create(cls, entry: str) -> AppConfig: ...
|
| 20 |
+
def get_model(self, model_name: str, require_ready: bool = ...) -> Type[Model]: ...
|
| 21 |
+
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> Iterator[Type[Model]]: ...
|
| 22 |
+
def import_models(self) -> None: ...
|
| 23 |
+
def ready(self) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/apps/registry.pyi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import threading
|
| 2 |
+
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union
|
| 3 |
+
|
| 4 |
+
from django.db.models.base import Model
|
| 5 |
+
|
| 6 |
+
from .config import AppConfig
|
| 7 |
+
|
| 8 |
+
class Apps:
|
| 9 |
+
all_models: Dict[str, Dict[str, Type[Model]]] = ...
|
| 10 |
+
app_configs: Dict[str, AppConfig] = ...
|
| 11 |
+
stored_app_configs: List[Any] = ...
|
| 12 |
+
apps_ready: bool = ...
|
| 13 |
+
ready_event: threading.Event = ...
|
| 14 |
+
loading: bool = ...
|
| 15 |
+
_pending_operations: Dict[Tuple[str, str], List]
|
| 16 |
+
models_ready: bool = ...
|
| 17 |
+
ready: bool = ...
|
| 18 |
+
def __init__(self, installed_apps: Optional[Iterable[Union[AppConfig, str]]] = ...) -> None: ...
|
| 19 |
+
def populate(self, installed_apps: Iterable[Union[AppConfig, str]] = ...) -> None: ...
|
| 20 |
+
def check_apps_ready(self) -> None: ...
|
| 21 |
+
def check_models_ready(self) -> None: ...
|
| 22 |
+
def get_app_configs(self) -> Iterable[AppConfig]: ...
|
| 23 |
+
def get_app_config(self, app_label: str) -> AppConfig: ...
|
| 24 |
+
# it's not possible to support it in plugin properly now
|
| 25 |
+
def get_models(self, include_auto_created: bool = ..., include_swapped: bool = ...) -> List[Type[Model]]: ...
|
| 26 |
+
def get_model(self, app_label: str, model_name: Optional[str] = ..., require_ready: bool = ...) -> Type[Any]: ...
|
| 27 |
+
def register_model(self, app_label: str, model: Type[Model]) -> None: ...
|
| 28 |
+
def is_installed(self, app_name: str) -> bool: ...
|
| 29 |
+
def get_containing_app_config(self, object_name: str) -> Optional[AppConfig]: ...
|
| 30 |
+
def get_registered_model(self, app_label: str, model_name: str) -> Type[Model]: ...
|
| 31 |
+
def get_swappable_settings_name(self, to_string: str) -> Optional[str]: ...
|
| 32 |
+
def set_available_apps(self, available: Iterable[str]) -> None: ...
|
| 33 |
+
def unset_available_apps(self) -> None: ...
|
| 34 |
+
def set_installed_apps(self, installed: Iterable[str]) -> None: ...
|
| 35 |
+
def unset_installed_apps(self) -> None: ...
|
| 36 |
+
def clear_cache(self) -> None: ...
|
| 37 |
+
def lazy_model_operation(self, function: Callable, *model_keys: Any) -> None: ...
|
| 38 |
+
def do_pending_operations(self, model: Type[Model]) -> None: ...
|
| 39 |
+
|
| 40 |
+
apps: Apps
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/apps.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.apps import AppConfig
|
| 2 |
+
|
| 3 |
+
class ContentTypesConfig(AppConfig): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/checks.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, List, Iterable, Optional
|
| 2 |
+
|
| 3 |
+
from django.apps.config import AppConfig
|
| 4 |
+
|
| 5 |
+
def check_generic_foreign_keys(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[Any]: ...
|
| 6 |
+
def check_model_name_lengths(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[Any]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/fields.pyi
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
|
| 2 |
+
|
| 3 |
+
from django.contrib.contenttypes.models import ContentType
|
| 4 |
+
from django.core.checks.messages import Error
|
| 5 |
+
from django.db.models.base import Model
|
| 6 |
+
from django.db.models.expressions import Combinable
|
| 7 |
+
from django.db.models.fields.mixins import FieldCacheMixin
|
| 8 |
+
from django.db.models.fields.related import ForeignObject
|
| 9 |
+
from django.db.models.fields.related_descriptors import ReverseManyToOneDescriptor
|
| 10 |
+
from django.db.models.fields.reverse_related import ForeignObjectRel
|
| 11 |
+
from django.db.models.query import QuerySet
|
| 12 |
+
from django.db.models.query_utils import FilteredRelation, PathInfo
|
| 13 |
+
from django.db.models.sql.where import WhereNode
|
| 14 |
+
|
| 15 |
+
from django.db.models.fields import Field, PositiveIntegerField
|
| 16 |
+
|
| 17 |
+
class GenericForeignKey(FieldCacheMixin):
|
| 18 |
+
# django-stubs implementation only fields
|
| 19 |
+
_pyi_private_set_type: Union[Any, Combinable]
|
| 20 |
+
_pyi_private_get_type: Any
|
| 21 |
+
# attributes
|
| 22 |
+
auto_created: bool = ...
|
| 23 |
+
concrete: bool = ...
|
| 24 |
+
editable: bool = ...
|
| 25 |
+
hidden: bool = ...
|
| 26 |
+
is_relation: bool = ...
|
| 27 |
+
many_to_many: bool = ...
|
| 28 |
+
many_to_one: bool = ...
|
| 29 |
+
one_to_many: bool = ...
|
| 30 |
+
one_to_one: bool = ...
|
| 31 |
+
related_model: Any = ...
|
| 32 |
+
remote_field: Any = ...
|
| 33 |
+
ct_field: str = ...
|
| 34 |
+
fk_field: str = ...
|
| 35 |
+
for_concrete_model: bool = ...
|
| 36 |
+
rel: None = ...
|
| 37 |
+
column: None = ...
|
| 38 |
+
def __init__(self, ct_field: str = ..., fk_field: str = ..., for_concrete_model: bool = ...) -> None: ...
|
| 39 |
+
name: Any = ...
|
| 40 |
+
model: Any = ...
|
| 41 |
+
def contribute_to_class(self, cls: Type[Model], name: str, **kwargs: Any) -> None: ...
|
| 42 |
+
def get_filter_kwargs_for_object(self, obj: Model) -> Dict[str, Optional[ContentType]]: ...
|
| 43 |
+
def get_forward_related_filter(self, obj: Model) -> Dict[str, int]: ...
|
| 44 |
+
def check(self, **kwargs: Any) -> List[Error]: ...
|
| 45 |
+
def get_cache_name(self) -> str: ...
|
| 46 |
+
def get_content_type(
|
| 47 |
+
self, obj: Optional[Model] = ..., id: Optional[int] = ..., using: Optional[str] = ...
|
| 48 |
+
) -> ContentType: ...
|
| 49 |
+
def get_prefetch_queryset(
|
| 50 |
+
self, instances: Union[List[Model], QuerySet], queryset: Optional[QuerySet] = ...
|
| 51 |
+
) -> Tuple[List[Model], Callable, Callable, bool, str, bool]: ...
|
| 52 |
+
def __get__(self, instance: Optional[Model], cls: Type[Model] = ...) -> Optional[Any]: ...
|
| 53 |
+
def __set__(self, instance: Model, value: Optional[Any]) -> None: ...
|
| 54 |
+
|
| 55 |
+
class GenericRel(ForeignObjectRel):
|
| 56 |
+
field: GenericRelation
|
| 57 |
+
def __init__(
|
| 58 |
+
self,
|
| 59 |
+
field: GenericRelation,
|
| 60 |
+
to: Union[Type[Model], str],
|
| 61 |
+
related_name: Optional[str] = ...,
|
| 62 |
+
related_query_name: Optional[str] = ...,
|
| 63 |
+
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any]]] = ...,
|
| 64 |
+
) -> None: ...
|
| 65 |
+
|
| 66 |
+
class GenericRelation(ForeignObject):
|
| 67 |
+
rel_class: Any = ...
|
| 68 |
+
mti_inherited: bool = ...
|
| 69 |
+
object_id_field_name: Any = ...
|
| 70 |
+
content_type_field_name: Any = ...
|
| 71 |
+
for_concrete_model: Any = ...
|
| 72 |
+
to_fields: Any = ...
|
| 73 |
+
def __init__(
|
| 74 |
+
self,
|
| 75 |
+
to: Union[Type[Model], str],
|
| 76 |
+
object_id_field: str = ...,
|
| 77 |
+
content_type_field: str = ...,
|
| 78 |
+
for_concrete_model: bool = ...,
|
| 79 |
+
related_query_name: Optional[str] = ...,
|
| 80 |
+
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any]]] = ...,
|
| 81 |
+
**kwargs: Any
|
| 82 |
+
) -> None: ...
|
| 83 |
+
def resolve_related_fields(self) -> List[Tuple[PositiveIntegerField, Field]]: ...
|
| 84 |
+
def get_path_info(self, filtered_relation: Optional[FilteredRelation] = ...) -> List[PathInfo]: ...
|
| 85 |
+
def get_reverse_path_info(self, filtered_relation: None = ...) -> List[PathInfo]: ...
|
| 86 |
+
def value_to_string(self, obj: Model) -> str: ...
|
| 87 |
+
def get_content_type(self) -> ContentType: ...
|
| 88 |
+
def get_extra_restriction(
|
| 89 |
+
self, where_class: Type[WhereNode], alias: Optional[str], remote_alias: str
|
| 90 |
+
) -> WhereNode: ...
|
| 91 |
+
def bulk_related_objects(self, objs: List[Model], using: str = ...) -> QuerySet: ...
|
| 92 |
+
|
| 93 |
+
class ReverseGenericManyToOneDescriptor(ReverseManyToOneDescriptor): ...
|
| 94 |
+
|
| 95 |
+
def create_generic_related_manager(superclass: Any, rel: Any): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/forms.pyi
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
from django.forms.models import BaseModelFormSet
|
| 4 |
+
|
| 5 |
+
class BaseGenericInlineFormSet(BaseModelFormSet):
|
| 6 |
+
instance: Any = ...
|
| 7 |
+
rel_name: Any = ...
|
| 8 |
+
save_as_new: Any = ...
|
| 9 |
+
def __init__(
|
| 10 |
+
self,
|
| 11 |
+
data: Optional[Any] = ...,
|
| 12 |
+
files: Optional[Any] = ...,
|
| 13 |
+
instance: Optional[Any] = ...,
|
| 14 |
+
save_as_new: bool = ...,
|
| 15 |
+
prefix: Optional[Any] = ...,
|
| 16 |
+
queryset: Optional[Any] = ...,
|
| 17 |
+
**kwargs: Any
|
| 18 |
+
) -> None: ...
|
| 19 |
+
def initial_form_count(self): ...
|
| 20 |
+
@classmethod
|
| 21 |
+
def get_default_prefix(cls): ...
|
| 22 |
+
def save_new(self, form: Any, commit: bool = ...): ...
|
| 23 |
+
|
| 24 |
+
def generic_inlineformset_factory(
|
| 25 |
+
model: Any,
|
| 26 |
+
form: Any = ...,
|
| 27 |
+
formset: Any = ...,
|
| 28 |
+
ct_field: str = ...,
|
| 29 |
+
fk_field: str = ...,
|
| 30 |
+
fields: Optional[Any] = ...,
|
| 31 |
+
exclude: Optional[Any] = ...,
|
| 32 |
+
extra: int = ...,
|
| 33 |
+
can_order: bool = ...,
|
| 34 |
+
can_delete: bool = ...,
|
| 35 |
+
max_num: Optional[Any] = ...,
|
| 36 |
+
formfield_callback: Optional[Any] = ...,
|
| 37 |
+
validate_max: bool = ...,
|
| 38 |
+
for_concrete_model: bool = ...,
|
| 39 |
+
min_num: Optional[Any] = ...,
|
| 40 |
+
validate_min: bool = ...,
|
| 41 |
+
): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/contenttypes/models.pyi
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Optional, Tuple, Type, Union
|
| 2 |
+
|
| 3 |
+
from django.db import models
|
| 4 |
+
from django.db.models.base import Model
|
| 5 |
+
from django.db.models.query import QuerySet
|
| 6 |
+
|
| 7 |
+
class ContentTypeManager(models.Manager["ContentType"]):
|
| 8 |
+
def get_by_natural_key(self, app_label: str, model: str) -> ContentType: ...
|
| 9 |
+
def get_for_model(self, model: Union[Type[Model], Model], for_concrete_model: bool = ...) -> ContentType: ...
|
| 10 |
+
def get_for_models(self, *models: Any, for_concrete_models: bool = ...) -> Dict[Type[Model], ContentType]: ...
|
| 11 |
+
def get_for_id(self, id: int) -> ContentType: ...
|
| 12 |
+
def clear_cache(self) -> None: ...
|
| 13 |
+
|
| 14 |
+
class ContentType(models.Model):
|
| 15 |
+
id: int
|
| 16 |
+
app_label: models.CharField = ...
|
| 17 |
+
model: models.CharField = ...
|
| 18 |
+
objects: ContentTypeManager = ...
|
| 19 |
+
@property
|
| 20 |
+
def name(self) -> str: ...
|
| 21 |
+
def model_class(self) -> Optional[Type[Model]]: ...
|
| 22 |
+
def get_object_for_this_type(self, **kwargs: Any) -> Model: ...
|
| 23 |
+
def get_all_objects_for_this_type(self, **kwargs: Any) -> QuerySet: ...
|
| 24 |
+
def natural_key(self) -> Tuple[str, str]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/__init__.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
from django.contrib.messages.storage.base import BaseStorage
|
| 4 |
+
from django.http.request import HttpRequest
|
| 5 |
+
|
| 6 |
+
def default_storage(request: HttpRequest) -> BaseStorage: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/cookie.pyi
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from typing import Any
|
| 3 |
+
|
| 4 |
+
from django.contrib.messages.storage.base import BaseStorage
|
| 5 |
+
|
| 6 |
+
class MessageEncoder(json.JSONEncoder):
|
| 7 |
+
allow_nan: bool
|
| 8 |
+
check_circular: bool
|
| 9 |
+
ensure_ascii: bool
|
| 10 |
+
skipkeys: bool
|
| 11 |
+
sort_keys: bool
|
| 12 |
+
message_key: str = ...
|
| 13 |
+
|
| 14 |
+
class MessageDecoder(json.JSONDecoder):
|
| 15 |
+
def process_messages(self, obj: Any) -> Any: ...
|
| 16 |
+
|
| 17 |
+
class CookieStorage(BaseStorage):
|
| 18 |
+
cookie_name: str = ...
|
| 19 |
+
max_cookie_size: int = ...
|
| 20 |
+
not_finished: str = ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/fallback.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from django.contrib.messages.storage.base import BaseStorage
|
| 4 |
+
|
| 5 |
+
class FallbackStorage(BaseStorage):
|
| 6 |
+
storage_classes: Any = ...
|
| 7 |
+
storages: Any = ...
|
| 8 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/messages/storage/session.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, List, Optional, Sequence, Union
|
| 2 |
+
|
| 3 |
+
from django.contrib.messages.storage.base import BaseStorage
|
| 4 |
+
from django.http.request import HttpRequest
|
| 5 |
+
|
| 6 |
+
class SessionStorage(BaseStorage):
|
| 7 |
+
session_key: str = ...
|
| 8 |
+
def __init__(self, request: HttpRequest, *args: Any, **kwargs: Any) -> None: ...
|
| 9 |
+
def serialize_messages(self, messages: Sequence[Any]) -> str: ...
|
| 10 |
+
def deserialize_messages(self, data: Optional[Union[List[Any], str]]) -> Optional[List[Any]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/postgres/search.pyi
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Optional, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
from django.db.models.expressions import Combinable, CombinedExpression, Func, Value, _OutputField
|
| 4 |
+
from django.db.models.lookups import Lookup
|
| 5 |
+
|
| 6 |
+
from django.db.models import Field
|
| 7 |
+
|
| 8 |
+
_Expression = Union[str, Combinable, "SearchQueryCombinable"]
|
| 9 |
+
|
| 10 |
+
class SearchVectorExact(Lookup): ...
|
| 11 |
+
class SearchVectorField(Field): ...
|
| 12 |
+
class SearchQueryField(Field): ...
|
| 13 |
+
|
| 14 |
+
class SearchVectorCombinable:
|
| 15 |
+
ADD: str = ...
|
| 16 |
+
|
| 17 |
+
class SearchVector(SearchVectorCombinable, Func):
|
| 18 |
+
config: Optional[Any] = ...
|
| 19 |
+
def __init__(self, *expressions: _Expression, **extra: Any): ...
|
| 20 |
+
|
| 21 |
+
class CombinedSearchVector(SearchVectorCombinable, CombinedExpression):
|
| 22 |
+
def __init__(
|
| 23 |
+
self, lhs, connector, rhs, config: Optional[_Expression] = ..., output_field: Optional[_OutputField] = ...
|
| 24 |
+
): ...
|
| 25 |
+
|
| 26 |
+
_T = TypeVar("_T", bound="SearchQueryCombinable")
|
| 27 |
+
|
| 28 |
+
class SearchQueryCombinable:
|
| 29 |
+
BITAND: str = ...
|
| 30 |
+
BITOR: str = ...
|
| 31 |
+
def __or__(self: _T, other: SearchQueryCombinable) -> _T: ...
|
| 32 |
+
def __ror__(self: _T, other: SearchQueryCombinable) -> _T: ...
|
| 33 |
+
def __and__(self: _T, other: SearchQueryCombinable) -> _T: ...
|
| 34 |
+
def __rand__(self: _T, other: SearchQueryCombinable) -> _T: ...
|
| 35 |
+
|
| 36 |
+
class SearchQuery(SearchQueryCombinable, Value): # type: ignore
|
| 37 |
+
SEARCH_TYPES: Dict[str, str] = ...
|
| 38 |
+
def __init__(
|
| 39 |
+
self,
|
| 40 |
+
value: str,
|
| 41 |
+
output_field: Optional[_OutputField] = ...,
|
| 42 |
+
*,
|
| 43 |
+
config: Optional[_Expression] = ...,
|
| 44 |
+
invert: bool = ...,
|
| 45 |
+
search_type: str = ...
|
| 46 |
+
): ...
|
| 47 |
+
def __invert__(self: _T) -> _T: ...
|
| 48 |
+
|
| 49 |
+
class CombinedSearchQuery(SearchQueryCombinable, CombinedExpression): # type: ignore
|
| 50 |
+
def __init__(
|
| 51 |
+
self, lhs, connector, rhs, config: Optional[_Expression] = ..., output_field: Optional[_OutputField] = ...
|
| 52 |
+
) -> None: ...
|
| 53 |
+
|
| 54 |
+
class SearchRank(Func):
|
| 55 |
+
def __init__(
|
| 56 |
+
self, vector: Union[SearchVector, _Expression], query: Union[SearchQuery, _Expression], **extra: Any
|
| 57 |
+
) -> None: ...
|
| 58 |
+
|
| 59 |
+
class TrigramBase(Func):
|
| 60 |
+
def __init__(self, expression: _Expression, string, **extra: Any) -> None: ...
|
| 61 |
+
|
| 62 |
+
class TrigramSimilarity(TrigramBase): ...
|
| 63 |
+
class TrigramDistance(TrigramBase): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/managers.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
from django.db import models
|
| 4 |
+
|
| 5 |
+
class CurrentSiteManager(models.Manager):
|
| 6 |
+
def __init__(self, field_name: Optional[str] = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/middleware.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.http.request import HttpRequest
|
| 2 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 3 |
+
|
| 4 |
+
class CurrentSiteMiddleware(MiddlewareMixin):
|
| 5 |
+
def process_request(self, request: HttpRequest) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites/requests.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from django.http.request import HttpRequest
|
| 4 |
+
|
| 5 |
+
class RequestSite:
|
| 6 |
+
name: str
|
| 7 |
+
domain: str = ...
|
| 8 |
+
def __init__(self, request: HttpRequest) -> None: ...
|
| 9 |
+
def save(self, force_insert: bool = ..., force_update: bool = ...) -> Any: ...
|
| 10 |
+
def delete(self) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/apps.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from django.apps import AppConfig
|
| 4 |
+
|
| 5 |
+
class StaticFilesConfig(AppConfig):
|
| 6 |
+
ignore_patterns: Any = ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/finders.pyi
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Iterable, Iterator, List, Mapping, Optional, Union, overload
|
| 2 |
+
|
| 3 |
+
from django.core.checks.messages import Error
|
| 4 |
+
from django.core.files.storage import Storage
|
| 5 |
+
from typing_extensions import Literal
|
| 6 |
+
|
| 7 |
+
searched_locations: Any
|
| 8 |
+
|
| 9 |
+
class BaseFinder:
|
| 10 |
+
def check(self, **kwargs: Any) -> List[Error]: ...
|
| 11 |
+
def find(self, path: str, all: bool = ...) -> Optional[Any]: ...
|
| 12 |
+
def list(self, ignore_patterns: Any) -> Iterable[Any]: ...
|
| 13 |
+
|
| 14 |
+
class FileSystemFinder(BaseFinder):
|
| 15 |
+
locations: List[Any] = ...
|
| 16 |
+
storages: Mapping[str, Any] = ...
|
| 17 |
+
def __init__(self, app_names: None = ..., *args: Any, **kwargs: Any) -> None: ...
|
| 18 |
+
def find_location(self, root: str, path: str, prefix: str = ...) -> Optional[str]: ...
|
| 19 |
+
|
| 20 |
+
class AppDirectoriesFinder(BaseFinder):
|
| 21 |
+
storage_class: Any = ...
|
| 22 |
+
source_dir: str = ...
|
| 23 |
+
apps: List[str] = ...
|
| 24 |
+
storages: Mapping[str, Any] = ...
|
| 25 |
+
def __init__(self, app_names: None = ..., *args: Any, **kwargs: Any) -> None: ...
|
| 26 |
+
def find_in_app(self, app: str, path: str) -> Optional[str]: ...
|
| 27 |
+
|
| 28 |
+
class BaseStorageFinder(BaseFinder):
|
| 29 |
+
storage: Storage = ...
|
| 30 |
+
def __init__(self, storage: Optional[Storage] = ..., *args: Any, **kwargs: Any) -> None: ...
|
| 31 |
+
|
| 32 |
+
class DefaultStorageFinder(BaseStorageFinder): ...
|
| 33 |
+
|
| 34 |
+
def find(path: str, all: bool = ...) -> Optional[Union[List[str], str]]: ...
|
| 35 |
+
def get_finders() -> Iterator[BaseFinder]: ...
|
| 36 |
+
@overload
|
| 37 |
+
def get_finder(import_path: Literal["django.contrib.staticfiles.finders.FileSystemFinder"]) -> FileSystemFinder: ...
|
| 38 |
+
@overload
|
| 39 |
+
def get_finder(
|
| 40 |
+
import_path: Literal["django.contrib.staticfiles.finders.AppDirectoriesFinder"],
|
| 41 |
+
) -> AppDirectoriesFinder: ...
|
| 42 |
+
@overload
|
| 43 |
+
def get_finder(import_path: str) -> BaseFinder: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/handlers.pyi
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from django.core.handlers.wsgi import WSGIHandler, WSGIRequest
|
| 4 |
+
|
| 5 |
+
class StaticFilesHandler(WSGIHandler):
|
| 6 |
+
handles_files: bool = ...
|
| 7 |
+
application: WSGIHandler = ...
|
| 8 |
+
base_url: Any = ...
|
| 9 |
+
def __init__(self, application: WSGIHandler) -> None: ...
|
| 10 |
+
def get_base_url(self) -> str: ...
|
| 11 |
+
def file_path(self, url: str) -> str: ...
|
| 12 |
+
def serve(self, request: WSGIRequest) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/storage.pyi
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import OrderedDict
|
| 2 |
+
from typing import Any, Callable, Iterator, Optional, Tuple
|
| 3 |
+
|
| 4 |
+
from django.core.files.base import File
|
| 5 |
+
from django.core.files.storage import FileSystemStorage
|
| 6 |
+
from django.utils.functional import LazyObject
|
| 7 |
+
|
| 8 |
+
class StaticFilesStorage(FileSystemStorage):
|
| 9 |
+
base_location: Any = ...
|
| 10 |
+
location: Any = ...
|
| 11 |
+
def __init__(self, location: Optional[str] = ..., base_url: None = ..., *args: Any, **kwargs: Any) -> None: ...
|
| 12 |
+
def path(self, name: str) -> str: ...
|
| 13 |
+
|
| 14 |
+
class HashedFilesMixin:
|
| 15 |
+
default_template: str = ...
|
| 16 |
+
max_post_process_passes: int = ...
|
| 17 |
+
patterns: Any = ...
|
| 18 |
+
hashed_files: Any = ...
|
| 19 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 20 |
+
def file_hash(self, name: str, content: File = ...) -> str: ...
|
| 21 |
+
def hashed_name(self, name: str, content: Optional[File] = ..., filename: Optional[str] = ...) -> str: ...
|
| 22 |
+
def url_converter(self, name: str, hashed_files: OrderedDict, template: str = ...) -> Callable: ...
|
| 23 |
+
def post_process(
|
| 24 |
+
self, paths: OrderedDict, dry_run: bool = ..., **options: Any
|
| 25 |
+
) -> Iterator[Tuple[str, str, bool]]: ...
|
| 26 |
+
def clean_name(self, name: str) -> str: ...
|
| 27 |
+
def hash_key(self, name: str) -> str: ...
|
| 28 |
+
def stored_name(self, name: str) -> str: ...
|
| 29 |
+
|
| 30 |
+
class ManifestFilesMixin(HashedFilesMixin):
|
| 31 |
+
manifest_version: str = ...
|
| 32 |
+
manifest_name: str = ...
|
| 33 |
+
manifest_strict: bool = ...
|
| 34 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 35 |
+
def read_manifest(self) -> Any: ...
|
| 36 |
+
def load_manifest(self) -> OrderedDict: ...
|
| 37 |
+
def save_manifest(self) -> None: ...
|
| 38 |
+
|
| 39 |
+
class _MappingCache:
|
| 40 |
+
cache: Any = ...
|
| 41 |
+
def __init__(self, cache: Any) -> None: ...
|
| 42 |
+
def __setitem__(self, key: Any, value: Any) -> None: ...
|
| 43 |
+
def __getitem__(self, key: Any): ...
|
| 44 |
+
def clear(self) -> None: ...
|
| 45 |
+
def update(self, data: Any) -> None: ...
|
| 46 |
+
def get(self, key: Any, default: Optional[Any] = ...): ...
|
| 47 |
+
|
| 48 |
+
class CachedFilesMixin(HashedFilesMixin):
|
| 49 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 50 |
+
|
| 51 |
+
class CachedStaticFilesStorage(CachedFilesMixin, StaticFilesStorage): ...
|
| 52 |
+
class ManifestStaticFilesStorage(ManifestFilesMixin, StaticFilesStorage): ...
|
| 53 |
+
class ConfiguredStorage(LazyObject): ...
|
| 54 |
+
|
| 55 |
+
staticfiles_storage: Any
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/syndication/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/syndication/views.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, List
|
| 2 |
+
|
| 3 |
+
from django.core.exceptions import ObjectDoesNotExist
|
| 4 |
+
from django.core.handlers.wsgi import WSGIRequest
|
| 5 |
+
from django.db.models.base import Model
|
| 6 |
+
from django.http.response import HttpResponse
|
| 7 |
+
from django.utils.feedgenerator import Enclosure, SyndicationFeed
|
| 8 |
+
from django.utils.safestring import SafeText
|
| 9 |
+
|
| 10 |
+
def add_domain(domain: str, url: str, secure: bool = ...) -> str: ...
|
| 11 |
+
|
| 12 |
+
class FeedDoesNotExist(ObjectDoesNotExist): ...
|
| 13 |
+
|
| 14 |
+
class Feed:
|
| 15 |
+
feed_type: Any = ...
|
| 16 |
+
title_template: Any = ...
|
| 17 |
+
description_template: Any = ...
|
| 18 |
+
def __call__(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
|
| 19 |
+
def item_title(self, item: Model) -> SafeText: ...
|
| 20 |
+
def item_description(self, item: Model) -> str: ...
|
| 21 |
+
def item_link(self, item: Model) -> str: ...
|
| 22 |
+
def item_enclosures(self, item: Model) -> List[Enclosure]: ...
|
| 23 |
+
def feed_extra_kwargs(self, obj: None) -> Dict[Any, Any]: ...
|
| 24 |
+
def item_extra_kwargs(self, item: Model) -> Dict[Any, Any]: ...
|
| 25 |
+
def get_object(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> None: ...
|
| 26 |
+
def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: ...
|
| 27 |
+
def get_feed(self, obj: None, request: WSGIRequest) -> SyndicationFeed: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/__init__.pyi
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .base import Model as Model
|
| 2 |
+
|
| 3 |
+
from .aggregates import (
|
| 4 |
+
Aggregate as Aggregate,
|
| 5 |
+
Avg as Avg,
|
| 6 |
+
Count as Count,
|
| 7 |
+
Max as Max,
|
| 8 |
+
Min as Min,
|
| 9 |
+
StdDev as StdDev,
|
| 10 |
+
Sum as Sum,
|
| 11 |
+
Variance as Variance,
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
from .fields import (
|
| 15 |
+
FieldDoesNotExist as FieldDoesNotExist,
|
| 16 |
+
AutoField as AutoField,
|
| 17 |
+
IntegerField as IntegerField,
|
| 18 |
+
PositiveIntegerField as PositiveIntegerField,
|
| 19 |
+
PositiveSmallIntegerField as PositiveSmallIntegerField,
|
| 20 |
+
SmallIntegerField as SmallIntegerField,
|
| 21 |
+
BigIntegerField as BigIntegerField,
|
| 22 |
+
FloatField as FloatField,
|
| 23 |
+
CharField as CharField,
|
| 24 |
+
EmailField as EmailField,
|
| 25 |
+
URLField as URLField,
|
| 26 |
+
Field as Field,
|
| 27 |
+
SlugField as SlugField,
|
| 28 |
+
TextField as TextField,
|
| 29 |
+
BooleanField as BooleanField,
|
| 30 |
+
NullBooleanField as NullBooleanField,
|
| 31 |
+
DateField as DateField,
|
| 32 |
+
TimeField as TimeField,
|
| 33 |
+
DateTimeField as DateTimeField,
|
| 34 |
+
IPAddressField as IPAddressField,
|
| 35 |
+
GenericIPAddressField as GenericIPAddressField,
|
| 36 |
+
UUIDField as UUIDField,
|
| 37 |
+
DecimalField as DecimalField,
|
| 38 |
+
FilePathField as FilePathField,
|
| 39 |
+
BinaryField as BinaryField,
|
| 40 |
+
DurationField as DurationField,
|
| 41 |
+
BigAutoField as BigAutoField,
|
| 42 |
+
CommaSeparatedIntegerField as CommaSeparatedIntegerField,
|
| 43 |
+
NOT_PROVIDED as NOT_PROVIDED,
|
| 44 |
+
)
|
| 45 |
+
|
| 46 |
+
from .fields.related import (
|
| 47 |
+
ForeignKey as ForeignKey,
|
| 48 |
+
OneToOneField as OneToOneField,
|
| 49 |
+
ManyToManyField as ManyToManyField,
|
| 50 |
+
ForeignObject as ForeignObject,
|
| 51 |
+
ManyToManyRel as ManyToManyRel,
|
| 52 |
+
ManyToOneRel as ManyToOneRel,
|
| 53 |
+
OneToOneRel as OneToOneRel,
|
| 54 |
+
ForeignObjectRel as ForeignObjectRel,
|
| 55 |
+
)
|
| 56 |
+
from .fields.files import (
|
| 57 |
+
ImageField as ImageField,
|
| 58 |
+
FileField as FileField,
|
| 59 |
+
FieldFile as FieldFile,
|
| 60 |
+
FileDescriptor as FileDescriptor,
|
| 61 |
+
)
|
| 62 |
+
from .fields.proxy import OrderWrt as OrderWrt
|
| 63 |
+
|
| 64 |
+
from .deletion import (
|
| 65 |
+
CASCADE as CASCADE,
|
| 66 |
+
SET_DEFAULT as SET_DEFAULT,
|
| 67 |
+
SET_NULL as SET_NULL,
|
| 68 |
+
DO_NOTHING as DO_NOTHING,
|
| 69 |
+
PROTECT as PROTECT,
|
| 70 |
+
SET as SET,
|
| 71 |
+
RESTRICT as RESTRICT,
|
| 72 |
+
ProtectedError as ProtectedError,
|
| 73 |
+
RestrictedError as RestrictedError,
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
from .query import (
|
| 77 |
+
Prefetch as Prefetch,
|
| 78 |
+
QuerySet as QuerySet,
|
| 79 |
+
RawQuerySet as RawQuerySet,
|
| 80 |
+
prefetch_related_objects as prefetch_related_objects,
|
| 81 |
+
)
|
| 82 |
+
|
| 83 |
+
from .query_utils import Q as Q, FilteredRelation as FilteredRelation
|
| 84 |
+
|
| 85 |
+
from .lookups import Lookup as Lookup, Transform as Transform
|
| 86 |
+
|
| 87 |
+
from .expressions import (
|
| 88 |
+
F as F,
|
| 89 |
+
Expression as Expression,
|
| 90 |
+
Subquery as Subquery,
|
| 91 |
+
Exists as Exists,
|
| 92 |
+
OrderBy as OrderBy,
|
| 93 |
+
OuterRef as OuterRef,
|
| 94 |
+
Case as Case,
|
| 95 |
+
When as When,
|
| 96 |
+
RawSQL as RawSQL,
|
| 97 |
+
Value as Value,
|
| 98 |
+
Func as Func,
|
| 99 |
+
ExpressionWrapper as ExpressionWrapper,
|
| 100 |
+
Combinable as Combinable,
|
| 101 |
+
Col as Col,
|
| 102 |
+
CombinedExpression as CombinedExpression,
|
| 103 |
+
ExpressionList as ExpressionList,
|
| 104 |
+
Random as Random,
|
| 105 |
+
Ref as Ref,
|
| 106 |
+
Window as Window,
|
| 107 |
+
WindowFrame as WindowFrame,
|
| 108 |
+
RowRange as RowRange,
|
| 109 |
+
ValueRange as ValueRange,
|
| 110 |
+
)
|
| 111 |
+
|
| 112 |
+
from .manager import BaseManager as BaseManager, Manager as Manager
|
| 113 |
+
|
| 114 |
+
from . import lookups as lookups
|
| 115 |
+
|
| 116 |
+
from .aggregates import (
|
| 117 |
+
Avg as Avg,
|
| 118 |
+
Min as Min,
|
| 119 |
+
Max as Max,
|
| 120 |
+
Variance as Variance,
|
| 121 |
+
StdDev as StdDev,
|
| 122 |
+
Sum as Sum,
|
| 123 |
+
Aggregate as Aggregate,
|
| 124 |
+
)
|
| 125 |
+
|
| 126 |
+
from .indexes import Index as Index
|
| 127 |
+
|
| 128 |
+
from . import signals as signals
|
| 129 |
+
|
| 130 |
+
from .constraints import (
|
| 131 |
+
BaseConstraint as BaseConstraint,
|
| 132 |
+
CheckConstraint as CheckConstraint,
|
| 133 |
+
UniqueConstraint as UniqueConstraint,
|
| 134 |
+
)
|
| 135 |
+
|
| 136 |
+
from .enums import Choices as Choices, IntegerChoices as IntegerChoices, TextChoices as TextChoices
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/constraints.pyi
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional, Sequence, Tuple, Type, TypeVar
|
| 2 |
+
|
| 3 |
+
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
|
| 4 |
+
from django.db.models.base import Model
|
| 5 |
+
from django.db.models.query_utils import Q
|
| 6 |
+
|
| 7 |
+
_T = TypeVar("_T", bound="BaseConstraint")
|
| 8 |
+
|
| 9 |
+
class BaseConstraint:
|
| 10 |
+
name: str
|
| 11 |
+
def __init__(self, name: str) -> None: ...
|
| 12 |
+
def constraint_sql(
|
| 13 |
+
self, model: Optional[Type[Model]], schema_editor: Optional[BaseDatabaseSchemaEditor]
|
| 14 |
+
) -> str: ...
|
| 15 |
+
def create_sql(self, model: Optional[Type[Model]], schema_editor: Optional[BaseDatabaseSchemaEditor]) -> str: ...
|
| 16 |
+
def remove_sql(self, model: Optional[Type[Model]], schema_editor: Optional[BaseDatabaseSchemaEditor]) -> str: ...
|
| 17 |
+
def deconstruct(self) -> Any: ...
|
| 18 |
+
def clone(self: _T) -> _T: ...
|
| 19 |
+
|
| 20 |
+
class CheckConstraint(BaseConstraint):
|
| 21 |
+
check: Q
|
| 22 |
+
def __init__(self, *, check: Q, name: str) -> None: ...
|
| 23 |
+
|
| 24 |
+
class UniqueConstraint(BaseConstraint):
|
| 25 |
+
fields: Tuple[str]
|
| 26 |
+
condition: Optional[Q]
|
| 27 |
+
def __init__(self, *, fields: Sequence[str], name: str, condition: Optional[Q] = ...): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/enums.pyi
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import enum
|
| 2 |
+
from typing import Any, List, Tuple
|
| 3 |
+
|
| 4 |
+
class ChoicesMeta(enum.EnumMeta):
|
| 5 |
+
names: List[str] = ...
|
| 6 |
+
choices: List[Tuple[Any, str]] = ...
|
| 7 |
+
labels: List[str] = ...
|
| 8 |
+
values: List[Any] = ...
|
| 9 |
+
def __contains__(self, item: Any) -> bool: ...
|
| 10 |
+
|
| 11 |
+
class Choices(enum.Enum, metaclass=ChoicesMeta):
|
| 12 |
+
def __str__(self): ...
|
| 13 |
+
|
| 14 |
+
# fake
|
| 15 |
+
class _IntegerChoicesMeta(ChoicesMeta):
|
| 16 |
+
names: List[str] = ...
|
| 17 |
+
choices: List[Tuple[int, str]] = ...
|
| 18 |
+
labels: List[str] = ...
|
| 19 |
+
values: List[int] = ...
|
| 20 |
+
|
| 21 |
+
class IntegerChoices(int, Choices, metaclass=_IntegerChoicesMeta): ...
|
| 22 |
+
|
| 23 |
+
# fake
|
| 24 |
+
class _TextChoicesMeta(ChoicesMeta):
|
| 25 |
+
names: List[str] = ...
|
| 26 |
+
choices: List[Tuple[str, str]] = ...
|
| 27 |
+
labels: List[str] = ...
|
| 28 |
+
values: List[str] = ...
|
| 29 |
+
|
| 30 |
+
class TextChoices(str, Choices, metaclass=_TextChoicesMeta): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/fields/proxy.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from django.db.models import fields
|
| 4 |
+
|
| 5 |
+
class OrderWrt(fields.IntegerField):
|
| 6 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/fields/related_lookups.pyi
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import OrderedDict
|
| 2 |
+
from typing import Any, List, Tuple, Type, Iterable
|
| 3 |
+
|
| 4 |
+
from django.db.models.expressions import Expression
|
| 5 |
+
from django.db.models.lookups import (
|
| 6 |
+
BuiltinLookup,
|
| 7 |
+
Exact,
|
| 8 |
+
GreaterThan,
|
| 9 |
+
GreaterThanOrEqual,
|
| 10 |
+
In,
|
| 11 |
+
IsNull,
|
| 12 |
+
LessThan,
|
| 13 |
+
LessThanOrEqual,
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
from django.db.models.fields import Field
|
| 17 |
+
|
| 18 |
+
class MultiColSource:
|
| 19 |
+
alias: str
|
| 20 |
+
field: Field
|
| 21 |
+
sources: Tuple[Field, Field]
|
| 22 |
+
targets: Tuple[Field, Field]
|
| 23 |
+
contains_aggregate: bool = ...
|
| 24 |
+
output_field: Field = ...
|
| 25 |
+
def __init__(
|
| 26 |
+
self, alias: str, targets: Tuple[Field, Field], sources: Tuple[Field, Field], field: Field
|
| 27 |
+
) -> None: ...
|
| 28 |
+
def relabeled_clone(self, relabels: OrderedDict) -> MultiColSource: ...
|
| 29 |
+
def get_lookup(self, lookup: str) -> Type[BuiltinLookup]: ...
|
| 30 |
+
|
| 31 |
+
def get_normalized_value(value: Any, lhs: Expression) -> Tuple[None]: ...
|
| 32 |
+
|
| 33 |
+
class RelatedIn(In):
|
| 34 |
+
bilateral_transforms: List[Any]
|
| 35 |
+
lhs: Expression
|
| 36 |
+
rhs: Any = ...
|
| 37 |
+
def get_prep_lookup(self) -> Iterable[Any]: ...
|
| 38 |
+
|
| 39 |
+
class RelatedLookupMixin:
|
| 40 |
+
rhs: Any = ...
|
| 41 |
+
def get_prep_lookup(self) -> Any: ...
|
| 42 |
+
|
| 43 |
+
class RelatedExact(RelatedLookupMixin, Exact): ...
|
| 44 |
+
class RelatedLessThan(RelatedLookupMixin, LessThan): ...
|
| 45 |
+
class RelatedGreaterThan(RelatedLookupMixin, GreaterThan): ...
|
| 46 |
+
class RelatedGreaterThanOrEqual(RelatedLookupMixin, GreaterThanOrEqual): ...
|
| 47 |
+
class RelatedLessThanOrEqual(RelatedLookupMixin, LessThanOrEqual): ...
|
| 48 |
+
class RelatedIsNull(RelatedLookupMixin, IsNull): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/functions/__init__.pyi
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .text import (
|
| 2 |
+
Lower as Lower,
|
| 3 |
+
Upper as Upper,
|
| 4 |
+
Length as Length,
|
| 5 |
+
Chr as Chr,
|
| 6 |
+
Concat as Concat,
|
| 7 |
+
ConcatPair as ConcatPair,
|
| 8 |
+
Left as Left,
|
| 9 |
+
Right as Right,
|
| 10 |
+
LPad as LPad,
|
| 11 |
+
RPad as RPad,
|
| 12 |
+
LTrim as LTrim,
|
| 13 |
+
RTrim as RTrim,
|
| 14 |
+
Trim as Trim,
|
| 15 |
+
Ord as Ord,
|
| 16 |
+
Repeat as Repeat,
|
| 17 |
+
SHA1 as SHA1,
|
| 18 |
+
SHA224 as SHA224,
|
| 19 |
+
SHA256 as SHA256,
|
| 20 |
+
SHA384 as SHA384,
|
| 21 |
+
SHA512 as SHA512,
|
| 22 |
+
StrIndex as StrIndex,
|
| 23 |
+
Substr as Substr,
|
| 24 |
+
Replace as Replace,
|
| 25 |
+
Reverse as Reverse,
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
from .window import (
|
| 29 |
+
CumeDist as CumeDist,
|
| 30 |
+
DenseRank as DenseRank,
|
| 31 |
+
FirstValue as FirstValue,
|
| 32 |
+
Lag as Lag,
|
| 33 |
+
LastValue as LastValue,
|
| 34 |
+
Lead as Lead,
|
| 35 |
+
NthValue as NthValue,
|
| 36 |
+
Ntile as Ntile,
|
| 37 |
+
PercentRank as PercentRank,
|
| 38 |
+
Rank as Rank,
|
| 39 |
+
RowNumber as RowNumber,
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
from .datetime import (
|
| 43 |
+
Extract as Extract,
|
| 44 |
+
ExtractDay as ExtractDay,
|
| 45 |
+
ExtractHour as ExtractHour,
|
| 46 |
+
ExtractMinute as ExtractMinute,
|
| 47 |
+
ExtractSecond as ExtractSecond,
|
| 48 |
+
ExtractMonth as ExtractMonth,
|
| 49 |
+
ExtractQuarter as ExtractQuarter,
|
| 50 |
+
ExtractWeek as ExtractWeek,
|
| 51 |
+
ExtractWeekDay as ExtractWeekDay,
|
| 52 |
+
ExtractYear as ExtractYear,
|
| 53 |
+
ExtractIsoYear as ExtractIsoYear,
|
| 54 |
+
Trunc as Trunc,
|
| 55 |
+
TruncDate as TruncDate,
|
| 56 |
+
TruncDay as TruncDay,
|
| 57 |
+
TruncHour as TruncHour,
|
| 58 |
+
TruncMinute as TruncMinute,
|
| 59 |
+
TruncQuarter as TruncQuarter,
|
| 60 |
+
TruncMonth as TruncMonth,
|
| 61 |
+
TruncSecond as TruncSecond,
|
| 62 |
+
TruncTime as TruncTime,
|
| 63 |
+
TruncWeek as TruncWeek,
|
| 64 |
+
TruncYear as TruncYear,
|
| 65 |
+
Now as Now,
|
| 66 |
+
)
|
| 67 |
+
|
| 68 |
+
from .comparison import Coalesce as Coalesce, Greatest as Greatest, Least as Least, Cast as Cast, NullIf as NullIf
|
| 69 |
+
|
| 70 |
+
from .math import (
|
| 71 |
+
Abs as Abs,
|
| 72 |
+
ACos as ACos,
|
| 73 |
+
ASin as ASin,
|
| 74 |
+
ATan as ATan,
|
| 75 |
+
ATan2 as ATan2,
|
| 76 |
+
Ceil as Ceil,
|
| 77 |
+
Cos as Cos,
|
| 78 |
+
Cot as Cot,
|
| 79 |
+
Degrees as Degrees,
|
| 80 |
+
Floor as Floor,
|
| 81 |
+
Exp as Exp,
|
| 82 |
+
Ln as Ln,
|
| 83 |
+
Log as Log,
|
| 84 |
+
Mod as Mod,
|
| 85 |
+
Pi as Pi,
|
| 86 |
+
Power as Power,
|
| 87 |
+
Radians as Radians,
|
| 88 |
+
Round as Round,
|
| 89 |
+
Sign as Sign,
|
| 90 |
+
Sin as Sin,
|
| 91 |
+
Sqrt as Sqrt,
|
| 92 |
+
Tan as Tan,
|
| 93 |
+
)
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/functions/datetime.pyi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
from django.db.models import Func, Transform
|
| 4 |
+
|
| 5 |
+
class TimezoneMixin:
|
| 6 |
+
tzinfo: Any = ...
|
| 7 |
+
def get_tzname(self) -> Optional[str]: ...
|
| 8 |
+
|
| 9 |
+
class Extract(TimezoneMixin, Transform): ...
|
| 10 |
+
class ExtractYear(Extract): ...
|
| 11 |
+
class ExtractIsoYear(Extract): ...
|
| 12 |
+
class ExtractMonth(Extract): ...
|
| 13 |
+
class ExtractDay(Extract): ...
|
| 14 |
+
class ExtractWeek(Extract): ...
|
| 15 |
+
class ExtractWeekDay(Extract): ...
|
| 16 |
+
class ExtractQuarter(Extract): ...
|
| 17 |
+
class ExtractHour(Extract): ...
|
| 18 |
+
class ExtractMinute(Extract): ...
|
| 19 |
+
class ExtractSecond(Extract): ...
|
| 20 |
+
class Now(Func): ...
|
| 21 |
+
class TruncBase(TimezoneMixin, Transform): ...
|
| 22 |
+
class Trunc(TruncBase): ...
|
| 23 |
+
class TruncYear(TruncBase): ...
|
| 24 |
+
class TruncQuarter(TruncBase): ...
|
| 25 |
+
class TruncMonth(TruncBase): ...
|
| 26 |
+
class TruncWeek(TruncBase): ...
|
| 27 |
+
class TruncDay(TruncBase): ...
|
| 28 |
+
class TruncDate(TruncBase): ...
|
| 29 |
+
class TruncTime(TruncBase): ...
|
| 30 |
+
class TruncHour(TruncBase): ...
|
| 31 |
+
class TruncMinute(TruncBase): ...
|
| 32 |
+
class TruncSecond(TruncBase): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/indexes.pyi
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, List, Optional, Sequence, Tuple, Type
|
| 2 |
+
|
| 3 |
+
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
|
| 4 |
+
from django.db.backends.ddl_references import Statement
|
| 5 |
+
from django.db.models.base import Model
|
| 6 |
+
from django.db.models.query_utils import Q
|
| 7 |
+
|
| 8 |
+
class Index:
|
| 9 |
+
model: Type[Model]
|
| 10 |
+
suffix: str = ...
|
| 11 |
+
max_name_length: int = ...
|
| 12 |
+
fields: Sequence[str] = ...
|
| 13 |
+
fields_orders: Sequence[Tuple[str, str]] = ...
|
| 14 |
+
name: str = ...
|
| 15 |
+
db_tablespace: Optional[str] = ...
|
| 16 |
+
opclasses: Sequence[str] = ...
|
| 17 |
+
condition: Optional[Q] = ...
|
| 18 |
+
def __init__(
|
| 19 |
+
self,
|
| 20 |
+
*,
|
| 21 |
+
fields: Sequence[str] = ...,
|
| 22 |
+
name: Optional[str] = ...,
|
| 23 |
+
db_tablespace: Optional[str] = ...,
|
| 24 |
+
opclasses: Sequence[str] = ...,
|
| 25 |
+
condition: Optional[Q] = ...
|
| 26 |
+
) -> None: ...
|
| 27 |
+
def check_name(self) -> List[str]: ...
|
| 28 |
+
def create_sql(
|
| 29 |
+
self, model: Type[Model], schema_editor: BaseDatabaseSchemaEditor, using: str = ...
|
| 30 |
+
) -> Statement: ...
|
| 31 |
+
def remove_sql(self, model: Type[Model], schema_editor: BaseDatabaseSchemaEditor) -> str: ...
|
| 32 |
+
def deconstruct(self) -> Any: ...
|
| 33 |
+
def clone(self) -> Index: ...
|
| 34 |
+
def set_name_with_model(self, model: Type[Model]) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/lookups.pyi
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime
|
| 2 |
+
from typing import Any, Iterable, List, Optional, Tuple, Type, Union, Mapping, TypeVar, Generic
|
| 3 |
+
|
| 4 |
+
from django.db.backends.sqlite3.base import DatabaseWrapper
|
| 5 |
+
from django.db.models.expressions import Expression, Func
|
| 6 |
+
from django.db.models.query_utils import RegisterLookupMixin
|
| 7 |
+
from django.db.models.sql.compiler import SQLCompiler
|
| 8 |
+
from django.utils.datastructures import OrderedSet
|
| 9 |
+
from django.utils.safestring import SafeText
|
| 10 |
+
|
| 11 |
+
from django.db.models.fields import TextField, related_lookups
|
| 12 |
+
|
| 13 |
+
_T = TypeVar("_T")
|
| 14 |
+
|
| 15 |
+
class Lookup(Generic[_T]):
|
| 16 |
+
lookup_name: str = ...
|
| 17 |
+
prepare_rhs: bool = ...
|
| 18 |
+
can_use_none_as_rhs: bool = ...
|
| 19 |
+
lhs: Any = ...
|
| 20 |
+
rhs: Any = ...
|
| 21 |
+
bilateral_transforms: List[Type[Transform]] = ...
|
| 22 |
+
def __init__(self, lhs: Union[Expression, TextField, related_lookups.MultiColSource], rhs: Any) -> None: ...
|
| 23 |
+
def apply_bilateral_transforms(self, value: Expression) -> Transform: ...
|
| 24 |
+
def batch_process_rhs(
|
| 25 |
+
self, compiler: SQLCompiler, connection: DatabaseWrapper, rhs: Optional[OrderedSet] = ...
|
| 26 |
+
) -> Tuple[List[str], List[str]]: ...
|
| 27 |
+
def get_source_expressions(self) -> List[Expression]: ...
|
| 28 |
+
def set_source_expressions(self, new_exprs: List[Expression]) -> None: ...
|
| 29 |
+
def get_prep_lookup(self) -> Any: ...
|
| 30 |
+
def get_db_prep_lookup(self, value: Union[int, str], connection: DatabaseWrapper) -> Tuple[str, List[SafeText]]: ...
|
| 31 |
+
def process_lhs(
|
| 32 |
+
self, compiler: SQLCompiler, connection: DatabaseWrapper, lhs: Optional[Expression] = ...
|
| 33 |
+
) -> Tuple[str, List[Union[int, str]]]: ...
|
| 34 |
+
def process_rhs(self, compiler: SQLCompiler, connection: DatabaseWrapper) -> Tuple[str, List[Union[int, str]]]: ...
|
| 35 |
+
def rhs_is_direct_value(self) -> bool: ...
|
| 36 |
+
def relabeled_clone(self: _T, relabels: Mapping[str, str]) -> _T: ...
|
| 37 |
+
def get_group_by_cols(self) -> List[Expression]: ...
|
| 38 |
+
def as_sql(self, compiler: Any, connection: Any) -> Any: ...
|
| 39 |
+
def contains_aggregate(self) -> bool: ...
|
| 40 |
+
def contains_over_clause(self) -> bool: ...
|
| 41 |
+
@property
|
| 42 |
+
def is_summary(self) -> bool: ...
|
| 43 |
+
|
| 44 |
+
class Transform(RegisterLookupMixin, Func):
|
| 45 |
+
bilateral: bool = ...
|
| 46 |
+
@property
|
| 47 |
+
def lhs(self) -> Expression: ...
|
| 48 |
+
def get_bilateral_transforms(self) -> List[Type[Transform]]: ...
|
| 49 |
+
|
| 50 |
+
class BuiltinLookup(Lookup[_T]):
|
| 51 |
+
def get_rhs_op(self, connection: DatabaseWrapper, rhs: str) -> str: ...
|
| 52 |
+
|
| 53 |
+
class FieldGetDbPrepValueMixin:
|
| 54 |
+
get_db_prep_lookup_value_is_iterable: bool = ...
|
| 55 |
+
|
| 56 |
+
class FieldGetDbPrepValueIterableMixin(FieldGetDbPrepValueMixin):
|
| 57 |
+
def get_prep_lookup(self) -> Iterable[Any]: ...
|
| 58 |
+
def resolve_expression_parameter(
|
| 59 |
+
self, compiler: SQLCompiler, connection: DatabaseWrapper, sql: str, param: Any
|
| 60 |
+
) -> Any: ...
|
| 61 |
+
|
| 62 |
+
class Exact(FieldGetDbPrepValueMixin, BuiltinLookup): ...
|
| 63 |
+
class IExact(BuiltinLookup): ...
|
| 64 |
+
class GreaterThan(FieldGetDbPrepValueMixin, BuiltinLookup): ...
|
| 65 |
+
class GreaterThanOrEqual(FieldGetDbPrepValueMixin, BuiltinLookup[_T]): ...
|
| 66 |
+
class LessThan(FieldGetDbPrepValueMixin, BuiltinLookup[_T]): ...
|
| 67 |
+
class LessThanOrEqual(FieldGetDbPrepValueMixin, BuiltinLookup): ...
|
| 68 |
+
|
| 69 |
+
class IntegerFieldFloatRounding:
|
| 70 |
+
rhs: Any = ...
|
| 71 |
+
def get_prep_lookup(self) -> Any: ...
|
| 72 |
+
|
| 73 |
+
class IntegerGreaterThanOrEqual(IntegerFieldFloatRounding, GreaterThanOrEqual[Union[int, float]]): ...
|
| 74 |
+
class IntegerLessThan(IntegerFieldFloatRounding, LessThan[Union[int, float]]): ...
|
| 75 |
+
|
| 76 |
+
class In(FieldGetDbPrepValueIterableMixin, BuiltinLookup):
|
| 77 |
+
def split_parameter_list_as_sql(self, compiler: Any, connection: Any): ...
|
| 78 |
+
|
| 79 |
+
class PatternLookup(BuiltinLookup[str]):
|
| 80 |
+
param_pattern: str = ...
|
| 81 |
+
|
| 82 |
+
class Contains(PatternLookup): ...
|
| 83 |
+
class IContains(Contains): ...
|
| 84 |
+
class StartsWith(PatternLookup): ...
|
| 85 |
+
class IStartsWith(StartsWith): ...
|
| 86 |
+
class EndsWith(PatternLookup): ...
|
| 87 |
+
class IEndsWith(EndsWith): ...
|
| 88 |
+
class Range(FieldGetDbPrepValueIterableMixin, BuiltinLookup): ...
|
| 89 |
+
class IsNull(BuiltinLookup[bool]): ...
|
| 90 |
+
class Regex(BuiltinLookup[str]): ...
|
| 91 |
+
class IRegex(Regex): ...
|
| 92 |
+
|
| 93 |
+
class YearLookup(Lookup):
|
| 94 |
+
def year_lookup_bounds(self, connection: DatabaseWrapper, year: int) -> List[str]: ...
|
| 95 |
+
|
| 96 |
+
class YearComparisonLookup(YearLookup):
|
| 97 |
+
def get_rhs_op(self, connection: DatabaseWrapper, rhs: str) -> str: ...
|
| 98 |
+
def get_bound(self, start: datetime, finish: datetime) -> Any: ...
|
| 99 |
+
|
| 100 |
+
class YearExact(YearLookup, Exact): ...
|
| 101 |
+
class YearGt(YearComparisonLookup): ...
|
| 102 |
+
class YearGte(YearComparisonLookup): ...
|
| 103 |
+
class YearLt(YearComparisonLookup): ...
|
| 104 |
+
class YearLte(YearComparisonLookup): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/manager.pyi
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, List, Optional, Tuple, Type, TypeVar, Iterable, Union
|
| 2 |
+
|
| 3 |
+
from django.db.models.base import Model
|
| 4 |
+
from django.db.models.query import QuerySet
|
| 5 |
+
|
| 6 |
+
_T = TypeVar("_T", bound=Model, covariant=True)
|
| 7 |
+
_M = TypeVar("_M", bound="BaseManager")
|
| 8 |
+
|
| 9 |
+
class BaseManager(QuerySet[_T]):
|
| 10 |
+
creation_counter: int = ...
|
| 11 |
+
auto_created: bool = ...
|
| 12 |
+
use_in_migrations: bool = ...
|
| 13 |
+
name: str = ...
|
| 14 |
+
model: Type[_T] = ...
|
| 15 |
+
db: str
|
| 16 |
+
_db: Optional[str]
|
| 17 |
+
def __init__(self) -> None: ...
|
| 18 |
+
def deconstruct(self) -> Tuple[bool, str, None, Tuple, Dict[str, int]]: ...
|
| 19 |
+
def check(self, **kwargs: Any) -> List[Any]: ...
|
| 20 |
+
@classmethod
|
| 21 |
+
def from_queryset(cls, queryset_class: Type[QuerySet], class_name: Optional[str] = ...) -> Any: ...
|
| 22 |
+
@classmethod
|
| 23 |
+
def _get_queryset_methods(cls, queryset_class: type) -> Dict[str, Any]: ...
|
| 24 |
+
def contribute_to_class(self, model: Type[Model], name: str) -> None: ...
|
| 25 |
+
def db_manager(self: _M, using: Optional[str] = ..., hints: Optional[Dict[str, Model]] = ...) -> _M: ...
|
| 26 |
+
def get_queryset(self) -> QuerySet[_T]: ...
|
| 27 |
+
|
| 28 |
+
class Manager(BaseManager[_T]): ...
|
| 29 |
+
|
| 30 |
+
class RelatedManager(Manager[_T]):
|
| 31 |
+
related_val: Tuple[int, ...]
|
| 32 |
+
def add(self, *objs: Union[_T, int], bulk: bool = ...) -> None: ...
|
| 33 |
+
def remove(self, *objs: Union[_T, int], bulk: bool = ...) -> None: ...
|
| 34 |
+
def set(
|
| 35 |
+
self, objs: Union[QuerySet[_T], Iterable[Union[_T, int]]], *, bulk: bool = ..., clear: bool = ...
|
| 36 |
+
) -> None: ...
|
| 37 |
+
def clear(self) -> None: ...
|
| 38 |
+
|
| 39 |
+
class ManagerDescriptor:
|
| 40 |
+
manager: Manager = ...
|
| 41 |
+
def __init__(self, manager: Manager) -> None: ...
|
| 42 |
+
def __get__(self, instance: Optional[Model], cls: Type[Model] = ...) -> Manager: ...
|
| 43 |
+
|
| 44 |
+
class EmptyManager(Manager):
|
| 45 |
+
def __init__(self, model: Type[Model]) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/options.pyi
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import collections
|
| 2 |
+
from typing import Any, Callable, Dict, Generic, Iterator, List, Optional, Sequence, Tuple, Type, TypeVar, Union
|
| 3 |
+
|
| 4 |
+
from django.apps.config import AppConfig
|
| 5 |
+
from django.apps.registry import Apps
|
| 6 |
+
from django.contrib.contenttypes.fields import GenericForeignKey
|
| 7 |
+
from django.contrib.postgres.fields.array import ArrayField
|
| 8 |
+
from django.contrib.postgres.fields.citext import CIText
|
| 9 |
+
from django.db.backends.sqlite3.base import DatabaseWrapper
|
| 10 |
+
from django.db.models.base import Model
|
| 11 |
+
from django.db.models.constraints import BaseConstraint
|
| 12 |
+
from django.db.models.fields.mixins import FieldCacheMixin
|
| 13 |
+
from django.db.models.fields.related import ManyToManyField, OneToOneField
|
| 14 |
+
from django.db.models.fields.reverse_related import ForeignObjectRel
|
| 15 |
+
from django.db.models.manager import Manager
|
| 16 |
+
from django.db.models.query_utils import PathInfo
|
| 17 |
+
from django.utils.datastructures import ImmutableList
|
| 18 |
+
|
| 19 |
+
from django.db.models.fields import AutoField, Field
|
| 20 |
+
|
| 21 |
+
PROXY_PARENTS: Any
|
| 22 |
+
EMPTY_RELATION_TREE: Any
|
| 23 |
+
IMMUTABLE_WARNING: str
|
| 24 |
+
DEFAULT_NAMES: Tuple[str, ...]
|
| 25 |
+
|
| 26 |
+
def normalize_together(
|
| 27 |
+
option_together: Union[Sequence[Tuple[str, str]], Tuple[str, str]]
|
| 28 |
+
) -> Tuple[Tuple[str, str], ...]: ...
|
| 29 |
+
def make_immutable_fields_list(
|
| 30 |
+
name: str, data: Union[Iterator[Any], List[Union[ArrayField, CIText]], List[Union[Field, FieldCacheMixin]]]
|
| 31 |
+
) -> ImmutableList: ...
|
| 32 |
+
|
| 33 |
+
_M = TypeVar("_M", bound=Model)
|
| 34 |
+
|
| 35 |
+
class Options(Generic[_M]):
|
| 36 |
+
base_manager: Manager
|
| 37 |
+
concrete_fields: ImmutableList
|
| 38 |
+
constraints: List[BaseConstraint]
|
| 39 |
+
default_manager: Manager
|
| 40 |
+
fields: ImmutableList
|
| 41 |
+
local_concrete_fields: ImmutableList
|
| 42 |
+
related_objects: ImmutableList
|
| 43 |
+
FORWARD_PROPERTIES: Any = ...
|
| 44 |
+
REVERSE_PROPERTIES: Any = ...
|
| 45 |
+
default_apps: Any = ...
|
| 46 |
+
local_fields: List[Field] = ...
|
| 47 |
+
local_many_to_many: List[ManyToManyField] = ...
|
| 48 |
+
private_fields: List[Any] = ...
|
| 49 |
+
local_managers: List[Manager] = ...
|
| 50 |
+
base_manager_name: Optional[str] = ...
|
| 51 |
+
default_manager_name: Optional[str] = ...
|
| 52 |
+
model_name: Optional[str] = ...
|
| 53 |
+
verbose_name: Optional[str] = ...
|
| 54 |
+
verbose_name_plural: Optional[str] = ...
|
| 55 |
+
db_table: str = ...
|
| 56 |
+
ordering: Optional[Sequence[str]] = ...
|
| 57 |
+
indexes: List[Any] = ...
|
| 58 |
+
unique_together: Union[List[Any], Tuple] = ...
|
| 59 |
+
index_together: Union[List[Any], Tuple] = ...
|
| 60 |
+
select_on_save: bool = ...
|
| 61 |
+
default_permissions: Sequence[str] = ...
|
| 62 |
+
permissions: List[Any] = ...
|
| 63 |
+
object_name: Optional[str] = ...
|
| 64 |
+
app_label: str = ...
|
| 65 |
+
get_latest_by: Optional[Sequence[str]] = ...
|
| 66 |
+
order_with_respect_to: None = ...
|
| 67 |
+
db_tablespace: str = ...
|
| 68 |
+
required_db_features: List[Any] = ...
|
| 69 |
+
required_db_vendor: None = ...
|
| 70 |
+
meta: Optional[type] = ...
|
| 71 |
+
pk: Optional[Field] = ...
|
| 72 |
+
auto_field: Optional[AutoField] = ...
|
| 73 |
+
abstract: bool = ...
|
| 74 |
+
managed: bool = ...
|
| 75 |
+
proxy: bool = ...
|
| 76 |
+
proxy_for_model: Optional[Type[Model]] = ...
|
| 77 |
+
concrete_model: Optional[Type[Model]] = ...
|
| 78 |
+
swappable: None = ...
|
| 79 |
+
parents: collections.OrderedDict = ...
|
| 80 |
+
auto_created: bool = ...
|
| 81 |
+
related_fkey_lookups: List[Any] = ...
|
| 82 |
+
apps: Apps = ...
|
| 83 |
+
default_related_name: Optional[str] = ...
|
| 84 |
+
model: Type[Model] = ...
|
| 85 |
+
original_attrs: Dict[str, Any] = ...
|
| 86 |
+
def __init__(self, meta: Optional[type], app_label: Optional[str] = ...) -> None: ...
|
| 87 |
+
@property
|
| 88 |
+
def label(self) -> str: ...
|
| 89 |
+
@property
|
| 90 |
+
def label_lower(self) -> str: ...
|
| 91 |
+
@property
|
| 92 |
+
def app_config(self) -> AppConfig: ...
|
| 93 |
+
@property
|
| 94 |
+
def installed(self): ...
|
| 95 |
+
def contribute_to_class(self, cls: Type[Model], name: str) -> None: ...
|
| 96 |
+
def add_manager(self, manager: Manager) -> None: ...
|
| 97 |
+
def add_field(self, field: Union[GenericForeignKey, Field], private: bool = ...) -> None: ...
|
| 98 |
+
def setup_pk(self, field: Field) -> None: ...
|
| 99 |
+
def setup_proxy(self, target: Type[Model]) -> None: ...
|
| 100 |
+
def can_migrate(self, connection: Union[DatabaseWrapper, str]) -> bool: ...
|
| 101 |
+
@property
|
| 102 |
+
def verbose_name_raw(self) -> str: ...
|
| 103 |
+
@property
|
| 104 |
+
def swapped(self) -> Optional[str]: ...
|
| 105 |
+
@property
|
| 106 |
+
def many_to_many(self) -> List[ManyToManyField]: ...
|
| 107 |
+
@property
|
| 108 |
+
def fields_map(self) -> Dict[str, Union[Field, ForeignObjectRel]]: ...
|
| 109 |
+
@property
|
| 110 |
+
def managers(self) -> List[Manager]: ...
|
| 111 |
+
@property
|
| 112 |
+
def managers_map(self) -> Dict[str, Manager]: ...
|
| 113 |
+
@property
|
| 114 |
+
def db_returning_fields(self) -> List[Field]: ...
|
| 115 |
+
def get_field(self, field_name: Union[Callable, str]) -> Field: ...
|
| 116 |
+
def get_base_chain(self, model: Type[Model]) -> List[Type[Model]]: ...
|
| 117 |
+
def get_parent_list(self) -> List[Type[Model]]: ...
|
| 118 |
+
def get_ancestor_link(self, ancestor: Type[Model]) -> Optional[OneToOneField]: ...
|
| 119 |
+
def get_path_to_parent(self, parent: Type[Model]) -> List[PathInfo]: ...
|
| 120 |
+
def get_path_from_parent(self, parent: Type[Model]) -> List[PathInfo]: ...
|
| 121 |
+
def get_fields(
|
| 122 |
+
self, include_parents: bool = ..., include_hidden: bool = ...
|
| 123 |
+
) -> List[Union[Field, ForeignObjectRel]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/sql/datastructures.pyi
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import OrderedDict
|
| 2 |
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
| 3 |
+
|
| 4 |
+
from django.db.models.fields.mixins import FieldCacheMixin
|
| 5 |
+
from django.db.models.query_utils import FilteredRelation, PathInfo
|
| 6 |
+
from django.db.models.sql.compiler import SQLCompiler
|
| 7 |
+
|
| 8 |
+
class MultiJoin(Exception):
|
| 9 |
+
level: int = ...
|
| 10 |
+
names_with_path: List[Tuple[str, List[PathInfo]]] = ...
|
| 11 |
+
def __init__(self, names_pos: int, path_with_names: List[Tuple[str, List[PathInfo]]]) -> None: ...
|
| 12 |
+
|
| 13 |
+
class Empty: ...
|
| 14 |
+
|
| 15 |
+
class Join:
|
| 16 |
+
table_name: str = ...
|
| 17 |
+
parent_alias: str = ...
|
| 18 |
+
table_alias: Optional[str] = ...
|
| 19 |
+
join_type: str = ...
|
| 20 |
+
join_cols: Tuple = ...
|
| 21 |
+
join_field: FieldCacheMixin = ...
|
| 22 |
+
nullable: bool = ...
|
| 23 |
+
filtered_relation: Optional[FilteredRelation] = ...
|
| 24 |
+
def __init__(
|
| 25 |
+
self,
|
| 26 |
+
table_name: str,
|
| 27 |
+
parent_alias: str,
|
| 28 |
+
table_alias: Optional[str],
|
| 29 |
+
join_type: str,
|
| 30 |
+
join_field: FieldCacheMixin,
|
| 31 |
+
nullable: bool,
|
| 32 |
+
filtered_relation: Optional[FilteredRelation] = ...,
|
| 33 |
+
) -> None: ...
|
| 34 |
+
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Tuple[str, List[Union[int, str]]]: ...
|
| 35 |
+
def relabeled_clone(self, change_map: Union[Dict[str, str], OrderedDict]) -> Join: ...
|
| 36 |
+
def equals(self, other: Union[BaseTable, Join], with_filtered_relation: bool) -> bool: ...
|
| 37 |
+
def demote(self) -> Join: ...
|
| 38 |
+
def promote(self) -> Join: ...
|
| 39 |
+
|
| 40 |
+
class BaseTable:
|
| 41 |
+
join_type: Any = ...
|
| 42 |
+
parent_alias: Any = ...
|
| 43 |
+
filtered_relation: Any = ...
|
| 44 |
+
table_name: str = ...
|
| 45 |
+
table_alias: Optional[str] = ...
|
| 46 |
+
def __init__(self, table_name: str, alias: Optional[str]) -> None: ...
|
| 47 |
+
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Tuple[str, List[Any]]: ...
|
| 48 |
+
def relabeled_clone(self, change_map: OrderedDict) -> BaseTable: ...
|
| 49 |
+
def equals(self, other: Join, with_filtered_relation: bool) -> bool: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/sql/subqueries.pyi
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Iterable, List, Optional, Tuple, Type, Union
|
| 2 |
+
|
| 3 |
+
from django.db.models.base import Model
|
| 4 |
+
from django.db.models.expressions import Case
|
| 5 |
+
from django.db.models.query import QuerySet
|
| 6 |
+
from django.db.models.sql.query import Query
|
| 7 |
+
from django.db.models.sql.where import WhereNode
|
| 8 |
+
|
| 9 |
+
from django.db.models.fields import Field
|
| 10 |
+
|
| 11 |
+
class DeleteQuery(Query):
|
| 12 |
+
select: Tuple
|
| 13 |
+
where_class: Type[WhereNode]
|
| 14 |
+
where: WhereNode = ...
|
| 15 |
+
def do_query(self, table: str, where: WhereNode, using: str) -> int: ...
|
| 16 |
+
def delete_batch(self, pk_list: Union[List[int], List[str]], using: str) -> int: ...
|
| 17 |
+
def delete_qs(self, query: QuerySet, using: str) -> int: ...
|
| 18 |
+
|
| 19 |
+
class UpdateQuery(Query):
|
| 20 |
+
select: Tuple
|
| 21 |
+
where_class: Type[WhereNode]
|
| 22 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 23 |
+
where: WhereNode = ...
|
| 24 |
+
def update_batch(self, pk_list: List[int], values: Dict[str, Optional[int]], using: str) -> None: ...
|
| 25 |
+
def add_update_values(self, values: Dict[str, Any]) -> None: ...
|
| 26 |
+
def add_update_fields(self, values_seq: List[Tuple[Field, Optional[Type[Model]], Case]]) -> None: ...
|
| 27 |
+
def add_related_update(self, model: Type[Model], field: Field, value: Union[int, str]) -> None: ...
|
| 28 |
+
def get_related_updates(self) -> List[UpdateQuery]: ...
|
| 29 |
+
|
| 30 |
+
class InsertQuery(Query):
|
| 31 |
+
select: Tuple
|
| 32 |
+
where: WhereNode
|
| 33 |
+
where_class: Type[WhereNode]
|
| 34 |
+
fields: Iterable[Field] = ...
|
| 35 |
+
objs: List[Model] = ...
|
| 36 |
+
raw: bool = ...
|
| 37 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 38 |
+
def insert_values(self, fields: Iterable[Field], objs: List[Model], raw: bool = ...) -> None: ...
|
| 39 |
+
|
| 40 |
+
class AggregateQuery(Query):
|
| 41 |
+
select: Tuple
|
| 42 |
+
sub_params: Tuple
|
| 43 |
+
where: WhereNode
|
| 44 |
+
where_class: Type[WhereNode]
|
| 45 |
+
def add_subquery(self, query: Query, using: str) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/utils.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Tuple, Type, Union
|
| 2 |
+
|
| 3 |
+
from django.db.models.base import Model
|
| 4 |
+
|
| 5 |
+
def make_model_tuple(model: Union[Type[Model], str]) -> Tuple[str, str]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/cache.pyi
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional, Union, Callable
|
| 2 |
+
|
| 3 |
+
from django.http.request import HttpRequest
|
| 4 |
+
from django.http.response import HttpResponse, HttpResponseBase
|
| 5 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 6 |
+
|
| 7 |
+
from django.core.cache import BaseCache
|
| 8 |
+
|
| 9 |
+
class UpdateCacheMiddleware(MiddlewareMixin):
|
| 10 |
+
cache_timeout: float = ...
|
| 11 |
+
key_prefix: str = ...
|
| 12 |
+
cache_alias: str = ...
|
| 13 |
+
cache: BaseCache = ...
|
| 14 |
+
def process_response(
|
| 15 |
+
self, request: HttpRequest, response: Union[HttpResponseBase, str]
|
| 16 |
+
) -> Union[HttpResponseBase, str]: ...
|
| 17 |
+
|
| 18 |
+
class FetchFromCacheMiddleware(MiddlewareMixin):
|
| 19 |
+
key_prefix: str = ...
|
| 20 |
+
cache_alias: str = ...
|
| 21 |
+
cache: BaseCache = ...
|
| 22 |
+
def process_request(self, request: HttpRequest) -> Optional[HttpResponse]: ...
|
| 23 |
+
|
| 24 |
+
class CacheMiddleware(UpdateCacheMiddleware, FetchFromCacheMiddleware):
|
| 25 |
+
key_prefix: str = ...
|
| 26 |
+
cache_alias: str = ...
|
| 27 |
+
cache_timeout: float = ...
|
| 28 |
+
cache: BaseCache = ...
|
| 29 |
+
def __init__(
|
| 30 |
+
self, get_response: Optional[Callable] = ..., cache_timeout: Optional[float] = ..., **kwargs: Any
|
| 31 |
+
) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/clickjacking.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.http.request import HttpRequest
|
| 2 |
+
from django.http.response import HttpResponse
|
| 3 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 4 |
+
|
| 5 |
+
class XFrameOptionsMiddleware(MiddlewareMixin):
|
| 6 |
+
def process_response(self, request: HttpRequest, response: HttpResponse) -> HttpResponse: ...
|
| 7 |
+
def get_xframe_options_value(self, request: HttpRequest, response: HttpResponse) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/common.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
from django.http.request import HttpRequest
|
| 4 |
+
from django.http.response import HttpResponseBase, HttpResponsePermanentRedirect
|
| 5 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 6 |
+
|
| 7 |
+
class CommonMiddleware(MiddlewareMixin):
|
| 8 |
+
response_redirect_class: Any = ...
|
| 9 |
+
def process_request(self, request: HttpRequest) -> Optional[HttpResponsePermanentRedirect]: ...
|
| 10 |
+
def should_redirect_with_slash(self, request: HttpRequest) -> bool: ...
|
| 11 |
+
def get_full_path_with_slash(self, request: HttpRequest) -> str: ...
|
| 12 |
+
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
|
| 13 |
+
|
| 14 |
+
class BrokenLinkEmailsMiddleware(MiddlewareMixin):
|
| 15 |
+
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
|
| 16 |
+
def is_internal_request(self, domain: str, referer: str) -> bool: ...
|
| 17 |
+
def is_ignorable_request(self, request: HttpRequest, uri: str, domain: str, referer: str) -> bool: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/csrf.pyi
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Callable, Dict, Optional, Tuple
|
| 2 |
+
|
| 3 |
+
from django.http.request import HttpRequest
|
| 4 |
+
from django.http.response import HttpResponseBase, HttpResponseForbidden
|
| 5 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 6 |
+
|
| 7 |
+
logger: Any
|
| 8 |
+
REASON_NO_REFERER: str
|
| 9 |
+
REASON_BAD_REFERER: str
|
| 10 |
+
REASON_NO_CSRF_COOKIE: str
|
| 11 |
+
REASON_BAD_TOKEN: str
|
| 12 |
+
REASON_MALFORMED_REFERER: str
|
| 13 |
+
REASON_INSECURE_REFERER: str
|
| 14 |
+
CSRF_SECRET_LENGTH: int
|
| 15 |
+
CSRF_TOKEN_LENGTH: Any
|
| 16 |
+
CSRF_ALLOWED_CHARS: Any
|
| 17 |
+
CSRF_SESSION_KEY: str
|
| 18 |
+
|
| 19 |
+
def get_token(request: HttpRequest) -> str: ...
|
| 20 |
+
def rotate_token(request: HttpRequest) -> None: ...
|
| 21 |
+
|
| 22 |
+
class CsrfViewMiddleware(MiddlewareMixin):
|
| 23 |
+
def process_request(self, request: HttpRequest) -> None: ...
|
| 24 |
+
def process_view(
|
| 25 |
+
self, request: HttpRequest, callback: Optional[Callable], callback_args: Tuple, callback_kwargs: Dict[str, Any]
|
| 26 |
+
) -> Optional[HttpResponseForbidden]: ...
|
| 27 |
+
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
|
| 28 |
+
|
| 29 |
+
def _compare_salted_tokens(request_csrf_token: str, csrf_token: str) -> bool: ...
|
| 30 |
+
def _get_new_csrf_string() -> str: ...
|
| 31 |
+
def _salt_cipher_secret(secret: str) -> str: ...
|
| 32 |
+
def _unsalt_cipher_token(token: str) -> str: ...
|
| 33 |
+
def _get_new_csrf_token() -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/gzip.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from django.http.request import HttpRequest
|
| 4 |
+
from django.http.response import HttpResponseBase
|
| 5 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 6 |
+
|
| 7 |
+
re_accepts_gzip: Any
|
| 8 |
+
|
| 9 |
+
class GZipMiddleware(MiddlewareMixin):
|
| 10 |
+
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/http.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.http.request import HttpRequest
|
| 2 |
+
from django.http.response import HttpResponseBase
|
| 3 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 4 |
+
|
| 5 |
+
class ConditionalGetMiddleware(MiddlewareMixin):
|
| 6 |
+
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
|
| 7 |
+
def needs_etag(self, response: HttpResponseBase) -> bool: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/locale.pyi
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from django.http.request import HttpRequest
|
| 4 |
+
from django.http.response import HttpResponseBase
|
| 5 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 6 |
+
|
| 7 |
+
class LocaleMiddleware(MiddlewareMixin):
|
| 8 |
+
response_redirect_class: Any = ...
|
| 9 |
+
def process_request(self, request: HttpRequest) -> None: ...
|
| 10 |
+
def process_response(self, request: HttpRequest, response: HttpResponseBase) -> HttpResponseBase: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/middleware/security.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, List, Optional
|
| 2 |
+
|
| 3 |
+
from django.http.request import HttpRequest
|
| 4 |
+
from django.http.response import HttpResponse, HttpResponsePermanentRedirect
|
| 5 |
+
from django.utils.deprecation import MiddlewareMixin
|
| 6 |
+
|
| 7 |
+
class SecurityMiddleware(MiddlewareMixin):
|
| 8 |
+
sts_seconds: int = ...
|
| 9 |
+
sts_include_subdomains: bool = ...
|
| 10 |
+
sts_preload: bool = ...
|
| 11 |
+
content_type_nosniff: bool = ...
|
| 12 |
+
xss_filter: bool = ...
|
| 13 |
+
redirect: bool = ...
|
| 14 |
+
redirect_host: Optional[str] = ...
|
| 15 |
+
redirect_exempt: List[Any] = ...
|
| 16 |
+
def process_request(self, request: HttpRequest) -> Optional[HttpResponsePermanentRedirect]: ...
|
| 17 |
+
def process_response(self, request: HttpRequest, response: HttpResponse) -> HttpResponse: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/template/backends/__init__.pyi
ADDED
|
File without changes
|