ZTWHHH commited on
Commit
cddf1ed
·
verified ·
1 Parent(s): e52c0d3

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/__init__.pyi +24 -0
  2. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/__init__.pyi +0 -0
  3. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/base.pyi +41 -0
  4. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/db.pyi +22 -0
  5. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/dummy.pyi +6 -0
  6. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/filebased.pyi +7 -0
  7. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/locmem.pyi +6 -0
  8. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/memcached.pyi +10 -0
  9. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/utils.pyi +5 -0
  10. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/__init__.pyi +17 -0
  11. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/caches.pyi +9 -0
  12. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/database.pyi +3 -0
  13. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/messages.pyi +34 -0
  14. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/model_checks.pyi +8 -0
  15. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/registry.pyi +36 -0
  16. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/__init__.pyi +0 -0
  17. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/base.pyi +33 -0
  18. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/csrf.pyi +11 -0
  19. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/sessions.pyi +20 -0
  20. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/templates.pyi +11 -0
  21. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/translation.pyi +7 -0
  22. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/urls.pyi +13 -0
  23. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/move.pyi +3 -0
  24. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/temp.pyi +5 -0
  25. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/uploadedfile.pyi +46 -0
  26. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/uploadhandler.pyi +86 -0
  27. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/handlers/__init__.pyi +0 -0
  28. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/handlers/wsgi.pyi +35 -0
  29. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/__init__.pyi +0 -0
  30. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/base.pyi +16 -0
  31. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/console.pyi +3 -0
  32. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/filebased.pyi +3 -0
  33. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/locmem.pyi +3 -0
  34. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/smtp.pyi +18 -0
  35. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/message.pyi +110 -0
  36. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/base.pyi +78 -0
  37. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/color.pyi +25 -0
  38. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/commands/__init__.pyi +0 -0
  39. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/commands/dumpdata.pyi +4 -0
  40. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/commands/makemessages.pyi +38 -0
  41. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/sql.pyi +9 -0
  42. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/templates.pyi +17 -0
  43. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/utils.pyi +10 -0
  44. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/serializers/python.pyi +15 -0
  45. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/servers/basehttp.pyi +36 -0
  46. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/__init__.pyi +136 -0
  47. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/base.pyi +60 -0
  48. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/deletion.pyi +30 -0
  49. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/enums.pyi +30 -0
  50. mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/expressions.pyi +219 -0
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/__init__.pyi ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections import OrderedDict
2
+ from typing import Any, Callable, Dict, Union
3
+
4
+ from .backends.base import (
5
+ BaseCache as BaseCache,
6
+ CacheKeyWarning as CacheKeyWarning,
7
+ InvalidCacheBackendError as InvalidCacheBackendError,
8
+ )
9
+
10
+ DEFAULT_CACHE_ALIAS: str
11
+
12
+ class CacheHandler:
13
+ def __init__(self) -> None: ...
14
+ def __getitem__(self, alias: str) -> BaseCache: ...
15
+ def all(self): ...
16
+
17
+ class DefaultCacheProxy:
18
+ def __getattr__(self, name: str) -> Union[Callable, Dict[str, float], OrderedDict, int]: ...
19
+ def __setattr__(self, name: str, value: Callable) -> None: ...
20
+ def __delattr__(self, name: Any): ...
21
+ def __contains__(self, key: str) -> bool: ...
22
+
23
+ cache: Any
24
+ caches: CacheHandler
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/__init__.pyi ADDED
File without changes
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/base.pyi ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Dict, Iterable, List, Optional, Union
2
+
3
+ from django.core.exceptions import ImproperlyConfigured
4
+
5
+ class InvalidCacheBackendError(ImproperlyConfigured): ...
6
+ class CacheKeyWarning(RuntimeWarning): ...
7
+
8
+ DEFAULT_TIMEOUT: Any
9
+ MEMCACHE_MAX_KEY_LENGTH: int
10
+
11
+ def default_key_func(key: Any, key_prefix: str, version: Any) -> str: ...
12
+ def get_key_func(key_func: Optional[Union[Callable, str]]) -> Callable: ...
13
+
14
+ class BaseCache:
15
+ default_timeout: int = ...
16
+ key_prefix: str = ...
17
+ version: int = ...
18
+ key_func: Callable = ...
19
+ def __init__(self, params: Dict[str, Any]) -> None: ...
20
+ def get_backend_timeout(self, timeout: Any = ...) -> Optional[float]: ...
21
+ def make_key(self, key: Any, version: Optional[Any] = ...) -> str: ...
22
+ def add(self, key: Any, value: Any, timeout: Any = ..., version: Optional[Any] = ...) -> bool: ...
23
+ def get(self, key: Any, default: Optional[Any] = ..., version: Optional[Any] = ...) -> Any: ...
24
+ def set(self, key: Any, value: Any, timeout: Any = ..., version: Optional[Any] = ...) -> None: ...
25
+ def touch(self, key: Any, timeout: Any = ..., version: Optional[Any] = ...) -> bool: ...
26
+ def delete(self, key: Any, version: Optional[Any] = ...) -> None: ...
27
+ def get_many(self, keys: List[str], version: Optional[int] = ...) -> Dict[str, Union[int, str]]: ...
28
+ def get_or_set(
29
+ self, key: Any, default: Optional[Any], timeout: Any = ..., version: Optional[int] = ...
30
+ ) -> Optional[Any]: ...
31
+ def has_key(self, key: Any, version: Optional[Any] = ...) -> bool: ...
32
+ def incr(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
33
+ def decr(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
34
+ def __contains__(self, key: str) -> bool: ...
35
+ def set_many(self, data: Dict[str, Any], timeout: Any = ..., version: Optional[Any] = ...) -> List[Any]: ...
36
+ def delete_many(self, keys: Iterable[Any], version: Optional[Any] = ...) -> None: ...
37
+ def clear(self) -> None: ...
38
+ def validate_key(self, key: str) -> None: ...
39
+ def incr_version(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
40
+ def decr_version(self, key: str, delta: int = ..., version: Optional[int] = ...) -> int: ...
41
+ def close(self, **kwargs: Any) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/db.pyi ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Dict
2
+
3
+ from django.core.cache.backends.base import BaseCache
4
+
5
+ class Options:
6
+ db_table: str = ...
7
+ app_label: str = ...
8
+ model_name: str = ...
9
+ verbose_name: str = ...
10
+ verbose_name_plural: str = ...
11
+ object_name: str = ...
12
+ abstract: bool = ...
13
+ managed: bool = ...
14
+ proxy: bool = ...
15
+ swapped: bool = ...
16
+ def __init__(self, table: str) -> None: ...
17
+
18
+ class BaseDatabaseCache(BaseCache):
19
+ cache_model_class: Any = ...
20
+ def __init__(self, table: str, params: Dict[str, Any]) -> None: ...
21
+
22
+ class DatabaseCache(BaseDatabaseCache): ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/dummy.pyi ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from typing import Any
2
+
3
+ from django.core.cache.backends.base import BaseCache
4
+
5
+ class DummyCache(BaseCache):
6
+ def __init__(self, host: str, *args: Any, **kwargs: Any) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/filebased.pyi ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from typing import Any, Dict
2
+
3
+ from django.core.cache.backends.base import BaseCache
4
+
5
+ class FileBasedCache(BaseCache):
6
+ cache_suffix: str = ...
7
+ def __init__(self, dir: str, params: Dict[str, Any]) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/locmem.pyi ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from typing import Any, Dict
2
+
3
+ from django.core.cache.backends.base import BaseCache
4
+
5
+ class LocMemCache(BaseCache):
6
+ def __init__(self, name: str, params: Dict[str, Any]) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/backends/memcached.pyi ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from django.core.cache.backends.base import BaseCache
2
+
3
+ class BaseMemcachedCache(BaseCache):
4
+ def __init__(self, server, params, library, value_not_found_exception) -> None: ...
5
+
6
+ class MemcachedCache(BaseMemcachedCache):
7
+ def __init__(self, server, params): ...
8
+
9
+ class PyLibMCCache(BaseMemcachedCache):
10
+ def __init__(self, server, params): ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/cache/utils.pyi ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from typing import Any, Iterable, Optional
2
+
3
+ TEMPLATE_FRAGMENT_KEY_TEMPLATE: str
4
+
5
+ def make_template_fragment_key(fragment_name: str, vary_on: Optional[Iterable[Any]] = ...) -> str: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/__init__.pyi ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from .messages import (
2
+ CheckMessage as CheckMessage,
3
+ Debug as Debug,
4
+ Info as Info,
5
+ Warning as Warning,
6
+ Error as Error,
7
+ Critical as Critical,
8
+ DEBUG as DEBUG,
9
+ INFO as INFO,
10
+ WARNING as WARNING,
11
+ ERROR as ERROR,
12
+ CRITICAL as CRITICAL,
13
+ )
14
+
15
+ from .registry import register as register, run_checks as run_checks, tag_exists as tag_exists, Tags as Tags
16
+
17
+ from . import model_checks as model_checks
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/caches.pyi ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, List, Iterable, Optional
2
+
3
+ from django.core.checks.messages import Error
4
+
5
+ from django.apps.config import AppConfig
6
+
7
+ E001: Any
8
+
9
+ def check_default_cache_is_configured(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/database.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from typing import Any, List
2
+
3
+ def check_database_backends(*args: Any, **kwargs: Any) -> List[Any]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/messages.pyi ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Optional
2
+
3
+ DEBUG: int
4
+ INFO: int
5
+ WARNING: int
6
+ ERROR: int
7
+ CRITICAL: int
8
+
9
+ class CheckMessage:
10
+ level: int = ...
11
+ msg: str = ...
12
+ hint: Optional[str] = ...
13
+ obj: Any = ...
14
+ id: Optional[str] = ...
15
+ def __init__(
16
+ self, level: int, msg: str, hint: Optional[str] = ..., obj: Any = ..., id: Optional[str] = ...
17
+ ) -> None: ...
18
+ def is_serious(self, level: int = ...) -> bool: ...
19
+ def is_silenced(self) -> bool: ...
20
+
21
+ class Debug(CheckMessage):
22
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
23
+
24
+ class Info(CheckMessage):
25
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
26
+
27
+ class Warning(CheckMessage):
28
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
29
+
30
+ class Error(CheckMessage):
31
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
32
+
33
+ class Critical(CheckMessage):
34
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/model_checks.pyi ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, List, Iterable, Optional
2
+
3
+ from django.core.checks.messages import Warning
4
+
5
+ from django.apps.config import AppConfig
6
+
7
+ def check_all_models(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[Warning]: ...
8
+ def check_lazy_references(app_configs: Optional[Iterable[AppConfig]] = ..., **kwargs: Any) -> List[Any]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/registry.pyi ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, List, Optional, Set, Union
2
+
3
+ from django.apps.config import AppConfig
4
+ from django.core.checks.messages import CheckMessage
5
+
6
+ class Tags:
7
+ admin: str = ...
8
+ caches: str = ...
9
+ compatibility: str = ...
10
+ database: str = ...
11
+ models: str = ...
12
+ security: str = ...
13
+ signals: str = ...
14
+ templates: str = ...
15
+ translation: str = ...
16
+ urls: str = ...
17
+
18
+ class CheckRegistry:
19
+ registered_checks: Set[Callable] = ...
20
+ deployment_checks: Set[Callable] = ...
21
+ def __init__(self) -> None: ...
22
+ def register(self, check: Optional[Union[Callable, str]] = ..., *tags: Any, **kwargs: Any) -> Callable: ...
23
+ def run_checks(
24
+ self,
25
+ app_configs: Optional[List[AppConfig]] = ...,
26
+ tags: Optional[List[str]] = ...,
27
+ include_deployment_checks: bool = ...,
28
+ ) -> Union[List[CheckMessage], List[int], List[str]]: ...
29
+ def tag_exists(self, tag: str, include_deployment_checks: bool = ...) -> bool: ...
30
+ def tags_available(self, deployment_checks: bool = ...) -> Set[str]: ...
31
+ def get_checks(self, include_deployment_checks: bool = ...) -> List[Callable]: ...
32
+
33
+ registry: Any
34
+ register: Any
35
+ run_checks: Any
36
+ tag_exists: Any
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/__init__.pyi ADDED
File without changes
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/base.pyi ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, List, Iterable, Optional
2
+
3
+ from django.core.checks.messages import Warning
4
+
5
+ from django.apps.config import AppConfig
6
+
7
+ SECRET_KEY_MIN_LENGTH: int
8
+ SECRET_KEY_MIN_UNIQUE_CHARACTERS: int
9
+ W001: Any
10
+ W002: Any
11
+ W004: Any
12
+ W005: Any
13
+ W006: Any
14
+ W007: Any
15
+ W008: Any
16
+ W009: Any
17
+ W018: Any
18
+ W019: Any
19
+ W020: Any
20
+ W021: Any
21
+
22
+ def check_security_middleware(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
23
+ def check_xframe_options_middleware(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
24
+ def check_sts(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
25
+ def check_sts_include_subdomains(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
26
+ def check_sts_preload(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
27
+ def check_content_type_nosniff(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
28
+ def check_xss_filter(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
29
+ def check_ssl_redirect(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
30
+ def check_secret_key(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
31
+ def check_debug(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
32
+ def check_xframe_deny(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
33
+ def check_allowed_hosts(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/csrf.pyi ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, List, Iterable, Optional
2
+
3
+ from django.core.checks.messages import Warning
4
+
5
+ from django.apps.config import AppConfig
6
+
7
+ W003: Any
8
+ W016: Any
9
+
10
+ def check_csrf_middleware(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
11
+ def check_csrf_cookie_secure(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/security/sessions.pyi ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, List, Iterable, Optional
2
+
3
+ from django.core.checks.messages import Warning
4
+
5
+ from django.apps.config import AppConfig
6
+
7
+ def add_session_cookie_message(message: Any): ...
8
+
9
+ W010: Any
10
+ W011: Any
11
+ W012: Any
12
+
13
+ def add_httponly_message(message: Any): ...
14
+
15
+ W013: Any
16
+ W014: Any
17
+ W015: Any
18
+
19
+ def check_session_cookie_secure(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
20
+ def check_session_cookie_httponly(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/templates.pyi ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, List, Iterable, Optional
2
+
3
+ from django.core.checks.messages import Error
4
+
5
+ from django.apps.config import AppConfig
6
+
7
+ E001: Any
8
+ E002: Any
9
+
10
+ def check_setting_app_dirs_loaders(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ...
11
+ def check_string_if_invalid_is_string(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/translation.pyi ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from typing import Any, List
2
+
3
+ from . import Error
4
+
5
+ E001: Error = ...
6
+
7
+ def check_setting_language_code(app_configs: Any, **kwargs: Any) -> List[Error]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/checks/urls.pyi ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, List, Tuple, Union, Iterable, Optional
2
+
3
+ from django.core.checks.messages import CheckMessage, Error, Warning
4
+ from django.urls.resolvers import URLPattern, URLResolver
5
+
6
+ from django.apps.config import AppConfig
7
+
8
+ def check_url_config(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[CheckMessage]: ...
9
+ def check_resolver(resolver: Union[Tuple[str, Callable], URLPattern, URLResolver]) -> List[CheckMessage]: ...
10
+ def check_url_namespaces_unique(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Warning]: ...
11
+ def get_warning_for_invalid_pattern(pattern: Any) -> List[Error]: ...
12
+ def check_url_settings(app_configs: Optional[Iterable[AppConfig]], **kwargs: Any) -> List[Error]: ...
13
+ def E006(name: str) -> Error: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/move.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ def file_move_safe(
2
+ old_file_name: str, new_file_name: str, chunk_size: int = ..., allow_overwrite: bool = ...
3
+ ) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/temp.pyi ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import tempfile
2
+
3
+ NamedTemporaryFile = tempfile.NamedTemporaryFile
4
+
5
+ gettempdir = tempfile.gettempdir
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/uploadedfile.pyi ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Dict, IO, Optional, Union
2
+
3
+ from django.core.files.base import File
4
+
5
+ class UploadedFile(File):
6
+ content_type: Optional[str] = ...
7
+ charset: Optional[str] = ...
8
+ content_type_extra: Optional[Dict[str, str]] = ...
9
+ def __init__(
10
+ self,
11
+ file: Optional[IO] = ...,
12
+ name: Optional[str] = ...,
13
+ content_type: Optional[str] = ...,
14
+ size: Optional[int] = ...,
15
+ charset: Optional[str] = ...,
16
+ content_type_extra: Optional[Dict[str, str]] = ...,
17
+ ) -> None: ...
18
+
19
+ class TemporaryUploadedFile(UploadedFile):
20
+ def __init__(
21
+ self,
22
+ name: Optional[str],
23
+ content_type: Optional[str],
24
+ size: Optional[int],
25
+ charset: Optional[str],
26
+ content_type_extra: Optional[Dict[str, str]] = ...,
27
+ ) -> None: ...
28
+ def temporary_file_path(self) -> str: ...
29
+
30
+ class InMemoryUploadedFile(UploadedFile):
31
+ field_name: Optional[str] = ...
32
+ def __init__(
33
+ self,
34
+ file: IO,
35
+ field_name: Optional[str],
36
+ name: Optional[str],
37
+ content_type: Optional[str],
38
+ size: Optional[int],
39
+ charset: Optional[str],
40
+ content_type_extra: Dict[str, str] = ...,
41
+ ) -> None: ...
42
+
43
+ class SimpleUploadedFile(InMemoryUploadedFile):
44
+ def __init__(self, name: str, content: Optional[Union[bytes, str]], content_type: str = ...) -> None: ...
45
+ @classmethod
46
+ def from_dict(cls: Any, file_dict: Dict[str, Union[str, bytes]]) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/files/uploadhandler.pyi ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Stubs for django.core.files.uploadhandler (Python 3.5)
2
+
3
+ from typing import Any, Dict, IO, Optional, Tuple
4
+ from django.core.files.uploadedfile import UploadedFile, TemporaryUploadedFile
5
+ from django.http.request import HttpRequest, QueryDict
6
+ from django.utils.datastructures import MultiValueDict
7
+
8
+ class UploadFileException(Exception): ...
9
+
10
+ class StopUpload(UploadFileException):
11
+ connection_reset: bool = ...
12
+ def __init__(self, connection_reset: bool = ...) -> None: ...
13
+
14
+ class SkipFile(UploadFileException): ...
15
+ class StopFutureHandlers(UploadFileException): ...
16
+
17
+ class FileUploadHandler:
18
+ chunk_size: int = ...
19
+ file_name: Optional[str] = ...
20
+ content_type: Optional[str] = ...
21
+ content_length: Optional[int] = ...
22
+ charset: Optional[str] = ...
23
+ content_type_extra: Optional[Dict[str, str]] = ...
24
+ request: Optional[HttpRequest] = ...
25
+ field_name: str = ...
26
+ def __init__(self, request: Optional[HttpRequest] = ...) -> None: ...
27
+ def handle_raw_input(
28
+ self,
29
+ input_data: IO[bytes],
30
+ META: Dict[str, str],
31
+ content_length: int,
32
+ boundary: str,
33
+ encoding: Optional[str] = ...,
34
+ ) -> Optional[Tuple[QueryDict, MultiValueDict[str, UploadedFile]]]: ...
35
+ def new_file(
36
+ self,
37
+ field_name: str,
38
+ file_name: str,
39
+ content_type: str,
40
+ content_length: Optional[int],
41
+ charset: Optional[str] = ...,
42
+ content_type_extra: Optional[Dict[str, str]] = ...,
43
+ ) -> None: ...
44
+ def receive_data_chunk(self, raw_data: bytes, start: int) -> Optional[bytes]: ...
45
+ def file_complete(self, file_size: int) -> Optional[UploadedFile]: ...
46
+ def upload_complete(self) -> None: ...
47
+
48
+ class TemporaryFileUploadHandler(FileUploadHandler):
49
+ def __init__(self, request: Optional[HttpRequest] = ...) -> None: ...
50
+ file = ... # type: TemporaryUploadedFile
51
+ def new_file(
52
+ self,
53
+ field_name: str,
54
+ file_name: str,
55
+ content_type: str,
56
+ content_length: Optional[int],
57
+ charset: Optional[str] = ...,
58
+ content_type_extra: Optional[Dict[str, str]] = ...,
59
+ ) -> None: ...
60
+ def receive_data_chunk(self, raw_data: bytes, start: int) -> Optional[bytes]: ...
61
+ def file_complete(self, file_size: int) -> Optional[UploadedFile]: ...
62
+
63
+ class MemoryFileUploadHandler(FileUploadHandler):
64
+ activated = ... # type: bool
65
+ file = ... # type: IO[bytes]
66
+ def handle_raw_input(
67
+ self,
68
+ input_data: IO[bytes],
69
+ META: Dict[str, str],
70
+ content_length: int,
71
+ boundary: str,
72
+ encoding: Optional[str] = ...,
73
+ ) -> Optional[Tuple[QueryDict, MultiValueDict[str, UploadedFile]]]: ...
74
+ def new_file(
75
+ self,
76
+ field_name: str,
77
+ file_name: str,
78
+ content_type: str,
79
+ content_length: Optional[int],
80
+ charset: Optional[str] = ...,
81
+ content_type_extra: Optional[Dict[str, str]] = ...,
82
+ ) -> None: ...
83
+ def receive_data_chunk(self, raw_data: bytes, start: int) -> Optional[bytes]: ...
84
+ def file_complete(self, file_size: int) -> Optional[UploadedFile]: ...
85
+
86
+ def load_handler(path: str, *args: Any, **kwargs: Any) -> FileUploadHandler: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/handlers/__init__.pyi ADDED
File without changes
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/handlers/wsgi.pyi ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from io import BytesIO
2
+ from typing import Any, Callable, Dict, Optional, Union
3
+
4
+ from django.contrib.sessions.backends.base import SessionBase
5
+ from django.core.handlers import base
6
+ from django.http import HttpRequest
7
+ from django.http.response import HttpResponse
8
+
9
+ _Stream = Union[BytesIO, str]
10
+ _WSGIEnviron = Dict[str, Any]
11
+
12
+ class LimitedStream:
13
+ stream: _Stream = ...
14
+ remaining: int = ...
15
+ buffer: bytes = ...
16
+ buf_size: int = ...
17
+ def __init__(self, stream: _Stream, limit: int, buf_size: int = ...) -> None: ...
18
+ def read(self, size: Optional[int] = ...) -> bytes: ...
19
+ def readline(self, size: Optional[int] = ...) -> bytes: ...
20
+
21
+ class WSGIRequest(HttpRequest):
22
+ environ: _WSGIEnviron = ...
23
+ session: SessionBase
24
+ encoding: Any = ...
25
+ def __init__(self, environ: _WSGIEnviron) -> None: ...
26
+
27
+ class WSGIHandler(base.BaseHandler):
28
+ request_class: Any = ...
29
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
30
+ def __call__(self, environ: _WSGIEnviron, start_response: Callable) -> HttpResponse: ...
31
+
32
+ def get_path_info(environ: _WSGIEnviron) -> str: ...
33
+ def get_script_name(environ: _WSGIEnviron) -> str: ...
34
+ def get_bytes_from_wsgi(environ: _WSGIEnviron, key: str, default: str) -> bytes: ...
35
+ def get_str_from_wsgi(environ: _WSGIEnviron, key: str, default: str) -> str: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/__init__.pyi ADDED
File without changes
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/base.pyi ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import types
2
+ from typing import Any, TypeVar, Type, Iterable, Optional
3
+
4
+ from django.core.mail.message import EmailMessage
5
+
6
+ _T = TypeVar("_T", bound="BaseEmailBackend")
7
+
8
+ class BaseEmailBackend:
9
+ def __init__(self, fail_silently: bool = ..., **kwargs: Any) -> None: ...
10
+ def open(self) -> Optional[bool]: ...
11
+ def close(self) -> None: ...
12
+ def __enter__(self: _T) -> _T: ...
13
+ def __exit__(
14
+ self, exc_type: Type[BaseException], exc_value: BaseException, traceback: types.TracebackType
15
+ ) -> None: ...
16
+ def send_messages(self, email_messages: Iterable[EmailMessage]) -> int: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/console.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.core.mail.backends.base import BaseEmailBackend
2
+
3
+ class EmailBackend(BaseEmailBackend): ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/filebased.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.core.mail.backends.base import BaseEmailBackend
2
+
3
+ class EmailBackend(BaseEmailBackend): ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/locmem.pyi ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from django.core.mail.backends.base import BaseEmailBackend
2
+
3
+ class EmailBackend(BaseEmailBackend): ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/backends/smtp.pyi ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import smtplib
2
+ import threading
3
+ from typing import Optional, Union
4
+
5
+ from django.core.mail.backends.base import BaseEmailBackend
6
+
7
+ class EmailBackend(BaseEmailBackend):
8
+ host: str = ...
9
+ port: int = ...
10
+ username: str = ...
11
+ password: str = ...
12
+ use_tls: bool = ...
13
+ use_ssl: bool = ...
14
+ timeout: Optional[int] = ...
15
+ ssl_keyfile: Optional[str] = ...
16
+ ssl_certfile: Optional[str] = ...
17
+ connection: Union[smtplib.SMTP_SSL, smtplib.SMTP, None] = ...
18
+ _lock: threading.RLock = ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/mail/message.pyi ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from email._policybase import Policy # type: ignore
2
+ from email.message import Message
3
+ from email.mime.base import MIMEBase
4
+ from email.mime.message import MIMEMessage
5
+ from email.mime.multipart import MIMEMultipart
6
+ from email.mime.text import MIMEText
7
+ from typing import Any, Dict, List, Optional, Sequence, Tuple, Union, overload
8
+
9
+ utf8_charset: Any
10
+ utf8_charset_qp: Any
11
+ DEFAULT_ATTACHMENT_MIME_TYPE: str
12
+ RFC5322_EMAIL_LINE_LENGTH_LIMIT: int
13
+
14
+ class BadHeaderError(ValueError): ...
15
+
16
+ ADDRESS_HEADERS: Any
17
+
18
+ def forbid_multi_line_headers(name: str, val: str, encoding: str) -> Tuple[str, str]: ...
19
+ def split_addr(addr: str, encoding: str) -> Tuple[str, str]: ...
20
+ def sanitize_address(addr: Union[Tuple[str, str], str], encoding: str) -> str: ...
21
+
22
+ class MIMEMixin: ...
23
+
24
+ class SafeMIMEMessage(MIMEMixin, MIMEMessage):
25
+ defects: List[Any]
26
+ epilogue: None
27
+ policy: Policy
28
+ preamble: None
29
+
30
+ class SafeMIMEText(MIMEMixin, MIMEText):
31
+ defects: List[Any]
32
+ epilogue: None
33
+ policy: Policy
34
+ preamble: None
35
+ encoding: str = ...
36
+ def __init__(self, _text: str, _subtype: str = ..., _charset: str = ...) -> None: ...
37
+
38
+ class SafeMIMEMultipart(MIMEMixin, MIMEMultipart):
39
+ defects: List[Any]
40
+ epilogue: None
41
+ policy: Policy
42
+ preamble: None
43
+ encoding: str = ...
44
+ def __init__(
45
+ self, _subtype: str = ..., boundary: None = ..., _subparts: None = ..., encoding: str = ..., **_params: Any
46
+ ) -> None: ...
47
+
48
+ _AttachmentContent = Union[bytes, EmailMessage, Message, SafeMIMEText, str]
49
+ _AttachmentTuple = Union[
50
+ Tuple[str, _AttachmentContent], Tuple[Optional[str], _AttachmentContent, str], Tuple[str, _AttachmentContent, None]
51
+ ]
52
+
53
+ class EmailMessage:
54
+ content_subtype: str = ...
55
+ mixed_subtype: str = ...
56
+ encoding: Any = ...
57
+ to: List[str] = ...
58
+ cc: List[Any] = ...
59
+ bcc: List[Any] = ...
60
+ reply_to: List[Any] = ...
61
+ from_email: str = ...
62
+ subject: str = ...
63
+ body: str = ...
64
+ attachments: List[Any] = ...
65
+ extra_headers: Dict[Any, Any] = ...
66
+ connection: Any = ...
67
+ def __init__(
68
+ self,
69
+ subject: str = ...,
70
+ body: Optional[str] = ...,
71
+ from_email: Optional[str] = ...,
72
+ to: Optional[Sequence[str]] = ...,
73
+ bcc: Optional[Sequence[str]] = ...,
74
+ connection: Optional[Any] = ...,
75
+ attachments: Optional[Sequence[Union[MIMEBase, _AttachmentTuple]]] = ...,
76
+ headers: Optional[Dict[str, str]] = ...,
77
+ cc: Optional[Sequence[str]] = ...,
78
+ reply_to: Optional[Sequence[str]] = ...,
79
+ ) -> None: ...
80
+ def get_connection(self, fail_silently: bool = ...) -> Any: ...
81
+ # TODO: when typeshed gets more types for email.Message, move it to MIMEMessage, now it has too many false-positives
82
+ def message(self) -> Any: ...
83
+ def recipients(self) -> List[str]: ...
84
+ def send(self, fail_silently: bool = ...) -> int: ...
85
+ @overload
86
+ def attach(self, filename: MIMEText = ...) -> None: ...
87
+ @overload
88
+ def attach(self, filename: None = ..., content: _AttachmentContent = ..., mimetype: str = ...) -> None: ...
89
+ @overload
90
+ def attach(self, filename: str = ..., content: _AttachmentContent = ..., mimetype: Optional[str] = ...) -> None: ...
91
+ def attach_file(self, path: str, mimetype: Optional[str] = ...) -> None: ...
92
+
93
+ class EmailMultiAlternatives(EmailMessage):
94
+ alternative_subtype: str = ...
95
+ alternatives: Sequence[Tuple[_AttachmentContent, str]] = ...
96
+ def __init__(
97
+ self,
98
+ subject: str = ...,
99
+ body: str = ...,
100
+ from_email: Optional[str] = ...,
101
+ to: Optional[Sequence[str]] = ...,
102
+ bcc: Optional[Sequence[str]] = ...,
103
+ connection: Optional[Any] = ...,
104
+ attachments: Optional[Sequence[Union[MIMEBase, _AttachmentTuple]]] = ...,
105
+ headers: Optional[Dict[str, str]] = ...,
106
+ alternatives: Optional[Sequence[Tuple[_AttachmentContent, str]]] = ...,
107
+ cc: Optional[Sequence[str]] = ...,
108
+ reply_to: Optional[Sequence[str]] = ...,
109
+ ) -> None: ...
110
+ def attach_alternative(self, content: _AttachmentContent, mimetype: str) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/base.pyi ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from argparse import ArgumentParser, HelpFormatter, Namespace
2
+ from io import StringIO, TextIOBase, TextIOWrapper
3
+ from typing import Any, Callable, List, Optional, Union, Tuple
4
+
5
+ from django.apps.config import AppConfig
6
+ from django.core.management.color import Style
7
+
8
+ class CommandError(Exception): ...
9
+ class SystemCheckError(CommandError): ...
10
+
11
+ class CommandParser(ArgumentParser):
12
+ missing_args_message: None = ...
13
+ called_from_command_line: bool = ...
14
+ def __init__(self, **kwargs: Any) -> None: ...
15
+ def error(self, message: str) -> Any: ...
16
+
17
+ def handle_default_options(options: Namespace) -> None: ...
18
+ def no_translations(handle_func: Callable) -> Callable: ...
19
+
20
+ class DjangoHelpFormatter(HelpFormatter): ...
21
+
22
+ class OutputWrapper(TextIOBase):
23
+ @property
24
+ def style_func(self): ...
25
+ @style_func.setter
26
+ def style_func(self, style_func: Callable[[str], str]): ...
27
+ ending: str = ...
28
+ def __init__(
29
+ self, out: Union[StringIO, TextIOWrapper], style_func: Optional[Callable[[str], str]] = ..., ending: str = ...
30
+ ) -> None: ...
31
+ def __getattr__(self, name: str) -> Callable: ...
32
+ def isatty(self) -> bool: ...
33
+ def write( # type: ignore[override]
34
+ self, msg: str, style_func: Optional[Callable[[str], str]] = ..., ending: Optional[str] = ...
35
+ ) -> None: ...
36
+
37
+ class BaseCommand:
38
+ help: str = ...
39
+ output_transaction: bool = ...
40
+ requires_migrations_checks: bool = ...
41
+ requires_system_checks: bool = ...
42
+ base_stealth_options: Tuple[str, ...] = ...
43
+ stealth_options: Tuple[str, ...] = ...
44
+ stdout: OutputWrapper = ...
45
+ stderr: OutputWrapper = ...
46
+ style: Style = ...
47
+ def __init__(
48
+ self,
49
+ stdout: Optional[StringIO] = ...,
50
+ stderr: Optional[StringIO] = ...,
51
+ no_color: bool = ...,
52
+ force_color: bool = ...,
53
+ ) -> None: ...
54
+ def get_version(self) -> str: ...
55
+ def create_parser(self, prog_name: str, subcommand: str, **kwargs: Any) -> CommandParser: ...
56
+ def add_arguments(self, parser: CommandParser) -> None: ...
57
+ def print_help(self, prog_name: str, subcommand: str) -> None: ...
58
+ def run_from_argv(self, argv: List[str]) -> None: ...
59
+ def execute(self, *args: Any, **options: Any) -> Any: ...
60
+ def check(
61
+ self,
62
+ app_configs: Optional[List[AppConfig]] = ...,
63
+ tags: Optional[List[str]] = ...,
64
+ display_num_errors: bool = ...,
65
+ include_deployment_checks: bool = ...,
66
+ fail_level: int = ...,
67
+ ) -> None: ...
68
+ def check_migrations(self) -> None: ...
69
+ def handle(self, *args: Any, **options: Any) -> Optional[str]: ...
70
+
71
+ class AppCommand(BaseCommand):
72
+ missing_args_message: str = ...
73
+ def handle_app_config(self, app_config: Any, **options: Any) -> None: ...
74
+
75
+ class LabelCommand(BaseCommand):
76
+ label: str = ...
77
+ missing_args_message: Any = ...
78
+ def handle_label(self, label: Any, **options: Any) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/color.pyi ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def supports_color() -> bool: ...
2
+
3
+ class Style:
4
+ def ERROR(self, text: str) -> str: ...
5
+ def SUCCESS(self, text: str) -> str: ...
6
+ def WARNING(self, text: str) -> str: ...
7
+ def NOTICE(self, text: str) -> str: ...
8
+ def SQL_FIELD(self, text: str) -> str: ...
9
+ def SQL_COLTYPE(self, text: str) -> str: ...
10
+ def SQL_KEYWORD(self, text: str) -> str: ...
11
+ def SQL_TABLE(self, text: str) -> str: ...
12
+ def HTTP_INFO(self, text: str) -> str: ...
13
+ def HTTP_SUCCESS(self, text: str) -> str: ...
14
+ def HTTP_REDIRECT(self, text: str) -> str: ...
15
+ def HTTP_NOT_MODIFIED(self, text: str) -> str: ...
16
+ def HTTP_BAD_REQUEST(self, text: str) -> str: ...
17
+ def HTTP_NOT_FOUND(self, text: str) -> str: ...
18
+ def HTTP_SERVER_ERROR(self, text: str) -> str: ...
19
+ def MIGRATE_HEADING(self, text: str) -> str: ...
20
+ def MIGRATE_LABEL(self, text: str) -> str: ...
21
+ def ERROR_OUTPUT(self, text: str) -> str: ...
22
+
23
+ def make_style(config_string: str = ...) -> Style: ...
24
+ def no_style() -> Style: ...
25
+ def color_style() -> Style: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/commands/__init__.pyi ADDED
File without changes
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/commands/dumpdata.pyi ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from django.core.management.base import BaseCommand
2
+
3
+ class ProxyModelWarning(Warning): ...
4
+ class Command(BaseCommand): ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/commands/makemessages.pyi ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Optional, Pattern, Type
2
+
3
+ from django.core.management.base import BaseCommand
4
+
5
+ plural_forms_re: Pattern = ...
6
+ STATUS_OK: int = ...
7
+ NO_LOCALE_DIR: Any = ...
8
+
9
+ def check_programs(*programs: str) -> None: ...
10
+
11
+ class TranslatableFile:
12
+ dirpath: str
13
+ file_name: str
14
+ locale_dir: str
15
+ def __init__(self, dirpath: str, file_name: str, locale_dir: Optional[str]) -> None: ...
16
+
17
+ class BuildFile:
18
+ """
19
+ Represent the state of a translatable file during the build process.
20
+ """
21
+
22
+ def __init__(self, command: BaseCommand, domain: str, translatable: TranslatableFile) -> None: ...
23
+ @property
24
+ def is_templatized(self) -> bool: ...
25
+ @property
26
+ def path(self) -> str: ...
27
+ @property
28
+ def work_path(self) -> str: ...
29
+ def preprocess(self) -> None: ...
30
+ def postprocess_messages(self, msgs: str) -> str: ...
31
+ def cleanup(self) -> None: ...
32
+
33
+ def normalize_eols(raw_contents: str) -> str: ...
34
+ def write_pot_file(potfile: str, msgs: str) -> None: ...
35
+
36
+ class Command(BaseCommand):
37
+ translatable_file_class: Type[TranslatableFile] = ...
38
+ build_file_class: Type[BuildFile] = ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/sql.pyi ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, List
2
+
3
+ from django.core.management.color import Style
4
+
5
+ def sql_flush(
6
+ style: Style, connection: Any, only_django: bool = ..., reset_sequences: bool = ..., allow_cascade: bool = ...
7
+ ) -> List[str]: ...
8
+ def emit_pre_migrate_signal(verbosity: int, interactive: bool, db: str, **kwargs: Any) -> None: ...
9
+ def emit_post_migrate_signal(verbosity: int, interactive: bool, db: str, **kwargs: Any) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/templates.pyi ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any
2
+
3
+ from django.core.management.base import BaseCommand
4
+
5
+ class TemplateCommand(BaseCommand):
6
+ url_schemes: Any = ...
7
+ rewrite_template_suffixes: Any = ...
8
+ app_or_project: Any = ...
9
+ paths_to_remove: Any = ...
10
+ verbosity: Any = ...
11
+ def handle_template(self, template: Any, subdir: Any): ...
12
+ def validate_name(self, name: Any, app_or_project: Any) -> None: ...
13
+ def download(self, url: Any): ...
14
+ def splitext(self, the_path: Any): ...
15
+ def extract(self, filename: Any): ...
16
+ def is_url(self, template: Any): ...
17
+ def make_writeable(self, filename: Any) -> None: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/management/utils.pyi ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional, Set, Tuple, Type
2
+
3
+ from django.apps.config import AppConfig
4
+ from django.db.models.base import Model
5
+
6
+ def popen_wrapper(args: List[str], stdout_encoding: str = ...) -> Tuple[str, str, int]: ...
7
+ def handle_extensions(extensions: List[str]) -> Set[str]: ...
8
+ def find_command(cmd: str, path: Optional[str] = ..., pathext: Optional[str] = ...) -> Optional[str]: ...
9
+ def get_random_secret_key(): ...
10
+ def parse_apps_and_model_labels(labels: List[str]) -> Tuple[Set[Type[Model]], Set[AppConfig]]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/serializers/python.pyi ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections import OrderedDict
2
+ from typing import Any, Dict, Iterator, List, Optional
3
+
4
+ from django.core.serializers.base import DeserializedObject
5
+ from django.db.models.base import Model
6
+
7
+ from django.core.serializers import base
8
+
9
+ class Serializer(base.Serializer):
10
+ objects: List[Any] = ...
11
+ def get_dump_object(self, obj: Model) -> OrderedDict: ...
12
+
13
+ def Deserializer(
14
+ object_list: List[Dict[str, Any]], *, using: Optional[str] = ..., ignorenonexistent: bool = ..., **options: Any
15
+ ) -> Iterator[DeserializedObject]: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/core/servers/basehttp.pyi ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import socketserver
2
+ from io import BytesIO
3
+ from typing import Any, Dict
4
+ from wsgiref import simple_server
5
+
6
+ from django.core.handlers.wsgi import WSGIRequest, WSGIHandler
7
+ from django.core.wsgi import get_wsgi_application as get_wsgi_application # noqa: F401
8
+
9
+ class WSGIServer(simple_server.WSGIServer):
10
+ request_queue_size: int = ...
11
+ address_family: Any = ...
12
+ allow_reuse_address: Any = ...
13
+ def __init__(self, *args: Any, ipv6: bool = ..., allow_reuse_address: bool = ..., **kwargs: Any) -> None: ...
14
+ def handle_error(self, request: Any, client_address: Any) -> None: ...
15
+
16
+ class ThreadedWSGIServer(socketserver.ThreadingMixIn, WSGIServer): ...
17
+
18
+ class ServerHandler(simple_server.ServerHandler):
19
+ def handle_error(self) -> None: ...
20
+
21
+ class WSGIRequestHandler(simple_server.WSGIRequestHandler):
22
+ close_connection: bool
23
+ connection: WSGIRequest
24
+ request: WSGIRequest
25
+ rfile: BytesIO
26
+ wfile: BytesIO
27
+ protocol_version: str = ...
28
+ def address_string(self) -> str: ...
29
+ def log_message(self, format: str, *args: Any) -> None: ...
30
+ def get_environ(self) -> Dict[str, str]: ...
31
+ raw_requestline: bytes = ...
32
+ requestline: str = ...
33
+ request_version: str = ...
34
+ def handle(self) -> None: ...
35
+
36
+ def get_internal_wsgi_application() -> WSGIHandler: ...
mantis_evalkit/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
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/base.pyi ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Dict, List, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, Collection, ClassVar
2
+
3
+ from django.core.checks.messages import CheckMessage
4
+ from django.core.exceptions import ValidationError
5
+ from django.db.models.manager import BaseManager
6
+ from django.db.models.options import Options
7
+
8
+ _Self = TypeVar("_Self", bound="Model")
9
+
10
+ class ModelStateFieldsCacheDescriptor: ...
11
+
12
+ class ModelState:
13
+ db: Optional[str] = ...
14
+ adding: bool = ...
15
+ fields_cache: ModelStateFieldsCacheDescriptor = ...
16
+
17
+ class ModelBase(type): ...
18
+
19
+ class Model(metaclass=ModelBase):
20
+ class DoesNotExist(Exception): ...
21
+ class MultipleObjectsReturned(Exception): ...
22
+ class Meta: ...
23
+ _meta: Options[Any]
24
+ _default_manager: BaseManager[Model]
25
+ objects: ClassVar[BaseManager[Any]]
26
+ pk: Any = ...
27
+ _state: ModelState
28
+ def __init__(self: _Self, *args, **kwargs) -> None: ...
29
+ @classmethod
30
+ def add_to_class(cls, name: str, value: Any): ...
31
+ @classmethod
32
+ def from_db(cls, db: Optional[str], field_names: Collection[str], values: Collection[Any]) -> _Self: ...
33
+ def delete(self, using: Any = ..., keep_parents: bool = ...) -> Tuple[int, Dict[str, int]]: ...
34
+ def full_clean(self, exclude: Optional[Collection[str]] = ..., validate_unique: bool = ...) -> None: ...
35
+ def clean(self) -> None: ...
36
+ def clean_fields(self, exclude: Optional[Collection[str]] = ...) -> None: ...
37
+ def validate_unique(self, exclude: Optional[Collection[str]] = ...) -> None: ...
38
+ def unique_error_message(
39
+ self, model_class: Type[_Self], unique_check: Collection[Union[Callable, str]]
40
+ ) -> ValidationError: ...
41
+ def save(
42
+ self,
43
+ force_insert: bool = ...,
44
+ force_update: bool = ...,
45
+ using: Optional[str] = ...,
46
+ update_fields: Optional[Union[Sequence[str], str]] = ...,
47
+ ) -> None: ...
48
+ def save_base(
49
+ self,
50
+ raw: bool = ...,
51
+ force_insert: bool = ...,
52
+ force_update: bool = ...,
53
+ using: Optional[str] = ...,
54
+ update_fields: Optional[Union[Sequence[str], str]] = ...,
55
+ ): ...
56
+ def refresh_from_db(self: _Self, using: Optional[str] = ..., fields: Optional[List[str]] = ...) -> None: ...
57
+ def get_deferred_fields(self) -> Set[str]: ...
58
+ @classmethod
59
+ def check(cls, **kwargs: Any) -> List[CheckMessage]: ...
60
+ def __getstate__(self) -> dict: ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/deletion.pyi ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Any, Callable, Iterable, Optional, Union, Collection, Type
2
+
3
+ from django.db.models.base import Model
4
+
5
+ from django.db import IntegrityError
6
+ from django.db.models.fields import Field
7
+ from django.db.models.options import Options
8
+
9
+ def CASCADE(collector, field, sub_objs, using): ...
10
+ def SET_NULL(collector, field, sub_objs, using): ...
11
+ def SET_DEFAULT(collector, field, sub_objs, using): ...
12
+ def DO_NOTHING(collector, field, sub_objs, using): ...
13
+ def PROTECT(collector, field, sub_objs, using): ...
14
+ def RESTRICT(collector, field, sub_objs, using): ...
15
+ def SET(value: Any) -> Callable: ...
16
+ def get_candidate_relations_to_delete(opts: Options) -> Iterable[Field]: ...
17
+
18
+ class ProtectedError(IntegrityError): ...
19
+ class RestrictedError(IntegrityError): ...
20
+
21
+ class Collector:
22
+ def __init__(self, using: str) -> None: ...
23
+ def collect(
24
+ self,
25
+ objs: Collection[Optional[Model]],
26
+ source: Optional[Type[Model]] = ...,
27
+ source_attr: Optional[str] = ...,
28
+ **kwargs: Any
29
+ ) -> None: ...
30
+ def can_fast_delete(self, objs: Union[Model, Iterable[Model]], from_field: Optional[Field] = ...) -> bool: ...
mantis_evalkit/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): ...
mantis_evalkit/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/expressions.pyi ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datetime import datetime, timedelta
2
+ from typing import Any, Callable, Dict, Iterator, List, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, Iterable
3
+
4
+ from django.db.models.lookups import Lookup
5
+ from django.db.models.sql.compiler import SQLCompiler
6
+
7
+ from django.db.models import Q, QuerySet
8
+ from django.db.models.fields import Field
9
+ from django.db.models.query import _BaseQuerySet
10
+
11
+ _OutputField = Union[Field, str]
12
+
13
+ class SQLiteNumericMixin:
14
+ def as_sqlite(self, compiler: SQLCompiler, connection: Any, **extra_context: Any) -> Tuple[str, List[float]]: ...
15
+
16
+ _Self = TypeVar("_Self")
17
+
18
+ class Combinable:
19
+ ADD: str = ...
20
+ SUB: str = ...
21
+ MUL: str = ...
22
+ DIV: str = ...
23
+ POW: str = ...
24
+ MOD: str = ...
25
+ BITAND: str = ...
26
+ BITOR: str = ...
27
+ BITLEFTSHIFT: str = ...
28
+ BITRIGHTSHIFT: str = ...
29
+ def __neg__(self: _Self) -> _Self: ...
30
+ def __add__(self: _Self, other: Optional[Union[timedelta, Combinable, float, str]]) -> _Self: ...
31
+ def __sub__(self: _Self, other: Union[timedelta, Combinable, float]) -> _Self: ...
32
+ def __mul__(self: _Self, other: Union[timedelta, Combinable, float]) -> _Self: ...
33
+ def __truediv__(self: _Self, other: Union[Combinable, float]) -> _Self: ...
34
+ def __itruediv__(self: _Self, other: Union[Combinable, float]) -> _Self: ...
35
+ def __mod__(self: _Self, other: Union[int, Combinable]) -> _Self: ...
36
+ def __pow__(self: _Self, other: Union[float, Combinable]) -> _Self: ...
37
+ def __and__(self: _Self, other: Combinable) -> _Self: ...
38
+ def bitand(self: _Self, other: int) -> _Self: ...
39
+ def bitleftshift(self: _Self, other: int) -> _Self: ...
40
+ def bitrightshift(self: _Self, other: int) -> _Self: ...
41
+ def __or__(self: _Self, other: Combinable) -> _Self: ...
42
+ def bitor(self: _Self, other: int) -> _Self: ...
43
+ def __radd__(self, other: Optional[Union[datetime, float, Combinable]]) -> Combinable: ...
44
+ def __rsub__(self, other: Union[float, Combinable]) -> Combinable: ...
45
+ def __rmul__(self, other: Union[float, Combinable]) -> Combinable: ...
46
+ def __rtruediv__(self, other: Union[float, Combinable]) -> Combinable: ...
47
+ def __rmod__(self, other: Union[int, Combinable]) -> Combinable: ...
48
+ def __rpow__(self, other: Union[float, Combinable]) -> Combinable: ...
49
+ def __rand__(self, other: Any) -> Combinable: ...
50
+ def __ror__(self, other: Any) -> Combinable: ...
51
+
52
+ class BaseExpression:
53
+ is_summary: bool = ...
54
+ filterable: bool = ...
55
+ window_compatible: bool = ...
56
+ def __init__(self, output_field: Optional[_OutputField] = ...) -> None: ...
57
+ def get_db_converters(self, connection: Any) -> List[Callable]: ...
58
+ def get_source_expressions(self) -> List[Any]: ...
59
+ def set_source_expressions(self, exprs: Sequence[Combinable]) -> None: ...
60
+ @property
61
+ def contains_aggregate(self) -> bool: ...
62
+ @property
63
+ def contains_over_clause(self) -> bool: ...
64
+ @property
65
+ def contains_column_references(self) -> bool: ...
66
+ def resolve_expression(
67
+ self: _Self,
68
+ query: Any = ...,
69
+ allow_joins: bool = ...,
70
+ reuse: Optional[Set[str]] = ...,
71
+ summarize: bool = ...,
72
+ for_save: bool = ...,
73
+ ) -> _Self: ...
74
+ @property
75
+ def field(self) -> Field: ...
76
+ @property
77
+ def output_field(self) -> Field: ...
78
+ @property
79
+ def convert_value(self) -> Callable: ...
80
+ def get_lookup(self, lookup: str) -> Optional[Type[Lookup]]: ...
81
+ def get_transform(self, name: str) -> Optional[Type[Expression]]: ...
82
+ def relabeled_clone(self, change_map: Dict[Optional[str], str]) -> Expression: ...
83
+ def copy(self) -> BaseExpression: ...
84
+ def get_group_by_cols(self: _Self) -> List[_Self]: ...
85
+ def get_source_fields(self) -> List[Optional[Field]]: ...
86
+ def asc(self, **kwargs: Any) -> Expression: ...
87
+ def desc(self, **kwargs: Any) -> Expression: ...
88
+ def reverse_ordering(self): ...
89
+ def flatten(self) -> Iterator[Expression]: ...
90
+ def deconstruct(self) -> Any: ...
91
+ def as_sqlite(self, compiler: SQLCompiler, connection: Any) -> Any: ...
92
+ def as_sql(self, compiler: SQLCompiler, connection: Any, **extra_context: Any) -> Any: ...
93
+ def as_mysql(self, compiler: Any, connection: Any) -> Any: ...
94
+ def as_postgresql(self, compiler: Any, connection: Any) -> Any: ...
95
+ def as_oracle(self, compiler: Any, connection: Any): ...
96
+
97
+ class Expression(BaseExpression, Combinable): ...
98
+
99
+ class CombinedExpression(SQLiteNumericMixin, Expression):
100
+ connector: Any = ...
101
+ lhs: Any = ...
102
+ rhs: Any = ...
103
+ def __init__(
104
+ self, lhs: Combinable, connector: str, rhs: Combinable, output_field: Optional[_OutputField] = ...
105
+ ) -> None: ...
106
+
107
+ class F(Combinable):
108
+ name: str
109
+ def __init__(self, name: str): ...
110
+ def resolve_expression(
111
+ self: _Self,
112
+ query: Any = ...,
113
+ allow_joins: bool = ...,
114
+ reuse: Optional[Set[str]] = ...,
115
+ summarize: bool = ...,
116
+ for_save: bool = ...,
117
+ ) -> _Self: ...
118
+ def asc(self, **kwargs) -> OrderBy: ...
119
+ def desc(self, **kwargs) -> OrderBy: ...
120
+ def deconstruct(self) -> Any: ...
121
+
122
+ class OuterRef(F):
123
+ def __init__(self, name: Union[str, OuterRef]): ...
124
+
125
+ class Subquery(Expression):
126
+ template: str = ...
127
+ queryset: QuerySet = ...
128
+ extra: Dict[Any, Any] = ...
129
+ def __init__(self, queryset: _BaseQuerySet, output_field: Optional[_OutputField] = ..., **extra: Any) -> None: ...
130
+
131
+ class Exists(Subquery):
132
+ negated: bool = ...
133
+ def __init__(self, *args: Any, negated: bool = ..., **kwargs: Any) -> None: ...
134
+ def __invert__(self) -> Exists: ...
135
+
136
+ class OrderBy(BaseExpression):
137
+ template: str = ...
138
+ nulls_first: bool = ...
139
+ nulls_last: bool = ...
140
+ descending: bool = ...
141
+ expression: Expression = ...
142
+ def __init__(
143
+ self, expression: Combinable, descending: bool = ..., nulls_first: bool = ..., nulls_last: bool = ...
144
+ ) -> None: ...
145
+
146
+ class Value(Expression):
147
+ value: Any = ...
148
+ def __init__(self, value: Any, output_field: Optional[_OutputField] = ...) -> None: ...
149
+
150
+ class RawSQL(Expression):
151
+ params: List[Any]
152
+ sql: str
153
+ def __init__(self, sql: str, params: Sequence[Any], output_field: Optional[_OutputField] = ...) -> None: ...
154
+
155
+ class Func(SQLiteNumericMixin, Expression):
156
+ function: str = ...
157
+ name: str = ...
158
+ template: str = ...
159
+ arg_joiner: str = ...
160
+ arity: int = ...
161
+ source_expressions: List[Combinable] = ...
162
+ extra: Dict[Any, Any] = ...
163
+ def __init__(self, *expressions: Any, output_field: Optional[_OutputField] = ..., **extra: Any) -> None: ...
164
+
165
+ class When(Expression):
166
+ template: str = ...
167
+ condition: Any = ...
168
+ result: Any = ...
169
+ def __init__(self, condition: Any = ..., then: Any = ..., **lookups: Any) -> None: ...
170
+
171
+ class Case(Expression):
172
+ template: str = ...
173
+ case_joiner: str = ...
174
+ cases: Any = ...
175
+ default: Any = ...
176
+ extra: Any = ...
177
+ def __init__(
178
+ self, *cases: Any, default: Optional[Any] = ..., output_field: Optional[_OutputField] = ..., **extra: Any
179
+ ) -> None: ...
180
+
181
+ class ExpressionWrapper(Expression):
182
+ def __init__(self, expression: Union[Q, Combinable], output_field: _OutputField): ...
183
+
184
+ class Col(Expression):
185
+ def __init__(self, alias: str, target: str, output_field: Optional[_OutputField] = ...): ...
186
+
187
+ class SimpleCol(Expression):
188
+ contains_column_references: bool = ...
189
+ def __init__(self, target: Field, output_field: Optional[_OutputField] = ...): ...
190
+
191
+ class Ref(Expression):
192
+ def __init__(self, refs: str, source: Expression): ...
193
+
194
+ class ExpressionList(Func):
195
+ def __init__(self, *expressions: Union[BaseExpression, Combinable], **extra: Any) -> None: ...
196
+
197
+ class Random(Expression): ...
198
+
199
+ class Window(Expression):
200
+ template: str = ...
201
+ contains_aggregate: bool = ...
202
+ contains_over_clause: bool = ...
203
+ def __init__(
204
+ self,
205
+ expression: BaseExpression,
206
+ partition_by: Optional[Union[str, Iterable[Union[BaseExpression, F]], F, BaseExpression]] = ...,
207
+ order_by: Optional[Union[Sequence[Union[BaseExpression, F]], Union[BaseExpression, F]]] = ...,
208
+ frame: Optional[WindowFrame] = ...,
209
+ output_field: Optional[_OutputField] = ...,
210
+ ) -> None: ...
211
+
212
+ class WindowFrame(Expression):
213
+ template: str = ...
214
+ frame_type: str = ...
215
+ def __init__(self, start: Optional[int] = ..., end: Optional[int] = ...) -> None: ...
216
+ def window_frame_start_end(self, connection: Any, start: Optional[int], end: Optional[int]) -> Tuple[int, int]: ...
217
+
218
+ class RowRange(WindowFrame): ...
219
+ class ValueRange(WindowFrame): ...