content
stringlengths 1
103k
⌀ | path
stringlengths 8
216
| filename
stringlengths 2
179
| language
stringclasses 15
values | size_bytes
int64 2
189k
| quality_score
float64 0.5
0.95
| complexity
float64 0
1
| documentation_ratio
float64 0
1
| repository
stringclasses 5
values | stars
int64 0
1k
| created_date
stringdate 2023-07-10 19:21:08
2025-07-09 19:11:45
| license
stringclasses 4
values | is_test
bool 2
classes | file_hash
stringlengths 32
32
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
from pathlib import Path\nfrom typing import Any, Optional\n\nfrom django.utils.autoreload import BaseReloader\n\ndef watch_for_translation_changes(sender: BaseReloader, **kwargs: Any) -> None: ...\ndef translation_file_changed(sender: Optional[BaseReloader], file_path: Path, **kwargs: Any) -> bool: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\utils\translation\reloader.pyi
|
reloader.pyi
|
Other
| 299 | 0.85 | 0.285714 | 0 |
react-lib
| 278 |
2024-01-02T06:36:52.731317
|
Apache-2.0
| false |
b85a7835258dde998293e6d5410231c8
|
from typing import Any\n\ndot_re: Any\n\ndef blankout(src: str, char: str) -> str: ...\n\ncontext_re: Any\ninline_re: Any\nblock_re: Any\nendblock_re: Any\nplural_re: Any\nconstant_re: Any\n\ndef templatize(src: str, origin: str = ...) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\utils\translation\template.pyi
|
template.pyi
|
Other
| 235 | 0.85 | 0.142857 | 0 |
awesome-app
| 122 |
2024-12-17T21:46:22.850564
|
MIT
| false |
d0e034e6ada3e6d620a6c947a0aa47a9
|
from typing import Any\n\ndef gettext(message: Any): ...\n\ngettext_noop = gettext\ngettext_lazy = gettext\n_ = gettext\n\ndef ngettext(singular: str, plural: str, number: int) -> str: ...\n\nngettext_lazy = ngettext\n\ndef pgettext(context: Any, message: Any): ...\ndef npgettext(context: Any, singular: Any, plural: Any, number: Any): ...\ndef activate(x: Any): ...\ndef deactivate(): ...\n\ndeactivate_all = deactivate\n\ndef get_language(): ...\ndef get_language_bidi() -> bool: ...\ndef check_for_language(x: str) -> bool: ...\ndef get_language_from_request(request: None, check_path: bool = ...) -> str: ...\ndef get_language_from_path(request: str) -> None: ...\ndef get_supported_language_variant(lang_code: str, strict: bool = ...) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\utils\translation\trans_null.pyi
|
trans_null.pyi
|
Other
| 729 | 0.85 | 0.48 | 0 |
node-utils
| 724 |
2025-03-22T19:03:36.040488
|
GPL-3.0
| false |
c6dc30e210c9ef20bc24263d8d481430
|
import gettext as gettext_module\nfrom collections import OrderedDict\nfrom gettext import NullTranslations\nfrom typing import Any, List, Optional, Tuple, Callable\n\nfrom django.core.handlers.wsgi import WSGIRequest\n\nCONTEXT_SEPARATOR: str\naccept_language_re: Any\nlanguage_code_re: Any\nlanguage_code_prefix_re: Any\n\ndef reset_cache(**kwargs: Any) -> None: ...\n\nclass DjangoTranslation(gettext_module.GNUTranslations):\n domain: str = ...\n plural: Callable = ...\n def __init__(self, language: str, domain: Optional[str] = ..., localedirs: Optional[List[str]] = ...) -> None: ...\n def merge(self, other: NullTranslations) -> None: ...\n def language(self): ...\n def to_language(self) -> str: ...\n\ndef translation(language: str) -> DjangoTranslation: ...\ndef activate(language: str) -> None: ...\ndef deactivate() -> None: ...\ndef deactivate_all() -> None: ...\ndef get_language() -> Optional[str]: ...\ndef get_language_bidi() -> bool: ...\ndef catalog(): ...\ndef gettext(message: str) -> str: ...\ndef pgettext(context: str, message: str) -> str: ...\ndef gettext_noop(message: str) -> str: ...\ndef do_ntranslate(singular: str, plural: str, number: float, translation_function: str) -> str: ...\ndef ngettext(singular: str, plural: str, number: float) -> str: ...\ndef npgettext(context: str, singular: str, plural: str, number: int) -> str: ...\ndef all_locale_paths() -> List[str]: ...\ndef check_for_language(lang_code: Optional[str]) -> bool: ...\ndef get_languages() -> OrderedDict: ...\ndef get_supported_language_variant(lang_code: Optional[str], strict: bool = ...) -> str: ...\ndef get_language_from_path(path: str, strict: bool = ...) -> Optional[str]: ...\ndef get_language_from_request(request: WSGIRequest, check_path: bool = ...) -> str: ...\ndef parse_accept_lang_header(lang_string: str) -> Tuple: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\utils\translation\trans_real.pyi
|
trans_real.pyi
|
Other
| 1,815 | 0.85 | 0.619048 | 0 |
node-utils
| 430 |
2024-01-04T11:56:17.684627
|
GPL-3.0
| false |
1e040da90e5873b2410860980d8a1268
|
import functools\nfrom contextlib import ContextDecorator\nfrom typing import Any, Optional, Callable\n\nfrom django.core.handlers.wsgi import WSGIRequest\n\nLANGUAGE_SESSION_KEY: str\n\nclass TranslatorCommentWarning(SyntaxWarning): ...\n\nclass Trans:\n activate: Callable\n check_for_language: functools._lru_cache_wrapper\n deactivate: Callable\n deactivate_all: Callable\n get_language: Callable\n get_language_bidi: Callable\n get_language_from_path: Callable\n get_language_from_request: Callable\n gettext: Callable\n gettext_noop: Callable\n ngettext: Callable\n npgettext: Callable\n pgettext: Callable\n def __getattr__(self, real_name: Any): ...\n\ndef gettext_noop(message: str) -> str: ...\n\nugettext_noop = gettext_noop\n\ndef gettext(message: str) -> str: ...\n\nugettext = gettext\n\ndef ngettext(singular: str, plural: str, number: float) -> str: ...\n\nungettext = ngettext\n\ndef pgettext(context: str, message: str) -> str: ...\ndef npgettext(context: str, singular: str, plural: str, number: int) -> str: ...\n\ngettext_lazy = gettext\nugettext_lazy = ugettext\npgettext_lazy = pgettext\nngettext_lazy = ngettext\nungettext_lazy = ungettext\nnpgettext_lazy = npgettext\n\ndef activate(language: str) -> None: ...\ndef deactivate() -> None: ...\n\nclass override(ContextDecorator):\n language: Optional[str] = ...\n deactivate: bool = ...\n def __init__(self, language: Optional[str], deactivate: bool = ...) -> None: ...\n old_language: Optional[str] = ...\n def __enter__(self) -> None: ...\n def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...\n\ndef get_language() -> Optional[str]: ...\ndef get_language_from_path(path: str) -> Optional[str]: ...\ndef get_language_bidi() -> bool: ...\ndef check_for_language(lang_code: Optional[str]) -> bool: ...\ndef to_language(locale: str) -> str: ...\ndef to_locale(language: str) -> str: ...\ndef get_language_from_request(request: WSGIRequest, check_path: bool = ...) -> str: ...\ndef templatize(src: str, **kwargs: Any) -> str: ...\ndef deactivate_all() -> None: ...\ndef get_supported_language_variant(lang_code: str, strict: bool = ...) -> str: ...\ndef get_language_info(lang_code: str) -> Any: ...\n\nfrom . import trans_real as trans_real\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\utils\translation\__init__.pyi
|
__init__.pyi
|
Other
| 2,232 | 0.85 | 0.347222 | 0 |
vue-tools
| 149 |
2024-04-21T09:46:56.587285
|
GPL-3.0
| false |
91bfa3a16bda05b2ef2310f3e468ac4a
|
from django.http.request import HttpRequest\nfrom django.http.response import HttpResponseForbidden\n\nCSRF_FAILURE_TEMPLATE: str\nCSRF_FAILURE_TEMPLATE_NAME: str\n\ndef csrf_failure(request: HttpRequest, reason: str = ..., template_name: str = ...) -> HttpResponseForbidden: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\csrf.pyi
|
csrf.pyi
|
Other
| 274 | 0.85 | 0.142857 | 0 |
vue-tools
| 215 |
2023-11-27T14:05:48.841847
|
Apache-2.0
| false |
34da6b16f184dec6049acd2727b2c077
|
from importlib.abc import SourceLoader\nfrom types import TracebackType\nfrom typing import Any, Callable, Dict, List, MutableMapping, Optional, Type, Union\n\nfrom django.http.request import HttpRequest, QueryDict\nfrom django.http.response import Http404, HttpResponse\nfrom django.utils.safestring import SafeText\n\nDEBUG_ENGINE: Any\nHIDDEN_SETTINGS: Any\nCLEANSED_SUBSTITUTE: str\nCURRENT_DIR: Any\n\nclass CallableSettingWrapper:\n def __init__(self, callable_setting: Union[Callable, Type[Any]]) -> None: ...\n\ndef cleanse_setting(key: Union[int, str], value: Any) -> Any: ...\ndef get_safe_settings() -> Dict[str, Any]: ...\ndef technical_500_response(request: Any, exc_type: Any, exc_value: Any, tb: Any, status_code: int = ...): ...\ndef get_default_exception_reporter_filter() -> ExceptionReporterFilter: ...\ndef get_exception_reporter_filter(request: Optional[HttpRequest]) -> ExceptionReporterFilter: ...\n\nclass ExceptionReporterFilter:\n def get_post_parameters(self, request: Any): ...\n def get_traceback_frame_variables(self, request: Any, tb_frame: Any): ...\n\nclass SafeExceptionReporterFilter(ExceptionReporterFilter):\n def is_active(self, request: Optional[HttpRequest]) -> bool: ...\n def get_cleansed_multivaluedict(self, request: HttpRequest, multivaluedict: QueryDict) -> QueryDict: ...\n def get_post_parameters(self, request: Optional[HttpRequest]) -> MutableMapping[str, Any]: ...\n def cleanse_special_types(self, request: Optional[HttpRequest], value: Any) -> Any: ...\n def get_traceback_frame_variables(self, request: Any, tb_frame: Any): ...\n\nclass ExceptionReporter:\n request: Optional[HttpRequest] = ...\n filter: ExceptionReporterFilter = ...\n exc_type: Optional[Type[BaseException]] = ...\n exc_value: Optional[str] = ...\n tb: Optional[TracebackType] = ...\n is_email: bool = ...\n template_info: None = ...\n template_does_not_exist: bool = ...\n postmortem: None = ...\n def __init__(\n self,\n request: Optional[HttpRequest],\n exc_type: Optional[Type[BaseException]],\n exc_value: Optional[Union[str, BaseException]],\n tb: Optional[TracebackType],\n is_email: bool = ...,\n ) -> None: ...\n def get_traceback_data(self) -> Dict[str, Any]: ...\n def get_traceback_html(self) -> SafeText: ...\n def get_traceback_text(self) -> SafeText: ...\n def get_traceback_frames(self) -> List[Any]: ...\n def _get_lines_from_file(\n self,\n filename: str,\n lineno: int,\n context_lines: int,\n loader: Optional[SourceLoader] = ...,\n module_name: Optional[str] = ...,\n ): ...\n\ndef technical_404_response(request: HttpRequest, exception: Http404) -> HttpResponse: ...\ndef default_urlconf(request: Optional[HttpResponse]) -> HttpResponse: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\debug.pyi
|
debug.pyi
|
Other
| 2,781 | 0.85 | 0.378788 | 0 |
react-lib
| 509 |
2024-12-26T10:20:13.937897
|
MIT
| false |
3c4e923d4b85abf8e57f3f630c59a61b
|
from typing import Optional\n\nfrom django.http.request import HttpRequest\nfrom django.http.response import (\n HttpResponseBadRequest,\n HttpResponseForbidden,\n HttpResponseNotFound,\n HttpResponseServerError,\n)\n\nERROR_404_TEMPLATE_NAME: str\nERROR_403_TEMPLATE_NAME: str\nERROR_400_TEMPLATE_NAME: str\nERROR_500_TEMPLATE_NAME: str\n\ndef page_not_found(\n request: HttpRequest, exception: Optional[Exception], template_name: str = ...\n) -> HttpResponseNotFound: ...\ndef server_error(request: HttpRequest, template_name: str = ...) -> HttpResponseServerError: ...\ndef bad_request(request: HttpRequest, exception: Exception, template_name: str = ...) -> HttpResponseBadRequest: ...\ndef permission_denied(\n request: HttpRequest, exception: Exception, template_name: str = ...\n) -> HttpResponseForbidden: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\defaults.pyi
|
defaults.pyi
|
Other
| 814 | 0.85 | 0.173913 | 0 |
node-utils
| 222 |
2024-02-03T18:44:39.181576
|
Apache-2.0
| false |
6583e9208a0267e19854de2bfe685ebd
|
from typing import Any, Callable, Dict, List, Optional, Union\n\nfrom django.http.request import HttpRequest\nfrom django.http.response import HttpResponse\nfrom django.utils.translation.trans_real import DjangoTranslation\n\nfrom django.views.generic import View\n\nLANGUAGE_QUERY_PARAMETER: str\n\ndef set_language(request: HttpRequest) -> HttpResponse: ...\ndef get_formats() -> Dict[str, Union[List[str], int, str]]: ...\n\njs_catalog_template: str\n\ndef render_javascript_catalog(catalog: Optional[Any] = ..., plural: Optional[Any] = ...): ...\ndef null_javascript_catalog(request: Any, domain: Optional[Any] = ..., packages: Optional[Any] = ...): ...\n\nclass JavaScriptCatalog(View):\n head: Callable\n domain: str = ...\n packages: List[str] = ...\n translation: DjangoTranslation = ...\n def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...\n def get_paths(self, packages: List[str]) -> List[str]: ...\n def get_plural(self) -> None: ...\n def get_catalog(self) -> Dict[str, Union[List[str], str]]: ...\n def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: ...\n def render_to_response(self, context: Dict[str, Any], **response_kwargs: Any) -> HttpResponse: ...\n\nclass JSONCatalog(JavaScriptCatalog): ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\i18n.pyi
|
i18n.pyi
|
Other
| 1,257 | 0.85 | 0.387097 | 0 |
node-utils
| 816 |
2024-01-28T23:02:38.827606
|
Apache-2.0
| false |
55ed19a5376752a74748b58f65e46bcb
|
from typing import Any, Optional\n\nfrom django.http.request import HttpRequest\nfrom django.http.response import FileResponse\n\ndef serve(request: HttpRequest, path: str, document_root: str = ..., show_indexes: bool = ...) -> FileResponse: ...\n\nDEFAULT_DIRECTORY_INDEX_TEMPLATE: str\ntemplate_translatable: Any\n\ndef directory_index(path: Any, fullpath: Any): ...\ndef was_modified_since(header: Optional[str] = ..., mtime: float = ..., size: int = ...) -> bool: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\static.pyi
|
static.pyi
|
Other
| 461 | 0.85 | 0.25 | 0 |
vue-tools
| 437 |
2025-01-29T18:05:27.828132
|
MIT
| false |
1e5bd739b12505c2923af8f30c96c193
|
from .generic.base import View as View\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\__init__.pyi
|
__init__.pyi
|
Other
| 39 | 0.65 | 0 | 0 |
python-kit
| 744 |
2025-06-05T21:16:03.093894
|
Apache-2.0
| false |
35b5f398bf08425415de548a718b4eae
|
from typing import Any, Callable, Optional, TypeVar\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\ndef cache_page(timeout: float, *, cache: Optional[Any] = ..., key_prefix: Optional[Any] = ...) -> Callable: ...\ndef cache_control(**kwargs: Any) -> Callable: ...\ndef never_cache(view_func: _F) -> _F: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\decorators\cache.pyi
|
cache.pyi
|
Other
| 303 | 0.85 | 0.428571 | 0 |
react-lib
| 647 |
2024-04-16T23:23:22.683317
|
BSD-3-Clause
| false |
3cdbd4cc7fb7d602830fbf8c39a2d314
|
from typing import Callable, TypeVar, Any\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\ndef xframe_options_deny(view_func: _F) -> _F: ...\ndef xframe_options_sameorigin(view_func: _F) -> _F: ...\ndef xframe_options_exempt(view_func: _F) -> _F: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\decorators\clickjacking.pyi
|
clickjacking.pyi
|
Other
| 247 | 0.85 | 0.428571 | 0 |
react-lib
| 420 |
2023-10-24T03:07:16.702223
|
GPL-3.0
| false |
8a3e8971d1d078c9257b7284fefa7900
|
from typing import Any, Callable, TypeVar\n\nfrom django.middleware.csrf import CsrfViewMiddleware\n\ncsrf_protect: Any\n\nclass _EnsureCsrfToken(CsrfViewMiddleware): ...\n\nrequires_csrf_token: Any\n\nclass _EnsureCsrfCookie(CsrfViewMiddleware):\n get_response: None\n def process_view(self, request: Any, callback: Any, callback_args: Any, callback_kwargs: Any): ...\n\nensure_csrf_cookie: Any\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\ndef csrf_exempt(view_func: _F) -> _F: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\decorators\csrf.pyi
|
csrf.pyi
|
Other
| 477 | 0.85 | 0.210526 | 0 |
awesome-app
| 738 |
2025-02-27T23:39:40.044338
|
BSD-3-Clause
| false |
6ae0538f45193001a15cee540f7afef6
|
from typing import Any, Callable\n\ndef sensitive_variables(*variables: Any) -> Callable: ...\ndef sensitive_post_parameters(*parameters: Any) -> Callable: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\decorators\debug.pyi
|
debug.pyi
|
Other
| 157 | 0.85 | 0.5 | 0 |
python-kit
| 507 |
2023-08-10T09:11:27.387164
|
GPL-3.0
| false |
4fd59c790341903454e267df826a4fc5
|
from typing import Callable, TypeVar, Any\n\n_C = TypeVar("_C", bound=Callable[..., Any])\n\ndef gzip_page(view_func: _C) -> _C: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\decorators\gzip.pyi
|
gzip.pyi
|
Other
| 129 | 0.85 | 0.2 | 0 |
node-utils
| 328 |
2024-02-16T02:50:08.230582
|
MIT
| false |
5a4a680c8be296d981a04b1e1570c07f
|
from typing import Any, Callable, List, Optional, TypeVar\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\ndef conditional_page(_F) -> _F: ...\ndef require_http_methods(request_method_list: List[str]) -> Callable: ...\ndef require_GET(_F) -> _F: ...\ndef require_POST(_F) -> _F: ...\ndef require_safe(_F) -> _F: ...\ndef condition(etag_func: Optional[Callable] = ..., last_modified_func: Optional[Callable] = ...) -> Callable: ...\ndef etag(etag_func: Callable[..., Any]) -> Callable[[_F], _F]: ...\ndef last_modified(last_modified_func: Callable[..., Any]) -> Callable[[_F], _F]: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\decorators\http.pyi
|
http.pyi
|
Other
| 576 | 0.85 | 0.666667 | 0 |
vue-tools
| 804 |
2024-10-31T05:48:03.486492
|
Apache-2.0
| false |
fdde8c25f0d024eb04bc8bd4e1664362
|
from typing import Any, Callable, TypeVar\n\n_F = TypeVar("_F", bound=Callable[..., Any])\n\ndef vary_on_headers(*headers: Any) -> Callable: ...\ndef vary_on_cookie(func: _F) -> _F: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\decorators\vary.pyi
|
vary.pyi
|
Other
| 181 | 0.85 | 0.333333 | 0 |
python-kit
| 203 |
2024-10-29T18:17:57.444742
|
Apache-2.0
| false |
111fd154eb9a13f74833f1a41235cbee
|
from typing import Any, Callable, Dict, List, Optional, Type\n\nfrom django import http\n\nclass ContextMixin:\n def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: ...\n\nclass View:\n http_method_names: List[str] = ...\n request: http.HttpRequest = ...\n args: Any = ...\n kwargs: Any = ...\n def __init__(self, **kwargs: Any) -> None: ...\n @classmethod\n def as_view(cls: Any, **initkwargs: Any) -> Callable[..., http.HttpResponse]: ...\n def setup(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> None: ...\n def dispatch(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n def http_method_not_allowed(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n def options(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n\nclass TemplateResponseMixin:\n template_name: str = ...\n template_engine: Optional[str] = ...\n response_class: Type[http.HttpResponse] = ...\n content_type: Optional[str] = ...\n request: http.HttpRequest = ...\n def render_to_response(self, context: Dict[str, Any], **response_kwargs: Any) -> http.HttpResponse: ...\n def get_template_names(self) -> List[str]: ...\n\nclass TemplateView(TemplateResponseMixin, ContextMixin, View):\n def get(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n\nclass RedirectView(View):\n permanent: bool = ...\n url: Optional[str] = ...\n pattern_name: Optional[str] = ...\n query_string: bool = ...\n def get_redirect_url(self, *args: Any, **kwargs: Any) -> Optional[str]: ...\n def get(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n def head(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n def post(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n def delete(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n def put(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n def patch(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\generic\base.pyi
|
base.pyi
|
Other
| 2,239 | 0.85 | 0.5 | 0 |
react-lib
| 103 |
2023-08-14T19:56:15.391872
|
MIT
| false |
5a481b9d870176e5987dd6d087596b96
|
import datetime\nfrom typing import Any, Dict, Optional, Sequence, Tuple\n\nfrom django.views.generic.base import View\nfrom django.views.generic.detail import BaseDetailView, SingleObjectTemplateResponseMixin\nfrom django.views.generic.list import MultipleObjectMixin, MultipleObjectTemplateResponseMixin\n\nfrom django.db import models\nfrom django.http import HttpRequest, HttpResponse\n\nclass YearMixin:\n year_format: str = ...\n year: Optional[str] = ...\n def get_year_format(self) -> str: ...\n def get_year(self) -> str: ...\n def get_next_year(self, date: datetime.date) -> Optional[datetime.date]: ...\n def get_previous_year(self, date: datetime.date) -> Optional[datetime.date]: ...\n\nclass MonthMixin:\n month_format: str = ...\n month: Optional[str] = ...\n def get_month_format(self) -> str: ...\n def get_month(self) -> str: ...\n def get_next_month(self, date: datetime.date) -> Optional[datetime.date]: ...\n def get_previous_month(self, date: datetime.date) -> Optional[datetime.date]: ...\n\nclass DayMixin:\n day_format: str = ...\n day: Optional[str] = ...\n def get_day_format(self) -> str: ...\n def get_day(self) -> str: ...\n def get_next_day(self, date: datetime.date) -> Optional[datetime.date]: ...\n def get_previous_day(self, date: datetime.date) -> Optional[datetime.date]: ...\n\nclass WeekMixin:\n week_format: str = ...\n week: Optional[str] = ...\n def get_week_format(self) -> str: ...\n def get_week(self) -> str: ...\n def get_next_week(self, date: datetime.date) -> Optional[datetime.date]: ...\n def get_previous_week(self, date: datetime.date) -> Optional[datetime.date]: ...\n\nclass DateMixin:\n date_field: Optional[str] = ...\n allow_future: bool = ...\n def get_date_field(self) -> str: ...\n def get_allow_future(self) -> bool: ...\n def uses_datetime_field(self) -> bool: ...\n\nDatedItems = Tuple[Optional[Sequence[datetime.date]], Sequence[object], Dict[str, Any]]\n\nclass BaseDateListView(MultipleObjectMixin, DateMixin, View):\n date_list_period: str = ...\n def render_to_response(self, context: Dict[str, Any], **response_kwargs: Any) -> HttpResponse: ...\n def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...\n def get_dated_items(self) -> DatedItems: ...\n def get_dated_queryset(self, **lookup: Any) -> models.query.QuerySet: ...\n def get_date_list_period(self) -> str: ...\n def get_date_list(\n self, queryset: models.query.QuerySet, date_type: Optional[str] = ..., ordering: str = ...\n ) -> models.query.QuerySet: ...\n\nclass BaseArchiveIndexView(BaseDateListView): ...\nclass ArchiveIndexView(MultipleObjectTemplateResponseMixin, BaseArchiveIndexView): ...\n\nclass BaseYearArchiveView(YearMixin, BaseDateListView):\n make_object_list: bool = ...\n def get_make_object_list(self) -> bool: ...\n\nclass YearArchiveView(MultipleObjectTemplateResponseMixin, BaseYearArchiveView): ...\nclass BaseMonthArchiveView(YearMixin, MonthMixin, BaseDateListView): ...\nclass MonthArchiveView(MultipleObjectTemplateResponseMixin, BaseMonthArchiveView): ...\nclass BaseWeekArchiveView(YearMixin, WeekMixin, BaseDateListView): ...\nclass WeekArchiveView(MultipleObjectTemplateResponseMixin, BaseWeekArchiveView): ...\nclass BaseDayArchiveView(YearMixin, MonthMixin, DayMixin, BaseDateListView): ...\nclass DayArchiveView(MultipleObjectTemplateResponseMixin, BaseDayArchiveView): ...\nclass BaseTodayArchiveView(BaseDayArchiveView): ...\nclass TodayArchiveView(MultipleObjectTemplateResponseMixin, BaseTodayArchiveView): ...\nclass BaseDateDetailView(YearMixin, MonthMixin, DayMixin, DateMixin, BaseDetailView): ...\nclass DateDetailView(SingleObjectTemplateResponseMixin, BaseDateDetailView): ...\n\ndef timezone_today() -> datetime.date: ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\generic\dates.pyi
|
dates.pyi
|
Other
| 3,771 | 0.85 | 0.573171 | 0 |
vue-tools
| 465 |
2025-05-03T06:50:27.666693
|
BSD-3-Clause
| false |
f479a7ac6c99e0acd8d219eeae99ea15
|
from typing import Any, Optional, Type\n\nfrom django.views.generic.base import ContextMixin, TemplateResponseMixin, View\n\nfrom django.db import models\nfrom django.http import HttpRequest, HttpResponse\n\nclass SingleObjectMixin(ContextMixin):\n model: Type[models.Model] = ...\n queryset: models.query.QuerySet = ...\n slug_field: str = ...\n context_object_name: str = ...\n slug_url_kwarg: str = ...\n pk_url_kwarg: str = ...\n query_pk_and_slug: bool = ...\n def get_object(self, queryset: Optional[models.query.QuerySet] = ...) -> models.Model: ...\n def get_queryset(self) -> models.query.QuerySet: ...\n def get_slug_field(self) -> str: ...\n def get_context_object_name(self, obj: Any) -> Optional[str]: ...\n\nclass BaseDetailView(SingleObjectMixin, View):\n def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...\n\nclass SingleObjectTemplateResponseMixin(TemplateResponseMixin):\n template_name_field: Optional[str] = ...\n template_name_suffix: str = ...\n\nclass DetailView(SingleObjectTemplateResponseMixin, BaseDetailView): ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\generic\detail.pyi
|
detail.pyi
|
Other
| 1,090 | 0.85 | 0.321429 | 0 |
python-kit
| 706 |
2023-10-28T08:10:36.468909
|
MIT
| false |
0eb75c6d4d77b4389adf1eaf4b9a6f8e
|
from typing import Any, Callable, Dict, Optional, Sequence, Type, Union\n\nfrom django.forms.forms import BaseForm\nfrom django.views.generic.base import ContextMixin, TemplateResponseMixin, View\nfrom django.views.generic.detail import BaseDetailView, SingleObjectMixin, SingleObjectTemplateResponseMixin\nfrom typing_extensions import Literal\n\nfrom django.http import HttpRequest, HttpResponse\n\nclass FormMixin(ContextMixin):\n initial: Dict[str, Any] = ...\n form_class: Optional[Type[BaseForm]] = ...\n success_url: Optional[Union[str, Callable[..., Any]]] = ...\n prefix: Optional[str] = ...\n def get_initial(self) -> Dict[str, Any]: ...\n def get_prefix(self) -> Optional[str]: ...\n def get_form_class(self) -> Type[BaseForm]: ...\n def get_form(self, form_class: Optional[Type[BaseForm]] = ...) -> BaseForm: ...\n def get_form_kwargs(self) -> Dict[str, Any]: ...\n def get_success_url(self) -> str: ...\n def form_valid(self, form: BaseForm) -> HttpResponse: ...\n def form_invalid(self, form: BaseForm) -> HttpResponse: ...\n\nclass ModelFormMixin(FormMixin, SingleObjectMixin):\n fields: Optional[Union[Sequence[str], Literal["__all__"]]] = ...\n\nclass ProcessFormView(View):\n def get(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...\n def post(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...\n def put(self, *args: str, **kwargs: Any) -> HttpResponse: ...\n\nclass BaseFormView(FormMixin, ProcessFormView): ...\nclass FormView(TemplateResponseMixin, BaseFormView): ...\nclass BaseCreateView(ModelFormMixin, ProcessFormView): ...\nclass CreateView(SingleObjectTemplateResponseMixin, BaseCreateView): ...\nclass BaseUpdateView(ModelFormMixin, ProcessFormView): ...\nclass UpdateView(SingleObjectTemplateResponseMixin, BaseUpdateView): ...\n\nclass DeletionMixin:\n success_url: Optional[str] = ...\n def post(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...\n def delete(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...\n def get_success_url(self) -> str: ...\n\nclass BaseDeleteView(DeletionMixin, BaseDetailView): ...\nclass DeleteView(SingleObjectTemplateResponseMixin, BaseDeleteView): ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\generic\edit.pyi
|
edit.pyi
|
Other
| 2,234 | 0.85 | 0.565217 | 0 |
react-lib
| 319 |
2023-08-28T10:07:20.248126
|
Apache-2.0
| false |
791d8859f27c0eed35e16005251cb9d8
|
from typing import Any, Optional, Sequence, Tuple, Type\n\nfrom django.core.paginator import Paginator\nfrom django.db.models.query import QuerySet, _BaseQuerySet\nfrom django.views.generic.base import ContextMixin, TemplateResponseMixin, View\n\nfrom django.db.models import Model\nfrom django.http import HttpRequest, HttpResponse\n\nclass MultipleObjectMixin(ContextMixin):\n allow_empty: bool = ...\n queryset: Optional[QuerySet] = ...\n model: Optional[Type[Model]] = ...\n paginate_by: int = ...\n paginate_orphans: int = ...\n context_object_name: Optional[str] = ...\n paginator_class: Type[Paginator] = ...\n page_kwarg: str = ...\n ordering: Sequence[str] = ...\n def get_queryset(self) -> QuerySet: ...\n def get_ordering(self) -> Sequence[str]: ...\n def paginate_queryset(self, queryset: _BaseQuerySet, page_size: int) -> Tuple[Paginator, int, QuerySet, bool]: ...\n def get_paginate_by(self, queryset: _BaseQuerySet) -> Optional[int]: ...\n def get_paginator(\n self, queryset: QuerySet, per_page: int, orphans: int = ..., allow_empty_first_page: bool = ..., **kwargs: Any\n ) -> Paginator: ...\n def get_paginate_orphans(self) -> int: ...\n def get_allow_empty(self) -> bool: ...\n def get_context_object_name(self, object_list: _BaseQuerySet) -> Optional[str]: ...\n\nclass BaseListView(MultipleObjectMixin, View):\n def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...\n\nclass MultipleObjectTemplateResponseMixin(TemplateResponseMixin):\n template_name_suffix: str = ...\n\nclass ListView(MultipleObjectTemplateResponseMixin, BaseListView): ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\generic\list.pyi
|
list.pyi
|
Other
| 1,625 | 0.85 | 0.351351 | 0 |
awesome-app
| 530 |
2023-12-23T18:15:59.311210
|
MIT
| false |
770a8cbade1181a77aa9ab7df05e379a
|
from .base import RedirectView as RedirectView, TemplateView as TemplateView, View as View\nfrom .dates import (\n ArchiveIndexView as ArchiveIndexView,\n DateDetailView as DateDetailView,\n DayArchiveView as DayArchiveView,\n MonthArchiveView as MonthArchiveView,\n TodayArchiveView as TodayArchiveView,\n WeekArchiveView as WeekArchiveView,\n YearArchiveView as YearArchiveView,\n)\nfrom .detail import DetailView as DetailView\nfrom .edit import CreateView as CreateView, DeleteView as DeleteView, FormView as FormView, UpdateView as UpdateView\nfrom .list import ListView as ListView\n\nclass GenericViewError(Exception): ...\n
|
.venv\Lib\site-packages\jedi\third_party\django-stubs\django-stubs\views\generic\__init__.pyi
|
__init__.pyi
|
Other
| 637 | 0.85 | 0.066667 | 0 |
awesome-app
| 357 |
2024-05-22T15:29:59.015200
|
MIT
| false |
605ad7067043868971e75752a3b9b087
|
The "typeshed" project is licensed under the terms of the Apache license, as\nreproduced below.\n\n= = = = =\n\nApache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "{}"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n= = = = =\n\nParts of typeshed are licensed under different licenses (like the MIT\nlicense), reproduced below.\n\n= = = = =\n\nThe MIT License\n\nCopyright (c) 2015 Jukka Lehtosalo and contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the "Software"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n= = = = =\n\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\LICENSE
|
LICENSE
|
Other
| 12,658 | 0.95 | 0.10084 | 0 |
vue-tools
| 606 |
2023-07-22T04:12:59.637203
|
GPL-3.0
| false |
84cbb431042e656c3ccddf7f5ecc2d84
|
import _weakrefset\nfrom typing import Any, Callable, Dict, Set, Tuple, Type, TypeVar\n\n_FuncT = TypeVar("_FuncT", bound=Callable[..., Any])\n\n# NOTE: mypy has special processing for ABCMeta and abstractmethod.\n\ndef abstractmethod(funcobj: _FuncT) -> _FuncT: ...\n\nclass ABCMeta(type):\n # TODO: FrozenSet\n __abstractmethods__: Set[Any]\n _abc_cache: _weakrefset.WeakSet[Any]\n _abc_invalidation_counter: int\n _abc_negative_cache: _weakrefset.WeakSet[Any]\n _abc_negative_cache_version: int\n _abc_registry: _weakrefset.WeakSet[Any]\n def __init__(self, name: str, bases: Tuple[type, ...], namespace: Dict[Any, Any]) -> None: ...\n def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ...\n def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ...\n def _dump_registry(cls: ABCMeta, *args: Any, **kwargs: Any) -> None: ...\n def register(cls: ABCMeta, subclass: Type[Any]) -> None: ...\n\n# TODO: The real abc.abstractproperty inherits from "property".\nclass abstractproperty(object):\n def __new__(cls, func: Any) -> Any: ...\n __isabstractmethod__: bool\n doc: Any\n fdel: Any\n fget: Any\n fset: Any\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\abc.pyi
|
abc.pyi
|
Other
| 1,147 | 0.95 | 0.322581 | 0.115385 |
awesome-app
| 770 |
2025-04-23T22:58:46.744727
|
GPL-3.0
| false |
e9061588cd0dc17c1825b2df66907040
|
# Python 2.7 ast\n\n# Rename typing to _typing, as not to conflict with typing imported\n# from _ast below when loaded in an unorthodox way by the Dropbox\n# internal Bazel integration.\nimport typing as _typing\nfrom typing import Any, Iterator, Optional, Union\n\nfrom _ast import *\nfrom _ast import AST, Module\n\ndef parse(source: Union[str, unicode], filename: Union[str, unicode] = ..., mode: Union[str, unicode] = ...) -> Module: ...\ndef copy_location(new_node: AST, old_node: AST) -> AST: ...\ndef dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...\ndef fix_missing_locations(node: AST) -> AST: ...\ndef get_docstring(node: AST, clean: bool = ...) -> str: ...\ndef increment_lineno(node: AST, n: int = ...) -> AST: ...\ndef iter_child_nodes(node: AST) -> Iterator[AST]: ...\ndef iter_fields(node: AST) -> Iterator[_typing.Tuple[str, Any]]: ...\ndef literal_eval(node_or_string: Union[str, unicode, AST]) -> Any: ...\ndef walk(node: AST) -> Iterator[AST]: ...\n\nclass NodeVisitor:\n def visit(self, node: AST) -> Any: ...\n def generic_visit(self, node: AST) -> Any: ...\n\nclass NodeTransformer(NodeVisitor):\n def generic_visit(self, node: AST) -> Optional[AST]: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\ast.pyi
|
ast.pyi
|
Other
| 1,199 | 0.95 | 0.535714 | 0.173913 |
node-utils
| 645 |
2025-06-29T19:53:15.628908
|
BSD-3-Clause
| false |
3b2f19e2dcaac5da7175750341903fdf
|
from typing import Any, TypeVar\n\n_FT = TypeVar("_FT")\n\ndef register(func: _FT, *args: Any, **kargs: Any) -> _FT: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\atexit.pyi
|
atexit.pyi
|
Other
| 117 | 0.85 | 0.2 | 0 |
node-utils
| 393 |
2024-03-11T17:59:28.407011
|
BSD-3-Clause
| false |
dc2cd8fc460b9d590b1719e923ab7776
|
import mimetools\nimport SocketServer\nfrom typing import Any, BinaryIO, Callable, Mapping, Optional, Tuple, Union\n\nclass HTTPServer(SocketServer.TCPServer):\n server_name: str\n server_port: int\n def __init__(self, server_address: Tuple[str, int], RequestHandlerClass: Callable[..., BaseHTTPRequestHandler]) -> None: ...\n\nclass BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):\n client_address: Tuple[str, int]\n server: SocketServer.BaseServer\n close_connection: bool\n command: str\n path: str\n request_version: str\n headers: mimetools.Message\n rfile: BinaryIO\n wfile: BinaryIO\n server_version: str\n sys_version: str\n error_message_format: str\n error_content_type: str\n protocol_version: str\n MessageClass: type\n responses: Mapping[int, Tuple[str, str]]\n def __init__(self, request: bytes, client_address: Tuple[str, int], server: SocketServer.BaseServer) -> None: ...\n def handle(self) -> None: ...\n def handle_one_request(self) -> None: ...\n def send_error(self, code: int, message: Optional[str] = ...) -> None: ...\n def send_response(self, code: int, message: Optional[str] = ...) -> None: ...\n def send_header(self, keyword: str, value: str) -> None: ...\n def end_headers(self) -> None: ...\n def flush_headers(self) -> None: ...\n def log_request(self, code: Union[int, str] = ..., size: Union[int, str] = ...) -> None: ...\n def log_error(self, format: str, *args: Any) -> None: ...\n def log_message(self, format: str, *args: Any) -> None: ...\n def version_string(self) -> str: ...\n def date_time_string(self, timestamp: Optional[int] = ...) -> str: ...\n def log_date_time_string(self) -> str: ...\n def address_string(self) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\BaseHTTPServer.pyi
|
BaseHTTPServer.pyi
|
Other
| 1,747 | 0.85 | 0.439024 | 0 |
vue-tools
| 163 |
2024-05-29T17:52:22.862271
|
Apache-2.0
| false |
24f54e66ffc21495399d4ff9fec7b0eb
|
# True and False are deliberately omitted because they are keywords in\n# Python 3, and stub files conform to Python 3 syntax.\n\nfrom _typeshed import ReadableBuffer, SupportsKeysAndGetItem, SupportsWrite\nfrom abc import ABCMeta\nfrom ast import mod\nfrom types import CodeType\nfrom typing import (\n AbstractSet,\n Any,\n AnyStr,\n BinaryIO,\n ByteString,\n Callable,\n Container,\n Dict,\n FrozenSet,\n Generic,\n ItemsView,\n Iterable,\n Iterator,\n KeysView,\n List,\n Mapping,\n MutableMapping,\n MutableSequence,\n MutableSet,\n NoReturn,\n Optional,\n Protocol,\n Reversible,\n Sequence,\n Set,\n Sized,\n SupportsAbs,\n SupportsComplex,\n SupportsFloat,\n SupportsInt,\n Text,\n Tuple,\n Type,\n TypeVar,\n Union,\n ValuesView,\n overload,\n runtime_checkable,\n)\nfrom typing_extensions import Literal\n\nclass _SupportsIndex(Protocol):\n def __index__(self) -> int: ...\n\nclass _SupportsTrunc(Protocol):\n def __trunc__(self) -> int: ...\n\n_T = TypeVar("_T")\n_T_co = TypeVar("_T_co", covariant=True)\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n_S = TypeVar("_S")\n_T1 = TypeVar("_T1")\n_T2 = TypeVar("_T2")\n_T3 = TypeVar("_T3")\n_T4 = TypeVar("_T4")\n_T5 = TypeVar("_T5")\n_TT = TypeVar("_TT", bound="type")\n_TBE = TypeVar("_TBE", bound="BaseException")\n\nclass object:\n __doc__: Optional[str]\n __dict__: Dict[str, Any]\n __slots__: Union[Text, Iterable[Text]]\n __module__: str\n @property\n def __class__(self: _T) -> Type[_T]: ...\n @__class__.setter\n def __class__(self, __type: Type[object]) -> None: ... # noqa: F811\n def __init__(self) -> None: ...\n def __new__(cls) -> Any: ...\n def __setattr__(self, name: str, value: Any) -> None: ...\n def __eq__(self, o: object) -> bool: ...\n def __ne__(self, o: object) -> bool: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __hash__(self) -> int: ...\n def __format__(self, format_spec: str) -> str: ...\n def __getattribute__(self, name: str) -> Any: ...\n def __delattr__(self, name: str) -> None: ...\n def __sizeof__(self) -> int: ...\n def __reduce__(self) -> Union[str, Tuple[Any, ...]]: ...\n def __reduce_ex__(self, protocol: int) -> Union[str, Tuple[Any, ...]]: ...\n\nclass staticmethod(object): # Special, only valid as a decorator.\n __func__: Callable[..., Any]\n def __init__(self, f: Callable[..., Any]) -> None: ...\n def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...\n def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...\n\nclass classmethod(object): # Special, only valid as a decorator.\n __func__: Callable[..., Any]\n def __init__(self, f: Callable[..., Any]) -> None: ...\n def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...\n def __get__(self, obj: _T, type: Optional[Type[_T]] = ...) -> Callable[..., Any]: ...\n\nclass type(object):\n __base__: type\n __bases__: Tuple[type, ...]\n __basicsize__: int\n __dict__: Dict[str, Any]\n __dictoffset__: int\n __flags__: int\n __itemsize__: int\n __module__: str\n __mro__: Tuple[type, ...]\n __name__: str\n __weakrefoffset__: int\n @overload\n def __init__(self, o: object) -> None: ...\n @overload\n def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str, Any]) -> None: ...\n @overload\n def __new__(cls, o: object) -> type: ...\n @overload\n def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ...\n def __call__(self, *args: Any, **kwds: Any) -> Any: ...\n def __subclasses__(self: _TT) -> List[_TT]: ...\n # Note: the documentation doesnt specify what the return type is, the standard\n # implementation seems to be returning a list.\n def mro(self) -> List[type]: ...\n def __instancecheck__(self, instance: Any) -> bool: ...\n def __subclasscheck__(self, subclass: type) -> bool: ...\n\nclass super(object):\n @overload\n def __init__(self, t: Any, obj: Any) -> None: ...\n @overload\n def __init__(self, t: Any) -> None: ...\n\nclass int:\n @overload\n def __new__(cls: Type[_T], x: Union[Text, bytes, SupportsInt, _SupportsIndex, _SupportsTrunc] = ...) -> _T: ...\n @overload\n def __new__(cls: Type[_T], x: Union[Text, bytes, bytearray], base: int) -> _T: ...\n @property\n def real(self) -> int: ...\n @property\n def imag(self) -> int: ...\n @property\n def numerator(self) -> int: ...\n @property\n def denominator(self) -> int: ...\n def conjugate(self) -> int: ...\n def bit_length(self) -> int: ...\n def __add__(self, x: int) -> int: ...\n def __sub__(self, x: int) -> int: ...\n def __mul__(self, x: int) -> int: ...\n def __floordiv__(self, x: int) -> int: ...\n def __div__(self, x: int) -> int: ...\n def __truediv__(self, x: int) -> float: ...\n def __mod__(self, x: int) -> int: ...\n def __divmod__(self, x: int) -> Tuple[int, int]: ...\n def __radd__(self, x: int) -> int: ...\n def __rsub__(self, x: int) -> int: ...\n def __rmul__(self, x: int) -> int: ...\n def __rfloordiv__(self, x: int) -> int: ...\n def __rdiv__(self, x: int) -> int: ...\n def __rtruediv__(self, x: int) -> float: ...\n def __rmod__(self, x: int) -> int: ...\n def __rdivmod__(self, x: int) -> Tuple[int, int]: ...\n @overload\n def __pow__(self, __x: Literal[2], __modulo: Optional[int] = ...) -> int: ...\n @overload\n def __pow__(self, __x: int, __modulo: Optional[int] = ...) -> Any: ... # Return type can be int or float, depending on x.\n def __rpow__(self, x: int, mod: Optional[int] = ...) -> Any: ...\n def __and__(self, n: int) -> int: ...\n def __or__(self, n: int) -> int: ...\n def __xor__(self, n: int) -> int: ...\n def __lshift__(self, n: int) -> int: ...\n def __rshift__(self, n: int) -> int: ...\n def __rand__(self, n: int) -> int: ...\n def __ror__(self, n: int) -> int: ...\n def __rxor__(self, n: int) -> int: ...\n def __rlshift__(self, n: int) -> int: ...\n def __rrshift__(self, n: int) -> int: ...\n def __neg__(self) -> int: ...\n def __pos__(self) -> int: ...\n def __invert__(self) -> int: ...\n def __trunc__(self) -> int: ...\n def __getnewargs__(self) -> Tuple[int]: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: int) -> bool: ...\n def __le__(self, x: int) -> bool: ...\n def __gt__(self, x: int) -> bool: ...\n def __ge__(self, x: int) -> bool: ...\n def __str__(self) -> str: ...\n def __float__(self) -> float: ...\n def __int__(self) -> int: ...\n def __abs__(self) -> int: ...\n def __hash__(self) -> int: ...\n def __nonzero__(self) -> bool: ...\n def __index__(self) -> int: ...\n\nclass float:\n def __new__(cls: Type[_T], x: Union[SupportsFloat, _SupportsIndex, Text, bytes, bytearray] = ...) -> _T: ...\n def as_integer_ratio(self) -> Tuple[int, int]: ...\n def hex(self) -> str: ...\n def is_integer(self) -> bool: ...\n @classmethod\n def fromhex(cls, __s: str) -> float: ...\n @property\n def real(self) -> float: ...\n @property\n def imag(self) -> float: ...\n def conjugate(self) -> float: ...\n def __add__(self, x: float) -> float: ...\n def __sub__(self, x: float) -> float: ...\n def __mul__(self, x: float) -> float: ...\n def __floordiv__(self, x: float) -> float: ...\n def __div__(self, x: float) -> float: ...\n def __truediv__(self, x: float) -> float: ...\n def __mod__(self, x: float) -> float: ...\n def __divmod__(self, x: float) -> Tuple[float, float]: ...\n def __pow__(\n self, x: float, mod: None = ...\n ) -> float: ... # In Python 3, returns complex if self is negative and x is not whole\n def __radd__(self, x: float) -> float: ...\n def __rsub__(self, x: float) -> float: ...\n def __rmul__(self, x: float) -> float: ...\n def __rfloordiv__(self, x: float) -> float: ...\n def __rdiv__(self, x: float) -> float: ...\n def __rtruediv__(self, x: float) -> float: ...\n def __rmod__(self, x: float) -> float: ...\n def __rdivmod__(self, x: float) -> Tuple[float, float]: ...\n def __rpow__(self, x: float, mod: None = ...) -> float: ...\n def __getnewargs__(self) -> Tuple[float]: ...\n def __trunc__(self) -> int: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: float) -> bool: ...\n def __le__(self, x: float) -> bool: ...\n def __gt__(self, x: float) -> bool: ...\n def __ge__(self, x: float) -> bool: ...\n def __neg__(self) -> float: ...\n def __pos__(self) -> float: ...\n def __str__(self) -> str: ...\n def __int__(self) -> int: ...\n def __float__(self) -> float: ...\n def __abs__(self) -> float: ...\n def __hash__(self) -> int: ...\n def __nonzero__(self) -> bool: ...\n\nclass complex:\n @overload\n def __new__(cls: Type[_T], real: float = ..., imag: float = ...) -> _T: ...\n @overload\n def __new__(cls: Type[_T], real: Union[str, SupportsComplex, _SupportsIndex]) -> _T: ...\n @property\n def real(self) -> float: ...\n @property\n def imag(self) -> float: ...\n def conjugate(self) -> complex: ...\n def __add__(self, x: complex) -> complex: ...\n def __sub__(self, x: complex) -> complex: ...\n def __mul__(self, x: complex) -> complex: ...\n def __pow__(self, x: complex, mod: None = ...) -> complex: ...\n def __div__(self, x: complex) -> complex: ...\n def __truediv__(self, x: complex) -> complex: ...\n def __radd__(self, x: complex) -> complex: ...\n def __rsub__(self, x: complex) -> complex: ...\n def __rmul__(self, x: complex) -> complex: ...\n def __rpow__(self, x: complex, mod: None = ...) -> complex: ...\n def __rdiv__(self, x: complex) -> complex: ...\n def __rtruediv__(self, x: complex) -> complex: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __neg__(self) -> complex: ...\n def __pos__(self) -> complex: ...\n def __str__(self) -> str: ...\n def __complex__(self) -> complex: ...\n def __abs__(self) -> float: ...\n def __hash__(self) -> int: ...\n def __nonzero__(self) -> bool: ...\n\nclass basestring(metaclass=ABCMeta): ...\n\nclass unicode(basestring, Sequence[unicode]):\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self, o: object) -> None: ...\n @overload\n def __init__(self, o: str, encoding: unicode = ..., errors: unicode = ...) -> None: ...\n def capitalize(self) -> unicode: ...\n def center(self, width: int, fillchar: unicode = ...) -> unicode: ...\n def count(self, x: unicode) -> int: ...\n def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ...\n def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ...\n def endswith(self, suffix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> unicode: ...\n def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def format(self, *args: object, **kwargs: object) -> unicode: ...\n def index(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def isalnum(self) -> bool: ...\n def isalpha(self) -> bool: ...\n def isdecimal(self) -> bool: ...\n def isdigit(self) -> bool: ...\n def isidentifier(self) -> bool: ...\n def islower(self) -> bool: ...\n def isnumeric(self) -> bool: ...\n def isprintable(self) -> bool: ...\n def isspace(self) -> bool: ...\n def istitle(self) -> bool: ...\n def isupper(self) -> bool: ...\n def join(self, iterable: Iterable[unicode]) -> unicode: ...\n def ljust(self, width: int, fillchar: unicode = ...) -> unicode: ...\n def lower(self) -> unicode: ...\n def lstrip(self, chars: unicode = ...) -> unicode: ...\n def partition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n def replace(self, old: unicode, new: unicode, count: int = ...) -> unicode: ...\n def rfind(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def rindex(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...\n def rjust(self, width: int, fillchar: unicode = ...) -> unicode: ...\n def rpartition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n def rsplit(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...\n def rstrip(self, chars: unicode = ...) -> unicode: ...\n def split(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...\n def splitlines(self, keepends: bool = ...) -> List[unicode]: ...\n def startswith(self, prefix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...\n def strip(self, chars: unicode = ...) -> unicode: ...\n def swapcase(self) -> unicode: ...\n def title(self) -> unicode: ...\n def translate(self, table: Union[Dict[int, Any], unicode]) -> unicode: ...\n def upper(self) -> unicode: ...\n def zfill(self, width: int) -> unicode: ...\n @overload\n def __getitem__(self, i: int) -> unicode: ...\n @overload\n def __getitem__(self, s: slice) -> unicode: ...\n def __getslice__(self, start: int, stop: int) -> unicode: ...\n def __add__(self, s: unicode) -> unicode: ...\n def __mul__(self, n: int) -> unicode: ...\n def __rmul__(self, n: int) -> unicode: ...\n def __mod__(self, x: Any) -> unicode: ...\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: unicode) -> bool: ...\n def __le__(self, x: unicode) -> bool: ...\n def __gt__(self, x: unicode) -> bool: ...\n def __ge__(self, x: unicode) -> bool: ...\n def __len__(self) -> int: ...\n # The argument type is incompatible with Sequence\n def __contains__(self, s: Union[unicode, bytes]) -> bool: ... # type: ignore\n def __iter__(self) -> Iterator[unicode]: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __int__(self) -> int: ...\n def __float__(self) -> float: ...\n def __hash__(self) -> int: ...\n def __getnewargs__(self) -> Tuple[unicode]: ...\n\nclass _FormatMapMapping(Protocol):\n def __getitem__(self, __key: str) -> Any: ...\n\nclass str(Sequence[str], basestring):\n def __init__(self, o: object = ...) -> None: ...\n def capitalize(self) -> str: ...\n def center(self, __width: int, __fillchar: str = ...) -> str: ...\n def count(self, x: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def decode(self, encoding: Text = ..., errors: Text = ...) -> unicode: ...\n def encode(self, encoding: Text = ..., errors: Text = ...) -> bytes: ...\n def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> str: ...\n def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def format(self, *args: object, **kwargs: object) -> str: ...\n def format_map(self, map: _FormatMapMapping) -> str: ...\n def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def isalnum(self) -> bool: ...\n def isalpha(self) -> bool: ...\n def isdigit(self) -> bool: ...\n def islower(self) -> bool: ...\n def isspace(self) -> bool: ...\n def istitle(self) -> bool: ...\n def isupper(self) -> bool: ...\n def join(self, __iterable: Iterable[AnyStr]) -> AnyStr: ...\n def ljust(self, __width: int, __fillchar: str = ...) -> str: ...\n def lower(self) -> str: ...\n @overload\n def lstrip(self, __chars: str = ...) -> str: ...\n @overload\n def lstrip(self, __chars: unicode) -> unicode: ...\n @overload\n def partition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...\n @overload\n def partition(self, __sep: str) -> Tuple[str, str, str]: ...\n @overload\n def partition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n def replace(self, __old: AnyStr, __new: AnyStr, __count: int = ...) -> AnyStr: ...\n def rfind(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rindex(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...\n def rjust(self, __width: int, __fillchar: str = ...) -> str: ...\n @overload\n def rpartition(self, __sep: bytearray) -> Tuple[str, bytearray, str]: ...\n @overload\n def rpartition(self, __sep: str) -> Tuple[str, str, str]: ...\n @overload\n def rpartition(self, __sep: unicode) -> Tuple[unicode, unicode, unicode]: ...\n @overload\n def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...\n @overload\n def rsplit(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...\n @overload\n def rstrip(self, __chars: str = ...) -> str: ...\n @overload\n def rstrip(self, __chars: unicode) -> unicode: ...\n @overload\n def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...\n @overload\n def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...\n def splitlines(self, keepends: bool = ...) -> List[str]: ...\n def startswith(self, prefix: Union[Text, Tuple[Text, ...]]) -> bool: ...\n @overload\n def strip(self, __chars: str = ...) -> str: ...\n @overload\n def strip(self, chars: unicode) -> unicode: ...\n def swapcase(self) -> str: ...\n def title(self) -> str: ...\n def translate(self, __table: Optional[AnyStr], deletechars: AnyStr = ...) -> AnyStr: ...\n def upper(self) -> str: ...\n def zfill(self, __width: int) -> str: ...\n def __add__(self, s: AnyStr) -> AnyStr: ...\n # Incompatible with Sequence.__contains__\n def __contains__(self, o: Union[str, Text]) -> bool: ... # type: ignore\n def __eq__(self, x: object) -> bool: ...\n def __ge__(self, x: Text) -> bool: ...\n def __getitem__(self, i: Union[int, slice]) -> str: ...\n def __gt__(self, x: Text) -> bool: ...\n def __hash__(self) -> int: ...\n def __iter__(self) -> Iterator[str]: ...\n def __le__(self, x: Text) -> bool: ...\n def __len__(self) -> int: ...\n def __lt__(self, x: Text) -> bool: ...\n def __mod__(self, x: Any) -> str: ...\n def __mul__(self, n: int) -> str: ...\n def __ne__(self, x: object) -> bool: ...\n def __repr__(self) -> str: ...\n def __rmul__(self, n: int) -> str: ...\n def __str__(self) -> str: ...\n def __getnewargs__(self) -> Tuple[str]: ...\n def __getslice__(self, start: int, stop: int) -> str: ...\n def __float__(self) -> float: ...\n def __int__(self) -> int: ...\n\nbytes = str\n\nclass bytearray(MutableSequence[int], ByteString):\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self, ints: Iterable[int]) -> None: ...\n @overload\n def __init__(self, string: str) -> None: ...\n @overload\n def __init__(self, string: Text, encoding: Text, errors: Text = ...) -> None: ...\n @overload\n def __init__(self, length: int) -> None: ...\n def capitalize(self) -> bytearray: ...\n def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...\n def count(self, __sub: str) -> int: ...\n def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...\n def endswith(self, __suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...\n def expandtabs(self, tabsize: int = ...) -> bytearray: ...\n def extend(self, iterable: Union[str, Iterable[int]]) -> None: ...\n def find(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...\n def index(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...\n def insert(self, __index: int, __item: int) -> None: ...\n def isalnum(self) -> bool: ...\n def isalpha(self) -> bool: ...\n def isdigit(self) -> bool: ...\n def islower(self) -> bool: ...\n def isspace(self) -> bool: ...\n def istitle(self) -> bool: ...\n def isupper(self) -> bool: ...\n def join(self, __iterable: Iterable[str]) -> bytearray: ...\n def ljust(self, __width: int, __fillchar: str = ...) -> bytearray: ...\n def lower(self) -> bytearray: ...\n def lstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...\n def partition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...\n def replace(self, __old: bytes, __new: bytes, __count: int = ...) -> bytearray: ...\n def rfind(self, __sub: bytes, __start: int = ..., __end: int = ...) -> int: ...\n def rindex(self, __sub: bytes, __start: int = ..., __end: int = ...) -> int: ...\n def rjust(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...\n def rpartition(self, __sep: bytes) -> Tuple[bytearray, bytearray, bytearray]: ...\n def rsplit(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...\n def rstrip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...\n def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...\n def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...\n def startswith(\n self, __prefix: Union[bytes, Tuple[bytes, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...\n ) -> bool: ...\n def strip(self, __bytes: Optional[bytes] = ...) -> bytearray: ...\n def swapcase(self) -> bytearray: ...\n def title(self) -> bytearray: ...\n def translate(self, __table: str) -> bytearray: ...\n def upper(self) -> bytearray: ...\n def zfill(self, __width: int) -> bytearray: ...\n @classmethod\n def fromhex(cls, __string: str) -> bytearray: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[int]: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __int__(self) -> int: ...\n def __float__(self) -> float: ...\n __hash__: None # type: ignore\n @overload\n def __getitem__(self, i: int) -> int: ...\n @overload\n def __getitem__(self, s: slice) -> bytearray: ...\n @overload\n def __setitem__(self, i: int, x: int) -> None: ...\n @overload\n def __setitem__(self, s: slice, x: Union[Iterable[int], bytes]) -> None: ...\n def __delitem__(self, i: Union[int, slice]) -> None: ...\n def __getslice__(self, start: int, stop: int) -> bytearray: ...\n def __setslice__(self, start: int, stop: int, x: Union[Sequence[int], str]) -> None: ...\n def __delslice__(self, start: int, stop: int) -> None: ...\n def __add__(self, s: bytes) -> bytearray: ...\n def __mul__(self, n: int) -> bytearray: ...\n # Incompatible with Sequence.__contains__\n def __contains__(self, o: Union[int, bytes]) -> bool: ... # type: ignore\n def __eq__(self, x: object) -> bool: ...\n def __ne__(self, x: object) -> bool: ...\n def __lt__(self, x: bytes) -> bool: ...\n def __le__(self, x: bytes) -> bool: ...\n def __gt__(self, x: bytes) -> bool: ...\n def __ge__(self, x: bytes) -> bool: ...\n\nclass memoryview(Sized, Container[str]):\n format: str\n itemsize: int\n shape: Optional[Tuple[int, ...]]\n strides: Optional[Tuple[int, ...]]\n suboffsets: Optional[Tuple[int, ...]]\n readonly: bool\n ndim: int\n def __init__(self, obj: ReadableBuffer) -> None: ...\n @overload\n def __getitem__(self, i: int) -> str: ...\n @overload\n def __getitem__(self, s: slice) -> memoryview: ...\n def __contains__(self, x: object) -> bool: ...\n def __iter__(self) -> Iterator[str]: ...\n def __len__(self) -> int: ...\n @overload\n def __setitem__(self, s: slice, o: memoryview) -> None: ...\n @overload\n def __setitem__(self, i: int, o: bytes) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Sequence[bytes]) -> None: ...\n def tobytes(self) -> bytes: ...\n def tolist(self) -> List[int]: ...\n\nclass bool(int):\n def __new__(cls: Type[_T], __o: object = ...) -> _T: ...\n @overload\n def __and__(self, x: bool) -> bool: ...\n @overload\n def __and__(self, x: int) -> int: ...\n @overload\n def __or__(self, x: bool) -> bool: ...\n @overload\n def __or__(self, x: int) -> int: ...\n @overload\n def __xor__(self, x: bool) -> bool: ...\n @overload\n def __xor__(self, x: int) -> int: ...\n @overload\n def __rand__(self, x: bool) -> bool: ...\n @overload\n def __rand__(self, x: int) -> int: ...\n @overload\n def __ror__(self, x: bool) -> bool: ...\n @overload\n def __ror__(self, x: int) -> int: ...\n @overload\n def __rxor__(self, x: bool) -> bool: ...\n @overload\n def __rxor__(self, x: int) -> int: ...\n def __getnewargs__(self) -> Tuple[int]: ...\n\nclass slice(object):\n start: Any\n step: Any\n stop: Any\n @overload\n def __init__(self, stop: Any) -> None: ...\n @overload\n def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ...\n __hash__: None # type: ignore\n def indices(self, len: int) -> Tuple[int, int, int]: ...\n\nclass tuple(Sequence[_T_co], Generic[_T_co]):\n def __new__(cls: Type[_T], iterable: Iterable[_T_co] = ...) -> _T: ...\n def __len__(self) -> int: ...\n def __contains__(self, x: object) -> bool: ...\n @overload\n def __getitem__(self, x: int) -> _T_co: ...\n @overload\n def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ...\n def __le__(self, x: Tuple[_T_co, ...]) -> bool: ...\n def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ...\n def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ...\n @overload\n def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ...\n @overload\n def __add__(self, x: Tuple[Any, ...]) -> Tuple[Any, ...]: ...\n def __mul__(self, n: int) -> Tuple[_T_co, ...]: ...\n def __rmul__(self, n: int) -> Tuple[_T_co, ...]: ...\n def count(self, __value: Any) -> int: ...\n def index(self, __value: Any) -> int: ...\n\nclass function:\n # TODO not defined in builtins!\n __name__: str\n __module__: str\n __code__: CodeType\n\nclass list(MutableSequence[_T], Generic[_T]):\n @overload\n def __init__(self) -> None: ...\n @overload\n def __init__(self, iterable: Iterable[_T]) -> None: ...\n def append(self, __object: _T) -> None: ...\n def extend(self, __iterable: Iterable[_T]) -> None: ...\n def pop(self, __index: int = ...) -> _T: ...\n def index(self, __value: _T, __start: int = ..., __stop: int = ...) -> int: ...\n def count(self, __value: _T) -> int: ...\n def insert(self, __index: int, __object: _T) -> None: ...\n def remove(self, __value: _T) -> None: ...\n def reverse(self) -> None: ...\n def sort(self, cmp: Callable[[_T, _T], Any] = ..., key: Callable[[_T], Any] = ..., reverse: bool = ...) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __str__(self) -> str: ...\n __hash__: None # type: ignore\n @overload\n def __getitem__(self, i: int) -> _T: ...\n @overload\n def __getitem__(self, s: slice) -> List[_T]: ...\n @overload\n def __setitem__(self, i: int, o: _T) -> None: ...\n @overload\n def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...\n def __delitem__(self, i: Union[int, slice]) -> None: ...\n def __getslice__(self, start: int, stop: int) -> List[_T]: ...\n def __setslice__(self, start: int, stop: int, o: Sequence[_T]) -> None: ...\n def __delslice__(self, start: int, stop: int) -> None: ...\n def __add__(self, x: List[_T]) -> List[_T]: ...\n def __iadd__(self: _S, x: Iterable[_T]) -> _S: ...\n def __mul__(self, n: int) -> List[_T]: ...\n def __rmul__(self, n: int) -> List[_T]: ...\n def __contains__(self, o: object) -> bool: ...\n def __reversed__(self) -> Iterator[_T]: ...\n def __gt__(self, x: List[_T]) -> bool: ...\n def __ge__(self, x: List[_T]) -> bool: ...\n def __lt__(self, x: List[_T]) -> bool: ...\n def __le__(self, x: List[_T]) -> bool: ...\n\nclass dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):\n # NOTE: Keyword arguments are special. If they are used, _KT must include\n # str, but we have no way of enforcing it here.\n @overload\n def __init__(self, **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...\n def __new__(cls: Type[_T1], *args: Any, **kwargs: Any) -> _T1: ...\n def has_key(self, k: _KT) -> bool: ...\n def clear(self) -> None: ...\n def copy(self) -> Dict[_KT, _VT]: ...\n def popitem(self) -> Tuple[_KT, _VT]: ...\n def setdefault(self, __key: _KT, __default: _VT = ...) -> _VT: ...\n @overload\n def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...\n @overload\n def update(self, __m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ...\n @overload\n def update(self, **kwargs: _VT) -> None: ...\n def iterkeys(self) -> Iterator[_KT]: ...\n def itervalues(self) -> Iterator[_VT]: ...\n def iteritems(self) -> Iterator[Tuple[_KT, _VT]]: ...\n def viewkeys(self) -> KeysView[_KT]: ...\n def viewvalues(self) -> ValuesView[_VT]: ...\n def viewitems(self) -> ItemsView[_KT, _VT]: ...\n @classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T]) -> Dict[_T, Any]: ...\n @classmethod\n @overload\n def fromkeys(cls, __iterable: Iterable[_T], __value: _S) -> Dict[_T, _S]: ...\n def __len__(self) -> int: ...\n def __getitem__(self, k: _KT) -> _VT: ...\n def __setitem__(self, k: _KT, v: _VT) -> None: ...\n def __delitem__(self, v: _KT) -> None: ...\n def __iter__(self) -> Iterator[_KT]: ...\n def __str__(self) -> str: ...\n __hash__: None # type: ignore\n\nclass set(MutableSet[_T], Generic[_T]):\n def __init__(self, iterable: Iterable[_T] = ...) -> None: ...\n def add(self, element: _T) -> None: ...\n def clear(self) -> None: ...\n def copy(self) -> Set[_T]: ...\n def difference(self, *s: Iterable[Any]) -> Set[_T]: ...\n def difference_update(self, *s: Iterable[Any]) -> None: ...\n def discard(self, element: _T) -> None: ...\n def intersection(self, *s: Iterable[Any]) -> Set[_T]: ...\n def intersection_update(self, *s: Iterable[Any]) -> None: ...\n def isdisjoint(self, s: Iterable[Any]) -> bool: ...\n def issubset(self, s: Iterable[Any]) -> bool: ...\n def issuperset(self, s: Iterable[Any]) -> bool: ...\n def pop(self) -> _T: ...\n def remove(self, element: _T) -> None: ...\n def symmetric_difference(self, s: Iterable[_T]) -> Set[_T]: ...\n def symmetric_difference_update(self, s: Iterable[_T]) -> None: ...\n def union(self, *s: Iterable[_T]) -> Set[_T]: ...\n def update(self, *s: Iterable[_T]) -> None: ...\n def __len__(self) -> int: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __str__(self) -> str: ...\n def __and__(self, s: AbstractSet[object]) -> Set[_T]: ...\n def __iand__(self, s: AbstractSet[object]) -> Set[_T]: ...\n def __or__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n def __ior__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n @overload\n def __sub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...\n @overload\n def __sub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...\n @overload # type: ignore\n def __isub__(self: Set[str], s: AbstractSet[Optional[Text]]) -> Set[_T]: ...\n @overload\n def __isub__(self, s: AbstractSet[Optional[_T]]) -> Set[_T]: ...\n def __xor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n def __ixor__(self, s: AbstractSet[_S]) -> Set[Union[_T, _S]]: ...\n def __le__(self, s: AbstractSet[object]) -> bool: ...\n def __lt__(self, s: AbstractSet[object]) -> bool: ...\n def __ge__(self, s: AbstractSet[object]) -> bool: ...\n def __gt__(self, s: AbstractSet[object]) -> bool: ...\n __hash__: None # type: ignore\n\nclass frozenset(AbstractSet[_T_co], Generic[_T_co]):\n def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...\n def copy(self) -> FrozenSet[_T_co]: ...\n def difference(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...\n def intersection(self, *s: Iterable[object]) -> FrozenSet[_T_co]: ...\n def isdisjoint(self, s: Iterable[_T_co]) -> bool: ...\n def issubset(self, s: Iterable[object]) -> bool: ...\n def issuperset(self, s: Iterable[object]) -> bool: ...\n def symmetric_difference(self, s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...\n def union(self, *s: Iterable[_T_co]) -> FrozenSet[_T_co]: ...\n def __len__(self) -> int: ...\n def __contains__(self, o: object) -> bool: ...\n def __iter__(self) -> Iterator[_T_co]: ...\n def __str__(self) -> str: ...\n def __and__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...\n def __or__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...\n def __sub__(self, s: AbstractSet[_T_co]) -> FrozenSet[_T_co]: ...\n def __xor__(self, s: AbstractSet[_S]) -> FrozenSet[Union[_T_co, _S]]: ...\n def __le__(self, s: AbstractSet[object]) -> bool: ...\n def __lt__(self, s: AbstractSet[object]) -> bool: ...\n def __ge__(self, s: AbstractSet[object]) -> bool: ...\n def __gt__(self, s: AbstractSet[object]) -> bool: ...\n\nclass enumerate(Iterator[Tuple[int, _T]], Generic[_T]):\n def __init__(self, iterable: Iterable[_T], start: int = ...) -> None: ...\n def __iter__(self) -> Iterator[Tuple[int, _T]]: ...\n def next(self) -> Tuple[int, _T]: ...\n\nclass xrange(Sized, Iterable[int], Reversible[int]):\n @overload\n def __init__(self, stop: int) -> None: ...\n @overload\n def __init__(self, start: int, stop: int, step: int = ...) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[int]: ...\n def __getitem__(self, i: int) -> int: ...\n def __reversed__(self) -> Iterator[int]: ...\n\nclass property(object):\n def __init__(\n self,\n fget: Optional[Callable[[Any], Any]] = ...,\n fset: Optional[Callable[[Any, Any], None]] = ...,\n fdel: Optional[Callable[[Any], None]] = ...,\n doc: Optional[str] = ...,\n ) -> None: ...\n def getter(self, fget: Callable[[Any], Any]) -> property: ...\n def setter(self, fset: Callable[[Any, Any], None]) -> property: ...\n def deleter(self, fdel: Callable[[Any], None]) -> property: ...\n def __get__(self, obj: Any, type: Optional[type] = ...) -> Any: ...\n def __set__(self, obj: Any, value: Any) -> None: ...\n def __delete__(self, obj: Any) -> None: ...\n def fget(self) -> Any: ...\n def fset(self, value: Any) -> None: ...\n def fdel(self) -> None: ...\n\nlong = int\n\nclass _NotImplementedType(Any): # type: ignore\n # A little weird, but typing the __call__ as NotImplemented makes the error message\n # for NotImplemented() much better\n __call__: NotImplemented # type: ignore\n\nNotImplemented: _NotImplementedType\n\ndef abs(__x: SupportsAbs[_T]) -> _T: ...\ndef all(__iterable: Iterable[object]) -> bool: ...\ndef any(__iterable: Iterable[object]) -> bool: ...\ndef apply(__func: Callable[..., _T], __args: Optional[Sequence[Any]] = ..., __kwds: Optional[Mapping[str, Any]] = ...) -> _T: ...\ndef bin(__number: Union[int, _SupportsIndex]) -> str: ...\ndef callable(__obj: object) -> bool: ...\ndef chr(__i: int) -> str: ...\ndef cmp(__x: Any, __y: Any) -> int: ...\n\n_N1 = TypeVar("_N1", bool, int, float, complex)\n\ndef coerce(__x: _N1, __y: _N1) -> Tuple[_N1, _N1]: ...\n\n# This class is to be exported as PathLike from os,\n# but we define it here as _PathLike to avoid import cycle issues.\n# See https://github.com/python/typeshed/pull/991#issuecomment-288160993\n_AnyStr_co = TypeVar("_AnyStr_co", str, bytes, covariant=True)\n@runtime_checkable\nclass _PathLike(Protocol[_AnyStr_co]):\n def __fspath__(self) -> _AnyStr_co: ...\n\ndef compile(source: Union[Text, mod], filename: Text, mode: Text, flags: int = ..., dont_inherit: int = ...) -> Any: ...\ndef delattr(__obj: Any, __name: Text) -> None: ...\ndef dir(__o: object = ...) -> List[str]: ...\n\n_N2 = TypeVar("_N2", int, float)\n\ndef divmod(__x: _N2, __y: _N2) -> Tuple[_N2, _N2]: ...\ndef eval(\n __source: Union[Text, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...\n) -> Any: ...\ndef execfile(__filename: str, __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Dict[str, Any]] = ...) -> None: ...\ndef exit(code: object = ...) -> NoReturn: ...\n@overload\ndef filter(__function: Callable[[AnyStr], Any], __iterable: AnyStr) -> AnyStr: ... # type: ignore\n@overload\ndef filter(__function: None, __iterable: Tuple[Optional[_T], ...]) -> Tuple[_T, ...]: ... # type: ignore\n@overload\ndef filter(__function: Callable[[_T], Any], __iterable: Tuple[_T, ...]) -> Tuple[_T, ...]: ... # type: ignore\n@overload\ndef filter(__function: None, __iterable: Iterable[Optional[_T]]) -> List[_T]: ...\n@overload\ndef filter(__function: Callable[[_T], Any], __iterable: Iterable[_T]) -> List[_T]: ...\ndef format(__value: object, __format_spec: str = ...) -> str: ... # TODO unicode\ndef getattr(__o: Any, name: Text, __default: Any = ...) -> Any: ...\ndef globals() -> Dict[str, Any]: ...\ndef hasattr(__obj: Any, __name: Text) -> bool: ...\ndef hash(__obj: object) -> int: ...\ndef hex(__number: Union[int, _SupportsIndex]) -> str: ...\ndef id(__obj: object) -> int: ...\ndef input(__prompt: Any = ...) -> Any: ...\ndef intern(__string: str) -> str: ...\n@overload\ndef iter(__iterable: Iterable[_T]) -> Iterator[_T]: ...\n@overload\ndef iter(__function: Callable[[], Optional[_T]], __sentinel: None) -> Iterator[_T]: ...\n@overload\ndef iter(__function: Callable[[], _T], __sentinel: Any) -> Iterator[_T]: ...\ndef isinstance(__obj: object, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...\ndef issubclass(__cls: type, __class_or_tuple: Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]) -> bool: ...\ndef len(__obj: Sized) -> int: ...\ndef locals() -> Dict[str, Any]: ...\n@overload\ndef map(__func: None, __iter1: Iterable[_T1]) -> List[_T1]: ...\n@overload\ndef map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...\n@overload\ndef map(__func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef map(\n __func: None, __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]\n) -> List[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef map(\n __func: None,\n __iter1: Iterable[_T1],\n __iter2: Iterable[_T2],\n __iter3: Iterable[_T3],\n __iter4: Iterable[_T4],\n __iter5: Iterable[_T5],\n) -> List[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef map(\n __func: None,\n __iter1: Iterable[Any],\n __iter2: Iterable[Any],\n __iter3: Iterable[Any],\n __iter4: Iterable[Any],\n __iter5: Iterable[Any],\n __iter6: Iterable[Any],\n *iterables: Iterable[Any],\n) -> List[Tuple[Any, ...]]: ...\n@overload\ndef map(__func: Callable[[_T1], _S], __iter1: Iterable[_T1]) -> List[_S]: ...\n@overload\ndef map(__func: Callable[[_T1, _T2], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[_S]: ...\n@overload\ndef map(\n __func: Callable[[_T1, _T2, _T3], _S], __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]\n) -> List[_S]: ...\n@overload\ndef map(\n __func: Callable[[_T1, _T2, _T3, _T4], _S],\n __iter1: Iterable[_T1],\n __iter2: Iterable[_T2],\n __iter3: Iterable[_T3],\n __iter4: Iterable[_T4],\n) -> List[_S]: ...\n@overload\ndef map(\n __func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],\n __iter1: Iterable[_T1],\n __iter2: Iterable[_T2],\n __iter3: Iterable[_T3],\n __iter4: Iterable[_T4],\n __iter5: Iterable[_T5],\n) -> List[_S]: ...\n@overload\ndef map(\n __func: Callable[..., _S],\n __iter1: Iterable[Any],\n __iter2: Iterable[Any],\n __iter3: Iterable[Any],\n __iter4: Iterable[Any],\n __iter5: Iterable[Any],\n __iter6: Iterable[Any],\n *iterables: Iterable[Any],\n) -> List[_S]: ...\n@overload\ndef max(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...\n@overload\ndef max(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...\n@overload\ndef min(__arg1: _T, __arg2: _T, *_args: _T, key: Callable[[_T], Any] = ...) -> _T: ...\n@overload\ndef min(__iterable: Iterable[_T], *, key: Callable[[_T], Any] = ...) -> _T: ...\n@overload\ndef next(__i: Iterator[_T]) -> _T: ...\n@overload\ndef next(__i: Iterator[_T], default: _VT) -> Union[_T, _VT]: ...\ndef oct(__number: Union[int, _SupportsIndex]) -> str: ...\ndef open(name: Union[unicode, int], mode: unicode = ..., buffering: int = ...) -> BinaryIO: ...\ndef ord(__c: Union[Text, bytes]) -> int: ...\n\n# This is only available after from __future__ import print_function.\ndef print(\n *values: object, sep: Optional[Text] = ..., end: Optional[Text] = ..., file: Optional[SupportsWrite[Any]] = ...\n) -> None: ...\n\n_E = TypeVar("_E", contravariant=True)\n_M = TypeVar("_M", contravariant=True)\n\nclass _SupportsPow2(Protocol[_E, _T_co]):\n def __pow__(self, __other: _E) -> _T_co: ...\n\nclass _SupportsPow3(Protocol[_E, _M, _T_co]):\n def __pow__(self, __other: _E, __modulo: _M) -> _T_co: ...\n\n@overload\ndef pow(__base: int, __exp: int, __mod: None = ...) -> Any: ... # returns int or float depending on whether exp is non-negative\n@overload\ndef pow(__base: int, __exp: int, __mod: int) -> int: ...\n@overload\ndef pow(__base: float, __exp: float, __mod: None = ...) -> float: ...\n@overload\ndef pow(__base: _SupportsPow2[_E, _T_co], __exp: _E) -> _T_co: ...\n@overload\ndef pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ...\ndef quit(code: object = ...) -> NoReturn: ...\ndef range(__x: int, __y: int = ..., __step: int = ...) -> List[int]: ... # noqa: F811\ndef raw_input(__prompt: Any = ...) -> str: ...\n@overload\ndef reduce(__function: Callable[[_T, _S], _T], __iterable: Iterable[_S], __initializer: _T) -> _T: ...\n@overload\ndef reduce(__function: Callable[[_T, _T], _T], __iterable: Iterable[_T]) -> _T: ...\ndef reload(__module: Any) -> Any: ...\n@overload\ndef reversed(__sequence: Sequence[_T]) -> Iterator[_T]: ...\n@overload\ndef reversed(__sequence: Reversible[_T]) -> Iterator[_T]: ...\ndef repr(__obj: object) -> str: ...\n@overload\ndef round(number: float) -> float: ...\n@overload\ndef round(number: float, ndigits: int) -> float: ...\n@overload\ndef round(number: SupportsFloat) -> float: ...\n@overload\ndef round(number: SupportsFloat, ndigits: int) -> float: ...\ndef setattr(__obj: Any, __name: Text, __value: Any) -> None: ...\ndef sorted(\n __iterable: Iterable[_T],\n *,\n cmp: Callable[[_T, _T], int] = ...,\n key: Optional[Callable[[_T], Any]] = ...,\n reverse: bool = ...,\n) -> List[_T]: ...\n@overload\ndef sum(__iterable: Iterable[_T]) -> Union[_T, int]: ...\n@overload\ndef sum(__iterable: Iterable[_T], __start: _S) -> Union[_T, _S]: ...\ndef unichr(__i: int) -> unicode: ...\ndef vars(__object: Any = ...) -> Dict[str, Any]: ...\n@overload\ndef zip(__iter1: Iterable[_T1]) -> List[Tuple[_T1]]: ...\n@overload\ndef zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ...\n@overload\ndef zip(__iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef zip(\n __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4]\n) -> List[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef zip(\n __iter1: Iterable[_T1], __iter2: Iterable[_T2], __iter3: Iterable[_T3], __iter4: Iterable[_T4], __iter5: Iterable[_T5]\n) -> List[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef zip(\n __iter1: Iterable[Any],\n __iter2: Iterable[Any],\n __iter3: Iterable[Any],\n __iter4: Iterable[Any],\n __iter5: Iterable[Any],\n __iter6: Iterable[Any],\n *iterables: Iterable[Any],\n) -> List[Tuple[Any, ...]]: ...\ndef __import__(\n name: Text,\n globals: Optional[Mapping[str, Any]] = ...,\n locals: Optional[Mapping[str, Any]] = ...,\n fromlist: Sequence[str] = ...,\n level: int = ...,\n) -> Any: ...\n\n# Actually the type of Ellipsis is <type 'ellipsis'>, but since it's\n# not exposed anywhere under that name, we make it private here.\nclass ellipsis: ...\n\nEllipsis: ellipsis\n\n# TODO: buffer support is incomplete; e.g. some_string.startswith(some_buffer) doesn't type check.\n_AnyBuffer = TypeVar("_AnyBuffer", str, unicode, bytearray, buffer)\n\nclass buffer(Sized):\n def __init__(self, object: _AnyBuffer, offset: int = ..., size: int = ...) -> None: ...\n def __add__(self, other: _AnyBuffer) -> str: ...\n def __cmp__(self, other: _AnyBuffer) -> bool: ...\n def __getitem__(self, key: Union[int, slice]) -> str: ...\n def __getslice__(self, i: int, j: int) -> str: ...\n def __len__(self) -> int: ...\n def __mul__(self, x: int) -> str: ...\n\nclass BaseException(object):\n args: Tuple[Any, ...]\n message: Any\n def __init__(self, *args: object) -> None: ...\n def __str__(self) -> str: ...\n def __repr__(self) -> str: ...\n def __getitem__(self, i: int) -> Any: ...\n def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...\n\nclass GeneratorExit(BaseException): ...\nclass KeyboardInterrupt(BaseException): ...\n\nclass SystemExit(BaseException):\n code: int\n\nclass Exception(BaseException): ...\nclass StopIteration(Exception): ...\nclass StandardError(Exception): ...\n\n_StandardError = StandardError\n\nclass EnvironmentError(StandardError):\n errno: int\n strerror: str\n # TODO can this be unicode?\n filename: str\n\nclass OSError(EnvironmentError): ...\nclass IOError(EnvironmentError): ...\nclass ArithmeticError(_StandardError): ...\nclass AssertionError(_StandardError): ...\nclass AttributeError(_StandardError): ...\nclass BufferError(_StandardError): ...\nclass EOFError(_StandardError): ...\nclass ImportError(_StandardError): ...\nclass LookupError(_StandardError): ...\nclass MemoryError(_StandardError): ...\nclass NameError(_StandardError): ...\nclass ReferenceError(_StandardError): ...\nclass RuntimeError(_StandardError): ...\n\nclass SyntaxError(_StandardError):\n msg: str\n lineno: Optional[int]\n offset: Optional[int]\n text: Optional[str]\n filename: Optional[str]\n\nclass SystemError(_StandardError): ...\nclass TypeError(_StandardError): ...\nclass ValueError(_StandardError): ...\nclass FloatingPointError(ArithmeticError): ...\nclass OverflowError(ArithmeticError): ...\nclass ZeroDivisionError(ArithmeticError): ...\nclass IndexError(LookupError): ...\nclass KeyError(LookupError): ...\nclass UnboundLocalError(NameError): ...\n\nclass WindowsError(OSError):\n winerror: int\n\nclass NotImplementedError(RuntimeError): ...\nclass IndentationError(SyntaxError): ...\nclass TabError(IndentationError): ...\nclass UnicodeError(ValueError): ...\n\nclass UnicodeDecodeError(UnicodeError):\n encoding: str\n object: bytes\n start: int\n end: int\n reason: str\n def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None: ...\n\nclass UnicodeEncodeError(UnicodeError):\n encoding: str\n object: Text\n start: int\n end: int\n reason: str\n def __init__(self, __encoding: str, __object: Text, __start: int, __end: int, __reason: str) -> None: ...\n\nclass UnicodeTranslateError(UnicodeError): ...\nclass Warning(Exception): ...\nclass UserWarning(Warning): ...\nclass DeprecationWarning(Warning): ...\nclass SyntaxWarning(Warning): ...\nclass RuntimeWarning(Warning): ...\nclass FutureWarning(Warning): ...\nclass PendingDeprecationWarning(Warning): ...\nclass ImportWarning(Warning): ...\nclass UnicodeWarning(Warning): ...\nclass BytesWarning(Warning): ...\n\nclass file(BinaryIO):\n @overload\n def __init__(self, file: str, mode: str = ..., buffering: int = ...) -> None: ...\n @overload\n def __init__(self, file: unicode, mode: str = ..., buffering: int = ...) -> None: ...\n @overload\n def __init__(self, file: int, mode: str = ..., buffering: int = ...) -> None: ...\n def __iter__(self) -> Iterator[str]: ...\n def next(self) -> str: ...\n def read(self, n: int = ...) -> str: ...\n def __enter__(self) -> BinaryIO: ...\n def __exit__(\n self, t: Optional[type] = ..., exc: Optional[BaseException] = ..., tb: Optional[Any] = ...\n ) -> Optional[bool]: ...\n def flush(self) -> None: ...\n def fileno(self) -> int: ...\n def isatty(self) -> bool: ...\n def close(self) -> None: ...\n def readable(self) -> bool: ...\n def writable(self) -> bool: ...\n def seekable(self) -> bool: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def tell(self) -> int: ...\n def readline(self, limit: int = ...) -> str: ...\n def readlines(self, hint: int = ...) -> List[str]: ...\n def write(self, data: str) -> int: ...\n def writelines(self, data: Iterable[str]) -> None: ...\n def truncate(self, pos: Optional[int] = ...) -> int: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\builtins.pyi
|
builtins.pyi
|
Other
| 48,853 | 0.95 | 0.633473 | 0.022104 |
react-lib
| 137 |
2023-11-12T11:12:08.630360
|
MIT
| false |
13102b31bcdba8a358df481109038432
|
import SimpleHTTPServer\nfrom typing import List\n\nclass CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):\n cgi_directories: List[str]\n def do_POST(self) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\CGIHTTPServer.pyi
|
CGIHTTPServer.pyi
|
Other
| 187 | 0.85 | 0.333333 | 0 |
python-kit
| 664 |
2024-09-03T12:36:38.896559
|
MIT
| false |
d586a93e119f86fb395effe0ecd76c03
|
from typing import (\n AbstractSet,\n Any,\n Callable as Callable,\n Container as Container,\n Dict,\n Generic,\n Hashable as Hashable,\n ItemsView as ItemsView,\n Iterable as Iterable,\n Iterator as Iterator,\n KeysView as KeysView,\n List,\n Mapping as Mapping,\n MappingView as MappingView,\n MutableMapping as MutableMapping,\n MutableSequence as MutableSequence,\n MutableSet as MutableSet,\n Optional,\n Reversible,\n Sequence as Sequence,\n Sized as Sized,\n Tuple,\n Type,\n TypeVar,\n Union,\n ValuesView as ValuesView,\n overload,\n)\n\nSet = AbstractSet\n\n_S = TypeVar("_S")\n_T = TypeVar("_T")\n_KT = TypeVar("_KT")\n_VT = TypeVar("_VT")\n\n# namedtuple is special-cased in the type checker; the initializer is ignored.\ndef namedtuple(\n typename: Union[str, unicode],\n field_names: Union[str, unicode, Iterable[Union[str, unicode]]],\n verbose: bool = ...,\n rename: bool = ...,\n) -> Type[Tuple[Any, ...]]: ...\n\nclass deque(Sized, Iterable[_T], Reversible[_T], Generic[_T]):\n def __init__(self, iterable: Iterable[_T] = ..., maxlen: int = ...) -> None: ...\n @property\n def maxlen(self) -> Optional[int]: ...\n def append(self, x: _T) -> None: ...\n def appendleft(self, x: _T) -> None: ...\n def clear(self) -> None: ...\n def count(self, x: _T) -> int: ...\n def extend(self, iterable: Iterable[_T]) -> None: ...\n def extendleft(self, iterable: Iterable[_T]) -> None: ...\n def pop(self) -> _T: ...\n def popleft(self) -> _T: ...\n def remove(self, value: _T) -> None: ...\n def reverse(self) -> None: ...\n def rotate(self, n: int = ...) -> None: ...\n def __len__(self) -> int: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __str__(self) -> str: ...\n def __hash__(self) -> int: ...\n def __getitem__(self, i: int) -> _T: ...\n def __setitem__(self, i: int, x: _T) -> None: ...\n def __contains__(self, o: _T) -> bool: ...\n def __reversed__(self) -> Iterator[_T]: ...\n def __iadd__(self: _S, iterable: Iterable[_T]) -> _S: ...\n\nclass Counter(Dict[_T, int], Generic[_T]):\n @overload\n def __init__(self, **kwargs: int) -> None: ...\n @overload\n def __init__(self, mapping: Mapping[_T, int]) -> None: ...\n @overload\n def __init__(self, iterable: Iterable[_T]) -> None: ...\n def copy(self: _S) -> _S: ...\n def elements(self) -> Iterator[_T]: ...\n def most_common(self, n: Optional[int] = ...) -> List[Tuple[_T, int]]: ...\n @overload\n def subtract(self, __mapping: Mapping[_T, int]) -> None: ...\n @overload\n def subtract(self, iterable: Iterable[_T]) -> None: ...\n # The Iterable[Tuple[...]] argument type is not actually desirable\n # (the tuples will be added as keys, breaking type safety) but\n # it's included so that the signature is compatible with\n # Dict.update. Not sure if we should use '# type: ignore' instead\n # and omit the type from the union.\n @overload\n def update(self, __m: Mapping[_T, int], **kwargs: int) -> None: ...\n @overload\n def update(self, __m: Union[Iterable[_T], Iterable[Tuple[_T, int]]], **kwargs: int) -> None: ...\n @overload\n def update(self, **kwargs: int) -> None: ...\n def __add__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __sub__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __and__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __or__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __iadd__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __isub__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __iand__(self, other: Counter[_T]) -> Counter[_T]: ...\n def __ior__(self, other: Counter[_T]) -> Counter[_T]: ...\n\nclass OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):\n def popitem(self, last: bool = ...) -> Tuple[_KT, _VT]: ...\n def copy(self: _S) -> _S: ...\n def __reversed__(self) -> Iterator[_KT]: ...\n\nclass defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):\n default_factory: Callable[[], _VT]\n @overload\n def __init__(self, **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]]) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT]) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], map: Mapping[_KT, _VT], **kwargs: _VT) -> None: ...\n @overload\n def __init__(self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]]) -> None: ...\n @overload\n def __init__(\n self, default_factory: Optional[Callable[[], _VT]], iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT\n ) -> None: ...\n def __missing__(self, key: _KT) -> _VT: ...\n def copy(self: _S) -> _S: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\collections.pyi
|
collections.pyi
|
Other
| 4,913 | 0.95 | 0.457364 | 0.04918 |
python-kit
| 477 |
2025-05-11T17:09:55.018298
|
Apache-2.0
| false |
abc0838e540b0e4d1d73b11a7d35f05c
|
from typing import AnyStr, Text, Tuple, overload\n\ndef getstatus(file: Text) -> str: ...\ndef getoutput(cmd: Text) -> str: ...\ndef getstatusoutput(cmd: Text) -> Tuple[int, str]: ...\n@overload\ndef mk2arg(head: bytes, x: bytes) -> bytes: ...\n@overload\ndef mk2arg(head: Text, x: Text) -> Text: ...\ndef mkarg(x: AnyStr) -> AnyStr: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\commands.pyi
|
commands.pyi
|
Other
| 329 | 0.85 | 0.6 | 0 |
react-lib
| 563 |
2024-01-28T01:04:37.463388
|
BSD-3-Clause
| false |
b153f8272d4d483ddf98ed939949859a
|
from _typeshed import AnyPath\nfrom typing import Any, Optional, Pattern\n\n# rx can be any object with a 'search' method; once we have Protocols we can change the type\ndef compile_dir(\n dir: AnyPath,\n maxlevels: int = ...,\n ddir: Optional[AnyPath] = ...,\n force: bool = ...,\n rx: Optional[Pattern[Any]] = ...,\n quiet: int = ...,\n) -> int: ...\ndef compile_file(\n fullname: AnyPath, ddir: Optional[AnyPath] = ..., force: bool = ..., rx: Optional[Pattern[Any]] = ..., quiet: int = ...\n) -> int: ...\ndef compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ...) -> int: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\compileall.pyi
|
compileall.pyi
|
Other
| 628 | 0.95 | 0.1875 | 0.066667 |
node-utils
| 327 |
2024-11-03T23:07:54.667471
|
MIT
| false |
99f6396f6dae7a2fd5703c183d70b99b
|
from _typeshed import SupportsNoArgReadline\nfrom typing import IO, Any, Dict, List, Optional, Sequence, Tuple, Union\n\nDEFAULTSECT: str\nMAX_INTERPOLATION_DEPTH: int\n\nclass Error(Exception):\n message: Any\n def __init__(self, msg: str = ...) -> None: ...\n def _get_message(self) -> None: ...\n def _set_message(self, value: str) -> None: ...\n def __repr__(self) -> str: ...\n def __str__(self) -> str: ...\n\nclass NoSectionError(Error):\n section: str\n def __init__(self, section: str) -> None: ...\n\nclass DuplicateSectionError(Error):\n section: str\n def __init__(self, section: str) -> None: ...\n\nclass NoOptionError(Error):\n section: str\n option: str\n def __init__(self, option: str, section: str) -> None: ...\n\nclass InterpolationError(Error):\n section: str\n option: str\n msg: str\n def __init__(self, option: str, section: str, msg: str) -> None: ...\n\nclass InterpolationMissingOptionError(InterpolationError):\n reference: str\n def __init__(self, option: str, section: str, rawval: str, reference: str) -> None: ...\n\nclass InterpolationSyntaxError(InterpolationError): ...\n\nclass InterpolationDepthError(InterpolationError):\n def __init__(self, option: str, section: str, rawval: str) -> None: ...\n\nclass ParsingError(Error):\n filename: str\n errors: List[Tuple[Any, Any]]\n def __init__(self, filename: str) -> None: ...\n def append(self, lineno: Any, line: Any) -> None: ...\n\nclass MissingSectionHeaderError(ParsingError):\n lineno: Any\n line: Any\n def __init__(self, filename: str, lineno: Any, line: Any) -> None: ...\n\nclass RawConfigParser:\n _dict: Any\n _sections: Dict[Any, Any]\n _defaults: Dict[Any, Any]\n _optcre: Any\n SECTCRE: Any\n OPTCRE: Any\n OPTCRE_NV: Any\n def __init__(self, defaults: Dict[Any, Any] = ..., dict_type: Any = ..., allow_no_value: bool = ...) -> None: ...\n def defaults(self) -> Dict[Any, Any]: ...\n def sections(self) -> List[str]: ...\n def add_section(self, section: str) -> None: ...\n def has_section(self, section: str) -> bool: ...\n def options(self, section: str) -> List[str]: ...\n def read(self, filenames: Union[str, Sequence[str]]) -> List[str]: ...\n def readfp(self, fp: SupportsNoArgReadline[str], filename: str = ...) -> None: ...\n def get(self, section: str, option: str) -> str: ...\n def items(self, section: str) -> List[Tuple[Any, Any]]: ...\n def _get(self, section: str, conv: type, option: str) -> Any: ...\n def getint(self, section: str, option: str) -> int: ...\n def getfloat(self, section: str, option: str) -> float: ...\n _boolean_states: Dict[str, bool]\n def getboolean(self, section: str, option: str) -> bool: ...\n def optionxform(self, optionstr: str) -> str: ...\n def has_option(self, section: str, option: str) -> bool: ...\n def set(self, section: str, option: str, value: Any = ...) -> None: ...\n def write(self, fp: IO[str]) -> None: ...\n def remove_option(self, section: str, option: Any) -> bool: ...\n def remove_section(self, section: str) -> bool: ...\n def _read(self, fp: IO[str], fpname: str) -> None: ...\n\nclass ConfigParser(RawConfigParser):\n _KEYCRE: Any\n def get(self, section: str, option: str, raw: bool = ..., vars: Optional[Dict[Any, Any]] = ...) -> Any: ...\n def items(self, section: str, raw: bool = ..., vars: Optional[Dict[Any, Any]] = ...) -> List[Tuple[str, Any]]: ...\n def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...\n def _interpolation_replace(self, match: Any) -> str: ...\n\nclass SafeConfigParser(ConfigParser):\n _interpvar_re: Any\n def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...\n def _interpolate_some(\n self, option: str, accum: List[Any], rest: str, section: str, map: Dict[Any, Any], depth: int\n ) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\ConfigParser.pyi
|
ConfigParser.pyi
|
Other
| 3,869 | 0.85 | 0.556701 | 0 |
awesome-app
| 30 |
2024-01-12T03:09:50.350647
|
Apache-2.0
| false |
d7f7155308b4897899933191bd5a344f
|
from typing import Any, Dict, Optional\n\nclass CookieError(Exception): ...\n\nclass Morsel(Dict[Any, Any]):\n key: Any\n def __init__(self): ...\n def __setitem__(self, K, V): ...\n def isReservedKey(self, K): ...\n value: Any\n coded_value: Any\n def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ...\n def output(self, attrs: Optional[Any] = ..., header=...): ...\n def js_output(self, attrs: Optional[Any] = ...): ...\n def OutputString(self, attrs: Optional[Any] = ...): ...\n\nclass BaseCookie(Dict[Any, Any]):\n def value_decode(self, val): ...\n def value_encode(self, val): ...\n def __init__(self, input: Optional[Any] = ...): ...\n def __setitem__(self, key, value): ...\n def output(self, attrs: Optional[Any] = ..., header=..., sep=...): ...\n def js_output(self, attrs: Optional[Any] = ...): ...\n def load(self, rawdata): ...\n\nclass SimpleCookie(BaseCookie):\n def value_decode(self, val): ...\n def value_encode(self, val): ...\n\nclass SerialCookie(BaseCookie):\n def __init__(self, input: Optional[Any] = ...): ...\n def value_decode(self, val): ...\n def value_encode(self, val): ...\n\nclass SmartCookie(BaseCookie):\n def __init__(self, input: Optional[Any] = ...): ...\n def value_decode(self, val): ...\n def value_encode(self, val): ...\n\nCookie: Any\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\Cookie.pyi
|
Cookie.pyi
|
Other
| 1,342 | 0.85 | 0.7 | 0 |
react-lib
| 879 |
2025-04-21T07:31:31.020677
|
MIT
| false |
6335b933969510cbe39faa15537c2242
|
from typing import Any, Optional\n\nclass Cookie:\n version: Any\n name: Any\n value: Any\n port: Any\n port_specified: Any\n domain: Any\n domain_specified: Any\n domain_initial_dot: Any\n path: Any\n path_specified: Any\n secure: Any\n expires: Any\n discard: Any\n comment: Any\n comment_url: Any\n rfc2109: Any\n def __init__(\n self,\n version,\n name,\n value,\n port,\n port_specified,\n domain,\n domain_specified,\n domain_initial_dot,\n path,\n path_specified,\n secure,\n expires,\n discard,\n comment,\n comment_url,\n rest,\n rfc2109: bool = ...,\n ): ...\n def has_nonstandard_attr(self, name): ...\n def get_nonstandard_attr(self, name, default: Optional[Any] = ...): ...\n def set_nonstandard_attr(self, name, value): ...\n def is_expired(self, now: Optional[Any] = ...): ...\n\nclass CookiePolicy:\n def set_ok(self, cookie, request): ...\n def return_ok(self, cookie, request): ...\n def domain_return_ok(self, domain, request): ...\n def path_return_ok(self, path, request): ...\n\nclass DefaultCookiePolicy(CookiePolicy):\n DomainStrictNoDots: Any\n DomainStrictNonDomain: Any\n DomainRFC2965Match: Any\n DomainLiberal: Any\n DomainStrict: Any\n netscape: Any\n rfc2965: Any\n rfc2109_as_netscape: Any\n hide_cookie2: Any\n strict_domain: Any\n strict_rfc2965_unverifiable: Any\n strict_ns_unverifiable: Any\n strict_ns_domain: Any\n strict_ns_set_initial_dollar: Any\n strict_ns_set_path: Any\n def __init__(\n self,\n blocked_domains: Optional[Any] = ...,\n allowed_domains: Optional[Any] = ...,\n netscape: bool = ...,\n rfc2965: bool = ...,\n rfc2109_as_netscape: Optional[Any] = ...,\n hide_cookie2: bool = ...,\n strict_domain: bool = ...,\n strict_rfc2965_unverifiable: bool = ...,\n strict_ns_unverifiable: bool = ...,\n strict_ns_domain=...,\n strict_ns_set_initial_dollar: bool = ...,\n strict_ns_set_path: bool = ...,\n ): ...\n def blocked_domains(self): ...\n def set_blocked_domains(self, blocked_domains): ...\n def is_blocked(self, domain): ...\n def allowed_domains(self): ...\n def set_allowed_domains(self, allowed_domains): ...\n def is_not_allowed(self, domain): ...\n def set_ok(self, cookie, request): ...\n def set_ok_version(self, cookie, request): ...\n def set_ok_verifiability(self, cookie, request): ...\n def set_ok_name(self, cookie, request): ...\n def set_ok_path(self, cookie, request): ...\n def set_ok_domain(self, cookie, request): ...\n def set_ok_port(self, cookie, request): ...\n def return_ok(self, cookie, request): ...\n def return_ok_version(self, cookie, request): ...\n def return_ok_verifiability(self, cookie, request): ...\n def return_ok_secure(self, cookie, request): ...\n def return_ok_expires(self, cookie, request): ...\n def return_ok_port(self, cookie, request): ...\n def return_ok_domain(self, cookie, request): ...\n def domain_return_ok(self, domain, request): ...\n def path_return_ok(self, path, request): ...\n\nclass Absent: ...\n\nclass CookieJar:\n non_word_re: Any\n quote_re: Any\n strict_domain_re: Any\n domain_re: Any\n dots_re: Any\n magic_re: Any\n def __init__(self, policy: Optional[Any] = ...): ...\n def set_policy(self, policy): ...\n def add_cookie_header(self, request): ...\n def make_cookies(self, response, request): ...\n def set_cookie_if_ok(self, cookie, request): ...\n def set_cookie(self, cookie): ...\n def extract_cookies(self, response, request): ...\n def clear(self, domain: Optional[Any] = ..., path: Optional[Any] = ..., name: Optional[Any] = ...): ...\n def clear_session_cookies(self): ...\n def clear_expired_cookies(self): ...\n def __iter__(self): ...\n def __len__(self): ...\n\nclass LoadError(IOError): ...\n\nclass FileCookieJar(CookieJar):\n filename: Any\n delayload: Any\n def __init__(self, filename: Optional[Any] = ..., delayload: bool = ..., policy: Optional[Any] = ...): ...\n def save(self, filename: Optional[Any] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...): ...\n def load(self, filename: Optional[Any] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...): ...\n def revert(self, filename: Optional[Any] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...): ...\n\nclass LWPCookieJar(FileCookieJar):\n def as_lwp_str(self, ignore_discard: bool = ..., ignore_expires: bool = ...) -> str: ... # undocumented\n\nMozillaCookieJar = FileCookieJar\n\ndef lwp_cookie_str(cookie: Cookie) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\cookielib.pyi
|
cookielib.pyi
|
Other
| 4,716 | 0.95 | 0.408451 | 0 |
node-utils
| 82 |
2024-10-31T23:48:59.775381
|
GPL-3.0
| false |
038fb9d628984db78cfe7f40aecf87a2
|
from typing import Any, Callable, Hashable, List, Optional, SupportsInt, Tuple, TypeVar, Union\n\n_Type = TypeVar("_Type", bound=type)\n_Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]]\n\n__all__: List[str]\n\ndef pickle(\n ob_type: _Type,\n pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]],\n constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...,\n) -> None: ...\ndef constructor(object: Callable[[_Reduce[_Type]], _Type]) -> None: ...\ndef add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ...\ndef remove_extension(module: Hashable, name: Hashable, code: int) -> None: ...\ndef clear_extension_cache() -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\copy_reg.pyi
|
copy_reg.pyi
|
Other
| 739 | 0.85 | 0.3125 | 0 |
awesome-app
| 280 |
2023-09-27T07:27:30.571746
|
BSD-3-Clause
| false |
d334bc42169b6dbc00df4884b6f40485
|
from typing import IO, Any, List\n\nHIGHEST_PROTOCOL: int\ncompatible_formats: List[str]\nformat_version: str\n\nclass Pickler:\n def __init__(self, file: IO[str], protocol: int = ...) -> None: ...\n def dump(self, obj: Any) -> None: ...\n def clear_memo(self) -> None: ...\n\nclass Unpickler:\n def __init__(self, file: IO[str]) -> None: ...\n def load(self) -> Any: ...\n def noload(self) -> Any: ...\n\ndef dump(obj: Any, file: IO[str], protocol: int = ...) -> None: ...\ndef dumps(obj: Any, protocol: int = ...) -> str: ...\ndef load(file: IO[str]) -> Any: ...\ndef loads(str: str) -> Any: ...\n\nclass PickleError(Exception): ...\nclass UnpicklingError(PickleError): ...\nclass BadPickleGet(UnpicklingError): ...\nclass PicklingError(PickleError): ...\nclass UnpickleableError(PicklingError): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\cPickle.pyi
|
cPickle.pyi
|
Other
| 795 | 0.85 | 0.653846 | 0 |
react-lib
| 571 |
2024-03-05T23:16:49.127924
|
BSD-3-Clause
| false |
77f29102faa95dfc69da001208368ddb
|
from abc import ABCMeta\nfrom types import TracebackType\nfrom typing import IO, Iterable, Iterator, List, Optional, Union, overload\n\n# This class isn't actually abstract, but you can't instantiate it\n# directly, so we might as well treat it as abstract in the stub.\nclass InputType(IO[str], Iterator[str], metaclass=ABCMeta):\n def getvalue(self) -> str: ...\n def close(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def read(self, size: int = ...) -> str: ...\n def readline(self, size: int = ...) -> str: ...\n def readlines(self, hint: int = ...) -> List[str]: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def tell(self) -> int: ...\n def truncate(self, size: Optional[int] = ...) -> int: ...\n def __iter__(self) -> InputType: ...\n def next(self) -> str: ...\n def reset(self) -> None: ...\n\nclass OutputType(IO[str], Iterator[str], metaclass=ABCMeta):\n @property\n def softspace(self) -> int: ...\n def getvalue(self) -> str: ...\n def close(self) -> None: ...\n @property\n def closed(self) -> bool: ...\n def flush(self) -> None: ...\n def isatty(self) -> bool: ...\n def read(self, size: int = ...) -> str: ...\n def readline(self, size: int = ...) -> str: ...\n def readlines(self, hint: int = ...) -> List[str]: ...\n def seek(self, offset: int, whence: int = ...) -> int: ...\n def tell(self) -> int: ...\n def truncate(self, size: Optional[int] = ...) -> int: ...\n def __iter__(self) -> OutputType: ...\n def next(self) -> str: ...\n def reset(self) -> None: ...\n def write(self, b: Union[str, unicode]) -> int: ...\n def writelines(self, lines: Iterable[Union[str, unicode]]) -> None: ...\n\n@overload\ndef StringIO() -> OutputType: ...\n@overload\ndef StringIO(s: str) -> InputType: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\cStringIO.pyi
|
cStringIO.pyi
|
Other
| 1,870 | 0.95 | 0.75 | 0.044444 |
react-lib
| 354 |
2024-07-02T01:22:49.605966
|
Apache-2.0
| false |
268d6063858cd6d193771bbc06c82a31
|
from typing import List, MutableSequence, Text, Union\n\ndef reset() -> None: ...\ndef listdir(path: Text) -> List[str]: ...\n\nopendir = listdir\n\ndef annotate(head: Text, list: Union[MutableSequence[str], MutableSequence[Text], MutableSequence[Union[str, Text]]]) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\dircache.pyi
|
dircache.pyi
|
Other
| 273 | 0.85 | 0.375 | 0 |
python-kit
| 425 |
2025-06-15T09:36:55.001085
|
GPL-3.0
| false |
3906be8d1cebafd3261654e06b48d4c4
|
from typing import Any, Callable, Dict, NoReturn, Optional, Tuple\n\nclass error(Exception):\n def __init__(self, *args: Any) -> None: ...\n\ndef start_new_thread(function: Callable[..., Any], args: Tuple[Any, ...], kwargs: Dict[str, Any] = ...) -> None: ...\ndef exit() -> NoReturn: ...\ndef get_ident() -> int: ...\ndef allocate_lock() -> LockType: ...\ndef stack_size(size: Optional[int] = ...) -> int: ...\n\nclass LockType(object):\n locked_status: bool\n def __init__(self) -> None: ...\n def acquire(self, waitflag: Optional[bool] = ...) -> bool: ...\n def __enter__(self, waitflag: Optional[bool] = ...) -> bool: ...\n def __exit__(self, typ: Any, val: Any, tb: Any) -> None: ...\n def release(self) -> bool: ...\n def locked(self) -> bool: ...\n\ndef interrupt_main() -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\dummy_thread.pyi
|
dummy_thread.pyi
|
Other
| 794 | 0.85 | 0.761905 | 0 |
awesome-app
| 314 |
2023-08-18T15:34:51.921161
|
GPL-3.0
| false |
4d6082270d7522731e9cb4bd8d70ab5f
|
from __builtin__ import (\n ArithmeticError as ArithmeticError,\n AssertionError as AssertionError,\n AttributeError as AttributeError,\n BaseException as BaseException,\n BufferError as BufferError,\n BytesWarning as BytesWarning,\n DeprecationWarning as DeprecationWarning,\n EnvironmentError as EnvironmentError,\n EOFError as EOFError,\n Exception as Exception,\n FloatingPointError as FloatingPointError,\n FutureWarning as FutureWarning,\n GeneratorExit as GeneratorExit,\n ImportError as ImportError,\n ImportWarning as ImportWarning,\n IndentationError as IndentationError,\n IndexError as IndexError,\n IOError as IOError,\n KeyboardInterrupt as KeyboardInterrupt,\n KeyError as KeyError,\n LookupError as LookupError,\n MemoryError as MemoryError,\n NameError as NameError,\n NotImplementedError as NotImplementedError,\n OSError as OSError,\n OverflowError as OverflowError,\n PendingDeprecationWarning as PendingDeprecationWarning,\n ReferenceError as ReferenceError,\n RuntimeError as RuntimeError,\n RuntimeWarning as RuntimeWarning,\n StandardError as StandardError,\n StopIteration as StopIteration,\n SyntaxError as SyntaxError,\n SyntaxWarning as SyntaxWarning,\n SystemError as SystemError,\n SystemExit as SystemExit,\n TabError as TabError,\n TypeError as TypeError,\n UnboundLocalError as UnboundLocalError,\n UnicodeDecodeError as UnicodeDecodeError,\n UnicodeEncodeError as UnicodeEncodeError,\n UnicodeError as UnicodeError,\n UnicodeTranslateError as UnicodeTranslateError,\n UnicodeWarning as UnicodeWarning,\n UserWarning as UserWarning,\n ValueError as ValueError,\n Warning as Warning,\n ZeroDivisionError as ZeroDivisionError,\n)\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\exceptions.pyi
|
exceptions.pyi
|
Other
| 1,756 | 0.85 | 0 | 0 |
react-lib
| 272 |
2025-07-03T14:59:40.149266
|
Apache-2.0
| false |
73e37c328bc76a23491854960c0bfebd
|
from _typeshed import FileDescriptorLike\nfrom typing import Any, Union\n\nFASYNC: int\nFD_CLOEXEC: int\n\nDN_ACCESS: int\nDN_ATTRIB: int\nDN_CREATE: int\nDN_DELETE: int\nDN_MODIFY: int\nDN_MULTISHOT: int\nDN_RENAME: int\nF_DUPFD: int\nF_EXLCK: int\nF_GETFD: int\nF_GETFL: int\nF_GETLEASE: int\nF_GETLK: int\nF_GETLK64: int\nF_GETOWN: int\nF_GETSIG: int\nF_NOTIFY: int\nF_RDLCK: int\nF_SETFD: int\nF_SETFL: int\nF_SETLEASE: int\nF_SETLK: int\nF_SETLK64: int\nF_SETLKW: int\nF_SETLKW64: int\nF_SETOWN: int\nF_SETSIG: int\nF_SHLCK: int\nF_UNLCK: int\nF_WRLCK: int\nI_ATMARK: int\nI_CANPUT: int\nI_CKBAND: int\nI_FDINSERT: int\nI_FIND: int\nI_FLUSH: int\nI_FLUSHBAND: int\nI_GETBAND: int\nI_GETCLTIME: int\nI_GETSIG: int\nI_GRDOPT: int\nI_GWROPT: int\nI_LINK: int\nI_LIST: int\nI_LOOK: int\nI_NREAD: int\nI_PEEK: int\nI_PLINK: int\nI_POP: int\nI_PUNLINK: int\nI_PUSH: int\nI_RECVFD: int\nI_SENDFD: int\nI_SETCLTIME: int\nI_SETSIG: int\nI_SRDOPT: int\nI_STR: int\nI_SWROPT: int\nI_UNLINK: int\nLOCK_EX: int\nLOCK_MAND: int\nLOCK_NB: int\nLOCK_READ: int\nLOCK_RW: int\nLOCK_SH: int\nLOCK_UN: int\nLOCK_WRITE: int\n\n# TODO All these return either int or bytes depending on the value of\n# cmd (not on the type of arg).\ndef fcntl(fd: FileDescriptorLike, op: int, arg: Union[int, bytes] = ...) -> Any: ...\n\n# TODO: arg: int or read-only buffer interface or read-write buffer interface\ndef ioctl(fd: FileDescriptorLike, op: int, arg: Union[int, bytes] = ..., mutate_flag: bool = ...) -> Any: ...\ndef flock(fd: FileDescriptorLike, op: int) -> None: ...\ndef lockf(fd: FileDescriptorLike, op: int, length: int = ..., start: int = ..., whence: int = ...) -> Any: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\fcntl.pyi
|
fcntl.pyi
|
Other
| 1,580 | 0.95 | 0.04878 | 0.038462 |
node-utils
| 272 |
2023-09-09T00:29:33.067252
|
Apache-2.0
| false |
4838d5c360ab399432a22f62b20c6b18
|
from typing import AnyStr, Iterable, List, Union\n\n_EitherStr = Union[str, unicode]\n\ndef fnmatch(filename: _EitherStr, pattern: _EitherStr) -> bool: ...\ndef fnmatchcase(filename: _EitherStr, pattern: _EitherStr) -> bool: ...\ndef filter(names: Iterable[AnyStr], pattern: _EitherStr) -> List[AnyStr]: ...\ndef translate(pattern: AnyStr) -> AnyStr: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\fnmatch.pyi
|
fnmatch.pyi
|
Other
| 348 | 0.85 | 0.5 | 0 |
python-kit
| 372 |
2023-08-14T09:05:09.019633
|
BSD-3-Clause
| false |
d8fa3165484973840a4d28c2ee383acd
|
from abc import ABCMeta, abstractmethod\nfrom typing import Any, Callable, Dict, Generic, Iterable, Optional, Sequence, Tuple, Type, TypeVar, overload\n\n_AnyCallable = Callable[..., Any]\n\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n@overload\ndef reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T]) -> _T: ...\n@overload\ndef reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T) -> _T: ...\n\nWRAPPER_ASSIGNMENTS: Sequence[str]\nWRAPPER_UPDATES: Sequence[str]\n\ndef update_wrapper(\n wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...\n) -> _AnyCallable: ...\ndef wraps(\n wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...\n) -> Callable[[_AnyCallable], _AnyCallable]: ...\ndef total_ordering(cls: Type[_T]) -> Type[_T]: ...\ndef cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], Any]: ...\n\nclass partial(Generic[_T]):\n func = ... # Callable[..., _T]\n args: Tuple[Any, ...]\n keywords: Dict[str, Any]\n def __init__(self, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...\n def __call__(self, *args: Any, **kwargs: Any) -> _T: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\functools.pyi
|
functools.pyi
|
Other
| 1,180 | 0.95 | 0.366667 | 0 |
python-kit
| 228 |
2023-07-30T13:51:01.986036
|
BSD-3-Clause
| false |
087aa8ffcad5d3e9006a676f86d79559
|
from itertools import ifilter, imap, izip\nfrom typing import Any\n\nfilter = ifilter\nmap = imap\nzip = izip\n\ndef ascii(obj: Any) -> str: ...\ndef hex(x: int) -> str: ...\ndef oct(x: int) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\future_builtins.pyi
|
future_builtins.pyi
|
Other
| 194 | 0.85 | 0.3 | 0 |
awesome-app
| 161 |
2024-09-10T05:24:55.090141
|
GPL-3.0
| false |
1f5b19bfc96c05179097a6f880cdd173
|
from typing import Any, List, Tuple\n\ndef enable() -> None: ...\ndef disable() -> None: ...\ndef isenabled() -> bool: ...\ndef collect(generation: int = ...) -> int: ...\ndef set_debug(flags: int) -> None: ...\ndef get_debug() -> int: ...\ndef get_objects() -> List[Any]: ...\ndef set_threshold(threshold0: int, threshold1: int = ..., threshold2: int = ...) -> None: ...\ndef get_count() -> Tuple[int, int, int]: ...\ndef get_threshold() -> Tuple[int, int, int]: ...\ndef get_referrers(*objs: Any) -> List[Any]: ...\ndef get_referents(*objs: Any) -> List[Any]: ...\ndef is_tracked(obj: Any) -> bool: ...\n\ngarbage: List[Any]\n\nDEBUG_STATS: int\nDEBUG_COLLECTABLE: int\nDEBUG_UNCOLLECTABLE: int\nDEBUG_INSTANCES: int\nDEBUG_OBJECTS: int\nDEBUG_SAVEALL: int\nDEBUG_LEAK: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\gc.pyi
|
gc.pyi
|
Other
| 752 | 0.85 | 0.52 | 0 |
python-kit
| 500 |
2023-10-26T21:19:23.207608
|
GPL-3.0
| false |
1d71191b31ea1262ce2e83548e05960a
|
from typing import List, Tuple\n\nclass GetoptError(Exception):\n opt: str\n msg: str\n def __init__(self, msg: str, opt: str = ...) -> None: ...\n def __str__(self) -> str: ...\n\nerror = GetoptError\n\ndef getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...\ndef gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\getopt.pyi
|
getopt.pyi
|
Other
| 448 | 0.85 | 0.416667 | 0 |
awesome-app
| 268 |
2025-02-23T01:25:24.216832
|
BSD-3-Clause
| false |
b492a913c5c3421772ed54317033d14f
|
from typing import IO, Any\n\nclass GetPassWarning(UserWarning): ...\n\ndef getpass(prompt: str = ..., stream: IO[Any] = ...) -> str: ...\ndef getuser() -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\getpass.pyi
|
getpass.pyi
|
Other
| 160 | 0.85 | 0.5 | 0 |
node-utils
| 583 |
2023-10-23T18:28:07.214980
|
BSD-3-Clause
| false |
5c9187175255ef7b60c43b5642018494
|
from typing import IO, Any, Container, Dict, List, Optional, Sequence, Type, Union\n\ndef bindtextdomain(domain: str, localedir: str = ...) -> str: ...\ndef bind_textdomain_codeset(domain: str, codeset: str = ...) -> str: ...\ndef textdomain(domain: str = ...) -> str: ...\ndef gettext(message: str) -> str: ...\ndef lgettext(message: str) -> str: ...\ndef dgettext(domain: str, message: str) -> str: ...\ndef ldgettext(domain: str, message: str) -> str: ...\ndef ngettext(singular: str, plural: str, n: int) -> str: ...\ndef lngettext(singular: str, plural: str, n: int) -> str: ...\ndef dngettext(domain: str, singular: str, plural: str, n: int) -> str: ...\ndef ldngettext(domain: str, singular: str, plural: str, n: int) -> str: ...\n\nclass NullTranslations(object):\n def __init__(self, fp: IO[str] = ...) -> None: ...\n def _parse(self, fp: IO[str]) -> None: ...\n def add_fallback(self, fallback: NullTranslations) -> None: ...\n def gettext(self, message: str) -> str: ...\n def lgettext(self, message: str) -> str: ...\n def ugettext(self, message: Union[str, unicode]) -> unicode: ...\n def ngettext(self, singular: str, plural: str, n: int) -> str: ...\n def lngettext(self, singular: str, plural: str, n: int) -> str: ...\n def ungettext(self, singular: Union[str, unicode], plural: Union[str, unicode], n: int) -> unicode: ...\n def info(self) -> Dict[str, str]: ...\n def charset(self) -> Optional[str]: ...\n def output_charset(self) -> Optional[str]: ...\n def set_output_charset(self, charset: Optional[str]) -> None: ...\n def install(self, unicode: bool = ..., names: Container[str] = ...) -> None: ...\n\nclass GNUTranslations(NullTranslations):\n LE_MAGIC: int\n BE_MAGIC: int\n\ndef find(\n domain: str, localedir: Optional[str] = ..., languages: Optional[Sequence[str]] = ..., all: Any = ...\n) -> Optional[Union[str, List[str]]]: ...\ndef translation(\n domain: str,\n localedir: Optional[str] = ...,\n languages: Optional[Sequence[str]] = ...,\n class_: Optional[Type[NullTranslations]] = ...,\n fallback: bool = ...,\n codeset: Optional[str] = ...,\n) -> NullTranslations: ...\ndef install(\n domain: str, localedir: Optional[str] = ..., unicode: bool = ..., codeset: Optional[str] = ..., names: Container[str] = ...\n) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\gettext.pyi
|
gettext.pyi
|
Other
| 2,285 | 0.85 | 0.625 | 0 |
awesome-app
| 653 |
2023-09-25T00:07:33.494373
|
Apache-2.0
| false |
67d4d45033daa6eaecddf4bc8ba55e46
|
from typing import AnyStr, Iterator, List, Union\n\ndef glob(pathname: AnyStr) -> List[AnyStr]: ...\ndef iglob(pathname: AnyStr) -> Iterator[AnyStr]: ...\ndef glob1(dirname: Union[str, unicode], pattern: AnyStr) -> List[AnyStr]: ...\ndef glob0(dirname: Union[str, unicode], basename: AnyStr) -> List[AnyStr]: ...\ndef has_magic(s: Union[str, unicode]) -> bool: ... # undocumented\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\glob.pyi
|
glob.pyi
|
Other
| 375 | 0.95 | 0.714286 | 0 |
vue-tools
| 856 |
2024-06-01T01:26:14.743867
|
BSD-3-Clause
| false |
0829d9d2364e7853eb4fb9ad8f390cda
|
import io\nfrom typing import IO, Any, Text\n\nclass GzipFile(io.BufferedIOBase):\n myfileobj: Any\n max_read_chunk: Any\n mode: Any\n extrabuf: Any\n extrasize: Any\n extrastart: Any\n name: Any\n min_readsize: Any\n compress: Any\n fileobj: Any\n offset: Any\n mtime: Any\n def __init__(\n self, filename: str = ..., mode: Text = ..., compresslevel: int = ..., fileobj: IO[str] = ..., mtime: float = ...\n ) -> None: ...\n @property\n def filename(self): ...\n size: Any\n crc: Any\n def write(self, data): ...\n def read(self, size=...): ...\n @property\n def closed(self): ...\n def close(self): ...\n def flush(self, zlib_mode=...): ...\n def fileno(self): ...\n def rewind(self): ...\n def readable(self): ...\n def writable(self): ...\n def seekable(self): ...\n def seek(self, offset, whence=...): ...\n def readline(self, size=...): ...\n\ndef open(filename: str, mode: Text = ..., compresslevel: int = ...) -> GzipFile: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\gzip.pyi
|
gzip.pyi
|
Other
| 997 | 0.85 | 0.421053 | 0 |
awesome-app
| 238 |
2025-05-28T20:54:20.711036
|
Apache-2.0
| false |
1a86e2663b971ed42ffa7edd667f2916
|
from typing import Tuple, Union\n\n_DataType = Union[str, unicode, bytearray, buffer, memoryview]\n\nclass _hash(object): # This is not actually in the module namespace.\n name: str\n block_size: int\n digest_size: int\n digestsize: int\n def __init__(self, arg: _DataType = ...) -> None: ...\n def update(self, arg: _DataType) -> None: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def copy(self) -> _hash: ...\n\ndef new(name: str, data: str = ...) -> _hash: ...\ndef md5(s: _DataType = ...) -> _hash: ...\ndef sha1(s: _DataType = ...) -> _hash: ...\ndef sha224(s: _DataType = ...) -> _hash: ...\ndef sha256(s: _DataType = ...) -> _hash: ...\ndef sha384(s: _DataType = ...) -> _hash: ...\ndef sha512(s: _DataType = ...) -> _hash: ...\n\nalgorithms: Tuple[str, ...]\nalgorithms_guaranteed: Tuple[str, ...]\nalgorithms_available: Tuple[str, ...]\n\ndef pbkdf2_hmac(name: str, password: str, salt: str, rounds: int, dklen: int = ...) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\hashlib.pyi
|
hashlib.pyi
|
Other
| 971 | 0.95 | 0.5 | 0 |
vue-tools
| 651 |
2024-05-18T08:28:31.177738
|
MIT
| false |
e45310406a2dd48e41ed6022d574dd3b
|
from _typeshed import SupportsLessThan\nfrom typing import Any, Callable, Iterable, List, Optional, Protocol, TypeVar\n\n_T = TypeVar("_T")\n\ndef cmp_lt(x, y) -> bool: ...\ndef heappush(heap: List[_T], item: _T) -> None: ...\ndef heappop(heap: List[_T]) -> _T: ...\ndef heappushpop(heap: List[_T], item: _T) -> _T: ...\ndef heapify(x: List[_T]) -> None: ...\ndef heapreplace(heap: List[_T], item: _T) -> _T: ...\ndef merge(*iterables: Iterable[_T]) -> Iterable[_T]: ...\ndef nlargest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...\ndef nsmallest(n: int, iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsLessThan]] = ...) -> List[_T]: ...\ndef _heapify_max(__x: List[_T]) -> None: ... # undocumented\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\heapq.pyi
|
heapq.pyi
|
Other
| 756 | 0.95 | 0.666667 | 0 |
awesome-app
| 323 |
2024-12-20T09:47:46.694239
|
Apache-2.0
| false |
ae0b57a7ec757e19c11897d782a3e980
|
from typing import Dict\n\nname2codepoint: Dict[str, int]\ncodepoint2name: Dict[int, str]\nentitydefs: Dict[str, str]\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\htmlentitydefs.pyi
|
htmlentitydefs.pyi
|
Other
| 114 | 0.85 | 0 | 0 |
node-utils
| 428 |
2024-08-11T04:25:52.361485
|
BSD-3-Clause
| false |
69f76c9a1848a8ad733b9a77c1d61f66
|
from typing import AnyStr, List, Tuple\n\nfrom markupbase import ParserBase\n\nclass HTMLParser(ParserBase):\n def __init__(self) -> None: ...\n def feed(self, feed: AnyStr) -> None: ...\n def close(self) -> None: ...\n def reset(self) -> None: ...\n def get_starttag_text(self) -> AnyStr: ...\n def set_cdata_mode(self, AnyStr) -> None: ...\n def clear_cdata_mode(self) -> None: ...\n def handle_startendtag(self, tag: AnyStr, attrs: List[Tuple[AnyStr, AnyStr]]): ...\n def handle_starttag(self, tag: AnyStr, attrs: List[Tuple[AnyStr, AnyStr]]): ...\n def handle_endtag(self, tag: AnyStr): ...\n def handle_charref(self, name: AnyStr): ...\n def handle_entityref(self, name: AnyStr): ...\n def handle_data(self, data: AnyStr): ...\n def handle_comment(self, data: AnyStr): ...\n def handle_decl(self, decl: AnyStr): ...\n def handle_pi(self, data: AnyStr): ...\n def unknown_decl(self, data: AnyStr): ...\n def unescape(self, s: AnyStr) -> AnyStr: ...\n\nclass HTMLParseError(Exception):\n msg: str\n lineno: int\n offset: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\HTMLParser.pyi
|
HTMLParser.pyi
|
Other
| 1,064 | 0.85 | 0.714286 | 0 |
react-lib
| 452 |
2024-11-01T22:19:03.631001
|
GPL-3.0
| false |
41c8233d908f21d5330bca4ef41b4e1e
|
import mimetools\nimport ssl\nfrom typing import Any, Dict, Optional, Protocol\n\nclass HTTPMessage(mimetools.Message):\n def addcontinue(self, key: str, more: str) -> None: ...\n dict: Dict[str, str]\n def addheader(self, key: str, value: str) -> None: ...\n unixfrom: str\n headers: Any\n status: str\n seekable: bool\n def readheaders(self) -> None: ...\n\nclass HTTPResponse:\n fp: Any\n debuglevel: Any\n strict: Any\n msg: Any\n version: Any\n status: Any\n reason: Any\n chunked: Any\n chunk_left: Any\n length: Any\n will_close: Any\n def __init__(\n self, sock, debuglevel: int = ..., strict: int = ..., method: Optional[Any] = ..., buffering: bool = ...\n ) -> None: ...\n def begin(self): ...\n def close(self): ...\n def isclosed(self): ...\n def read(self, amt: Optional[Any] = ...): ...\n def fileno(self): ...\n def getheader(self, name, default: Optional[Any] = ...): ...\n def getheaders(self): ...\n\n# This is an API stub only for HTTPConnection and HTTPSConnection, as used in\n# urllib2.AbstractHTTPHandler.do_open, which takes either the class\n# HTTPConnection or the class HTTPSConnection, *not* an instance of either\n# class. do_open does not use all of the parameters of HTTPConnection.__init__\n# or HTTPSConnection.__init__, so HTTPConnectionProtocol only implements the\n# parameters that do_open does use.\nclass HTTPConnectionProtocol(Protocol):\n def __call__(self, host: str, timeout: int = ..., **http_con_args: Any) -> HTTPConnection: ...\n\nclass HTTPConnection:\n response_class: Any\n default_port: Any\n auto_open: Any\n debuglevel: Any\n strict: Any\n timeout: Any\n source_address: Any\n sock: Any\n host: str = ...\n port: int = ...\n def __init__(\n self, host, port: Optional[Any] = ..., strict: Optional[Any] = ..., timeout=..., source_address: Optional[Any] = ...\n ) -> None: ...\n def set_tunnel(self, host, port: Optional[Any] = ..., headers: Optional[Any] = ...): ...\n def set_debuglevel(self, level): ...\n def connect(self): ...\n def close(self): ...\n def send(self, data): ...\n def putrequest(self, method, url, skip_host: int = ..., skip_accept_encoding: int = ...): ...\n def putheader(self, header, *values): ...\n def endheaders(self, message_body: Optional[Any] = ...): ...\n def request(self, method, url, body: Optional[Any] = ..., headers=...): ...\n def getresponse(self, buffering: bool = ...): ...\n\nclass HTTP:\n debuglevel: Any\n def __init__(self, host: str = ..., port: Optional[Any] = ..., strict: Optional[Any] = ...) -> None: ...\n def connect(self, host: Optional[Any] = ..., port: Optional[Any] = ...): ...\n def getfile(self): ...\n file: Any\n headers: Any\n def getreply(self, buffering: bool = ...): ...\n def close(self): ...\n\nclass HTTPSConnection(HTTPConnection):\n default_port: Any\n key_file: Any\n cert_file: Any\n def __init__(\n self,\n host,\n port: Optional[Any] = ...,\n key_file: Optional[Any] = ...,\n cert_file: Optional[Any] = ...,\n strict: Optional[Any] = ...,\n timeout=...,\n source_address: Optional[Any] = ...,\n context: Optional[Any] = ...,\n ) -> None: ...\n sock: Any\n def connect(self): ...\n\nclass HTTPS(HTTP):\n key_file: Any\n cert_file: Any\n def __init__(\n self,\n host: str = ...,\n port: Optional[Any] = ...,\n key_file: Optional[Any] = ...,\n cert_file: Optional[Any] = ...,\n strict: Optional[Any] = ...,\n context: Optional[Any] = ...,\n ) -> None: ...\n\nclass HTTPException(Exception): ...\nclass NotConnected(HTTPException): ...\nclass InvalidURL(HTTPException): ...\n\nclass UnknownProtocol(HTTPException):\n args: Any\n version: Any\n def __init__(self, version) -> None: ...\n\nclass UnknownTransferEncoding(HTTPException): ...\nclass UnimplementedFileMode(HTTPException): ...\n\nclass IncompleteRead(HTTPException):\n args: Any\n partial: Any\n expected: Any\n def __init__(self, partial, expected: Optional[Any] = ...) -> None: ...\n\nclass ImproperConnectionState(HTTPException): ...\nclass CannotSendRequest(ImproperConnectionState): ...\nclass CannotSendHeader(ImproperConnectionState): ...\nclass ResponseNotReady(ImproperConnectionState): ...\n\nclass BadStatusLine(HTTPException):\n args: Any\n line: Any\n def __init__(self, line) -> None: ...\n\nclass LineTooLong(HTTPException):\n def __init__(self, line_type) -> None: ...\n\nerror: Any\n\nclass LineAndFileWrapper:\n def __init__(self, line, file) -> None: ...\n def __getattr__(self, attr): ...\n def read(self, amt: Optional[Any] = ...): ...\n def readline(self): ...\n def readlines(self, size: Optional[Any] = ...): ...\n\n# Constants\n\nresponses: Dict[int, str]\n\nHTTP_PORT: int\nHTTPS_PORT: int\n\n# status codes\n# informational\nCONTINUE: int\nSWITCHING_PROTOCOLS: int\nPROCESSING: int\n\n# successful\nOK: int\nCREATED: int\nACCEPTED: int\nNON_AUTHORITATIVE_INFORMATION: int\nNO_CONTENT: int\nRESET_CONTENT: int\nPARTIAL_CONTENT: int\nMULTI_STATUS: int\nIM_USED: int\n\n# redirection\nMULTIPLE_CHOICES: int\nMOVED_PERMANENTLY: int\nFOUND: int\nSEE_OTHER: int\nNOT_MODIFIED: int\nUSE_PROXY: int\nTEMPORARY_REDIRECT: int\n\n# client error\nBAD_REQUEST: int\nUNAUTHORIZED: int\nPAYMENT_REQUIRED: int\nFORBIDDEN: int\nNOT_FOUND: int\nMETHOD_NOT_ALLOWED: int\nNOT_ACCEPTABLE: int\nPROXY_AUTHENTICATION_REQUIRED: int\nREQUEST_TIMEOUT: int\nCONFLICT: int\nGONE: int\nLENGTH_REQUIRED: int\nPRECONDITION_FAILED: int\nREQUEST_ENTITY_TOO_LARGE: int\nREQUEST_URI_TOO_LONG: int\nUNSUPPORTED_MEDIA_TYPE: int\nREQUESTED_RANGE_NOT_SATISFIABLE: int\nEXPECTATION_FAILED: int\nUNPROCESSABLE_ENTITY: int\nLOCKED: int\nFAILED_DEPENDENCY: int\nUPGRADE_REQUIRED: int\n\n# server error\nINTERNAL_SERVER_ERROR: int\nNOT_IMPLEMENTED: int\nBAD_GATEWAY: int\nSERVICE_UNAVAILABLE: int\nGATEWAY_TIMEOUT: int\nHTTP_VERSION_NOT_SUPPORTED: int\nINSUFFICIENT_STORAGE: int\nNOT_EXTENDED: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\httplib.pyi
|
httplib.pyi
|
Other
| 5,929 | 0.95 | 0.298165 | 0.06701 |
react-lib
| 679 |
2024-02-25T06:31:19.510350
|
MIT
| false |
ae438d951b4ddfe224d47346b890c309
|
import types\nfrom typing import IO, Any, Iterable, List, Optional, Tuple\n\nC_BUILTIN: int\nC_EXTENSION: int\nIMP_HOOK: int\nPKG_DIRECTORY: int\nPY_CODERESOURCE: int\nPY_COMPILED: int\nPY_FROZEN: int\nPY_RESOURCE: int\nPY_SOURCE: int\nSEARCH_ERROR: int\n\ndef acquire_lock() -> None: ...\ndef find_module(name: str, path: Iterable[str] = ...) -> Optional[Tuple[IO[Any], str, Tuple[str, str, int]]]: ...\ndef get_magic() -> str: ...\ndef get_suffixes() -> List[Tuple[str, str, int]]: ...\ndef init_builtin(name: str) -> types.ModuleType: ...\ndef init_frozen(name: str) -> types.ModuleType: ...\ndef is_builtin(name: str) -> int: ...\ndef is_frozen(name: str) -> bool: ...\ndef load_compiled(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...\ndef load_dynamic(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...\ndef load_module(name: str, file: str, pathname: str, description: Tuple[str, str, int]) -> types.ModuleType: ...\ndef load_source(name: str, pathname: str, file: IO[Any] = ...) -> types.ModuleType: ...\ndef lock_held() -> bool: ...\ndef new_module(name: str) -> types.ModuleType: ...\ndef release_lock() -> None: ...\n\nclass NullImporter:\n def __init__(self, path_string: str) -> None: ...\n def find_module(self, fullname: str, path: str = ...) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\imp.pyi
|
imp.pyi
|
Other
| 1,290 | 0.85 | 0.545455 | 0 |
awesome-app
| 754 |
2025-03-24T02:57:15.703451
|
Apache-2.0
| false |
e003361612f4947e315de4b74fcb559c
|
import types\nfrom typing import Optional, Text\n\ndef import_module(name: Text, package: Optional[Text] = ...) -> types.ModuleType: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\importlib.pyi
|
importlib.pyi
|
Other
| 134 | 0.85 | 0.25 | 0 |
react-lib
| 436 |
2024-01-27T00:23:40.402558
|
GPL-3.0
| false |
7e0a267f13f588b2671eaa730d89eb1a
|
from types import CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType\nfrom typing import Any, AnyStr, Callable, Dict, List, NamedTuple, Optional, Sequence, Tuple, Type, Union\n\n# Types and members\nclass EndOfBlock(Exception): ...\n\nclass BlockFinder:\n indent: int\n islambda: bool\n started: bool\n passline: bool\n last: int\n def tokeneater(\n self, type: int, token: AnyStr, srow_scol: Tuple[int, int], erow_ecol: Tuple[int, int], line: AnyStr\n ) -> None: ...\n\nCO_GENERATOR: int\nCO_NESTED: int\nCO_NEWLOCALS: int\nCO_NOFREE: int\nCO_OPTIMIZED: int\nCO_VARARGS: int\nCO_VARKEYWORDS: int\nTPFLAGS_IS_ABSTRACT: int\n\nclass ModuleInfo(NamedTuple):\n name: str\n suffix: str\n mode: str\n module_type: int\n\ndef getmembers(object: object, predicate: Optional[Callable[[Any], bool]] = ...) -> List[Tuple[str, Any]]: ...\ndef getmoduleinfo(path: Union[str, unicode]) -> Optional[ModuleInfo]: ...\ndef getmodulename(path: AnyStr) -> Optional[AnyStr]: ...\ndef ismodule(object: object) -> bool: ...\ndef isclass(object: object) -> bool: ...\ndef ismethod(object: object) -> bool: ...\ndef isfunction(object: object) -> bool: ...\ndef isgeneratorfunction(object: object) -> bool: ...\ndef isgenerator(object: object) -> bool: ...\ndef istraceback(object: object) -> bool: ...\ndef isframe(object: object) -> bool: ...\ndef iscode(object: object) -> bool: ...\ndef isbuiltin(object: object) -> bool: ...\ndef isroutine(object: object) -> bool: ...\ndef isabstract(object: object) -> bool: ...\ndef ismethoddescriptor(object: object) -> bool: ...\ndef isdatadescriptor(object: object) -> bool: ...\ndef isgetsetdescriptor(object: object) -> bool: ...\ndef ismemberdescriptor(object: object) -> bool: ...\n\n# Retrieving source code\n_SourceObjectType = Union[ModuleType, Type[Any], MethodType, FunctionType, TracebackType, FrameType, CodeType, Callable[..., Any]]\n\ndef findsource(object: _SourceObjectType) -> Tuple[List[str], int]: ...\ndef getabsfile(object: _SourceObjectType) -> str: ...\ndef getblock(lines: Sequence[AnyStr]) -> Sequence[AnyStr]: ...\ndef getdoc(object: object) -> Optional[str]: ...\ndef getcomments(object: object) -> Optional[str]: ...\ndef getfile(object: _SourceObjectType) -> str: ...\ndef getmodule(object: object) -> Optional[ModuleType]: ...\ndef getsourcefile(object: _SourceObjectType) -> Optional[str]: ...\ndef getsourcelines(object: _SourceObjectType) -> Tuple[List[str], int]: ...\ndef getsource(object: _SourceObjectType) -> str: ...\ndef cleandoc(doc: AnyStr) -> AnyStr: ...\ndef indentsize(line: Union[str, unicode]) -> int: ...\n\n# Classes and functions\ndef getclasstree(classes: List[type], unique: bool = ...) -> List[Union[Tuple[type, Tuple[type, ...]], List[Any]]]: ...\n\nclass ArgSpec(NamedTuple):\n args: List[str]\n varargs: Optional[str]\n keywords: Optional[str]\n defaults: Tuple[Any, ...]\n\nclass ArgInfo(NamedTuple):\n args: List[str]\n varargs: Optional[str]\n keywords: Optional[str]\n locals: Dict[str, Any]\n\nclass Arguments(NamedTuple):\n args: List[Union[str, List[Any]]]\n varargs: Optional[str]\n keywords: Optional[str]\n\ndef getargs(co: CodeType) -> Arguments: ...\ndef getargspec(func: object) -> ArgSpec: ...\ndef getargvalues(frame: FrameType) -> ArgInfo: ...\ndef formatargspec(\n args, varargs=..., varkw=..., defaults=..., formatarg=..., formatvarargs=..., formatvarkw=..., formatvalue=..., join=...\n) -> str: ...\ndef formatargvalues(\n args, varargs=..., varkw=..., defaults=..., formatarg=..., formatvarargs=..., formatvarkw=..., formatvalue=..., join=...\n) -> str: ...\ndef getmro(cls: type) -> Tuple[type, ...]: ...\ndef getcallargs(func, *args, **kwds) -> Dict[str, Any]: ...\n\n# The interpreter stack\n\nclass Traceback(NamedTuple):\n filename: str\n lineno: int\n function: str\n code_context: Optional[List[str]]\n index: Optional[int] # type: ignore\n\n_FrameInfo = Tuple[FrameType, str, int, str, Optional[List[str]], Optional[int]]\n\ndef getouterframes(frame: FrameType, context: int = ...) -> List[_FrameInfo]: ...\ndef getframeinfo(frame: Union[FrameType, TracebackType], context: int = ...) -> Traceback: ...\ndef getinnerframes(traceback: TracebackType, context: int = ...) -> List[_FrameInfo]: ...\ndef getlineno(frame: FrameType) -> int: ...\ndef currentframe(depth: int = ...) -> FrameType: ...\ndef stack(context: int = ...) -> List[_FrameInfo]: ...\ndef trace(context: int = ...) -> List[_FrameInfo]: ...\n\n# Create private type alias to avoid conflict with symbol of same\n# name created in Attribute class.\n_Object = object\n\nclass Attribute(NamedTuple):\n name: str\n kind: str\n defining_class: type\n object: _Object\n\ndef classify_class_attrs(cls: type) -> List[Attribute]: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\inspect.pyi
|
inspect.pyi
|
Other
| 4,692 | 0.95 | 0.449612 | 0.054545 |
react-lib
| 285 |
2023-07-13T07:24:11.000417
|
BSD-3-Clause
| false |
b632a7770b33887b20d0ffc21f51cb72
|
from typing import IO, Any, Union\n\nimport _io\nfrom _io import (\n DEFAULT_BUFFER_SIZE as DEFAULT_BUFFER_SIZE,\n BlockingIOError as BlockingIOError,\n BufferedRandom as BufferedRandom,\n BufferedReader as BufferedReader,\n BufferedRWPair as BufferedRWPair,\n BufferedWriter as BufferedWriter,\n BytesIO as BytesIO,\n FileIO as FileIO,\n IncrementalNewlineDecoder as IncrementalNewlineDecoder,\n StringIO as StringIO,\n TextIOWrapper as TextIOWrapper,\n UnsupportedOperation as UnsupportedOperation,\n open as open,\n)\n\ndef _OpenWrapper(\n file: Union[str, unicode, int],\n mode: unicode = ...,\n buffering: int = ...,\n encoding: unicode = ...,\n errors: unicode = ...,\n newline: unicode = ...,\n closefd: bool = ...,\n) -> IO[Any]: ...\n\nSEEK_SET: int\nSEEK_CUR: int\nSEEK_END: int\n\nclass IOBase(_io._IOBase): ...\nclass RawIOBase(_io._RawIOBase, IOBase): ...\nclass BufferedIOBase(_io._BufferedIOBase, IOBase): ...\n\n# Note: In the actual io.py, TextIOBase subclasses IOBase.\n# (Which we don't do here because we don't want to subclass both TextIO and BinaryIO.)\nclass TextIOBase(_io._TextIOBase): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\io.pyi
|
io.pyi
|
Other
| 1,136 | 0.95 | 0.125 | 0.057143 |
python-kit
| 824 |
2025-06-02T18:13:18.236135
|
MIT
| false |
f6b2fb11ace23d99c1defca035c99e06
|
from typing import Any, Callable, Generic, Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union, overload\n\n_T = TypeVar("_T")\n_S = TypeVar("_S")\n\ndef count(start: int = ..., step: int = ...) -> Iterator[int]: ... # more general types?\n\nclass cycle(Iterator[_T], Generic[_T]):\n def __init__(self, iterable: Iterable[_T]) -> None: ...\n def next(self) -> _T: ...\n def __iter__(self) -> Iterator[_T]: ...\n\ndef repeat(object: _T, times: int = ...) -> Iterator[_T]: ...\n\nclass chain(Iterator[_T], Generic[_T]):\n def __init__(self, *iterables: Iterable[_T]) -> None: ...\n def next(self) -> _T: ...\n def __iter__(self) -> Iterator[_T]: ...\n @staticmethod\n def from_iterable(iterable: Iterable[Iterable[_S]]) -> Iterator[_S]: ...\n\ndef compress(data: Iterable[_T], selectors: Iterable[Any]) -> Iterator[_T]: ...\ndef dropwhile(predicate: Callable[[_T], Any], iterable: Iterable[_T]) -> Iterator[_T]: ...\ndef ifilter(predicate: Optional[Callable[[_T], Any]], iterable: Iterable[_T]) -> Iterator[_T]: ...\ndef ifilterfalse(predicate: Optional[Callable[[_T], Any]], iterable: Iterable[_T]) -> Iterator[_T]: ...\n@overload\ndef groupby(iterable: Iterable[_T], key: None = ...) -> Iterator[Tuple[_T, Iterator[_T]]]: ...\n@overload\ndef groupby(iterable: Iterable[_T], key: Callable[[_T], _S]) -> Iterator[Tuple[_S, Iterator[_T]]]: ...\n@overload\ndef islice(iterable: Iterable[_T], stop: Optional[int]) -> Iterator[_T]: ...\n@overload\ndef islice(iterable: Iterable[_T], start: Optional[int], stop: Optional[int], step: Optional[int] = ...) -> Iterator[_T]: ...\n\n_T1 = TypeVar("_T1")\n_T2 = TypeVar("_T2")\n_T3 = TypeVar("_T3")\n_T4 = TypeVar("_T4")\n_T5 = TypeVar("_T5")\n_T6 = TypeVar("_T6")\n@overload\ndef imap(func: Callable[[_T1], _S], iter1: Iterable[_T1]) -> Iterator[_S]: ...\n@overload\ndef imap(func: Callable[[_T1, _T2], _S], iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[_S]: ...\n@overload\ndef imap(\n func: Callable[[_T1, _T2, _T3], _S], iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]\n) -> Iterator[_S]: ...\n@overload\ndef imap(\n func: Callable[[_T1, _T2, _T3, _T4], _S],\n iter1: Iterable[_T1],\n iter2: Iterable[_T2],\n iter3: Iterable[_T3],\n iter4: Iterable[_T4],\n) -> Iterator[_S]: ...\n@overload\ndef imap(\n func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],\n iter1: Iterable[_T1],\n iter2: Iterable[_T2],\n iter3: Iterable[_T3],\n iter4: Iterable[_T4],\n iter5: Iterable[_T5],\n) -> Iterator[_S]: ...\n@overload\ndef imap(\n func: Callable[[_T1, _T2, _T3, _T4, _T5, _T6], _S],\n iter1: Iterable[_T1],\n iter2: Iterable[_T2],\n iter3: Iterable[_T3],\n iter4: Iterable[_T4],\n iter5: Iterable[_T5],\n iter6: Iterable[_T6],\n) -> Iterator[_S]: ...\n@overload\ndef imap(\n func: Callable[..., _S],\n iter1: Iterable[Any],\n iter2: Iterable[Any],\n iter3: Iterable[Any],\n iter4: Iterable[Any],\n iter5: Iterable[Any],\n iter6: Iterable[Any],\n iter7: Iterable[Any],\n *iterables: Iterable[Any],\n) -> Iterator[_S]: ...\ndef starmap(func: Any, iterable: Iterable[Any]) -> Iterator[Any]: ...\ndef takewhile(predicate: Callable[[_T], Any], iterable: Iterable[_T]) -> Iterator[_T]: ...\ndef tee(iterable: Iterable[_T], n: int = ...) -> Tuple[Iterator[_T], ...]: ...\n@overload\ndef izip(iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...\n@overload\ndef izip(iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...\n@overload\ndef izip(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef izip(\n iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef izip(\n iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], iter5: Iterable[_T5]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef izip(\n iter1: Iterable[_T1],\n iter2: Iterable[_T2],\n iter3: Iterable[_T3],\n iter4: Iterable[_T4],\n iter5: Iterable[_T5],\n iter6: Iterable[_T6],\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...\n@overload\ndef izip(\n iter1: Iterable[Any],\n iter2: Iterable[Any],\n iter3: Iterable[Any],\n iter4: Iterable[Any],\n iter5: Iterable[Any],\n iter6: Iterable[Any],\n iter7: Iterable[Any],\n *iterables: Iterable[Any],\n) -> Iterator[Tuple[Any, ...]]: ...\ndef izip_longest(*p: Iterable[Any], fillvalue: Any = ...) -> Iterator[Any]: ...\n@overload\ndef product(iter1: Iterable[_T1]) -> Iterator[Tuple[_T1]]: ...\n@overload\ndef product(iter1: Iterable[_T1], iter2: Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]: ...\n@overload\ndef product(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3]) -> Iterator[Tuple[_T1, _T2, _T3]]: ...\n@overload\ndef product(\n iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4]]: ...\n@overload\ndef product(\n iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], iter5: Iterable[_T5]\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5]]: ...\n@overload\ndef product(\n iter1: Iterable[_T1],\n iter2: Iterable[_T2],\n iter3: Iterable[_T3],\n iter4: Iterable[_T4],\n iter5: Iterable[_T5],\n iter6: Iterable[_T6],\n) -> Iterator[Tuple[_T1, _T2, _T3, _T4, _T5, _T6]]: ...\n@overload\ndef product(\n iter1: Iterable[Any],\n iter2: Iterable[Any],\n iter3: Iterable[Any],\n iter4: Iterable[Any],\n iter5: Iterable[Any],\n iter6: Iterable[Any],\n iter7: Iterable[Any],\n *iterables: Iterable[Any],\n) -> Iterator[Tuple[Any, ...]]: ...\n@overload\ndef product(*iterables: Iterable[Any], repeat: int) -> Iterator[Tuple[Any, ...]]: ...\ndef permutations(iterable: Iterable[_T], r: int = ...) -> Iterator[Sequence[_T]]: ...\ndef combinations(iterable: Iterable[_T], r: int) -> Iterator[Sequence[_T]]: ...\ndef combinations_with_replacement(iterable: Iterable[_T], r: int) -> Iterator[Sequence[_T]]: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\itertools.pyi
|
itertools.pyi
|
Other
| 5,975 | 0.95 | 0.292683 | 0.019108 |
awesome-app
| 782 |
2023-07-13T04:02:09.717323
|
GPL-3.0
| false |
9f702d54811adc0eb67e56125650144f
|
from _typeshed import SupportsRead\nfrom typing import IO, Any, Callable, Dict, List, Optional, Text, Tuple, Type, Union\n\ndef dumps(\n obj: Any,\n skipkeys: bool = ...,\n ensure_ascii: bool = ...,\n check_circular: bool = ...,\n allow_nan: bool = ...,\n cls: Optional[Type[JSONEncoder]] = ...,\n indent: Optional[int] = ...,\n separators: Optional[Tuple[str, str]] = ...,\n encoding: str = ...,\n default: Optional[Callable[[Any], Any]] = ...,\n sort_keys: bool = ...,\n **kwds: Any,\n) -> str: ...\ndef dump(\n obj: Any,\n fp: Union[IO[str], IO[Text]],\n skipkeys: bool = ...,\n ensure_ascii: bool = ...,\n check_circular: bool = ...,\n allow_nan: bool = ...,\n cls: Optional[Type[JSONEncoder]] = ...,\n indent: Optional[int] = ...,\n separators: Optional[Tuple[str, str]] = ...,\n encoding: str = ...,\n default: Optional[Callable[[Any], Any]] = ...,\n sort_keys: bool = ...,\n **kwds: Any,\n) -> None: ...\ndef loads(\n s: Union[Text, bytes],\n encoding: Any = ...,\n cls: Optional[Type[JSONDecoder]] = ...,\n object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,\n parse_float: Optional[Callable[[str], Any]] = ...,\n parse_int: Optional[Callable[[str], Any]] = ...,\n parse_constant: Optional[Callable[[str], Any]] = ...,\n object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,\n **kwds: Any,\n) -> Any: ...\ndef load(\n fp: SupportsRead[Union[Text, bytes]],\n encoding: Optional[str] = ...,\n cls: Optional[Type[JSONDecoder]] = ...,\n object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,\n parse_float: Optional[Callable[[str], Any]] = ...,\n parse_int: Optional[Callable[[str], Any]] = ...,\n parse_constant: Optional[Callable[[str], Any]] = ...,\n object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,\n **kwds: Any,\n) -> Any: ...\n\nclass JSONDecoder(object):\n def __init__(\n self,\n encoding: Union[Text, bytes] = ...,\n object_hook: Callable[..., Any] = ...,\n parse_float: Callable[[str], float] = ...,\n parse_int: Callable[[str], int] = ...,\n parse_constant: Callable[[str], Any] = ...,\n strict: bool = ...,\n object_pairs_hook: Callable[..., Any] = ...,\n ) -> None: ...\n def decode(self, s: Union[Text, bytes], _w: Any = ...) -> Any: ...\n def raw_decode(self, s: Union[Text, bytes], idx: int = ...) -> Tuple[Any, Any]: ...\n\nclass JSONEncoder(object):\n item_separator: str\n key_separator: str\n skipkeys: bool\n ensure_ascii: bool\n check_circular: bool\n allow_nan: bool\n sort_keys: bool\n indent: Optional[int]\n def __init__(\n self,\n skipkeys: bool = ...,\n ensure_ascii: bool = ...,\n check_circular: bool = ...,\n allow_nan: bool = ...,\n sort_keys: bool = ...,\n indent: Optional[int] = ...,\n separators: Tuple[Union[Text, bytes], Union[Text, bytes]] = ...,\n encoding: Union[Text, bytes] = ...,\n default: Callable[..., Any] = ...,\n ) -> None: ...\n def default(self, o: Any) -> Any: ...\n def encode(self, o: Any) -> str: ...\n def iterencode(self, o: Any, _one_shot: bool = ...) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\json.pyi
|
json.pyi
|
Other
| 3,206 | 0.85 | 0.139785 | 0.044444 |
react-lib
| 458 |
2023-12-19T05:00:57.731401
|
GPL-3.0
| false |
a1fbb77c63fb0e91bba3e70a24ca9896
|
from typing import Tuple\n\nclass ParserBase(object):\n def __init__(self) -> None: ...\n def error(self, message: str) -> None: ...\n def reset(self) -> None: ...\n def getpos(self) -> Tuple[int, int]: ...\n def unknown_decl(self, data: str) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\markupbase.pyi
|
markupbase.pyi
|
Other
| 264 | 0.85 | 0.75 | 0 |
react-lib
| 853 |
2023-08-07T06:45:40.685745
|
BSD-3-Clause
| false |
2d9211e7babc89bec418c5b88de9f1fc
|
from hashlib import md5 as md5\n\nnew = md5\nblocksize: int\ndigest_size: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\md5.pyi
|
md5.pyi
|
Other
| 74 | 0.65 | 0 | 0 |
python-kit
| 145 |
2024-07-02T22:37:12.889727
|
GPL-3.0
| false |
f512de1f0dfbb61748239e38085f29c5
|
import rfc822\nfrom typing import Any\n\nclass Message(rfc822.Message):\n encodingheader: Any\n typeheader: Any\n def __init__(self, fp, seekable: int = ...): ...\n plisttext: Any\n type: Any\n maintype: Any\n subtype: Any\n def parsetype(self): ...\n plist: Any\n def parseplist(self): ...\n def getplist(self): ...\n def getparam(self, name): ...\n def getparamnames(self): ...\n def getencoding(self): ...\n def gettype(self): ...\n def getmaintype(self): ...\n def getsubtype(self): ...\n\ndef choose_boundary(): ...\ndef decode(input, output, encoding): ...\ndef encode(input, output, encoding): ...\ndef copyliteral(input, output): ...\ndef copybinary(input, output): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\mimetools.pyi
|
mimetools.pyi
|
Other
| 703 | 0.85 | 0.592593 | 0 |
node-utils
| 847 |
2024-05-23T15:16:27.621100
|
MIT
| false |
b07a7191c48ce7f350be69727a2207ca
|
from typing import Any, Callable, Deque, TypeVar\n\n_ArgType = TypeVar("_ArgType")\n\nclass mutex:\n locked: bool\n queue: Deque[Any]\n def __init__(self) -> None: ...\n def test(self) -> bool: ...\n def testandset(self) -> bool: ...\n def lock(self, function: Callable[[_ArgType], Any], argument: _ArgType) -> None: ...\n def unlock(self) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\mutex.pyi
|
mutex.pyi
|
Other
| 363 | 0.85 | 0.583333 | 0 |
node-utils
| 10 |
2023-12-04T04:38:42.587031
|
Apache-2.0
| false |
917e078c096713d6ba0db95c4b77a898
|
import os\nimport sys\nfrom _typeshed import AnyPath, BytesPath, StrPath\nfrom genericpath import exists as exists\nfrom typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload\n\n_T = TypeVar("_T")\n\n# ----- os.path variables -----\nsupports_unicode_filenames: bool\n# aliases (also in os)\ncurdir: str\npardir: str\nsep: str\nif sys.platform == "win32":\n altsep: str\nelse:\n altsep: Optional[str]\nextsep: str\npathsep: str\ndefpath: str\ndevnull: str\n\n# ----- os.path function stubs -----\ndef abspath(path: AnyStr) -> AnyStr: ...\ndef basename(p: AnyStr) -> AnyStr: ...\ndef dirname(p: AnyStr) -> AnyStr: ...\ndef expanduser(path: AnyStr) -> AnyStr: ...\ndef expandvars(path: AnyStr) -> AnyStr: ...\ndef normcase(s: AnyStr) -> AnyStr: ...\ndef normpath(path: AnyStr) -> AnyStr: ...\n\nif sys.platform == "win32":\n def realpath(path: AnyStr) -> AnyStr: ...\n\nelse:\n def realpath(filename: AnyStr) -> AnyStr: ...\n\n# NOTE: Empty lists results in '' (str) regardless of contained type.\n# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes\n# So, fall back to Any\ndef commonprefix(m: Sequence[AnyPath]) -> Any: ...\ndef lexists(path: AnyPath) -> bool: ...\n\n# These return float if os.stat_float_times() == True,\n# but int is a subclass of float.\ndef getatime(filename: AnyPath) -> float: ...\ndef getmtime(filename: AnyPath) -> float: ...\ndef getctime(filename: AnyPath) -> float: ...\ndef getsize(filename: AnyPath) -> int: ...\ndef isabs(s: AnyPath) -> bool: ...\ndef isfile(path: AnyPath) -> bool: ...\ndef isdir(s: AnyPath) -> bool: ...\ndef islink(path: AnyPath) -> bool: ...\ndef ismount(path: AnyPath) -> bool: ...\n\n# Make sure signatures are disjunct, and allow combinations of bytes and unicode.\n# (Since Python 2 allows that, too)\n# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in\n# a type error.\n@overload\ndef join(__p1: bytes, *p: bytes) -> bytes: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: Text, *p: AnyPath) -> Text: ...\n@overload\ndef relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...\n@overload\ndef relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...\ndef samefile(f1: AnyPath, f2: AnyPath) -> bool: ...\ndef sameopenfile(fp1: int, fp2: int) -> bool: ...\ndef samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...\ndef split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nif sys.platform == "win32":\n def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated\n\ndef walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\ntpath.pyi
|
ntpath.pyi
|
Other
| 2,937 | 0.95 | 0.470588 | 0.16 |
python-kit
| 805 |
2023-09-09T18:22:20.279672
|
MIT
| false |
85d6a21f1a4f58f9e3ffbeb89cf82345
|
from typing import AnyStr\n\ndef url2pathname(url: AnyStr) -> AnyStr: ...\ndef pathname2url(p: AnyStr) -> AnyStr: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\nturl2path.pyi
|
nturl2path.pyi
|
Other
| 115 | 0.85 | 0.5 | 0 |
awesome-app
| 643 |
2024-09-30T08:07:42.734703
|
BSD-3-Clause
| false |
121d3dc515dd6281145bbc13849d720c
|
import os\nimport sys\nfrom _typeshed import AnyPath, BytesPath, StrPath\nfrom genericpath import exists as exists\nfrom typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload\n\n_T = TypeVar("_T")\n\n# ----- os.path variables -----\nsupports_unicode_filenames: bool\n# aliases (also in os)\ncurdir: str\npardir: str\nsep: str\nif sys.platform == "win32":\n altsep: str\nelse:\n altsep: Optional[str]\nextsep: str\npathsep: str\ndefpath: str\ndevnull: str\n\n# ----- os.path function stubs -----\ndef abspath(path: AnyStr) -> AnyStr: ...\ndef basename(p: AnyStr) -> AnyStr: ...\ndef dirname(p: AnyStr) -> AnyStr: ...\ndef expanduser(path: AnyStr) -> AnyStr: ...\ndef expandvars(path: AnyStr) -> AnyStr: ...\ndef normcase(s: AnyStr) -> AnyStr: ...\ndef normpath(path: AnyStr) -> AnyStr: ...\n\nif sys.platform == "win32":\n def realpath(path: AnyStr) -> AnyStr: ...\n\nelse:\n def realpath(filename: AnyStr) -> AnyStr: ...\n\n# NOTE: Empty lists results in '' (str) regardless of contained type.\n# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes\n# So, fall back to Any\ndef commonprefix(m: Sequence[AnyPath]) -> Any: ...\ndef lexists(path: AnyPath) -> bool: ...\n\n# These return float if os.stat_float_times() == True,\n# but int is a subclass of float.\ndef getatime(filename: AnyPath) -> float: ...\ndef getmtime(filename: AnyPath) -> float: ...\ndef getctime(filename: AnyPath) -> float: ...\ndef getsize(filename: AnyPath) -> int: ...\ndef isabs(s: AnyPath) -> bool: ...\ndef isfile(path: AnyPath) -> bool: ...\ndef isdir(s: AnyPath) -> bool: ...\ndef islink(path: AnyPath) -> bool: ...\ndef ismount(path: AnyPath) -> bool: ...\n\n# Make sure signatures are disjunct, and allow combinations of bytes and unicode.\n# (Since Python 2 allows that, too)\n# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in\n# a type error.\n@overload\ndef join(__p1: bytes, *p: bytes) -> bytes: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: Text, *p: AnyPath) -> Text: ...\n@overload\ndef relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...\n@overload\ndef relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...\ndef samefile(f1: AnyPath, f2: AnyPath) -> bool: ...\ndef sameopenfile(fp1: int, fp2: int) -> bool: ...\ndef samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...\ndef split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nif sys.platform == "win32":\n def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated\n\ndef walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\os2emxpath.pyi
|
os2emxpath.pyi
|
Other
| 2,937 | 0.95 | 0.470588 | 0.16 |
python-kit
| 806 |
2023-08-21T09:18:39.184687
|
MIT
| false |
85d6a21f1a4f58f9e3ffbeb89cf82345
|
from typing import IO, Any, AnyStr\n\nclass Template:\n def __init__(self) -> None: ...\n def reset(self) -> None: ...\n def clone(self) -> Template: ...\n def debug(self, flag: bool) -> None: ...\n def append(self, cmd: str, kind: str) -> None: ...\n def prepend(self, cmd: str, kind: str) -> None: ...\n def open(self, file: str, mode: str) -> IO[Any]: ...\n def copy(self, infile: str, outfile: str) -> None: ...\n\ndef quote(s: AnyStr) -> AnyStr: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\pipes.pyi
|
pipes.pyi
|
Other
| 467 | 0.85 | 0.769231 | 0 |
react-lib
| 222 |
2023-11-14T06:15:57.896326
|
GPL-3.0
| false |
1a3c2706fee412fd7fced142a1b8b395
|
from typing import Any, Optional, Tuple\n\n__copyright__: Any\nDEV_NULL: Any\n\ndef libc_ver(executable=..., lib=..., version=..., chunksize: int = ...): ...\ndef linux_distribution(distname=..., version=..., id=..., supported_dists=..., full_distribution_name: int = ...): ...\ndef dist(distname=..., version=..., id=..., supported_dists=...): ...\n\nclass _popen:\n tmpfile: Any\n pipe: Any\n bufsize: Any\n mode: Any\n def __init__(self, cmd, mode=..., bufsize: Optional[Any] = ...): ...\n def read(self): ...\n def readlines(self): ...\n def close(self, remove=..., error=...): ...\n __del__: Any\n\ndef popen(cmd, mode=..., bufsize: Optional[Any] = ...): ...\ndef win32_ver(release=..., version=..., csd=..., ptype=...): ...\ndef mac_ver(release=..., versioninfo=..., machine=...): ...\ndef java_ver(release=..., vendor=..., vminfo=..., osinfo=...): ...\ndef system_alias(system, release, version): ...\ndef architecture(executable=..., bits=..., linkage=...) -> Tuple[str, str]: ...\ndef uname() -> Tuple[str, str, str, str, str, str]: ...\ndef system() -> str: ...\ndef node() -> str: ...\ndef release() -> str: ...\ndef version() -> str: ...\ndef machine() -> str: ...\ndef processor() -> str: ...\ndef python_implementation() -> str: ...\ndef python_version() -> str: ...\ndef python_version_tuple() -> Tuple[str, str, str]: ...\ndef python_branch() -> str: ...\ndef python_revision() -> str: ...\ndef python_build() -> Tuple[str, str]: ...\ndef python_compiler() -> str: ...\ndef platform(aliased: int = ..., terse: int = ...) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\platform.pyi
|
platform.pyi
|
Other
| 1,536 | 0.85 | 0.707317 | 0 |
react-lib
| 890 |
2024-09-11T09:08:37.771888
|
Apache-2.0
| false |
e860a5b31df54ce4d3e10a9c9d8e16b8
|
from typing import Any, Iterable, List, Optional, TextIO, Tuple, TypeVar, Union\n\n_T = TypeVar("_T")\n\nclass Popen3:\n sts: int\n cmd: Iterable[Any]\n pid: int\n tochild: TextIO\n fromchild: TextIO\n childerr: Optional[TextIO]\n def __init__(self, cmd: Iterable[Any] = ..., capturestderr: bool = ..., bufsize: int = ...) -> None: ...\n def __del__(self) -> None: ...\n def poll(self, _deadstate: _T = ...) -> Union[int, _T]: ...\n def wait(self) -> int: ...\n\nclass Popen4(Popen3):\n childerr: None\n cmd: Iterable[Any]\n pid: int\n tochild: TextIO\n fromchild: TextIO\n def __init__(self, cmd: Iterable[Any] = ..., bufsize: int = ...) -> None: ...\n\ndef popen2(cmd: Iterable[Any] = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO]: ...\ndef popen3(cmd: Iterable[Any] = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO, TextIO]: ...\ndef popen4(cmd: Iterable[Any] = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO]: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\popen2.pyi
|
popen2.pyi
|
Other
| 999 | 0.85 | 0.37037 | 0 |
react-lib
| 336 |
2023-08-30T20:06:12.888403
|
Apache-2.0
| false |
0031790854ab5e107329561bfc31498d
|
from _typeshed import FileDescriptorLike\nfrom typing import IO, AnyStr, Dict, List, Mapping, NamedTuple, Optional, Sequence, Tuple, TypeVar, Union\n\nerror = OSError\n\nconfstr_names: Dict[str, int]\nenviron: Dict[str, str]\npathconf_names: Dict[str, int]\nsysconf_names: Dict[str, int]\n\n_T = TypeVar("_T")\n\nEX_CANTCREAT: int\nEX_CONFIG: int\nEX_DATAERR: int\nEX_IOERR: int\nEX_NOHOST: int\nEX_NOINPUT: int\nEX_NOPERM: int\nEX_NOUSER: int\nEX_OK: int\nEX_OSERR: int\nEX_OSFILE: int\nEX_PROTOCOL: int\nEX_SOFTWARE: int\nEX_TEMPFAIL: int\nEX_UNAVAILABLE: int\nEX_USAGE: int\nF_OK: int\nNGROUPS_MAX: int\nO_APPEND: int\nO_ASYNC: int\nO_CREAT: int\nO_DIRECT: int\nO_DIRECTORY: int\nO_DSYNC: int\nO_EXCL: int\nO_LARGEFILE: int\nO_NDELAY: int\nO_NOATIME: int\nO_NOCTTY: int\nO_NOFOLLOW: int\nO_NONBLOCK: int\nO_RDONLY: int\nO_RDWR: int\nO_RSYNC: int\nO_SYNC: int\nO_TRUNC: int\nO_WRONLY: int\nR_OK: int\nTMP_MAX: int\nWCONTINUED: int\nWNOHANG: int\nWUNTRACED: int\nW_OK: int\nX_OK: int\n\ndef WCOREDUMP(status: int) -> bool: ...\ndef WEXITSTATUS(status: int) -> bool: ...\ndef WIFCONTINUED(status: int) -> bool: ...\ndef WIFEXITED(status: int) -> bool: ...\ndef WIFSIGNALED(status: int) -> bool: ...\ndef WIFSTOPPED(status: int) -> bool: ...\ndef WSTOPSIG(status: int) -> bool: ...\ndef WTERMSIG(status: int) -> bool: ...\n\nclass stat_result(object):\n n_fields: int\n n_sequence_fields: int\n n_unnamed_fields: int\n st_mode: int\n st_ino: int\n st_dev: int\n st_nlink: int\n st_uid: int\n st_gid: int\n st_size: int\n st_atime: int\n st_mtime: int\n st_ctime: int\n\nclass statvfs_result(NamedTuple):\n f_bsize: int\n f_frsize: int\n f_blocks: int\n f_bfree: int\n f_bavail: int\n f_files: int\n f_ffree: int\n f_favail: int\n f_flag: int\n f_namemax: int\n\ndef _exit(status: int) -> None: ...\ndef abort() -> None: ...\ndef access(path: unicode, mode: int) -> bool: ...\ndef chdir(path: unicode) -> None: ...\ndef chmod(path: unicode, mode: int) -> None: ...\ndef chown(path: unicode, uid: int, gid: int) -> None: ...\ndef chroot(path: unicode) -> None: ...\ndef close(fd: int) -> None: ...\ndef closerange(fd_low: int, fd_high: int) -> None: ...\ndef confstr(name: Union[str, int]) -> str: ...\ndef ctermid() -> str: ...\ndef dup(fd: int) -> int: ...\ndef dup2(fd: int, fd2: int) -> None: ...\ndef execv(path: str, args: Sequence[str], env: Mapping[str, str]) -> None: ...\ndef execve(path: str, args: Sequence[str], env: Mapping[str, str]) -> None: ...\ndef fchdir(fd: FileDescriptorLike) -> None: ...\ndef fchmod(fd: int, mode: int) -> None: ...\ndef fchown(fd: int, uid: int, gid: int) -> None: ...\ndef fdatasync(fd: FileDescriptorLike) -> None: ...\ndef fdopen(fd: int, mode: str = ..., bufsize: int = ...) -> IO[str]: ...\ndef fork() -> int: ...\ndef forkpty() -> Tuple[int, int]: ...\ndef fpathconf(fd: int, name: str) -> None: ...\ndef fstat(fd: int) -> stat_result: ...\ndef fstatvfs(fd: int) -> statvfs_result: ...\ndef fsync(fd: FileDescriptorLike) -> None: ...\ndef ftruncate(fd: int, length: int) -> None: ...\ndef getcwd() -> str: ...\ndef getcwdu() -> unicode: ...\ndef getegid() -> int: ...\ndef geteuid() -> int: ...\ndef getgid() -> int: ...\ndef getgroups() -> List[int]: ...\ndef getloadavg() -> Tuple[float, float, float]: ...\ndef getlogin() -> str: ...\ndef getpgid(pid: int) -> int: ...\ndef getpgrp() -> int: ...\ndef getpid() -> int: ...\ndef getppid() -> int: ...\ndef getresgid() -> Tuple[int, int, int]: ...\ndef getresuid() -> Tuple[int, int, int]: ...\ndef getsid(pid: int) -> int: ...\ndef getuid() -> int: ...\ndef initgroups(username: str, gid: int) -> None: ...\ndef isatty(fd: int) -> bool: ...\ndef kill(pid: int, sig: int) -> None: ...\ndef killpg(pgid: int, sig: int) -> None: ...\ndef lchown(path: unicode, uid: int, gid: int) -> None: ...\ndef link(source: unicode, link_name: str) -> None: ...\ndef listdir(path: AnyStr) -> List[AnyStr]: ...\ndef lseek(fd: int, pos: int, how: int) -> None: ...\ndef lstat(path: unicode) -> stat_result: ...\ndef major(device: int) -> int: ...\ndef makedev(major: int, minor: int) -> int: ...\ndef minor(device: int) -> int: ...\ndef mkdir(path: unicode, mode: int = ...) -> None: ...\ndef mkfifo(path: unicode, mode: int = ...) -> None: ...\ndef mknod(filename: unicode, mode: int = ..., device: int = ...) -> None: ...\ndef nice(increment: int) -> int: ...\ndef open(file: unicode, flags: int, mode: int = ...) -> int: ...\ndef openpty() -> Tuple[int, int]: ...\ndef pathconf(path: unicode, name: str) -> str: ...\ndef pipe() -> Tuple[int, int]: ...\ndef popen(command: str, mode: str = ..., bufsize: int = ...) -> IO[str]: ...\ndef putenv(varname: str, value: str) -> None: ...\ndef read(fd: int, n: int) -> str: ...\ndef readlink(path: _T) -> _T: ...\ndef remove(path: unicode) -> None: ...\ndef rename(src: unicode, dst: unicode) -> None: ...\ndef rmdir(path: unicode) -> None: ...\ndef setegid(egid: int) -> None: ...\ndef seteuid(euid: int) -> None: ...\ndef setgid(gid: int) -> None: ...\ndef setgroups(groups: Sequence[int]) -> None: ...\ndef setpgid(pid: int, pgrp: int) -> None: ...\ndef setpgrp() -> None: ...\ndef setregid(rgid: int, egid: int) -> None: ...\ndef setresgid(rgid: int, egid: int, sgid: int) -> None: ...\ndef setresuid(ruid: int, euid: int, suid: int) -> None: ...\ndef setreuid(ruid: int, euid: int) -> None: ...\ndef setsid() -> None: ...\ndef setuid(pid: int) -> None: ...\ndef stat(path: unicode) -> stat_result: ...\ndef statvfs(path: unicode) -> statvfs_result: ...\ndef stat_float_times(fd: int) -> None: ...\ndef strerror(code: int) -> str: ...\ndef symlink(source: unicode, link_name: unicode) -> None: ...\ndef sysconf(name: Union[str, int]) -> int: ...\ndef system(command: unicode) -> int: ...\ndef tcgetpgrp(fd: int) -> int: ...\ndef tcsetpgrp(fd: int, pg: int) -> None: ...\ndef times() -> Tuple[float, float, float, float, float]: ...\ndef tmpfile() -> IO[str]: ...\ndef ttyname(fd: int) -> str: ...\ndef umask(mask: int) -> int: ...\ndef uname() -> Tuple[str, str, str, str, str]: ...\ndef unlink(path: unicode) -> None: ...\ndef unsetenv(varname: str) -> None: ...\ndef urandom(n: int) -> str: ...\ndef utime(path: unicode, times: Optional[Tuple[int, int]]) -> None: ...\ndef wait() -> int: ...\n\n_r = Tuple[float, float, int, int, int, int, int, int, int, int, int, int, int, int, int, int]\n\ndef wait3(options: int) -> Tuple[int, int, _r]: ...\ndef wait4(pid: int, options: int) -> Tuple[int, int, _r]: ...\ndef waitpid(pid: int, options: int) -> int: ...\ndef write(fd: int, str: str) -> int: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\posix.pyi
|
posix.pyi
|
Other
| 6,396 | 0.85 | 0.572139 | 0 |
python-kit
| 731 |
2023-11-22T21:23:00.929325
|
BSD-3-Clause
| false |
3b067d3d62c937d0f443af5e54d8df8b
|
import os\nimport sys\nfrom _typeshed import AnyPath, BytesPath, StrPath\nfrom genericpath import exists as exists\nfrom typing import Any, AnyStr, Callable, List, Optional, Sequence, Text, Tuple, TypeVar, overload\n\n_T = TypeVar("_T")\n\n# ----- os.path variables -----\nsupports_unicode_filenames: bool\n# aliases (also in os)\ncurdir: str\npardir: str\nsep: str\nif sys.platform == "win32":\n altsep: str\nelse:\n altsep: Optional[str]\nextsep: str\npathsep: str\ndefpath: str\ndevnull: str\n\n# ----- os.path function stubs -----\ndef abspath(path: AnyStr) -> AnyStr: ...\ndef basename(p: AnyStr) -> AnyStr: ...\ndef dirname(p: AnyStr) -> AnyStr: ...\ndef expanduser(path: AnyStr) -> AnyStr: ...\ndef expandvars(path: AnyStr) -> AnyStr: ...\ndef normcase(s: AnyStr) -> AnyStr: ...\ndef normpath(path: AnyStr) -> AnyStr: ...\n\nif sys.platform == "win32":\n def realpath(path: AnyStr) -> AnyStr: ...\n\nelse:\n def realpath(filename: AnyStr) -> AnyStr: ...\n\n# NOTE: Empty lists results in '' (str) regardless of contained type.\n# Also, in Python 2 mixed sequences of Text and bytes results in either Text or bytes\n# So, fall back to Any\ndef commonprefix(m: Sequence[AnyPath]) -> Any: ...\ndef lexists(path: AnyPath) -> bool: ...\n\n# These return float if os.stat_float_times() == True,\n# but int is a subclass of float.\ndef getatime(filename: AnyPath) -> float: ...\ndef getmtime(filename: AnyPath) -> float: ...\ndef getctime(filename: AnyPath) -> float: ...\ndef getsize(filename: AnyPath) -> int: ...\ndef isabs(s: AnyPath) -> bool: ...\ndef isfile(path: AnyPath) -> bool: ...\ndef isdir(s: AnyPath) -> bool: ...\ndef islink(path: AnyPath) -> bool: ...\ndef ismount(path: AnyPath) -> bool: ...\n\n# Make sure signatures are disjunct, and allow combinations of bytes and unicode.\n# (Since Python 2 allows that, too)\n# Note that e.g. os.path.join("a", "b", "c", "d", u"e") will still result in\n# a type error.\n@overload\ndef join(__p1: bytes, *p: bytes) -> bytes: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: bytes, __p4: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: bytes, __p3: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: bytes, __p2: Text, *p: AnyPath) -> Text: ...\n@overload\ndef join(__p1: Text, *p: AnyPath) -> Text: ...\n@overload\ndef relpath(path: BytesPath, start: Optional[BytesPath] = ...) -> bytes: ...\n@overload\ndef relpath(path: StrPath, start: Optional[StrPath] = ...) -> Text: ...\ndef samefile(f1: AnyPath, f2: AnyPath) -> bool: ...\ndef sameopenfile(fp1: int, fp2: int) -> bool: ...\ndef samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...\ndef split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\ndef splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...\n\nif sys.platform == "win32":\n def splitunc(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated\n\ndef walk(path: AnyStr, visit: Callable[[_T, AnyStr, List[AnyStr]], Any], arg: _T) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\posixpath.pyi
|
posixpath.pyi
|
Other
| 2,937 | 0.95 | 0.470588 | 0.16 |
node-utils
| 935 |
2024-06-18T22:58:32.294267
|
GPL-3.0
| false |
85d6a21f1a4f58f9e3ffbeb89cf82345
|
from collections import deque\nfrom typing import Any, Deque, Generic, Optional, TypeVar\n\n_T = TypeVar("_T")\n\nclass Empty(Exception): ...\nclass Full(Exception): ...\n\nclass Queue(Generic[_T]):\n maxsize: Any\n mutex: Any\n not_empty: Any\n not_full: Any\n all_tasks_done: Any\n unfinished_tasks: Any\n queue: Deque[Any] # undocumented\n def __init__(self, maxsize: int = ...) -> None: ...\n def task_done(self) -> None: ...\n def join(self) -> None: ...\n def qsize(self) -> int: ...\n def empty(self) -> bool: ...\n def full(self) -> bool: ...\n def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\n def put_nowait(self, item: _T) -> None: ...\n def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\n def get_nowait(self) -> _T: ...\n\nclass PriorityQueue(Queue[_T]): ...\nclass LifoQueue(Queue[_T]): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\Queue.pyi
|
Queue.pyi
|
Other
| 895 | 0.95 | 0.517241 | 0 |
node-utils
| 139 |
2025-05-04T08:13:27.139364
|
Apache-2.0
| false |
f92a57182ce6a0dace064ebe0b01a9e5
|
import _random\nfrom typing import AbstractSet, Any, Callable, Iterator, List, MutableSequence, Protocol, Sequence, TypeVar, Union, overload\n\n_T = TypeVar("_T")\n_T_co = TypeVar("_T_co", covariant=True)\n\nclass _Sampleable(Protocol[_T_co]):\n def __iter__(self) -> Iterator[_T_co]: ...\n def __len__(self) -> int: ...\n\nclass Random(_random.Random):\n def __init__(self, x: object = ...) -> None: ...\n def seed(self, x: object = ...) -> None: ...\n def getstate(self) -> _random._State: ...\n def setstate(self, state: _random._State) -> None: ...\n def jumpahead(self, n: int) -> None: ...\n def getrandbits(self, k: int) -> int: ...\n @overload\n def randrange(self, stop: int) -> int: ...\n @overload\n def randrange(self, start: int, stop: int, step: int = ...) -> int: ...\n def randint(self, a: int, b: int) -> int: ...\n def choice(self, seq: Sequence[_T]) -> _T: ...\n def shuffle(self, x: MutableSequence[Any], random: Callable[[], None] = ...) -> None: ...\n def sample(self, population: _Sampleable[_T], k: int) -> List[_T]: ...\n def random(self) -> float: ...\n def uniform(self, a: float, b: float) -> float: ...\n def triangular(self, low: float = ..., high: float = ..., mode: float = ...) -> float: ...\n def betavariate(self, alpha: float, beta: float) -> float: ...\n def expovariate(self, lambd: float) -> float: ...\n def gammavariate(self, alpha: float, beta: float) -> float: ...\n def gauss(self, mu: float, sigma: float) -> float: ...\n def lognormvariate(self, mu: float, sigma: float) -> float: ...\n def normalvariate(self, mu: float, sigma: float) -> float: ...\n def vonmisesvariate(self, mu: float, kappa: float) -> float: ...\n def paretovariate(self, alpha: float) -> float: ...\n def weibullvariate(self, alpha: float, beta: float) -> float: ...\n\n# SystemRandom is not implemented for all OS's; good on Windows & Linux\nclass SystemRandom(Random): ...\n\n# ----- random function stubs -----\ndef seed(x: object = ...) -> None: ...\ndef getstate() -> object: ...\ndef setstate(state: object) -> None: ...\ndef jumpahead(n: int) -> None: ...\ndef getrandbits(k: int) -> int: ...\n@overload\ndef randrange(stop: int) -> int: ...\n@overload\ndef randrange(start: int, stop: int, step: int = ...) -> int: ...\ndef randint(a: int, b: int) -> int: ...\ndef choice(seq: Sequence[_T]) -> _T: ...\ndef shuffle(x: MutableSequence[Any], random: Callable[[], float] = ...) -> None: ...\ndef sample(population: _Sampleable[_T], k: int) -> List[_T]: ...\ndef random() -> float: ...\ndef uniform(a: float, b: float) -> float: ...\ndef triangular(low: float = ..., high: float = ..., mode: float = ...) -> float: ...\ndef betavariate(alpha: float, beta: float) -> float: ...\ndef expovariate(lambd: float) -> float: ...\ndef gammavariate(alpha: float, beta: float) -> float: ...\ndef gauss(mu: float, sigma: float) -> float: ...\ndef lognormvariate(mu: float, sigma: float) -> float: ...\ndef normalvariate(mu: float, sigma: float) -> float: ...\ndef vonmisesvariate(mu: float, kappa: float) -> float: ...\ndef paretovariate(alpha: float) -> float: ...\ndef weibullvariate(alpha: float, beta: float) -> float: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\random.pyi
|
random.pyi
|
Other
| 3,156 | 0.95 | 0.80597 | 0.032258 |
vue-tools
| 975 |
2023-11-11T03:47:07.342036
|
BSD-3-Clause
| false |
8dcc8be870515e1c3df3b8c70629f094
|
from typing import (\n Any,\n AnyStr,\n Callable,\n Dict,\n Generic,\n Iterator,\n List,\n Match,\n Optional,\n Pattern,\n Sequence,\n Tuple,\n Union,\n overload,\n)\n\n# ----- re variables and constants -----\nDEBUG: int\nI: int\nIGNORECASE: int\nL: int\nLOCALE: int\nM: int\nMULTILINE: int\nS: int\nDOTALL: int\nX: int\nVERBOSE: int\nU: int\nUNICODE: int\nT: int\nTEMPLATE: int\n\nclass error(Exception): ...\n\n@overload\ndef compile(pattern: AnyStr, flags: int = ...) -> Pattern[AnyStr]: ...\n@overload\ndef compile(pattern: Pattern[AnyStr], flags: int = ...) -> Pattern[AnyStr]: ...\n@overload\ndef search(pattern: Union[str, unicode], string: AnyStr, flags: int = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef search(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, flags: int = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef match(pattern: Union[str, unicode], string: AnyStr, flags: int = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef match(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, flags: int = ...) -> Optional[Match[AnyStr]]: ...\n@overload\ndef split(pattern: Union[str, unicode], string: AnyStr, maxsplit: int = ..., flags: int = ...) -> List[AnyStr]: ...\n@overload\ndef split(\n pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, maxsplit: int = ..., flags: int = ...\n) -> List[AnyStr]: ...\n@overload\ndef findall(pattern: Union[str, unicode], string: AnyStr, flags: int = ...) -> List[Any]: ...\n@overload\ndef findall(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, flags: int = ...) -> List[Any]: ...\n\n# Return an iterator yielding match objects over all non-overlapping matches\n# for the RE pattern in string. The string is scanned left-to-right, and\n# matches are returned in the order found. Empty matches are included in the\n# result unless they touch the beginning of another match.\n@overload\ndef finditer(pattern: Union[str, unicode], string: AnyStr, flags: int = ...) -> Iterator[Match[AnyStr]]: ...\n@overload\ndef finditer(pattern: Union[Pattern[str], Pattern[unicode]], string: AnyStr, flags: int = ...) -> Iterator[Match[AnyStr]]: ...\n@overload\ndef sub(pattern: Union[str, unicode], repl: AnyStr, string: AnyStr, count: int = ..., flags: int = ...) -> AnyStr: ...\n@overload\ndef sub(\n pattern: Union[str, unicode], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: int = ...\n) -> AnyStr: ...\n@overload\ndef sub(\n pattern: Union[Pattern[str], Pattern[unicode]], repl: AnyStr, string: AnyStr, count: int = ..., flags: int = ...\n) -> AnyStr: ...\n@overload\ndef sub(\n pattern: Union[Pattern[str], Pattern[unicode]],\n repl: Callable[[Match[AnyStr]], AnyStr],\n string: AnyStr,\n count: int = ...,\n flags: int = ...,\n) -> AnyStr: ...\n@overload\ndef subn(\n pattern: Union[str, unicode], repl: AnyStr, string: AnyStr, count: int = ..., flags: int = ...\n) -> Tuple[AnyStr, int]: ...\n@overload\ndef subn(\n pattern: Union[str, unicode], repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ..., flags: int = ...\n) -> Tuple[AnyStr, int]: ...\n@overload\ndef subn(\n pattern: Union[Pattern[str], Pattern[unicode]], repl: AnyStr, string: AnyStr, count: int = ..., flags: int = ...\n) -> Tuple[AnyStr, int]: ...\n@overload\ndef subn(\n pattern: Union[Pattern[str], Pattern[unicode]],\n repl: Callable[[Match[AnyStr]], AnyStr],\n string: AnyStr,\n count: int = ...,\n flags: int = ...,\n) -> Tuple[AnyStr, int]: ...\ndef escape(string: AnyStr) -> AnyStr: ...\ndef purge() -> None: ...\ndef template(pattern: Union[AnyStr, Pattern[AnyStr]], flags: int = ...) -> Pattern[AnyStr]: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\re.pyi
|
re.pyi
|
Other
| 3,641 | 0.95 | 0.231481 | 0.048077 |
react-lib
| 771 |
2024-12-31T05:57:09.364472
|
Apache-2.0
| false |
e20c1d557f45510eb3dfc597fcc4f37e
|
from typing import Any, List\n\nclass Repr:\n maxarray: int\n maxdeque: int\n maxdict: int\n maxfrozenset: int\n maxlevel: int\n maxlist: int\n maxlong: int\n maxother: int\n maxset: int\n maxstring: int\n maxtuple: int\n def __init__(self) -> None: ...\n def _repr_iterable(self, x, level: complex, left, right, maxiter, trail=...) -> str: ...\n def repr(self, x) -> str: ...\n def repr1(self, x, level: complex) -> str: ...\n def repr_array(self, x, level: complex) -> str: ...\n def repr_deque(self, x, level: complex) -> str: ...\n def repr_dict(self, x, level: complex) -> str: ...\n def repr_frozenset(self, x, level: complex) -> str: ...\n def repr_instance(self, x, level: complex) -> str: ...\n def repr_list(self, x, level: complex) -> str: ...\n def repr_long(self, x, level: complex) -> str: ...\n def repr_set(self, x, level: complex) -> str: ...\n def repr_str(self, x, level: complex) -> str: ...\n def repr_tuple(self, x, level: complex) -> str: ...\n\ndef _possibly_sorted(x) -> List[Any]: ...\n\naRepr: Repr\n\ndef repr(x) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\repr.pyi
|
repr.pyi
|
Other
| 1,095 | 0.85 | 0.5 | 0 |
awesome-app
| 517 |
2024-08-14T02:09:21.945150
|
GPL-3.0
| false |
3fe3d766388c8736716a890d0c801776
|
from typing import NamedTuple, Tuple\n\nclass error(Exception): ...\n\nRLIM_INFINITY: int\n\ndef getrlimit(resource: int) -> Tuple[int, int]: ...\ndef setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...\n\nRLIMIT_CORE: int\nRLIMIT_CPU: int\nRLIMIT_FSIZE: int\nRLIMIT_DATA: int\nRLIMIT_STACK: int\nRLIMIT_RSS: int\nRLIMIT_NPROC: int\nRLIMIT_NOFILE: int\nRLIMIT_OFILE: int\nRLIMIT_MEMLOCK: int\nRLIMIT_VMEM: int\nRLIMIT_AS: int\n\nclass _RUsage(NamedTuple):\n ru_utime: float\n ru_stime: float\n ru_maxrss: int\n ru_ixrss: int\n ru_idrss: int\n ru_isrss: int\n ru_minflt: int\n ru_majflt: int\n ru_nswap: int\n ru_inblock: int\n ru_oublock: int\n ru_msgsnd: int\n ru_msgrcv: int\n ru_nsignals: int\n ru_nvcsw: int\n ru_nivcsw: int\n\ndef getrusage(who: int) -> _RUsage: ...\ndef getpagesize() -> int: ...\n\nRUSAGE_SELF: int\nRUSAGE_CHILDREN: int\nRUSAGE_BOTH: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\resource.pyi
|
resource.pyi
|
Other
| 877 | 0.85 | 0.130435 | 0 |
node-utils
| 373 |
2024-08-08T08:59:13.410100
|
MIT
| false |
ce30d69979b66864ecb226119c48ab25
|
from typing import Any, Optional\n\nclass Message:\n fp: Any\n seekable: Any\n startofheaders: Any\n startofbody: Any\n def __init__(self, fp, seekable: int = ...): ...\n def rewindbody(self): ...\n dict: Any\n unixfrom: Any\n headers: Any\n status: Any\n def readheaders(self): ...\n def isheader(self, line): ...\n def islast(self, line): ...\n def iscomment(self, line): ...\n def getallmatchingheaders(self, name): ...\n def getfirstmatchingheader(self, name): ...\n def getrawheader(self, name): ...\n def getheader(self, name, default: Optional[Any] = ...): ...\n get: Any\n def getheaders(self, name): ...\n def getaddr(self, name): ...\n def getaddrlist(self, name): ...\n def getdate(self, name): ...\n def getdate_tz(self, name): ...\n def __len__(self): ...\n def __getitem__(self, name): ...\n def __setitem__(self, name, value): ...\n def __delitem__(self, name): ...\n def setdefault(self, name, default=...): ...\n def has_key(self, name): ...\n def __contains__(self, name): ...\n def __iter__(self): ...\n def keys(self): ...\n def values(self): ...\n def items(self): ...\n\nclass AddrlistClass:\n specials: Any\n pos: Any\n LWS: Any\n CR: Any\n atomends: Any\n phraseends: Any\n field: Any\n commentlist: Any\n def __init__(self, field): ...\n def gotonext(self): ...\n def getaddrlist(self): ...\n def getaddress(self): ...\n def getrouteaddr(self): ...\n def getaddrspec(self): ...\n def getdomain(self): ...\n def getdelimited(self, beginchar, endchars, allowcomments: int = ...): ...\n def getquote(self): ...\n def getcomment(self): ...\n def getdomainliteral(self): ...\n def getatom(self, atomends: Optional[Any] = ...): ...\n def getphraselist(self): ...\n\nclass AddressList(AddrlistClass):\n addresslist: Any\n def __init__(self, field): ...\n def __len__(self): ...\n def __add__(self, other): ...\n def __iadd__(self, other): ...\n def __sub__(self, other): ...\n def __isub__(self, other): ...\n def __getitem__(self, index): ...\n\ndef parsedate_tz(data): ...\ndef parsedate(data): ...\ndef mktime_tz(data): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\rfc822.pyi
|
rfc822.pyi
|
Other
| 2,163 | 0.85 | 0.693333 | 0 |
python-kit
| 59 |
2023-12-21T03:00:30.589595
|
Apache-2.0
| false |
6c4412e19785841cd99fde35cf6ba09b
|
class RobotFileParser:\n def set_url(self, url: str): ...\n def read(self): ...\n def parse(self, lines: str): ...\n def can_fetch(self, user_agent: str, url: str): ...\n def mtime(self): ...\n def modified(self): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\robotparser.pyi
|
robotparser.pyi
|
Other
| 230 | 0.85 | 1 | 0 |
node-utils
| 439 |
2024-08-05T04:33:23.680748
|
BSD-3-Clause
| false |
b95639ec8b9f7606853589e2a2ae43cb
|
from typing import Any, Optional\n\nclass _TempModule:\n mod_name: Any\n module: Any\n def __init__(self, mod_name): ...\n def __enter__(self): ...\n def __exit__(self, *args): ...\n\nclass _ModifiedArgv0:\n value: Any\n def __init__(self, value): ...\n def __enter__(self): ...\n def __exit__(self, *args): ...\n\ndef run_module(mod_name, init_globals: Optional[Any] = ..., run_name: Optional[Any] = ..., alter_sys: bool = ...): ...\ndef run_path(path_name, init_globals: Optional[Any] = ..., run_name: Optional[Any] = ...): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\runpy.pyi
|
runpy.pyi
|
Other
| 541 | 0.85 | 0.588235 | 0 |
vue-tools
| 357 |
2025-02-28T17:01:52.965971
|
GPL-3.0
| false |
d9b9f4efa8d03dc7e9aec02a8606802d
|
from typing import Any, Callable, Hashable, Iterable, Iterator, MutableMapping, Optional, TypeVar, Union\n\n_T = TypeVar("_T")\n_Setlike = Union[BaseSet[_T], Iterable[_T]]\n_SelfT = TypeVar("_SelfT")\n\nclass BaseSet(Iterable[_T]):\n def __init__(self) -> None: ...\n def __len__(self) -> int: ...\n def __repr__(self) -> str: ...\n def __str__(self) -> str: ...\n def __iter__(self) -> Iterator[_T]: ...\n def __cmp__(self, other: Any) -> int: ...\n def __eq__(self, other: Any) -> bool: ...\n def __ne__(self, other: Any) -> bool: ...\n def copy(self: _SelfT) -> _SelfT: ...\n def __copy__(self: _SelfT) -> _SelfT: ...\n def __deepcopy__(self: _SelfT, memo: MutableMapping[int, BaseSet[_T]]) -> _SelfT: ...\n def __or__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def union(self: _SelfT, other: _Setlike[_T]) -> _SelfT: ...\n def __and__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def intersection(self: _SelfT, other: _Setlike[Any]) -> _SelfT: ...\n def __xor__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def symmetric_difference(self: _SelfT, other: _Setlike[_T]) -> _SelfT: ...\n def __sub__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def difference(self: _SelfT, other: _Setlike[Any]) -> _SelfT: ...\n def __contains__(self, element: Any) -> bool: ...\n def issubset(self, other: BaseSet[_T]) -> bool: ...\n def issuperset(self, other: BaseSet[_T]) -> bool: ...\n def __le__(self, other: BaseSet[_T]) -> bool: ...\n def __ge__(self, other: BaseSet[_T]) -> bool: ...\n def __lt__(self, other: BaseSet[_T]) -> bool: ...\n def __gt__(self, other: BaseSet[_T]) -> bool: ...\n\nclass ImmutableSet(BaseSet[_T], Hashable):\n def __init__(self, iterable: Optional[_Setlike[_T]] = ...) -> None: ...\n def __hash__(self) -> int: ...\n\nclass Set(BaseSet[_T]):\n def __init__(self, iterable: Optional[_Setlike[_T]] = ...) -> None: ...\n def __ior__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def union_update(self, other: _Setlike[_T]) -> None: ...\n def __iand__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def intersection_update(self, other: _Setlike[Any]) -> None: ...\n def __ixor__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def symmetric_difference_update(self, other: _Setlike[_T]) -> None: ...\n def __isub__(self: _SelfT, other: BaseSet[_T]) -> _SelfT: ...\n def difference_update(self, other: _Setlike[Any]) -> None: ...\n def update(self, iterable: _Setlike[_T]) -> None: ...\n def clear(self) -> None: ...\n def add(self, element: _T) -> None: ...\n def remove(self, element: _T) -> None: ...\n def discard(self, element: _T) -> None: ...\n def pop(self) -> _T: ...\n def __as_immutable__(self) -> ImmutableSet[_T]: ...\n def __as_temporarily_immutable__(self) -> _TemporarilyImmutableSet[_T]: ...\n\nclass _TemporarilyImmutableSet(BaseSet[_T]):\n def __init__(self, set: BaseSet[_T]) -> None: ...\n def __hash__(self) -> int: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\sets.pyi
|
sets.pyi
|
Other
| 2,975 | 0.85 | 0.85 | 0 |
vue-tools
| 643 |
2024-12-09T18:30:44.983441
|
Apache-2.0
| false |
6524d2643d90c2a4954ae05311226be3
|
class sha(object):\n def update(self, arg: str) -> None: ...\n def digest(self) -> str: ...\n def hexdigest(self) -> str: ...\n def copy(self) -> sha: ...\n\ndef new(string: str = ...) -> sha: ...\n\nblocksize: int\ndigest_size: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\sha.pyi
|
sha.pyi
|
Other
| 236 | 0.85 | 0.6 | 0 |
awesome-app
| 120 |
2023-08-26T14:12:22.075899
|
Apache-2.0
| false |
19dc9b0f8bb346fbfe17f3005bf839c6
|
import collections\nfrom typing import Any, Dict, Iterator, List, Optional, Tuple\n\nclass Shelf(collections.MutableMapping[Any, Any]):\n def __init__(\n self, dict: Dict[Any, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...\n ) -> None: ...\n def __iter__(self) -> Iterator[str]: ...\n def keys(self) -> List[Any]: ...\n def __len__(self) -> int: ...\n def has_key(self, key: Any) -> bool: ...\n def __contains__(self, key: Any) -> bool: ...\n def get(self, key: Any, default: Any = ...) -> Any: ...\n def __getitem__(self, key: Any) -> Any: ...\n def __setitem__(self, key: Any, value: Any) -> None: ...\n def __delitem__(self, key: Any) -> None: ...\n def __enter__(self) -> Shelf: ...\n def __exit__(self, type: Any, value: Any, traceback: Any) -> None: ...\n def close(self) -> None: ...\n def __del__(self) -> None: ...\n def sync(self) -> None: ...\n\nclass BsdDbShelf(Shelf):\n def __init__(\n self, dict: Dict[Any, Any], protocol: Optional[int] = ..., writeback: bool = ..., keyencoding: str = ...\n ) -> None: ...\n def set_location(self, key: Any) -> Tuple[str, Any]: ...\n def next(self) -> Tuple[str, Any]: ...\n def previous(self) -> Tuple[str, Any]: ...\n def first(self) -> Tuple[str, Any]: ...\n def last(self) -> Tuple[str, Any]: ...\n\nclass DbfilenameShelf(Shelf):\n def __init__(self, filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> None: ...\n\ndef open(filename: str, flag: str = ..., protocol: Optional[int] = ..., writeback: bool = ...) -> DbfilenameShelf: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\shelve.pyi
|
shelve.pyi
|
Other
| 1,612 | 0.85 | 0.722222 | 0 |
react-lib
| 52 |
2024-09-16T23:13:57.968583
|
GPL-3.0
| false |
c11d779e7765ce746b2d2380f1712c5e
|
from typing import IO, Any, List, Optional, Text, TypeVar, Union\n\ndef split(s: Optional[str], comments: bool = ..., posix: bool = ...) -> List[str]: ...\n\n_SLT = TypeVar("_SLT", bound=shlex)\n\nclass shlex:\n def __init__(self, instream: Union[IO[Any], Text] = ..., infile: IO[Any] = ..., posix: bool = ...) -> None: ...\n def __iter__(self: _SLT) -> _SLT: ...\n def next(self) -> str: ...\n def get_token(self) -> Optional[str]: ...\n def push_token(self, _str: str) -> None: ...\n def read_token(self) -> str: ...\n def sourcehook(self, filename: str) -> None: ...\n def push_source(self, stream: IO[Any], filename: str = ...) -> None: ...\n def pop_source(self) -> IO[Any]: ...\n def error_leader(self, file: str = ..., line: int = ...) -> str: ...\n commenters: str\n wordchars: str\n whitespace: str\n escape: str\n quotes: str\n escapedquotes: str\n whitespace_split: bool\n infile: IO[Any]\n source: Optional[str]\n debug: int\n lineno: int\n token: Any\n eof: Optional[str]\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\shlex.pyi
|
shlex.pyi
|
Other
| 1,025 | 0.85 | 0.4 | 0 |
vue-tools
| 755 |
2024-03-30T06:24:48.507338
|
Apache-2.0
| false |
fe5c22d368714aa86929157470bc76d6
|
from types import FrameType\nfrom typing import Any, Callable, Tuple, Union\n\nSIG_DFL: int = ...\nSIG_IGN: int = ...\n\nITIMER_REAL: int = ...\nITIMER_VIRTUAL: int = ...\nITIMER_PROF: int = ...\n\nNSIG: int = ...\n\nSIGABRT: int = ...\nSIGALRM: int = ...\nSIGBREAK: int = ... # Windows\nSIGBUS: int = ...\nSIGCHLD: int = ...\nSIGCLD: int = ...\nSIGCONT: int = ...\nSIGEMT: int = ...\nSIGFPE: int = ...\nSIGHUP: int = ...\nSIGILL: int = ...\nSIGINFO: int = ...\nSIGINT: int = ...\nSIGIO: int = ...\nSIGIOT: int = ...\nSIGKILL: int = ...\nSIGPIPE: int = ...\nSIGPOLL: int = ...\nSIGPROF: int = ...\nSIGPWR: int = ...\nSIGQUIT: int = ...\nSIGRTMAX: int = ...\nSIGRTMIN: int = ...\nSIGSEGV: int = ...\nSIGSTOP: int = ...\nSIGSYS: int = ...\nSIGTERM: int = ...\nSIGTRAP: int = ...\nSIGTSTP: int = ...\nSIGTTIN: int = ...\nSIGTTOU: int = ...\nSIGURG: int = ...\nSIGUSR1: int = ...\nSIGUSR2: int = ...\nSIGVTALRM: int = ...\nSIGWINCH: int = ...\nSIGXCPU: int = ...\nSIGXFSZ: int = ...\n\n# Windows\nCTRL_C_EVENT: int = ...\nCTRL_BREAK_EVENT: int = ...\n\nclass ItimerError(IOError): ...\n\n_HANDLER = Union[Callable[[int, FrameType], None], int, None]\n\ndef alarm(time: int) -> int: ...\ndef getsignal(signalnum: int) -> _HANDLER: ...\ndef pause() -> None: ...\ndef setitimer(which: int, seconds: float, interval: float = ...) -> Tuple[float, float]: ...\ndef getitimer(which: int) -> Tuple[float, float]: ...\ndef set_wakeup_fd(fd: int) -> int: ...\ndef siginterrupt(signalnum: int, flag: bool) -> None: ...\ndef signal(signalnum: int, handler: _HANDLER) -> _HANDLER: ...\ndef default_int_handler(signum: int, frame: FrameType) -> None: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\signal.pyi
|
signal.pyi
|
Other
| 1,571 | 0.95 | 0.147059 | 0.016667 |
python-kit
| 23 |
2023-12-18T05:54:55.915838
|
GPL-3.0
| false |
1f6c6bb4be3177f566cd812dc7733eba
|
import BaseHTTPServer\nfrom StringIO import StringIO\nfrom typing import IO, Any, AnyStr, Mapping, Optional, Union\n\nclass SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n server_version: str\n def do_GET(self) -> None: ...\n def do_HEAD(self) -> None: ...\n def send_head(self) -> Optional[IO[str]]: ...\n def list_directory(self, path: Union[str, unicode]) -> Optional[StringIO[Any]]: ...\n def translate_path(self, path: AnyStr) -> AnyStr: ...\n def copyfile(self, source: IO[AnyStr], outputfile: IO[AnyStr]): ...\n def guess_type(self, path: Union[str, unicode]) -> str: ...\n extensions_map: Mapping[str, str]\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\SimpleHTTPServer.pyi
|
SimpleHTTPServer.pyi
|
Other
| 648 | 0.85 | 0.571429 | 0 |
node-utils
| 824 |
2025-06-13T22:43:52.614428
|
GPL-3.0
| false |
0e75f142d14ec17c92b73d592ab48acf
|
from typing import Any\n\nclass SMTPException(Exception): ...\nclass SMTPServerDisconnected(SMTPException): ...\n\nclass SMTPResponseException(SMTPException):\n smtp_code: Any\n smtp_error: Any\n args: Any\n def __init__(self, code, msg) -> None: ...\n\nclass SMTPSenderRefused(SMTPResponseException):\n smtp_code: Any\n smtp_error: Any\n sender: Any\n args: Any\n def __init__(self, code, msg, sender) -> None: ...\n\nclass SMTPRecipientsRefused(SMTPException):\n recipients: Any\n args: Any\n def __init__(self, recipients) -> None: ...\n\nclass SMTPDataError(SMTPResponseException): ...\nclass SMTPConnectError(SMTPResponseException): ...\nclass SMTPHeloError(SMTPResponseException): ...\nclass SMTPAuthenticationError(SMTPResponseException): ...\n\ndef quoteaddr(addr): ...\ndef quotedata(data): ...\n\nclass SSLFakeFile:\n sslobj: Any\n def __init__(self, sslobj) -> None: ...\n def readline(self, size=...): ...\n def close(self): ...\n\nclass SMTP:\n debuglevel: Any\n file: Any\n helo_resp: Any\n ehlo_msg: Any\n ehlo_resp: Any\n does_esmtp: Any\n default_port: Any\n timeout: Any\n esmtp_features: Any\n local_hostname: Any\n def __init__(self, host: str = ..., port: int = ..., local_hostname=..., timeout=...) -> None: ...\n def set_debuglevel(self, debuglevel): ...\n sock: Any\n def connect(self, host=..., port=...): ...\n def send(self, str): ...\n def putcmd(self, cmd, args=...): ...\n def getreply(self): ...\n def docmd(self, cmd, args=...): ...\n def helo(self, name=...): ...\n def ehlo(self, name=...): ...\n def has_extn(self, opt): ...\n def help(self, args=...): ...\n def rset(self): ...\n def noop(self): ...\n def mail(self, sender, options=...): ...\n def rcpt(self, recip, options=...): ...\n def data(self, msg): ...\n def verify(self, address): ...\n vrfy: Any\n def expn(self, address): ...\n def ehlo_or_helo_if_needed(self): ...\n def login(self, user, password): ...\n def starttls(self, keyfile=..., certfile=...): ...\n def sendmail(self, from_addr, to_addrs, msg, mail_options=..., rcpt_options=...): ...\n def close(self): ...\n def quit(self): ...\n\nclass SMTP_SSL(SMTP):\n default_port: Any\n keyfile: Any\n certfile: Any\n def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=..., timeout=...) -> None: ...\n\nclass LMTP(SMTP):\n ehlo_msg: Any\n def __init__(self, host=..., port=..., local_hostname=...) -> None: ...\n sock: Any\n def connect(self, host=..., port=...): ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\smtplib.pyi
|
smtplib.pyi
|
Other
| 2,542 | 0.85 | 0.55814 | 0 |
vue-tools
| 315 |
2024-11-16T06:53:17.125992
|
Apache-2.0
| false |
39a2ddb9943e8f3ddceb60e8e6085282
|
import sys\nimport types\nfrom socket import SocketType\nfrom typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Text, Tuple, Type, Union\n\nclass BaseServer:\n address_family: int\n RequestHandlerClass: Callable[..., BaseRequestHandler]\n server_address: Tuple[str, int]\n socket: SocketType\n allow_reuse_address: bool\n request_queue_size: int\n socket_type: int\n timeout: Optional[float]\n def __init__(self, server_address: Any, RequestHandlerClass: Callable[..., BaseRequestHandler]) -> None: ...\n def fileno(self) -> int: ...\n def handle_request(self) -> None: ...\n def serve_forever(self, poll_interval: float = ...) -> None: ...\n def shutdown(self) -> None: ...\n def server_close(self) -> None: ...\n def finish_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n def get_request(self) -> Tuple[SocketType, Tuple[str, int]]: ...\n def handle_error(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n def handle_timeout(self) -> None: ...\n def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n def server_activate(self) -> None: ...\n def server_bind(self) -> None: ...\n def verify_request(self, request: bytes, client_address: Tuple[str, int]) -> bool: ...\n\nclass TCPServer(BaseServer):\n def __init__(\n self,\n server_address: Tuple[str, int],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n\nclass UDPServer(BaseServer):\n def __init__(\n self,\n server_address: Tuple[str, int],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n\nif sys.platform != "win32":\n class UnixStreamServer(BaseServer):\n def __init__(\n self,\n server_address: Union[Text, bytes],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n class UnixDatagramServer(BaseServer):\n def __init__(\n self,\n server_address: Union[Text, bytes],\n RequestHandlerClass: Callable[..., BaseRequestHandler],\n bind_and_activate: bool = ...,\n ) -> None: ...\n\nif sys.platform != "win32":\n class ForkingMixIn:\n timeout: Optional[float] # undocumented\n active_children: Optional[List[int]] # undocumented\n max_children: int # undocumented\n def collect_children(self) -> None: ... # undocumented\n def handle_timeout(self) -> None: ... # undocumented\n def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n\nclass ThreadingMixIn:\n daemon_threads: bool\n def process_request_thread(self, request: bytes, client_address: Tuple[str, int]) -> None: ... # undocumented\n def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...\n\nif sys.platform != "win32":\n class ForkingTCPServer(ForkingMixIn, TCPServer): ...\n class ForkingUDPServer(ForkingMixIn, UDPServer): ...\n\nclass ThreadingTCPServer(ThreadingMixIn, TCPServer): ...\nclass ThreadingUDPServer(ThreadingMixIn, UDPServer): ...\n\nif sys.platform != "win32":\n class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer): ...\n class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): ...\n\nclass BaseRequestHandler:\n # Those are technically of types, respectively:\n # * Union[SocketType, Tuple[bytes, SocketType]]\n # * Union[Tuple[str, int], str]\n # But there are some concerns that having unions here would cause\n # too much inconvenience to people using it (see\n # https://github.com/python/typeshed/pull/384#issuecomment-234649696)\n request: Any\n client_address: Any\n server: BaseServer\n def __init__(self, request: Any, client_address: Any, server: BaseServer) -> None: ...\n def setup(self) -> None: ...\n def handle(self) -> None: ...\n def finish(self) -> None: ...\n\nclass StreamRequestHandler(BaseRequestHandler):\n rbufsize: ClassVar[int] # Undocumented\n wbufsize: ClassVar[int] # Undocumented\n timeout: ClassVar[Optional[float]] # Undocumented\n disable_nagle_algorithm: ClassVar[bool] # Undocumented\n connection: SocketType # Undocumented\n rfile: BinaryIO\n wfile: BinaryIO\n\nclass DatagramRequestHandler(BaseRequestHandler):\n packet: SocketType # Undocumented\n socket: SocketType # Undocumented\n rfile: BinaryIO\n wfile: BinaryIO\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\SocketServer.pyi
|
SocketServer.pyi
|
Other
| 4,559 | 0.95 | 0.408696 | 0.058252 |
vue-tools
| 244 |
2023-12-25T18:48:43.630821
|
MIT
| false |
897f996999e39cb18349e67bc6e53bec
|
from typing import List, NamedTuple\n\nclass struct_spwd(NamedTuple):\n sp_nam: str\n sp_pwd: str\n sp_lstchg: int\n sp_min: int\n sp_max: int\n sp_warn: int\n sp_inact: int\n sp_expire: int\n sp_flag: int\n\ndef getspall() -> List[struct_spwd]: ...\ndef getspnam(name: str) -> struct_spwd: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\spwd.pyi
|
spwd.pyi
|
Other
| 308 | 0.85 | 0.2 | 0 |
react-lib
| 414 |
2023-12-29T02:27:27.442501
|
BSD-3-Clause
| false |
c68cfc830dc60b0c5c74c967d8d14320
|
from typing import Dict, List, TypeVar\n\nMAGIC: int\nMAXREPEAT: int\n\nclass error(Exception): ...\n\nFAILURE: str\nSUCCESS: str\nANY: str\nANY_ALL: str\nASSERT: str\nASSERT_NOT: str\nAT: str\nBIGCHARSET: str\nBRANCH: str\nCALL: str\nCATEGORY: str\nCHARSET: str\nGROUPREF: str\nGROUPREF_IGNORE: str\nGROUPREF_EXISTS: str\nIN: str\nIN_IGNORE: str\nINFO: str\nJUMP: str\nLITERAL: str\nLITERAL_IGNORE: str\nMARK: str\nMAX_REPEAT: str\nMAX_UNTIL: str\nMIN_REPEAT: str\nMIN_UNTIL: str\nNEGATE: str\nNOT_LITERAL: str\nNOT_LITERAL_IGNORE: str\nRANGE: str\nREPEAT: str\nREPEAT_ONE: str\nSUBPATTERN: str\nMIN_REPEAT_ONE: str\nAT_BEGINNING: str\nAT_BEGINNING_LINE: str\nAT_BEGINNING_STRING: str\nAT_BOUNDARY: str\nAT_NON_BOUNDARY: str\nAT_END: str\nAT_END_LINE: str\nAT_END_STRING: str\nAT_LOC_BOUNDARY: str\nAT_LOC_NON_BOUNDARY: str\nAT_UNI_BOUNDARY: str\nAT_UNI_NON_BOUNDARY: str\nCATEGORY_DIGIT: str\nCATEGORY_NOT_DIGIT: str\nCATEGORY_SPACE: str\nCATEGORY_NOT_SPACE: str\nCATEGORY_WORD: str\nCATEGORY_NOT_WORD: str\nCATEGORY_LINEBREAK: str\nCATEGORY_NOT_LINEBREAK: str\nCATEGORY_LOC_WORD: str\nCATEGORY_LOC_NOT_WORD: str\nCATEGORY_UNI_DIGIT: str\nCATEGORY_UNI_NOT_DIGIT: str\nCATEGORY_UNI_SPACE: str\nCATEGORY_UNI_NOT_SPACE: str\nCATEGORY_UNI_WORD: str\nCATEGORY_UNI_NOT_WORD: str\nCATEGORY_UNI_LINEBREAK: str\nCATEGORY_UNI_NOT_LINEBREAK: str\n\n_T = TypeVar("_T")\n\ndef makedict(list: List[_T]) -> Dict[_T, int]: ...\n\nOP_IGNORE: Dict[str, str]\nAT_MULTILINE: Dict[str, str]\nAT_LOCALE: Dict[str, str]\nAT_UNICODE: Dict[str, str]\nCH_LOCALE: Dict[str, str]\nCH_UNICODE: Dict[str, str]\nSRE_FLAG_TEMPLATE: int\nSRE_FLAG_IGNORECASE: int\nSRE_FLAG_LOCALE: int\nSRE_FLAG_MULTILINE: int\nSRE_FLAG_DOTALL: int\nSRE_FLAG_UNICODE: int\nSRE_FLAG_VERBOSE: int\nSRE_FLAG_DEBUG: int\nSRE_INFO_PREFIX: int\nSRE_INFO_LITERAL: int\nSRE_INFO_CHARSET: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\sre_constants.pyi
|
sre_constants.pyi
|
Other
| 1,744 | 0.85 | 0.021505 | 0 |
awesome-app
| 177 |
2024-07-21T20:40:32.445608
|
BSD-3-Clause
| false |
d5db92e98880b5225f98f790c35e0d7e
|
from typing import Any, Dict, Iterable, List, Match, Optional, Pattern as _Pattern, Set, Tuple, Union\n\nSPECIAL_CHARS: str\nREPEAT_CHARS: str\nDIGITS: Set[Any]\nOCTDIGITS: Set[Any]\nHEXDIGITS: Set[Any]\nWHITESPACE: Set[Any]\nESCAPES: Dict[str, Tuple[str, int]]\nCATEGORIES: Dict[str, Union[Tuple[str, str], Tuple[str, List[Tuple[str, str]]]]]\nFLAGS: Dict[str, int]\n\nclass Pattern:\n flags: int\n open: List[int]\n groups: int\n groupdict: Dict[str, int]\n lookbehind: int\n def __init__(self) -> None: ...\n def opengroup(self, name: str = ...) -> int: ...\n def closegroup(self, gid: int) -> None: ...\n def checkgroup(self, gid: int) -> bool: ...\n\n_OpSubpatternType = Tuple[Optional[int], int, int, SubPattern]\n_OpGroupRefExistsType = Tuple[int, SubPattern, SubPattern]\n_OpInType = List[Tuple[str, int]]\n_OpBranchType = Tuple[None, List[SubPattern]]\n_AvType = Union[_OpInType, _OpBranchType, Iterable[SubPattern], _OpGroupRefExistsType, _OpSubpatternType]\n_CodeType = Union[str, _AvType]\n\nclass SubPattern:\n pattern: str\n data: List[_CodeType]\n width: Optional[int]\n def __init__(self, pattern, data: List[_CodeType] = ...) -> None: ...\n def dump(self, level: int = ...) -> None: ...\n def __len__(self) -> int: ...\n def __delitem__(self, index: Union[int, slice]) -> None: ...\n def __getitem__(self, index: Union[int, slice]) -> Union[SubPattern, _CodeType]: ...\n def __setitem__(self, index: Union[int, slice], code: _CodeType): ...\n def insert(self, index, code: _CodeType) -> None: ...\n def append(self, code: _CodeType) -> None: ...\n def getwidth(self) -> int: ...\n\nclass Tokenizer:\n string: str\n index: int\n def __init__(self, string: str) -> None: ...\n def match(self, char: str, skip: int = ...) -> int: ...\n def get(self) -> Optional[str]: ...\n def tell(self) -> Tuple[int, Optional[str]]: ...\n def seek(self, index: int) -> None: ...\n\ndef isident(char: str) -> bool: ...\ndef isdigit(char: str) -> bool: ...\ndef isname(name: str) -> bool: ...\ndef parse(str: str, flags: int = ..., pattern: Pattern = ...) -> SubPattern: ...\n\n_Template = Tuple[List[Tuple[int, int]], List[Optional[int]]]\n\ndef parse_template(source: str, pattern: _Pattern[Any]) -> _Template: ...\ndef expand_template(template: _Template, match: Match[Any]) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\sre_parse.pyi
|
sre_parse.pyi
|
Other
| 2,311 | 0.85 | 0.435484 | 0 |
vue-tools
| 59 |
2023-12-30T20:17:24.673900
|
Apache-2.0
| false |
8531e45ae6657336dd98fab39eee0e40
|
def S_ISDIR(mode: int) -> bool: ...\ndef S_ISCHR(mode: int) -> bool: ...\ndef S_ISBLK(mode: int) -> bool: ...\ndef S_ISREG(mode: int) -> bool: ...\ndef S_ISFIFO(mode: int) -> bool: ...\ndef S_ISLNK(mode: int) -> bool: ...\ndef S_ISSOCK(mode: int) -> bool: ...\ndef S_IMODE(mode: int) -> int: ...\ndef S_IFMT(mode: int) -> int: ...\n\nST_MODE: int\nST_INO: int\nST_DEV: int\nST_NLINK: int\nST_UID: int\nST_GID: int\nST_SIZE: int\nST_ATIME: int\nST_MTIME: int\nST_CTIME: int\nS_IFSOCK: int\nS_IFLNK: int\nS_IFREG: int\nS_IFBLK: int\nS_IFDIR: int\nS_IFCHR: int\nS_IFIFO: int\nS_ISUID: int\nS_ISGID: int\nS_ISVTX: int\nS_IRWXU: int\nS_IRUSR: int\nS_IWUSR: int\nS_IXUSR: int\nS_IRWXG: int\nS_IRGRP: int\nS_IWGRP: int\nS_IXGRP: int\nS_IRWXO: int\nS_IROTH: int\nS_IWOTH: int\nS_IXOTH: int\nS_ENFMT: int\nS_IREAD: int\nS_IWRITE: int\nS_IEXEC: int\nUF_NODUMP: int\nUF_IMMUTABLE: int\nUF_APPEND: int\nUF_OPAQUE: int\nUF_NOUNLINK: int\nUF_COMPRESSED: int\nUF_HIDDEN: int\nSF_ARCHIVED: int\nSF_IMMUTABLE: int\nSF_APPEND: int\nSF_NOUNLINK: int\nSF_SNAPSHOT: int\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\stat.pyi
|
stat.pyi
|
Other
| 992 | 0.85 | 0.155172 | 0 |
node-utils
| 906 |
2025-07-06T01:16:54.611564
|
Apache-2.0
| false |
35b55be6ee8b968c2c0db86c20d5cc64
|
from typing import Any, AnyStr, Iterable, List, Mapping, Optional, Sequence, Text, Tuple, Union, overload\n\nascii_letters: str\nascii_lowercase: str\nascii_uppercase: str\ndigits: str\nhexdigits: str\nletters: str\nlowercase: str\noctdigits: str\npunctuation: str\nprintable: str\nuppercase: str\nwhitespace: str\n\ndef capwords(s: AnyStr, sep: AnyStr = ...) -> AnyStr: ...\n\n# TODO: originally named 'from'\ndef maketrans(_from: str, to: str) -> str: ...\ndef atof(s: unicode) -> float: ...\ndef atoi(s: unicode, base: int = ...) -> int: ...\ndef atol(s: unicode, base: int = ...) -> int: ...\ndef capitalize(word: AnyStr) -> AnyStr: ...\ndef find(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef rfind(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef index(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef rindex(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef count(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef lower(s: AnyStr) -> AnyStr: ...\ndef split(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...\ndef rsplit(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...\ndef splitfields(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...\ndef join(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...\ndef joinfields(word: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...\ndef lstrip(s: AnyStr, chars: AnyStr = ...) -> AnyStr: ...\ndef rstrip(s: AnyStr, chars: AnyStr = ...) -> AnyStr: ...\ndef strip(s: AnyStr, chars: AnyStr = ...) -> AnyStr: ...\ndef swapcase(s: AnyStr) -> AnyStr: ...\ndef translate(s: str, table: str, deletechars: str = ...) -> str: ...\ndef upper(s: AnyStr) -> AnyStr: ...\ndef ljust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\ndef rjust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\ndef center(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\ndef zfill(s: AnyStr, width: int) -> AnyStr: ...\ndef replace(s: AnyStr, old: AnyStr, new: AnyStr, maxreplace: int = ...) -> AnyStr: ...\n\nclass Template:\n template: Text\n def __init__(self, template: Text) -> None: ...\n @overload\n def substitute(self, mapping: Union[Mapping[str, str], Mapping[unicode, str]] = ..., **kwds: str) -> str: ...\n @overload\n def substitute(self, mapping: Union[Mapping[str, Text], Mapping[unicode, Text]] = ..., **kwds: Text) -> Text: ...\n @overload\n def safe_substitute(self, mapping: Union[Mapping[str, str], Mapping[unicode, str]] = ..., **kwds: str) -> str: ...\n @overload\n def safe_substitute(self, mapping: Union[Mapping[str, Text], Mapping[unicode, Text]], **kwds: Text) -> Text: ...\n\n# TODO(MichalPokorny): This is probably badly and/or loosely typed.\nclass Formatter(object):\n def format(self, format_string: str, *args, **kwargs) -> str: ...\n def vformat(self, format_string: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> str: ...\n def parse(self, format_string: str) -> Iterable[Tuple[str, str, str, str]]: ...\n def get_field(self, field_name: str, args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ...\n def get_value(self, key: Union[int, str], args: Sequence[Any], kwargs: Mapping[str, Any]) -> Any: ...\n def check_unused_args(self, used_args: Sequence[Union[int, str]], args: Sequence[Any], kwargs: Mapping[str, Any]) -> None: ...\n def format_field(self, value: Any, format_spec: str) -> Any: ...\n def convert_field(self, value: Any, conversion: str) -> Any: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\string.pyi
|
string.pyi
|
Other
| 3,567 | 0.95 | 0.632353 | 0.031746 |
vue-tools
| 869 |
2023-07-24T02:41:02.735532
|
Apache-2.0
| false |
a2bbbbb83d36e9a86c9d941ee8ffb642
|
from typing import IO, Any, AnyStr, Generic, Iterable, Iterator, List, Optional\n\nclass StringIO(IO[AnyStr], Generic[AnyStr]):\n closed: bool\n softspace: int\n len: int\n name: str\n def __init__(self, buf: AnyStr = ...) -> None: ...\n def __iter__(self) -> Iterator[AnyStr]: ...\n def next(self) -> AnyStr: ...\n def close(self) -> None: ...\n def isatty(self) -> bool: ...\n def seek(self, pos: int, mode: int = ...) -> int: ...\n def tell(self) -> int: ...\n def read(self, n: int = ...) -> AnyStr: ...\n def readline(self, length: int = ...) -> AnyStr: ...\n def readlines(self, sizehint: int = ...) -> List[AnyStr]: ...\n def truncate(self, size: Optional[int] = ...) -> int: ...\n def write(self, s: AnyStr) -> int: ...\n def writelines(self, iterable: Iterable[AnyStr]) -> None: ...\n def flush(self) -> None: ...\n def getvalue(self) -> AnyStr: ...\n def __enter__(self) -> Any: ...\n def __exit__(self, type: Any, value: Any, traceback: Any) -> Any: ...\n def fileno(self) -> int: ...\n def readable(self) -> bool: ...\n def seekable(self) -> bool: ...\n def writable(self) -> bool: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\StringIO.pyi
|
StringIO.pyi
|
Other
| 1,146 | 0.85 | 0.785714 | 0 |
node-utils
| 944 |
2024-11-04T23:17:43.514027
|
MIT
| false |
50143f5db506dcd9c6149975161b9d12
|
from typing import AnyStr, Iterable, List, Optional, Type\n\nwhitespace: str\nlowercase: str\nuppercase: str\nletters: str\ndigits: str\nhexdigits: str\noctdigits: str\n_idmap: str\n_idmapL: Optional[List[str]]\nindex_error = ValueError\natoi_error = ValueError\natof_error = ValueError\natol_error = ValueError\n\ndef lower(s: AnyStr) -> AnyStr: ...\ndef upper(s: AnyStr) -> AnyStr: ...\ndef swapcase(s: AnyStr) -> AnyStr: ...\ndef strip(s: AnyStr) -> AnyStr: ...\ndef lstrip(s: AnyStr) -> AnyStr: ...\ndef rstrip(s: AnyStr) -> AnyStr: ...\ndef split(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...\ndef splitfields(s: AnyStr, sep: AnyStr = ..., maxsplit: int = ...) -> List[AnyStr]: ...\ndef join(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...\ndef joinfields(words: Iterable[AnyStr], sep: AnyStr = ...) -> AnyStr: ...\ndef index(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef rindex(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef count(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef find(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef rfind(s: unicode, sub: unicode, start: int = ..., end: int = ...) -> int: ...\ndef atof(s: unicode) -> float: ...\ndef atoi(s: unicode, base: int = ...) -> int: ...\ndef atol(s: unicode, base: int = ...) -> long: ...\ndef ljust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\ndef rjust(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\ndef center(s: AnyStr, width: int, fillchar: AnyStr = ...) -> AnyStr: ...\ndef zfill(s: AnyStr, width: int) -> AnyStr: ...\ndef expandtabs(s: AnyStr, tabsize: int = ...) -> AnyStr: ...\ndef translate(s: str, table: str, deletions: str = ...) -> str: ...\ndef capitalize(s: AnyStr) -> AnyStr: ...\ndef capwords(s: AnyStr, sep: AnyStr = ...) -> AnyStr: ...\ndef maketrans(fromstr: str, tostr: str) -> str: ...\ndef replace(s: AnyStr, old: AnyStr, new: AnyStr, maxreplace: int = ...) -> AnyStr: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\stringold.pyi
|
stringold.pyi
|
Other
| 2,010 | 0.85 | 0.636364 | 0 |
node-utils
| 403 |
2024-11-28T19:13:04.948161
|
Apache-2.0
| false |
80654d70bfa0320abe0ebabe0a01ab76
|
from typing import List, Sequence\n\nlowercase: str\nuppercase: str\nwhitespace: str\n\ndef atof(a: str) -> float: ...\ndef atoi(a: str, base: int = ...) -> int: ...\ndef atol(a: str, base: int = ...) -> long: ...\ndef capitalize(s: str) -> str: ...\ndef count(s: str, sub: str, start: int = ..., end: int = ...) -> int: ...\ndef expandtabs(string: str, tabsize: int = ...) -> str: ...\ndef find(s: str, sub: str, start: int = ..., end: int = ...) -> int: ...\ndef join(list: Sequence[str], sep: str = ...) -> str: ...\ndef joinfields(list: Sequence[str], sep: str = ...) -> str: ...\ndef lower(s: str) -> str: ...\ndef lstrip(s: str) -> str: ...\ndef maketrans(frm: str, to: str) -> str: ...\ndef replace(s: str, old: str, new: str, maxsplit: int = ...) -> str: ...\ndef rfind(s: str, sub: str, start: int = ..., end: int = ...) -> int: ...\ndef rstrip(s: str) -> str: ...\ndef split(s: str, sep: str, maxsplit: int = ...) -> List[str]: ...\ndef splitfields(s: str, sep: str, maxsplit: int = ...) -> List[str]: ...\ndef strip(s: str) -> str: ...\ndef swapcase(s: str) -> str: ...\ndef translate(s: str, table: str, deletechars: str = ...) -> str: ...\ndef upper(s: str) -> str: ...\n
|
.venv\Lib\site-packages\jedi\third_party\typeshed\stdlib\2\strop.pyi
|
strop.pyi
|
Other
| 1,157 | 0.85 | 0.777778 | 0 |
vue-tools
| 99 |
2025-05-29T23:55:21.802688
|
GPL-3.0
| false |
2440c1a2f75edfd9bf411b6c35264ae1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.