id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1 value | extension stringclasses 14 values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12 values | repo_extraction_date stringclasses 433 values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,700 | langhebrewmodel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/langhebrewmodel.pyi | from typing import Tuple
from . import _LangModelType
WIN1255_CHAR_TO_ORDER_MAP: Tuple[int, ...]
HEBREW_LANG_MODEL: Tuple[int, ...]
Win1255HebrewModel: _LangModelType
| 169 | Python | .py | 5 | 32.4 | 42 | 0.783951 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,701 | langthaimodel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/langthaimodel.pyi | from typing import Tuple
from . import _LangModelType
TIS620CharToOrderMap: Tuple[int, ...]
ThaiLangModel: Tuple[int, ...]
TIS620ThaiModel: _LangModelType
| 157 | Python | .py | 5 | 30 | 37 | 0.806667 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,702 | langbulgarianmodel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/langbulgarianmodel.pyi | from typing import Tuple
from . import _LangModelType
Latin5_BulgarianCharToOrderMap: Tuple[int, ...]
win1251BulgarianCharToOrderMap: Tuple[int, ...]
BulgarianLangModel: Tuple[int, ...]
Latin5BulgarianModel: _LangModelType
Win1251BulgarianModel: _LangModelType
| 263 | Python | .py | 7 | 36.285714 | 47 | 0.834646 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,703 | langhungarianmodel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/langhungarianmodel.pyi | from typing import Tuple
from . import _LangModelType
Latin2_HungarianCharToOrderMap: Tuple[int, ...]
win1250HungarianCharToOrderMap: Tuple[int, ...]
HungarianLangModel: Tuple[int, ...]
Latin2HungarianModel: _LangModelType
Win1250HungarianModel: _LangModelType
| 263 | Python | .py | 7 | 36.285714 | 47 | 0.834646 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,704 | langcyrillicmodel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/langcyrillicmodel.pyi | from typing import Tuple
from . import _LangModelType
KOI8R_char_to_order_map: Tuple[int, ...]
win1251_char_to_order_map: Tuple[int, ...]
latin5_char_to_order_map: Tuple[int, ...]
macCyrillic_char_to_order_map: Tuple[int, ...]
IBM855_char_to_order_map: Tuple[int, ...]
IBM866_char_to_order_map: Tuple[int, ...]
RussianLangModel: Tuple[int, ...]
Koi8rModel: _LangModelType
Win1251CyrillicModel: _LangModelType
Latin5CyrillicModel: _LangModelType
MacCyrillicModel: _LangModelType
Ibm866Model: _LangModelType
Ibm855Model: _LangModelType
| 536 | Python | .py | 15 | 34.6 | 46 | 0.782274 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,705 | langgreekmodel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/langgreekmodel.pyi | from typing import Tuple
from . import _LangModelType
Latin7_char_to_order_map: Tuple[int, ...]
win1253_char_to_order_map: Tuple[int, ...]
GreekLangModel: Tuple[int, ...]
Latin7GreekModel: _LangModelType
Win1253GreekModel: _LangModelType
| 240 | Python | .py | 7 | 33 | 42 | 0.787879 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,706 | universaldetector.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/universaldetector.pyi | from logging import Logger
from typing import Dict, Optional, Pattern
from typing_extensions import TypedDict
class _FinalResultType(TypedDict):
encoding: str
confidence: float
language: str
class _IntermediateResultType(TypedDict):
encoding: Optional[str]
confidence: float
language: Optional[str]
class UniversalDetector(object):
MINIMUM_THRESHOLD: float
HIGH_BYTE_DETECTOR: Pattern[bytes]
ESC_DETECTOR: Pattern[bytes]
WIN_BYTE_DETECTOR: Pattern[bytes]
ISO_WIN_MAP: Dict[str, str]
result: _IntermediateResultType
done: bool
lang_filter: int
logger: Logger
def __init__(self, lang_filter: int = ...) -> None: ...
def reset(self) -> None: ...
def feed(self, byte_str: bytes) -> None: ...
def close(self) -> _FinalResultType: ...
| 809 | Python | .py | 25 | 28.16 | 59 | 0.708974 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,707 | langturkishmodel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/chardet/langturkishmodel.pyi | from typing import Tuple
from . import _LangModelType
Latin5_TurkishCharToOrderMap: Tuple[int, ...]
TurkishLangModel: Tuple[int, ...]
Latin5TurkishModel: _LangModelType
| 171 | Python | .py | 5 | 32.8 | 45 | 0.817073 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,708 | cookies.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/cookies.pyi | import sys
from typing import Any, MutableMapping
if sys.version_info < (3, 0):
from cookielib import CookieJar
else:
from http.cookiejar import CookieJar
class MockRequest:
type: Any
def __init__(self, request) -> None: ...
def get_type(self): ...
def get_host(self): ...
def get_origin_req_host(self): ...
def get_full_url(self): ...
def is_unverifiable(self): ...
def has_header(self, name): ...
def get_header(self, name, default=...): ...
def add_header(self, key, val): ...
def add_unredirected_header(self, name, value): ...
def get_new_headers(self): ...
@property
def unverifiable(self): ...
@property
def origin_req_host(self): ...
@property
def host(self): ...
class MockResponse:
def __init__(self, headers) -> None: ...
def info(self): ...
def getheaders(self, name): ...
def extract_cookies_to_jar(jar, request, response): ...
def get_cookie_header(jar, request): ...
def remove_cookie_by_name(cookiejar, name, domain=..., path=...): ...
class CookieConflictError(RuntimeError): ...
class RequestsCookieJar(CookieJar, MutableMapping[Any, Any]):
def get(self, name, default=..., domain=..., path=...): ...
def set(self, name, value, **kwargs): ...
def iterkeys(self): ...
def keys(self): ...
def itervalues(self): ...
def values(self): ...
def iteritems(self): ...
def items(self): ...
def list_domains(self): ...
def list_paths(self): ...
def multiple_domains(self): ...
def get_dict(self, domain=..., path=...): ...
def __getitem__(self, name): ...
def __setitem__(self, name, value): ...
def __delitem__(self, name): ...
def set_cookie(self, cookie, *args, **kwargs): ...
def update(self, other): ...
def copy(self): ...
def get_policy(self): ...
def create_cookie(name, value, **kwargs): ...
def morsel_to_cookie(morsel): ...
def cookiejar_from_dict(cookie_dict, cookiejar=..., overwrite=...): ...
def merge_cookies(cookiejar, cookies): ...
| 2,033 | Python | .py | 57 | 31.596491 | 71 | 0.617572 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,709 | utils.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/utils.pyi | from typing import Any, AnyStr, Dict, Iterable, Mapping, Optional, Text, Tuple
from . import compat, cookies, exceptions, structures
OrderedDict = compat.OrderedDict
RequestsCookieJar = cookies.RequestsCookieJar
cookiejar_from_dict = cookies.cookiejar_from_dict
CaseInsensitiveDict = structures.CaseInsensitiveDict
InvalidURL = exceptions.InvalidURL
NETRC_FILES: Any
DEFAULT_CA_BUNDLE_PATH: Any
DEFAULT_PORTS: Any
def dict_to_sequence(d): ...
def super_len(o): ...
def get_netrc_auth(url, raise_errors: bool = ...): ...
def guess_filename(obj): ...
def extract_zipped_paths(path): ...
def from_key_val_list(value): ...
def to_key_val_list(value): ...
def parse_list_header(value): ...
def parse_dict_header(value): ...
def unquote_header_value(value, is_filename=...): ...
def dict_from_cookiejar(cj): ...
def add_dict_to_cookiejar(cj, cookie_dict): ...
def get_encodings_from_content(content): ...
def get_encoding_from_headers(headers): ...
def stream_decode_response_unicode(iterator, r): ...
def iter_slices(string, slice_length): ...
def get_unicode_from_response(r): ...
UNRESERVED_SET: Any
def unquote_unreserved(uri): ...
def requote_uri(uri): ...
def address_in_network(ip, net): ...
def dotted_netmask(mask): ...
def is_ipv4_address(string_ip): ...
def is_valid_cidr(string_network): ...
def set_environ(env_name, value): ...
def should_bypass_proxies(url, no_proxy: Optional[Iterable[AnyStr]]) -> bool: ...
def get_environ_proxies(url, no_proxy: Optional[Iterable[AnyStr]] = ...) -> Dict[Any, Any]: ...
def select_proxy(url: Text, proxies: Optional[Mapping[Any, Any]]): ...
def default_user_agent(name=...): ...
def default_headers(): ...
def parse_header_links(value): ...
def guess_json_utf(data): ...
def prepend_scheme_if_needed(url, new_scheme): ...
def get_auth_from_url(url): ...
def to_native_string(string, encoding=...): ...
def urldefragauth(url): ...
def rewind_body(prepared_request): ...
def check_header_validity(header: Tuple[AnyStr, AnyStr]) -> None: ...
| 1,989 | Python | .py | 48 | 40.3125 | 95 | 0.722481 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,710 | adapters.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/adapters.pyi | from typing import Any, Container, Mapping, Optional, Text, Tuple, Union
from . import cookies, exceptions, models, structures, utils
from .packages.urllib3 import exceptions as urllib3_exceptions, poolmanager, response
from .packages.urllib3.util import retry
PreparedRequest = models.PreparedRequest
Response = models.Response
PoolManager = poolmanager.PoolManager
proxy_from_url = poolmanager.proxy_from_url
HTTPResponse = response.HTTPResponse
Retry = retry.Retry
DEFAULT_CA_BUNDLE_PATH = utils.DEFAULT_CA_BUNDLE_PATH
get_encoding_from_headers = utils.get_encoding_from_headers
prepend_scheme_if_needed = utils.prepend_scheme_if_needed
get_auth_from_url = utils.get_auth_from_url
urldefragauth = utils.urldefragauth
CaseInsensitiveDict = structures.CaseInsensitiveDict
ConnectTimeoutError = urllib3_exceptions.ConnectTimeoutError
MaxRetryError = urllib3_exceptions.MaxRetryError
ProtocolError = urllib3_exceptions.ProtocolError
ReadTimeoutError = urllib3_exceptions.ReadTimeoutError
ResponseError = urllib3_exceptions.ResponseError
extract_cookies_to_jar = cookies.extract_cookies_to_jar
ConnectionError = exceptions.ConnectionError
ConnectTimeout = exceptions.ConnectTimeout
ReadTimeout = exceptions.ReadTimeout
SSLError = exceptions.SSLError
ProxyError = exceptions.ProxyError
RetryError = exceptions.RetryError
DEFAULT_POOLBLOCK: Any
DEFAULT_POOLSIZE: Any
DEFAULT_RETRIES: Any
class BaseAdapter:
def __init__(self) -> None: ...
def send(
self,
request: PreparedRequest,
stream: bool = ...,
timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = ...,
verify: Union[bool, str] = ...,
cert: Union[None, Union[bytes, Text], Container[Union[bytes, Text]]] = ...,
proxies: Optional[Mapping[str, str]] = ...,
) -> Response: ...
def close(self) -> None: ...
class HTTPAdapter(BaseAdapter):
__attrs__: Any
max_retries: Any
config: Any
proxy_manager: Any
def __init__(self, pool_connections=..., pool_maxsize=..., max_retries=..., pool_block=...) -> None: ...
poolmanager: Any
def init_poolmanager(self, connections, maxsize, block=..., **pool_kwargs): ...
def proxy_manager_for(self, proxy, **proxy_kwargs): ...
def cert_verify(self, conn, url, verify, cert): ...
def build_response(self, req, resp): ...
def get_connection(self, url, proxies=...): ...
def close(self): ...
def request_url(self, request, proxies): ...
def add_headers(self, request, **kwargs): ...
def proxy_headers(self, proxy): ...
def send(
self,
request: PreparedRequest,
stream: bool = ...,
timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = ...,
verify: Union[bool, str] = ...,
cert: Union[None, Union[bytes, Text], Container[Union[bytes, Text]]] = ...,
proxies: Optional[Mapping[str, str]] = ...,
) -> Response: ...
| 2,925 | Python | .py | 68 | 39.058824 | 108 | 0.712482 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,711 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/__init__.pyi | import logging
from typing import Any, Text
from .api import (
delete as delete,
get as get,
head as head,
options as options,
patch as patch,
post as post,
put as put,
request as request,
)
from .exceptions import (
ConnectionError as ConnectionError,
HTTPError as HTTPError,
ReadTimeout as ReadTimeout,
RequestException as RequestException,
Timeout as Timeout,
TooManyRedirects as TooManyRedirects,
URLRequired as URLRequired,
)
from .models import PreparedRequest as PreparedRequest, Request as Request, Response as Response
from .sessions import Session as Session, session as session
from .status_codes import codes as codes
__title__: Any
__build__: Any
__license__: Any
__copyright__: Any
__version__: Any
class NullHandler(logging.Handler):
def emit(self, record): ...
def check_compatibility(urllib3_version: Text, chardet_version: Text) -> None: ...
| 928 | Python | .py | 32 | 25.875 | 96 | 0.748879 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,712 | hooks.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/hooks.pyi | from typing import Any
HOOKS: Any
def default_hooks(): ...
def dispatch_hook(key, hooks, hook_data, **kwargs): ...
| 117 | Python | .py | 4 | 27.75 | 55 | 0.711712 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,713 | models.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/models.pyi | import datetime
from typing import Any, Dict, Iterator, List, Optional, Text, Union
from . import auth, cookies, exceptions, hooks, status_codes, structures, utils
from .cookies import RequestsCookieJar
from .packages.urllib3 import exceptions as urllib3_exceptions, fields, filepost, util
default_hooks = hooks.default_hooks
CaseInsensitiveDict = structures.CaseInsensitiveDict
HTTPBasicAuth = auth.HTTPBasicAuth
cookiejar_from_dict = cookies.cookiejar_from_dict
get_cookie_header = cookies.get_cookie_header
RequestField = fields.RequestField
encode_multipart_formdata = filepost.encode_multipart_formdata
parse_url = util.parse_url
DecodeError = urllib3_exceptions.DecodeError
ReadTimeoutError = urllib3_exceptions.ReadTimeoutError
ProtocolError = urllib3_exceptions.ProtocolError
LocationParseError = urllib3_exceptions.LocationParseError
HTTPError = exceptions.HTTPError
MissingSchema = exceptions.MissingSchema
InvalidURL = exceptions.InvalidURL
ChunkedEncodingError = exceptions.ChunkedEncodingError
ContentDecodingError = exceptions.ContentDecodingError
ConnectionError = exceptions.ConnectionError
StreamConsumedError = exceptions.StreamConsumedError
guess_filename = utils.guess_filename
get_auth_from_url = utils.get_auth_from_url
requote_uri = utils.requote_uri
stream_decode_response_unicode = utils.stream_decode_response_unicode
to_key_val_list = utils.to_key_val_list
parse_header_links = utils.parse_header_links
iter_slices = utils.iter_slices
guess_json_utf = utils.guess_json_utf
super_len = utils.super_len
to_native_string = utils.to_native_string
codes = status_codes.codes
REDIRECT_STATI: Any
DEFAULT_REDIRECT_LIMIT: Any
CONTENT_CHUNK_SIZE: Any
ITER_CHUNK_SIZE: Any
class RequestEncodingMixin:
@property
def path_url(self): ...
class RequestHooksMixin:
def register_hook(self, event, hook): ...
def deregister_hook(self, event, hook): ...
class Request(RequestHooksMixin):
hooks: Any
method: Any
url: Any
headers: Any
files: Any
data: Any
json: Any
params: Any
auth: Any
cookies: Any
def __init__(
self, method=..., url=..., headers=..., files=..., data=..., params=..., auth=..., cookies=..., hooks=..., json=...
) -> None: ...
def prepare(self) -> PreparedRequest: ...
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
method: Optional[Union[str, Text]]
url: Optional[Union[str, Text]]
headers: CaseInsensitiveDict[str]
body: Optional[Union[bytes, Text]]
hooks: Any
def __init__(self) -> None: ...
def prepare(
self, method=..., url=..., headers=..., files=..., data=..., params=..., auth=..., cookies=..., hooks=..., json=...
) -> None: ...
def copy(self) -> PreparedRequest: ...
def prepare_method(self, method) -> None: ...
def prepare_url(self, url, params) -> None: ...
def prepare_headers(self, headers) -> None: ...
def prepare_body(self, data, files, json=...) -> None: ...
def prepare_content_length(self, body) -> None: ...
def prepare_auth(self, auth, url=...) -> None: ...
def prepare_cookies(self, cookies) -> None: ...
def prepare_hooks(self, hooks) -> None: ...
class Response:
__attrs__: Any
_content: Optional[bytes] # undocumented
status_code: int
headers: CaseInsensitiveDict[str]
raw: Any
url: str
encoding: str
history: List[Response]
reason: str
cookies: RequestsCookieJar
elapsed: datetime.timedelta
request: PreparedRequest
def __init__(self) -> None: ...
def __bool__(self) -> bool: ...
def __nonzero__(self) -> bool: ...
def __iter__(self) -> Iterator[bytes]: ...
def __enter__(self) -> Response: ...
def __exit__(self, *args: Any) -> None: ...
@property
def next(self) -> Optional[PreparedRequest]: ...
@property
def ok(self) -> bool: ...
@property
def is_redirect(self) -> bool: ...
@property
def is_permanent_redirect(self) -> bool: ...
@property
def apparent_encoding(self) -> str: ...
def iter_content(self, chunk_size: Optional[int] = ..., decode_unicode: bool = ...) -> Iterator[Any]: ...
def iter_lines(
self, chunk_size: Optional[int] = ..., decode_unicode: bool = ..., delimiter: Optional[Union[Text, bytes]] = ...
) -> Iterator[Any]: ...
@property
def content(self) -> bytes: ...
@property
def text(self) -> str: ...
def json(self, **kwargs) -> Any: ...
@property
def links(self) -> Dict[Any, Any]: ...
def raise_for_status(self) -> None: ...
def close(self) -> None: ...
| 4,578 | Python | .py | 121 | 34.123967 | 123 | 0.688469 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,714 | sessions.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/sessions.pyi | from typing import IO, Any, Callable, Iterable, List, Mapping, MutableMapping, Optional, Text, Tuple, Union
from . import adapters, auth as _auth, compat, cookies, exceptions, hooks, models, status_codes, structures, utils
from .models import Response
from .packages.urllib3 import _collections
BaseAdapter = adapters.BaseAdapter
OrderedDict = compat.OrderedDict
cookiejar_from_dict = cookies.cookiejar_from_dict
extract_cookies_to_jar = cookies.extract_cookies_to_jar
RequestsCookieJar = cookies.RequestsCookieJar
merge_cookies = cookies.merge_cookies
Request = models.Request
PreparedRequest = models.PreparedRequest
DEFAULT_REDIRECT_LIMIT = models.DEFAULT_REDIRECT_LIMIT
default_hooks = hooks.default_hooks
dispatch_hook = hooks.dispatch_hook
to_key_val_list = utils.to_key_val_list
default_headers = utils.default_headers
to_native_string = utils.to_native_string
TooManyRedirects = exceptions.TooManyRedirects
InvalidSchema = exceptions.InvalidSchema
ChunkedEncodingError = exceptions.ChunkedEncodingError
ContentDecodingError = exceptions.ContentDecodingError
RecentlyUsedContainer = _collections.RecentlyUsedContainer
CaseInsensitiveDict = structures.CaseInsensitiveDict
HTTPAdapter = adapters.HTTPAdapter
requote_uri = utils.requote_uri
get_environ_proxies = utils.get_environ_proxies
get_netrc_auth = utils.get_netrc_auth
should_bypass_proxies = utils.should_bypass_proxies
get_auth_from_url = utils.get_auth_from_url
codes = status_codes.codes
REDIRECT_STATI = models.REDIRECT_STATI
def merge_setting(request_setting, session_setting, dict_class=...): ...
def merge_hooks(request_hooks, session_hooks, dict_class=...): ...
class SessionRedirectMixin:
def resolve_redirects(self, resp, req, stream=..., timeout=..., verify=..., cert=..., proxies=...): ...
def rebuild_auth(self, prepared_request, response): ...
def rebuild_proxies(self, prepared_request, proxies): ...
_Data = Union[None, Text, bytes, Mapping[str, Any], Mapping[Text, Any], Iterable[Tuple[Text, Optional[Text]]], IO]
_Hook = Callable[[Response], Any]
_Hooks = MutableMapping[Text, List[_Hook]]
_HooksInput = MutableMapping[Text, Union[Iterable[_Hook], _Hook]]
class Session(SessionRedirectMixin):
__attrs__: Any
headers: CaseInsensitiveDict[Text]
auth: Union[None, Tuple[Text, Text], _auth.AuthBase, Callable[[Request], Request]]
proxies: MutableMapping[Text, Text]
hooks: _Hooks
params: Union[bytes, MutableMapping[Text, Text]]
stream: bool
verify: Union[None, bool, Text]
cert: Union[None, Text, Tuple[Text, Text]]
max_redirects: int
trust_env: bool
cookies: RequestsCookieJar
adapters: MutableMapping[Any, Any]
redirect_cache: RecentlyUsedContainer[Any, Any]
def __init__(self) -> None: ...
def __enter__(self) -> Session: ...
def __exit__(self, *args) -> None: ...
def prepare_request(self, request): ...
def request(
self,
method: str,
url: Union[str, bytes, Text],
params: Union[None, bytes, MutableMapping[Text, Text]] = ...,
data: _Data = ...,
headers: Optional[MutableMapping[Text, Text]] = ...,
cookies: Union[None, RequestsCookieJar, MutableMapping[Text, Text]] = ...,
files: Optional[MutableMapping[Text, IO[Any]]] = ...,
auth: Union[None, Tuple[Text, Text], _auth.AuthBase, Callable[[Request], Request]] = ...,
timeout: Union[None, float, Tuple[float, float], Tuple[float, None]] = ...,
allow_redirects: Optional[bool] = ...,
proxies: Optional[MutableMapping[Text, Text]] = ...,
hooks: Optional[_HooksInput] = ...,
stream: Optional[bool] = ...,
verify: Union[None, bool, Text] = ...,
cert: Union[Text, Tuple[Text, Text], None] = ...,
json: Optional[Any] = ...,
) -> Response: ...
def get(self, url: Union[Text, bytes], **kwargs) -> Response: ...
def options(self, url: Union[Text, bytes], **kwargs) -> Response: ...
def head(self, url: Union[Text, bytes], **kwargs) -> Response: ...
def post(self, url: Union[Text, bytes], data: _Data = ..., json: Optional[Any] = ..., **kwargs) -> Response: ...
def put(self, url: Union[Text, bytes], data: _Data = ..., **kwargs) -> Response: ...
def patch(self, url: Union[Text, bytes], data: _Data = ..., **kwargs) -> Response: ...
def delete(self, url: Union[Text, bytes], **kwargs) -> Response: ...
def send(self, request: PreparedRequest, **kwargs) -> Response: ...
def merge_environment_settings(self, url, proxies, stream, verify, cert): ...
def get_adapter(self, url): ...
def close(self) -> None: ...
def mount(self, prefix: Union[Text, bytes], adapter: BaseAdapter) -> None: ...
def session() -> Session: ...
| 4,727 | Python | .py | 93 | 46.774194 | 116 | 0.694553 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,715 | auth.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/auth.pyi | from typing import Any, Text, Union
from . import cookies, models, status_codes, utils
extract_cookies_to_jar = cookies.extract_cookies_to_jar
parse_dict_header = utils.parse_dict_header
to_native_string = utils.to_native_string
CONTENT_TYPE_FORM_URLENCODED: Any
CONTENT_TYPE_MULTI_PART: Any
def _basic_auth_str(username: Union[bytes, Text], password: Union[bytes, Text]) -> str: ...
class AuthBase:
def __call__(self, r: models.PreparedRequest) -> models.PreparedRequest: ...
class HTTPBasicAuth(AuthBase):
username: Any
password: Any
def __init__(self, username, password) -> None: ...
def __call__(self, r): ...
class HTTPProxyAuth(HTTPBasicAuth):
def __call__(self, r): ...
class HTTPDigestAuth(AuthBase):
username: Any
password: Any
last_nonce: Any
nonce_count: Any
chal: Any
pos: Any
num_401_calls: Any
def __init__(self, username, password) -> None: ...
def build_digest_header(self, method, url): ...
def handle_redirect(self, r, **kwargs): ...
def handle_401(self, r, **kwargs): ...
def __call__(self, r): ...
def init_per_thread_state(self) -> None: ...
| 1,148 | Python | .py | 31 | 33.322581 | 91 | 0.677187 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,716 | structures.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/structures.pyi | from typing import Any, Dict, Generic, Iterable, Iterator, Mapping, MutableMapping, Optional, Tuple, TypeVar, Union
_VT = TypeVar("_VT")
class CaseInsensitiveDict(MutableMapping[str, _VT], Generic[_VT]):
def __init__(self, data: Optional[Union[Mapping[str, _VT], Iterable[Tuple[str, _VT]]]] = ..., **kwargs: _VT) -> None: ...
def lower_items(self) -> Iterator[Tuple[str, _VT]]: ...
def __setitem__(self, key: str, value: _VT) -> None: ...
def __getitem__(self, key: str) -> _VT: ...
def __delitem__(self, key: str) -> None: ...
def __iter__(self) -> Iterator[str]: ...
def __len__(self) -> int: ...
def copy(self) -> CaseInsensitiveDict[_VT]: ...
class LookupDict(Dict[str, _VT]):
name: Any
def __init__(self, name: Any = ...) -> None: ...
def __getitem__(self, key: str) -> Optional[_VT]: ... # type: ignore
def __getattr__(self, attr: str) -> _VT: ...
def __setattr__(self, attr: str, value: _VT) -> None: ...
| 968 | Python | .py | 17 | 52.705882 | 125 | 0.582278 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,717 | api.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/api.pyi | from _typeshed import SupportsItems
from typing import Iterable, Optional, Text, Tuple, Union
from .models import Response
from .sessions import _Data
_ParamsMappingKeyType = Union[Text, bytes, int, float]
_ParamsMappingValueType = Union[Text, bytes, int, float, Iterable[Union[Text, bytes, int, float]], None]
def request(method: str, url: str, **kwargs) -> Response: ...
def get(
url: Union[Text, bytes],
params: Optional[
Union[
SupportsItems[_ParamsMappingKeyType, _ParamsMappingValueType],
Tuple[_ParamsMappingKeyType, _ParamsMappingValueType],
Iterable[Tuple[_ParamsMappingKeyType, _ParamsMappingValueType]],
Union[Text, bytes],
]
] = ...,
**kwargs,
) -> Response: ...
def options(url: Union[Text, bytes], **kwargs) -> Response: ...
def head(url: Union[Text, bytes], **kwargs) -> Response: ...
def post(url: Union[Text, bytes], data: _Data = ..., json=..., **kwargs) -> Response: ...
def put(url: Union[Text, bytes], data: _Data = ..., json=..., **kwargs) -> Response: ...
def patch(url: Union[Text, bytes], data: _Data = ..., json=..., **kwargs) -> Response: ...
def delete(url: Union[Text, bytes], **kwargs) -> Response: ...
| 1,216 | Python | .py | 25 | 44.32 | 104 | 0.654882 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,718 | exceptions.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/exceptions.pyi | from typing import Any
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
class RequestException(IOError):
response: Any
request: Any
def __init__(self, *args, **kwargs) -> None: ...
class HTTPError(RequestException): ...
class ConnectionError(RequestException): ...
class ProxyError(ConnectionError): ...
class SSLError(ConnectionError): ...
class Timeout(RequestException): ...
class ConnectTimeout(ConnectionError, Timeout): ...
class ReadTimeout(Timeout): ...
class URLRequired(RequestException): ...
class TooManyRedirects(RequestException): ...
class MissingSchema(RequestException, ValueError): ...
class InvalidSchema(RequestException, ValueError): ...
class InvalidURL(RequestException, ValueError): ...
class InvalidHeader(RequestException, ValueError): ...
class InvalidProxyURL(InvalidURL): ...
class ChunkedEncodingError(RequestException): ...
class ContentDecodingError(RequestException, BaseHTTPError): ...
class StreamConsumedError(RequestException, TypeError): ...
class RetryError(RequestException): ...
class UnrewindableBodyError(RequestException): ...
class RequestsWarning(Warning): ...
class FileModeWarning(RequestsWarning, DeprecationWarning): ...
class RequestsDependencyWarning(RequestsWarning): ...
| 1,259 | Python | .py | 28 | 43.428571 | 67 | 0.799674 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,719 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/__init__.pyi | class VendorAlias:
def __init__(self, package_names) -> None: ...
def find_module(self, fullname, path=...): ...
def load_module(self, name): ...
| 158 | Python | .py | 4 | 35.5 | 50 | 0.603896 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,720 | response.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/response.pyi | import io
from typing import Any
from . import _collections, exceptions
from .connection import BaseSSLError as BaseSSLError, HTTPException as HTTPException
from .util import response
HTTPHeaderDict = _collections.HTTPHeaderDict
ProtocolError = exceptions.ProtocolError
DecodeError = exceptions.DecodeError
ReadTimeoutError = exceptions.ReadTimeoutError
binary_type = bytes # six.binary_type
PY3 = True # six.PY3
is_fp_closed = response.is_fp_closed
class DeflateDecoder:
def __init__(self) -> None: ...
def __getattr__(self, name): ...
def decompress(self, data): ...
class GzipDecoder:
def __init__(self) -> None: ...
def __getattr__(self, name): ...
def decompress(self, data): ...
class HTTPResponse(io.IOBase):
CONTENT_DECODERS: Any
REDIRECT_STATUSES: Any
headers: Any
status: Any
version: Any
reason: Any
strict: Any
decode_content: Any
def __init__(
self,
body=...,
headers=...,
status=...,
version=...,
reason=...,
strict=...,
preload_content=...,
decode_content=...,
original_response=...,
pool=...,
connection=...,
) -> None: ...
def get_redirect_location(self): ...
def release_conn(self): ...
@property
def data(self): ...
def tell(self): ...
def read(self, amt=..., decode_content=..., cache_content=...): ...
def stream(self, amt=..., decode_content=...): ...
@classmethod
def from_httplib(cls, r, **response_kw): ...
def getheaders(self): ...
def getheader(self, name, default=...): ...
def close(self): ...
@property
def closed(self): ...
def fileno(self): ...
def flush(self): ...
def readable(self): ...
def readinto(self, b): ...
| 1,788 | Python | .py | 61 | 24.42623 | 84 | 0.616725 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,721 | connectionpool.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/connectionpool.pyi | from typing import Any
from . import connection, exceptions, request, response
from .connection import BaseSSLError as BaseSSLError, ConnectionError as ConnectionError, HTTPException as HTTPException
from .packages import ssl_match_hostname
from .util import connection as _connection, retry, timeout, url
ClosedPoolError = exceptions.ClosedPoolError
ProtocolError = exceptions.ProtocolError
EmptyPoolError = exceptions.EmptyPoolError
HostChangedError = exceptions.HostChangedError
LocationValueError = exceptions.LocationValueError
MaxRetryError = exceptions.MaxRetryError
ProxyError = exceptions.ProxyError
ReadTimeoutError = exceptions.ReadTimeoutError
SSLError = exceptions.SSLError
TimeoutError = exceptions.TimeoutError
InsecureRequestWarning = exceptions.InsecureRequestWarning
CertificateError = ssl_match_hostname.CertificateError
port_by_scheme = connection.port_by_scheme
DummyConnection = connection.DummyConnection
HTTPConnection = connection.HTTPConnection
HTTPSConnection = connection.HTTPSConnection
VerifiedHTTPSConnection = connection.VerifiedHTTPSConnection
RequestMethods = request.RequestMethods
HTTPResponse = response.HTTPResponse
is_connection_dropped = _connection.is_connection_dropped
Retry = retry.Retry
Timeout = timeout.Timeout
get_host = url.get_host
xrange: Any
log: Any
class ConnectionPool:
scheme: Any
QueueCls: Any
host: Any
port: Any
def __init__(self, host, port=...) -> None: ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_val, exc_tb): ...
def close(self): ...
class HTTPConnectionPool(ConnectionPool, RequestMethods):
scheme: Any
ConnectionCls: Any
strict: Any
timeout: Any
retries: Any
pool: Any
block: Any
proxy: Any
proxy_headers: Any
num_connections: Any
num_requests: Any
conn_kw: Any
def __init__(
self,
host,
port=...,
strict=...,
timeout=...,
maxsize=...,
block=...,
headers=...,
retries=...,
_proxy=...,
_proxy_headers=...,
**conn_kw,
) -> None: ...
def close(self): ...
def is_same_host(self, url): ...
def urlopen(
self,
method,
url,
body=...,
headers=...,
retries=...,
redirect=...,
assert_same_host=...,
timeout=...,
pool_timeout=...,
release_conn=...,
**response_kw,
): ...
class HTTPSConnectionPool(HTTPConnectionPool):
scheme: Any
ConnectionCls: Any
key_file: Any
cert_file: Any
cert_reqs: Any
ca_certs: Any
ssl_version: Any
assert_hostname: Any
assert_fingerprint: Any
def __init__(
self,
host,
port=...,
strict=...,
timeout=...,
maxsize=...,
block=...,
headers=...,
retries=...,
_proxy=...,
_proxy_headers=...,
key_file=...,
cert_file=...,
cert_reqs=...,
ca_certs=...,
ssl_version=...,
assert_hostname=...,
assert_fingerprint=...,
**conn_kw,
) -> None: ...
def connection_from_url(url, **kw): ...
| 3,170 | Python | .py | 114 | 22.429825 | 120 | 0.652345 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,722 | _collections.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/_collections.pyi | from collections import MutableMapping
from typing import Any, NoReturn, TypeVar
_KT = TypeVar("_KT")
_VT = TypeVar("_VT")
class RLock:
def __enter__(self): ...
def __exit__(self, exc_type, exc_value, traceback): ...
class RecentlyUsedContainer(MutableMapping[_KT, _VT]):
ContainerCls: Any
dispose_func: Any
lock: Any
def __init__(self, maxsize=..., dispose_func=...) -> None: ...
def __getitem__(self, key): ...
def __setitem__(self, key, value): ...
def __delitem__(self, key): ...
def __len__(self): ...
def __iter__(self): ...
def clear(self): ...
def keys(self): ...
class HTTPHeaderDict(MutableMapping[str, str]):
def __init__(self, headers=..., **kwargs) -> None: ...
def __setitem__(self, key, val): ...
def __getitem__(self, key): ...
def __delitem__(self, key): ...
def __contains__(self, key): ...
def __eq__(self, other): ...
def __iter__(self) -> NoReturn: ...
def __len__(self) -> int: ...
def __ne__(self, other): ...
values: Any
get: Any
update: Any
iterkeys: Any
itervalues: Any
def pop(self, key, default=...): ...
def discard(self, key): ...
def add(self, key, val): ...
def extend(self, *args, **kwargs): ...
def getlist(self, key): ...
getheaders: Any
getallmatchingheaders: Any
iget: Any
def copy(self): ...
def iteritems(self): ...
def itermerged(self): ...
def items(self): ...
@classmethod
def from_httplib(cls, message, duplicates=...): ...
| 1,535 | Python | .py | 48 | 27.479167 | 66 | 0.570465 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,723 | fields.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/fields.pyi | from typing import Any
def guess_content_type(filename, default=...): ...
def format_header_param(name, value): ...
class RequestField:
data: Any
headers: Any
def __init__(self, name, data, filename=..., headers=...) -> None: ...
@classmethod
def from_tuples(cls, fieldname, value): ...
def render_headers(self): ...
def make_multipart(self, content_disposition=..., content_type=..., content_location=...): ...
| 442 | Python | .py | 11 | 36.454545 | 98 | 0.65035 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,724 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/__init__.pyi | import logging
from typing import Any
from . import connectionpool, filepost, poolmanager, response
from .util import request as _request, retry, timeout, url
__license__: Any
HTTPConnectionPool = connectionpool.HTTPConnectionPool
HTTPSConnectionPool = connectionpool.HTTPSConnectionPool
connection_from_url = connectionpool.connection_from_url
encode_multipart_formdata = filepost.encode_multipart_formdata
PoolManager = poolmanager.PoolManager
ProxyManager = poolmanager.ProxyManager
proxy_from_url = poolmanager.proxy_from_url
HTTPResponse = response.HTTPResponse
make_headers = _request.make_headers
get_host = url.get_host
Timeout = timeout.Timeout
Retry = retry.Retry
class NullHandler(logging.Handler):
def emit(self, record): ...
def add_stderr_logger(level=...): ...
def disable_warnings(category=...): ...
| 825 | Python | .py | 21 | 37.857143 | 62 | 0.819775 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,725 | poolmanager.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/poolmanager.pyi | from typing import Any
from .request import RequestMethods
class PoolManager(RequestMethods):
proxy: Any
connection_pool_kw: Any
pools: Any
def __init__(self, num_pools=..., headers=..., **connection_pool_kw) -> None: ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_val, exc_tb): ...
def clear(self): ...
def connection_from_host(self, host, port=..., scheme=...): ...
def connection_from_url(self, url): ...
# TODO: This was the original signature -- copied another one from base class to fix complaint.
# def urlopen(self, method, url, redirect=True, **kw): ...
def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
class ProxyManager(PoolManager):
proxy: Any
proxy_headers: Any
def __init__(self, proxy_url, num_pools=..., headers=..., proxy_headers=..., **connection_pool_kw) -> None: ...
def connection_from_host(self, host, port=..., scheme=...): ...
# TODO: This was the original signature -- copied another one from base class to fix complaint.
# def urlopen(self, method, url, redirect=True, **kw): ...
def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
def proxy_from_url(url, **kw): ...
| 1,309 | Python | .py | 24 | 50.208333 | 115 | 0.635441 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,726 | filepost.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/filepost.pyi | from typing import Any
from . import fields
RequestField = fields.RequestField
writer: Any
def choose_boundary(): ...
def iter_field_objects(fields): ...
def iter_fields(fields): ...
def encode_multipart_formdata(fields, boundary=...): ...
| 244 | Python | .py | 8 | 29 | 56 | 0.75431 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,727 | request.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/request.pyi | from typing import Any
class RequestMethods:
headers: Any
def __init__(self, headers=...) -> None: ...
def urlopen(self, method, url, body=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
def request(self, method, url, fields=..., headers=..., **urlopen_kw): ...
def request_encode_url(self, method, url, fields=..., **urlopen_kw): ...
def request_encode_body(
self, method, url, fields=..., headers=..., encode_multipart=..., multipart_boundary=..., **urlopen_kw
): ...
| 534 | Python | .py | 10 | 48.7 | 114 | 0.606119 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,728 | connection.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/connection.pyi | import ssl
import sys
from typing import Any
from . import exceptions, util
from .packages import ssl_match_hostname
from .util import ssl_
if sys.version_info < (3, 0):
from httplib import HTTPConnection as _HTTPConnection, HTTPException as HTTPException
class ConnectionError(Exception): ...
else:
from builtins import ConnectionError as ConnectionError
from http.client import HTTPConnection as _HTTPConnection, HTTPException as HTTPException
class DummyConnection: ...
BaseSSLError = ssl.SSLError
ConnectTimeoutError = exceptions.ConnectTimeoutError
SystemTimeWarning = exceptions.SystemTimeWarning
SecurityWarning = exceptions.SecurityWarning
match_hostname = ssl_match_hostname.match_hostname
resolve_cert_reqs = ssl_.resolve_cert_reqs
resolve_ssl_version = ssl_.resolve_ssl_version
ssl_wrap_socket = ssl_.ssl_wrap_socket
assert_fingerprint = ssl_.assert_fingerprint
connection = util.connection
port_by_scheme: Any
RECENT_DATE: Any
class HTTPConnection(_HTTPConnection):
default_port: Any
default_socket_options: Any
is_verified: Any
source_address: Any
socket_options: Any
def __init__(self, *args, **kw) -> None: ...
def connect(self): ...
class HTTPSConnection(HTTPConnection):
default_port: Any
key_file: Any
cert_file: Any
def __init__(self, host, port=..., key_file=..., cert_file=..., strict=..., timeout=..., **kw) -> None: ...
sock: Any
def connect(self): ...
class VerifiedHTTPSConnection(HTTPSConnection):
cert_reqs: Any
ca_certs: Any
ssl_version: Any
assert_fingerprint: Any
key_file: Any
cert_file: Any
assert_hostname: Any
def set_cert(self, key_file=..., cert_file=..., cert_reqs=..., ca_certs=..., assert_hostname=..., assert_fingerprint=...): ...
sock: Any
auto_open: Any
is_verified: Any
def connect(self): ...
UnverifiedHTTPSConnection = HTTPSConnection
| 1,907 | Python | .py | 54 | 31.962963 | 130 | 0.737785 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,729 | exceptions.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/exceptions.pyi | from typing import Any
class HTTPError(Exception): ...
class HTTPWarning(Warning): ...
class PoolError(HTTPError):
pool: Any
def __init__(self, pool, message) -> None: ...
def __reduce__(self): ...
class RequestError(PoolError):
url: Any
def __init__(self, pool, url, message) -> None: ...
def __reduce__(self): ...
class SSLError(HTTPError): ...
class ProxyError(HTTPError): ...
class DecodeError(HTTPError): ...
class ProtocolError(HTTPError): ...
ConnectionError: Any
class MaxRetryError(RequestError):
reason: Any
def __init__(self, pool, url, reason=...) -> None: ...
class HostChangedError(RequestError):
retries: Any
def __init__(self, pool, url, retries=...) -> None: ...
class TimeoutStateError(HTTPError): ...
class TimeoutError(HTTPError): ...
class ReadTimeoutError(TimeoutError, RequestError): ...
class ConnectTimeoutError(TimeoutError): ...
class EmptyPoolError(PoolError): ...
class ClosedPoolError(PoolError): ...
class LocationValueError(ValueError, HTTPError): ...
class LocationParseError(LocationValueError):
location: Any
def __init__(self, location) -> None: ...
class ResponseError(HTTPError):
GENERIC_ERROR: Any
SPECIFIC_ERROR: Any
class SecurityWarning(HTTPWarning): ...
class InsecureRequestWarning(SecurityWarning): ...
class SystemTimeWarning(SecurityWarning): ...
class InsecurePlatformWarning(SecurityWarning): ...
| 1,413 | Python | .py | 39 | 33.512821 | 59 | 0.723404 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,730 | url.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/url.pyi | from typing import Any
from .. import exceptions
LocationParseError = exceptions.LocationParseError
url_attrs: Any
class Url:
slots: Any
def __new__(cls, scheme=..., auth=..., host=..., port=..., path=..., query=..., fragment=...): ...
@property
def hostname(self): ...
@property
def request_uri(self): ...
@property
def netloc(self): ...
@property
def url(self): ...
def split_first(s, delims): ...
def parse_url(url): ...
def get_host(url): ...
| 492 | Python | .py | 18 | 23.833333 | 102 | 0.618337 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,731 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/__init__.pyi | import ssl
from . import connection, request, response, retry, ssl_, timeout, url
is_connection_dropped = connection.is_connection_dropped
make_headers = request.make_headers
is_fp_closed = response.is_fp_closed
SSLContext = ssl.SSLContext
HAS_SNI = ssl_.HAS_SNI
assert_fingerprint = ssl_.assert_fingerprint
resolve_cert_reqs = ssl_.resolve_cert_reqs
resolve_ssl_version = ssl_.resolve_ssl_version
ssl_wrap_socket = ssl_.ssl_wrap_socket
current_time = timeout.current_time
Timeout = timeout.Timeout
Retry = retry.Retry
get_host = url.get_host
parse_url = url.parse_url
split_first = url.split_first
Url = url.Url
| 615 | Python | .py | 18 | 33.055556 | 70 | 0.796639 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,732 | retry.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/retry.pyi | from typing import Any
from .. import exceptions
ConnectTimeoutError = exceptions.ConnectTimeoutError
MaxRetryError = exceptions.MaxRetryError
ProtocolError = exceptions.ProtocolError
ReadTimeoutError = exceptions.ReadTimeoutError
ResponseError = exceptions.ResponseError
log: Any
class Retry:
DEFAULT_METHOD_WHITELIST: Any
BACKOFF_MAX: Any
total: Any
connect: Any
read: Any
redirect: Any
status_forcelist: Any
method_whitelist: Any
backoff_factor: Any
raise_on_redirect: Any
def __init__(
self,
total=...,
connect=...,
read=...,
redirect=...,
method_whitelist=...,
status_forcelist=...,
backoff_factor=...,
raise_on_redirect=...,
_observed_errors=...,
) -> None: ...
def new(self, **kw): ...
@classmethod
def from_int(cls, retries, redirect=..., default=...): ...
def get_backoff_time(self): ...
def sleep(self): ...
def is_forced_retry(self, method, status_code): ...
def is_exhausted(self): ...
def increment(self, method=..., url=..., response=..., error=..., _pool=..., _stacktrace=...): ...
| 1,161 | Python | .py | 39 | 24.564103 | 102 | 0.63059 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,733 | timeout.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/timeout.pyi | from typing import Any
from .. import exceptions
TimeoutStateError = exceptions.TimeoutStateError
def current_time(): ...
class Timeout:
DEFAULT_TIMEOUT: Any
total: Any
def __init__(self, total=..., connect=..., read=...) -> None: ...
@classmethod
def from_float(cls, timeout): ...
def clone(self): ...
def start_connect(self): ...
def get_connect_duration(self): ...
@property
def connect_timeout(self): ...
@property
def read_timeout(self): ...
| 499 | Python | .py | 17 | 25.294118 | 69 | 0.646444 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,734 | ssl_.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/ssl_.pyi | import ssl
from typing import Any
from .. import exceptions
SSLError = exceptions.SSLError
InsecurePlatformWarning = exceptions.InsecurePlatformWarning
SSLContext = ssl.SSLContext
HAS_SNI: Any
create_default_context: Any
OP_NO_SSLv2: Any
OP_NO_SSLv3: Any
OP_NO_COMPRESSION: Any
def assert_fingerprint(cert, fingerprint): ...
def resolve_cert_reqs(candidate): ...
def resolve_ssl_version(candidate): ...
def create_urllib3_context(ssl_version=..., cert_reqs=..., options=..., ciphers=...): ...
def ssl_wrap_socket(
sock,
keyfile=...,
certfile=...,
cert_reqs=...,
ca_certs=...,
server_hostname=...,
ssl_version=...,
ciphers=...,
ssl_context=...,
): ...
| 691 | Python | .py | 26 | 24.038462 | 89 | 0.701967 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,735 | request.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/request.pyi | from typing import Any
# from ..packages import six
# b = six.b
ACCEPT_ENCODING: Any
def make_headers(
keep_alive=..., accept_encoding=..., user_agent=..., basic_auth=..., proxy_basic_auth=..., disable_cache=...
): ...
| 227 | Python | .py | 7 | 30.285714 | 112 | 0.662037 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,736 | connection.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/requests/packages/urllib3/util/connection.pyi | from typing import Any
poll: Any
select: Any
HAS_IPV6: bool
def is_connection_dropped(conn): ...
def create_connection(address, timeout=..., source_address=..., socket_options=...): ...
| 188 | Python | .py | 6 | 30 | 88 | 0.727778 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,737 | encoder.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/simplejson/encoder.pyi | from typing import Any
class JSONEncoder(object):
def __init__(self, *args, **kwargs): ...
def encode(self, o: Any): ...
def default(self, o: Any): ...
def iterencode(self, o: Any, _one_shot: bool): ...
class JSONEncoderForHTML(JSONEncoder): ...
| 264 | Python | .py | 7 | 34.142857 | 54 | 0.639216 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,738 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/simplejson/__init__.pyi | from typing import IO, Any, Text, Union
from simplejson.decoder import JSONDecoder as JSONDecoder
from simplejson.encoder import JSONEncoder as JSONEncoder, JSONEncoderForHTML as JSONEncoderForHTML
from simplejson.scanner import JSONDecodeError as JSONDecodeError
_LoadsString = Union[Text, bytes, bytearray]
def dumps(obj: Any, *args: Any, **kwds: Any) -> str: ...
def dump(obj: Any, fp: IO[str], *args: Any, **kwds: Any) -> None: ...
def loads(s: _LoadsString, **kwds: Any) -> Any: ...
def load(fp: IO[str], **kwds: Any) -> Any: ...
| 538 | Python | .py | 9 | 58.444444 | 99 | 0.73384 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,739 | decoder.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/simplejson/decoder.pyi | from typing import Match
class JSONDecoder(object):
def __init__(self, **kwargs): ...
def decode(self, s: str, _w: Match[str], _PY3: bool): ...
def raw_decode(self, s: str, idx: int, _w: Match[str], _PY3: bool): ...
| 229 | Python | .py | 5 | 42.2 | 75 | 0.605381 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,740 | scanner.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/simplejson/scanner.pyi | from typing import Optional
class JSONDecodeError(ValueError):
msg: str = ...
doc: str = ...
pos: int = ...
end: Optional[int] = ...
lineno: int = ...
colno: int = ...
endlineno: Optional[int] = ...
endcolno: Optional[int] = ...
| 262 | Python | .py | 10 | 21.9 | 34 | 0.565737 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,741 | times.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/times.pyi | from typing import Any
Date: Any
Time: Any
TimeDelta: Any
Timestamp: Any
def DateFromTicks(ticks): ...
def TimeFromTicks(ticks): ...
def TimestampFromTicks(ticks): ...
| 170 | Python | .py | 8 | 20 | 34 | 0.78125 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,742 | converters.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/converters.pyi | from typing import Any
from .charset import charset_by_id as charset_by_id
from .constants import FIELD_TYPE as FIELD_TYPE, FLAG as FLAG
PYTHON3: Any
ESCAPE_REGEX: Any
ESCAPE_MAP: Any
def escape_item(val, charset): ...
def escape_dict(val, charset): ...
def escape_sequence(val, charset): ...
def escape_set(val, charset): ...
def escape_bool(value): ...
def escape_object(value): ...
escape_int: Any
escape_long: Any
def escape_float(value): ...
def escape_string(value): ...
def escape_unicode(value): ...
def escape_None(value): ...
def escape_timedelta(obj): ...
def escape_time(obj): ...
def escape_datetime(obj): ...
def escape_date(obj): ...
def escape_struct_time(obj): ...
def convert_datetime(connection, field, obj): ...
def convert_timedelta(connection, field, obj): ...
def convert_time(connection, field, obj): ...
def convert_date(connection, field, obj): ...
def convert_mysql_timestamp(connection, field, timestamp): ...
def convert_set(s): ...
def convert_bit(connection, field, b): ...
def convert_characters(connection, field, data): ...
def convert_int(connection, field, data): ...
def convert_long(connection, field, data): ...
def convert_float(connection, field, data): ...
encoders: Any
decoders: Any
conversions: Any
def convert_decimal(connection, field, data): ...
def escape_decimal(obj): ...
| 1,331 | Python | .py | 39 | 32.923077 | 62 | 0.726636 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,743 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/__init__.pyi | import sys
from typing import Callable, FrozenSet, Tuple
from .connections import Connection as _Connection
from .constants import FIELD_TYPE as FIELD_TYPE
from .converters import escape_dict as escape_dict, escape_sequence as escape_sequence, escape_string as escape_string
from .err import (
DatabaseError as DatabaseError,
DataError as DataError,
Error as Error,
IntegrityError as IntegrityError,
InterfaceError as InterfaceError,
InternalError as InternalError,
MySQLError as MySQLError,
NotSupportedError as NotSupportedError,
OperationalError as OperationalError,
ProgrammingError as ProgrammingError,
Warning as Warning,
)
from .times import (
Date as Date,
DateFromTicks as DateFromTicks,
Time as Time,
TimeFromTicks as TimeFromTicks,
Timestamp as Timestamp,
TimestampFromTicks as TimestampFromTicks,
)
threadsafety: int
apilevel: str
paramstyle: str
class DBAPISet(FrozenSet[int]):
def __ne__(self, other) -> bool: ...
def __eq__(self, other) -> bool: ...
def __hash__(self) -> int: ...
STRING: DBAPISet
BINARY: DBAPISet
NUMBER: DBAPISet
DATE: DBAPISet
TIME: DBAPISet
TIMESTAMP: DBAPISet
DATETIME: DBAPISet
ROWID: DBAPISet
if sys.version_info >= (3, 0):
def Binary(x) -> bytes: ...
else:
def Binary(x) -> bytearray: ...
def Connect(*args, **kwargs) -> _Connection: ...
def get_client_info() -> str: ...
connect: Callable[..., _Connection]
Connection: Callable[..., _Connection]
__version__: str
version_info: Tuple[int, int, int, str, int]
NULL: str
def thread_safe() -> bool: ...
def install_as_MySQLdb() -> None: ...
| 1,625 | Python | .py | 54 | 27.296296 | 118 | 0.736876 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,744 | connections.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/connections.pyi | from socket import SocketType
from typing import Any, AnyStr, Mapping, Optional, Tuple, Type
from .charset import charset_by_id as charset_by_id, charset_by_name as charset_by_name
from .constants import CLIENT as CLIENT, COMMAND as COMMAND, FIELD_TYPE as FIELD_TYPE, SERVER_STATUS as SERVER_STATUS
from .cursors import Cursor
from .util import byte2int as byte2int, int2byte as int2byte
SSL_ENABLED: Any
DEFAULT_USER: Any
DEBUG: Any
DEFAULT_CHARSET: Any
def dump_packet(data): ...
def pack_int24(n): ...
def lenenc_int(i: int) -> bytes: ...
class MysqlPacket:
connection: Any
def __init__(self, data, encoding): ...
def get_all_data(self): ...
def read(self, size): ...
def read_all(self): ...
def advance(self, length): ...
def rewind(self, position: int = ...): ...
def get_bytes(self, position, length: int = ...): ...
def read_string(self) -> bytes: ...
def read_uint8(self) -> Any: ...
def read_uint16(self) -> Any: ...
def read_uint24(self) -> Any: ...
def read_uint32(self) -> Any: ...
def read_uint64(self) -> Any: ...
def read_length_encoded_integer(self) -> int: ...
def read_length_coded_string(self) -> bytes: ...
def read_struct(self, fmt: str) -> Tuple[Any, ...]: ...
def is_ok_packet(self) -> bool: ...
def is_eof_packet(self) -> bool: ...
def is_auth_switch_request(self) -> bool: ...
def is_extra_auth_data(self) -> bool: ...
def is_resultset_packet(self) -> bool: ...
def is_load_local_packet(self) -> bool: ...
def is_error_packet(self) -> bool: ...
def check_error(self): ...
def raise_for_error(self) -> None: ...
def dump(self): ...
class FieldDescriptorPacket(MysqlPacket):
def __init__(self, data, encoding): ...
def description(self): ...
def get_column_length(self): ...
class Connection:
ssl: Any
host: Any
port: Any
user: Any
password: Any
db: Any
unix_socket: Any
bind_address: Any
charset: Any
use_unicode: Any
client_flag: Any
cursorclass: Any
connect_timeout: Any
messages: Any
encoders: Any
decoders: Any
host_info: Any
sql_mode: Any
init_command: Any
max_allowed_packet: int
server_public_key: bytes
def __init__(
self,
host: Optional[str] = ...,
user: Optional[Any] = ...,
password: str = ...,
database: Optional[Any] = ...,
port: int = ...,
unix_socket: Optional[Any] = ...,
charset: str = ...,
sql_mode: Optional[Any] = ...,
read_default_file: Optional[Any] = ...,
conv=...,
use_unicode: Optional[bool] = ...,
client_flag: int = ...,
cursorclass: Optional[Type[Cursor]] = ...,
init_command: Optional[Any] = ...,
connect_timeout: Optional[int] = ...,
ssl: Optional[Mapping] = ...,
read_default_group: Optional[Any] = ...,
compress: Optional[Any] = ...,
named_pipe: Optional[Any] = ...,
autocommit: Optional[bool] = ...,
db: Optional[Any] = ...,
passwd: Optional[Any] = ...,
local_infile: Optional[Any] = ...,
max_allowed_packet: int = ...,
defer_connect: Optional[bool] = ...,
auth_plugin_map: Optional[Mapping] = ...,
read_timeout: Optional[float] = ...,
write_timeout: Optional[float] = ...,
bind_address: Optional[Any] = ...,
binary_prefix: Optional[bool] = ...,
program_name: Optional[Any] = ...,
server_public_key: Optional[bytes] = ...,
): ...
socket: Any
rfile: Any
wfile: Any
def close(self) -> None: ...
@property
def open(self) -> bool: ...
def autocommit(self, value) -> None: ...
def get_autocommit(self) -> bool: ...
def commit(self) -> None: ...
def begin(self) -> None: ...
def rollback(self) -> None: ...
def select_db(self, db) -> None: ...
def escape(self, obj, mapping: Optional[Mapping] = ...): ...
def literal(self, obj): ...
def escape_string(self, s: AnyStr) -> AnyStr: ...
def cursor(self, cursor: Optional[Type[Cursor]] = ...) -> Cursor: ...
def query(self, sql, unbuffered: bool = ...) -> int: ...
def next_result(self, unbuffered: bool = ...) -> int: ...
def affected_rows(self): ...
def kill(self, thread_id): ...
def ping(self, reconnect: bool = ...) -> None: ...
def set_charset(self, charset) -> None: ...
def connect(self, sock: Optional[SocketType] = ...) -> None: ...
def write_packet(self, payload) -> None: ...
def _read_packet(self, packet_type=...): ...
def insert_id(self): ...
def thread_id(self): ...
def character_set_name(self): ...
def get_host_info(self): ...
def get_proto_info(self): ...
def get_server_info(self): ...
def show_warnings(self): ...
Warning: Any
Error: Any
InterfaceError: Any
DatabaseError: Any
DataError: Any
OperationalError: Any
IntegrityError: Any
InternalError: Any
ProgrammingError: Any
NotSupportedError: Any
class MySQLResult:
connection: Any
affected_rows: Any
insert_id: Any
server_status: Any
warning_count: Any
message: Any
field_count: Any
description: Any
rows: Any
has_next: Any
def __init__(self, connection: Connection) -> None: ...
first_packet: Any
def read(self) -> None: ...
def init_unbuffered_query(self) -> None: ...
class LoadLocalFile:
filename: Any
connection: Connection
def __init__(self, filename: Any, connection: Connection) -> None: ...
def send_data(self) -> None: ...
| 5,627 | Python | .py | 164 | 28.896341 | 117 | 0.5945 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,745 | charset.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/charset.pyi | from typing import Any
MBLENGTH: Any
class Charset:
is_default: Any
def __init__(self, id, name, collation, is_default): ...
class Charsets:
def __init__(self): ...
def add(self, c): ...
def by_id(self, id): ...
def by_name(self, name): ...
def charset_by_name(name): ...
def charset_by_id(id): ...
| 327 | Python | .py | 12 | 23.916667 | 60 | 0.610932 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,746 | cursors.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/cursors.pyi | from typing import Any, Dict, Iterable, Iterator, List, Optional, Text, Tuple, TypeVar, Union
from .connections import Connection
_Gen = Union[Tuple[Any, ...], Dict[Text, Any]]
_QueryArgs = Union[Tuple[Any, ...], List[Any], Dict[Text, Any], None]
_SelfT = TypeVar("_SelfT")
class Cursor:
connection: Connection
description: Tuple[Text, ...]
rownumber: int
rowcount: int
arraysize: int
messages: Any
errorhandler: Any
lastrowid: int
def __init__(self, connection: Connection) -> None: ...
def __del__(self) -> None: ...
def close(self) -> None: ...
def setinputsizes(self, *args) -> None: ...
def setoutputsizes(self, *args) -> None: ...
def nextset(self) -> Optional[bool]: ...
def mogrify(self, query: Text, args: _QueryArgs = ...) -> str: ...
def execute(self, query: Text, args: _QueryArgs = ...) -> int: ...
def executemany(self, query: Text, args: Iterable[_QueryArgs]) -> Optional[int]: ...
def callproc(self, procname: Text, args: Iterable[Any] = ...) -> Any: ...
def fetchone(self) -> Optional[_Gen]: ...
def fetchmany(self, size: Optional[int] = ...) -> Union[Optional[_Gen], List[_Gen]]: ...
def fetchall(self) -> Optional[Tuple[_Gen, ...]]: ...
def scroll(self, value: int, mode: Text = ...) -> None: ...
def __iter__(self) -> Iterator[_Gen]: ...
def __enter__(self: _SelfT) -> _SelfT: ...
def __exit__(self, *exc_info: Any) -> None: ...
class DictCursor(Cursor):
def fetchone(self) -> Optional[Dict[Text, Any]]: ...
def fetchmany(self, size: Optional[int] = ...) -> Optional[Tuple[Dict[Text, Any], ...]]: ...
def fetchall(self) -> Optional[Tuple[Dict[Text, Any], ...]]: ...
class DictCursorMixin:
dict_type: Any
class SSCursor(Cursor):
# fetchall return type is incompatible with the supertype.
def fetchall(self) -> List[_Gen]: ... # type: ignore
def fetchall_unbuffered(self) -> Iterator[_Gen]: ...
def __iter__(self) -> Iterator[_Gen]: ...
def fetchmany(self, size: Optional[int] = ...) -> List[_Gen]: ...
def scroll(self, value: int, mode: Text = ...) -> None: ...
class SSDictCursor(DictCursorMixin, SSCursor): ...
| 2,180 | Python | .py | 45 | 44.177778 | 96 | 0.613722 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,747 | err.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/err.pyi | import builtins
from typing import Dict, NoReturn, Type
from .constants import ER as ER
class MySQLError(Exception): ...
class Warning(builtins.Warning, MySQLError): ...
class Error(MySQLError): ...
class InterfaceError(Error): ...
class DatabaseError(Error): ...
class DataError(DatabaseError): ...
class OperationalError(DatabaseError): ...
class IntegrityError(DatabaseError): ...
class InternalError(DatabaseError): ...
class ProgrammingError(DatabaseError): ...
class NotSupportedError(DatabaseError): ...
error_map: Dict[int, Type[DatabaseError]]
def raise_mysql_exception(data) -> NoReturn: ...
| 606 | Python | .py | 16 | 36.625 | 48 | 0.78157 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,748 | FIELD_TYPE.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/constants/FIELD_TYPE.pyi | DECIMAL: int
TINY: int
SHORT: int
LONG: int
FLOAT: int
DOUBLE: int
NULL: int
TIMESTAMP: int
LONGLONG: int
INT24: int
DATE: int
TIME: int
DATETIME: int
YEAR: int
NEWDATE: int
VARCHAR: int
BIT: int
NEWDECIMAL: int
ENUM: int
SET: int
TINY_BLOB: int
MEDIUM_BLOB: int
LONG_BLOB: int
BLOB: int
VAR_STRING: int
STRING: int
GEOMETRY: int
CHAR: int
INTERVAL: int
| 354 | Python | .py | 29 | 11.206897 | 16 | 0.809231 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,749 | COMMAND.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/constants/COMMAND.pyi | COM_SLEEP: int
COM_QUIT: int
COM_INIT_DB: int
COM_QUERY: int
COM_FIELD_LIST: int
COM_CREATE_DB: int
COM_DROP_DB: int
COM_REFRESH: int
COM_SHUTDOWN: int
COM_STATISTICS: int
COM_PROCESS_INFO: int
COM_CONNECT: int
COM_PROCESS_KILL: int
COM_DEBUG: int
COM_PING: int
COM_TIME: int
COM_DELAYED_INSERT: int
COM_CHANGE_USER: int
COM_BINLOG_DUMP: int
COM_TABLE_DUMP: int
COM_CONNECT_OUT: int
COM_REGISTER_SLAVE: int
| 407 | Python | .py | 22 | 17.5 | 23 | 0.797403 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,750 | SERVER_STATUS.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/constants/SERVER_STATUS.pyi | SERVER_STATUS_IN_TRANS: int
SERVER_STATUS_AUTOCOMMIT: int
SERVER_MORE_RESULTS_EXISTS: int
SERVER_QUERY_NO_GOOD_INDEX_USED: int
SERVER_QUERY_NO_INDEX_USED: int
SERVER_STATUS_CURSOR_EXISTS: int
SERVER_STATUS_LAST_ROW_SENT: int
SERVER_STATUS_DB_DROPPED: int
SERVER_STATUS_NO_BACKSLASH_ESCAPES: int
SERVER_STATUS_METADATA_CHANGED: int
| 331 | Python | .py | 10 | 32.1 | 39 | 0.831776 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,751 | FLAG.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/constants/FLAG.pyi | from typing import Any
NOT_NULL: Any
PRI_KEY: Any
UNIQUE_KEY: Any
MULTIPLE_KEY: Any
BLOB: Any
UNSIGNED: Any
ZEROFILL: Any
BINARY: Any
ENUM: Any
AUTO_INCREMENT: Any
TIMESTAMP: Any
SET: Any
PART_KEY: Any
GROUP: Any
UNIQUE: Any
| 226 | Python | .py | 16 | 13.0625 | 22 | 0.813397 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,752 | CLIENT.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/constants/CLIENT.pyi | LONG_PASSWORD: int
FOUND_ROWS: int
LONG_FLAG: int
CONNECT_WITH_DB: int
NO_SCHEMA: int
COMPRESS: int
ODBC: int
LOCAL_FILES: int
IGNORE_SPACE: int
PROTOCOL_41: int
INTERACTIVE: int
SSL: int
IGNORE_SIGPIPE: int
TRANSACTIONS: int
SECURE_CONNECTION: int
MULTI_STATEMENTS: int
MULTI_RESULTS: int
CAPABILITIES: int
| 308 | Python | .py | 18 | 16.111111 | 22 | 0.831034 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,753 | ER.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/pymysql/constants/ER.pyi | ERROR_FIRST: int
HASHCHK: int
NISAMCHK: int
NO: int
YES: int
CANT_CREATE_FILE: int
CANT_CREATE_TABLE: int
CANT_CREATE_DB: int
DB_CREATE_EXISTS: int
DB_DROP_EXISTS: int
DB_DROP_DELETE: int
DB_DROP_RMDIR: int
CANT_DELETE_FILE: int
CANT_FIND_SYSTEM_REC: int
CANT_GET_STAT: int
CANT_GET_WD: int
CANT_LOCK: int
CANT_OPEN_FILE: int
FILE_NOT_FOUND: int
CANT_READ_DIR: int
CANT_SET_WD: int
CHECKREAD: int
DISK_FULL: int
DUP_KEY: int
ERROR_ON_CLOSE: int
ERROR_ON_READ: int
ERROR_ON_RENAME: int
ERROR_ON_WRITE: int
FILE_USED: int
FILSORT_ABORT: int
FORM_NOT_FOUND: int
GET_ERRNO: int
ILLEGAL_HA: int
KEY_NOT_FOUND: int
NOT_FORM_FILE: int
NOT_KEYFILE: int
OLD_KEYFILE: int
OPEN_AS_READONLY: int
OUTOFMEMORY: int
OUT_OF_SORTMEMORY: int
UNEXPECTED_EOF: int
CON_COUNT_ERROR: int
OUT_OF_RESOURCES: int
BAD_HOST_ERROR: int
HANDSHAKE_ERROR: int
DBACCESS_DENIED_ERROR: int
ACCESS_DENIED_ERROR: int
NO_DB_ERROR: int
UNKNOWN_COM_ERROR: int
BAD_NULL_ERROR: int
BAD_DB_ERROR: int
TABLE_EXISTS_ERROR: int
BAD_TABLE_ERROR: int
NON_UNIQ_ERROR: int
SERVER_SHUTDOWN: int
BAD_FIELD_ERROR: int
WRONG_FIELD_WITH_GROUP: int
WRONG_GROUP_FIELD: int
WRONG_SUM_SELECT: int
WRONG_VALUE_COUNT: int
TOO_LONG_IDENT: int
DUP_FIELDNAME: int
DUP_KEYNAME: int
DUP_ENTRY: int
WRONG_FIELD_SPEC: int
PARSE_ERROR: int
EMPTY_QUERY: int
NONUNIQ_TABLE: int
INVALID_DEFAULT: int
MULTIPLE_PRI_KEY: int
TOO_MANY_KEYS: int
TOO_MANY_KEY_PARTS: int
TOO_LONG_KEY: int
KEY_COLUMN_DOES_NOT_EXITS: int
BLOB_USED_AS_KEY: int
TOO_BIG_FIELDLENGTH: int
WRONG_AUTO_KEY: int
READY: int
NORMAL_SHUTDOWN: int
GOT_SIGNAL: int
SHUTDOWN_COMPLETE: int
FORCING_CLOSE: int
IPSOCK_ERROR: int
NO_SUCH_INDEX: int
WRONG_FIELD_TERMINATORS: int
BLOBS_AND_NO_TERMINATED: int
TEXTFILE_NOT_READABLE: int
FILE_EXISTS_ERROR: int
LOAD_INFO: int
ALTER_INFO: int
WRONG_SUB_KEY: int
CANT_REMOVE_ALL_FIELDS: int
CANT_DROP_FIELD_OR_KEY: int
INSERT_INFO: int
UPDATE_TABLE_USED: int
NO_SUCH_THREAD: int
KILL_DENIED_ERROR: int
NO_TABLES_USED: int
TOO_BIG_SET: int
NO_UNIQUE_LOGFILE: int
TABLE_NOT_LOCKED_FOR_WRITE: int
TABLE_NOT_LOCKED: int
BLOB_CANT_HAVE_DEFAULT: int
WRONG_DB_NAME: int
WRONG_TABLE_NAME: int
TOO_BIG_SELECT: int
UNKNOWN_ERROR: int
UNKNOWN_PROCEDURE: int
WRONG_PARAMCOUNT_TO_PROCEDURE: int
WRONG_PARAMETERS_TO_PROCEDURE: int
UNKNOWN_TABLE: int
FIELD_SPECIFIED_TWICE: int
INVALID_GROUP_FUNC_USE: int
UNSUPPORTED_EXTENSION: int
TABLE_MUST_HAVE_COLUMNS: int
RECORD_FILE_FULL: int
UNKNOWN_CHARACTER_SET: int
TOO_MANY_TABLES: int
TOO_MANY_FIELDS: int
TOO_BIG_ROWSIZE: int
STACK_OVERRUN: int
WRONG_OUTER_JOIN: int
NULL_COLUMN_IN_INDEX: int
CANT_FIND_UDF: int
CANT_INITIALIZE_UDF: int
UDF_NO_PATHS: int
UDF_EXISTS: int
CANT_OPEN_LIBRARY: int
CANT_FIND_DL_ENTRY: int
FUNCTION_NOT_DEFINED: int
HOST_IS_BLOCKED: int
HOST_NOT_PRIVILEGED: int
PASSWORD_ANONYMOUS_USER: int
PASSWORD_NOT_ALLOWED: int
PASSWORD_NO_MATCH: int
UPDATE_INFO: int
CANT_CREATE_THREAD: int
WRONG_VALUE_COUNT_ON_ROW: int
CANT_REOPEN_TABLE: int
INVALID_USE_OF_NULL: int
REGEXP_ERROR: int
MIX_OF_GROUP_FUNC_AND_FIELDS: int
NONEXISTING_GRANT: int
TABLEACCESS_DENIED_ERROR: int
COLUMNACCESS_DENIED_ERROR: int
ILLEGAL_GRANT_FOR_TABLE: int
GRANT_WRONG_HOST_OR_USER: int
NO_SUCH_TABLE: int
NONEXISTING_TABLE_GRANT: int
NOT_ALLOWED_COMMAND: int
SYNTAX_ERROR: int
DELAYED_CANT_CHANGE_LOCK: int
TOO_MANY_DELAYED_THREADS: int
ABORTING_CONNECTION: int
NET_PACKET_TOO_LARGE: int
NET_READ_ERROR_FROM_PIPE: int
NET_FCNTL_ERROR: int
NET_PACKETS_OUT_OF_ORDER: int
NET_UNCOMPRESS_ERROR: int
NET_READ_ERROR: int
NET_READ_INTERRUPTED: int
NET_ERROR_ON_WRITE: int
NET_WRITE_INTERRUPTED: int
TOO_LONG_STRING: int
TABLE_CANT_HANDLE_BLOB: int
TABLE_CANT_HANDLE_AUTO_INCREMENT: int
DELAYED_INSERT_TABLE_LOCKED: int
WRONG_COLUMN_NAME: int
WRONG_KEY_COLUMN: int
WRONG_MRG_TABLE: int
DUP_UNIQUE: int
BLOB_KEY_WITHOUT_LENGTH: int
PRIMARY_CANT_HAVE_NULL: int
TOO_MANY_ROWS: int
REQUIRES_PRIMARY_KEY: int
NO_RAID_COMPILED: int
UPDATE_WITHOUT_KEY_IN_SAFE_MODE: int
KEY_DOES_NOT_EXITS: int
CHECK_NO_SUCH_TABLE: int
CHECK_NOT_IMPLEMENTED: int
CANT_DO_THIS_DURING_AN_TRANSACTION: int
ERROR_DURING_COMMIT: int
ERROR_DURING_ROLLBACK: int
ERROR_DURING_FLUSH_LOGS: int
ERROR_DURING_CHECKPOINT: int
NEW_ABORTING_CONNECTION: int
DUMP_NOT_IMPLEMENTED: int
FLUSH_MASTER_BINLOG_CLOSED: int
INDEX_REBUILD: int
MASTER: int
MASTER_NET_READ: int
MASTER_NET_WRITE: int
FT_MATCHING_KEY_NOT_FOUND: int
LOCK_OR_ACTIVE_TRANSACTION: int
UNKNOWN_SYSTEM_VARIABLE: int
CRASHED_ON_USAGE: int
CRASHED_ON_REPAIR: int
WARNING_NOT_COMPLETE_ROLLBACK: int
TRANS_CACHE_FULL: int
SLAVE_MUST_STOP: int
SLAVE_NOT_RUNNING: int
BAD_SLAVE: int
MASTER_INFO: int
SLAVE_THREAD: int
TOO_MANY_USER_CONNECTIONS: int
SET_CONSTANTS_ONLY: int
LOCK_WAIT_TIMEOUT: int
LOCK_TABLE_FULL: int
READ_ONLY_TRANSACTION: int
DROP_DB_WITH_READ_LOCK: int
CREATE_DB_WITH_READ_LOCK: int
WRONG_ARGUMENTS: int
NO_PERMISSION_TO_CREATE_USER: int
UNION_TABLES_IN_DIFFERENT_DIR: int
LOCK_DEADLOCK: int
TABLE_CANT_HANDLE_FT: int
CANNOT_ADD_FOREIGN: int
NO_REFERENCED_ROW: int
ROW_IS_REFERENCED: int
CONNECT_TO_MASTER: int
QUERY_ON_MASTER: int
ERROR_WHEN_EXECUTING_COMMAND: int
WRONG_USAGE: int
WRONG_NUMBER_OF_COLUMNS_IN_SELECT: int
CANT_UPDATE_WITH_READLOCK: int
MIXING_NOT_ALLOWED: int
DUP_ARGUMENT: int
USER_LIMIT_REACHED: int
SPECIFIC_ACCESS_DENIED_ERROR: int
LOCAL_VARIABLE: int
GLOBAL_VARIABLE: int
NO_DEFAULT: int
WRONG_VALUE_FOR_VAR: int
WRONG_TYPE_FOR_VAR: int
VAR_CANT_BE_READ: int
CANT_USE_OPTION_HERE: int
NOT_SUPPORTED_YET: int
MASTER_FATAL_ERROR_READING_BINLOG: int
SLAVE_IGNORED_TABLE: int
INCORRECT_GLOBAL_LOCAL_VAR: int
WRONG_FK_DEF: int
KEY_REF_DO_NOT_MATCH_TABLE_REF: int
OPERAND_COLUMNS: int
SUBQUERY_NO_1_ROW: int
UNKNOWN_STMT_HANDLER: int
CORRUPT_HELP_DB: int
CYCLIC_REFERENCE: int
AUTO_CONVERT: int
ILLEGAL_REFERENCE: int
DERIVED_MUST_HAVE_ALIAS: int
SELECT_REDUCED: int
TABLENAME_NOT_ALLOWED_HERE: int
NOT_SUPPORTED_AUTH_MODE: int
SPATIAL_CANT_HAVE_NULL: int
COLLATION_CHARSET_MISMATCH: int
SLAVE_WAS_RUNNING: int
SLAVE_WAS_NOT_RUNNING: int
TOO_BIG_FOR_UNCOMPRESS: int
ZLIB_Z_MEM_ERROR: int
ZLIB_Z_BUF_ERROR: int
ZLIB_Z_DATA_ERROR: int
CUT_VALUE_GROUP_CONCAT: int
WARN_TOO_FEW_RECORDS: int
WARN_TOO_MANY_RECORDS: int
WARN_NULL_TO_NOTNULL: int
WARN_DATA_OUT_OF_RANGE: int
WARN_DATA_TRUNCATED: int
WARN_USING_OTHER_HANDLER: int
CANT_AGGREGATE_2COLLATIONS: int
DROP_USER: int
REVOKE_GRANTS: int
CANT_AGGREGATE_3COLLATIONS: int
CANT_AGGREGATE_NCOLLATIONS: int
VARIABLE_IS_NOT_STRUCT: int
UNKNOWN_COLLATION: int
SLAVE_IGNORED_SSL_PARAMS: int
SERVER_IS_IN_SECURE_AUTH_MODE: int
WARN_FIELD_RESOLVED: int
BAD_SLAVE_UNTIL_COND: int
MISSING_SKIP_SLAVE: int
UNTIL_COND_IGNORED: int
WRONG_NAME_FOR_INDEX: int
WRONG_NAME_FOR_CATALOG: int
WARN_QC_RESIZE: int
BAD_FT_COLUMN: int
UNKNOWN_KEY_CACHE: int
WARN_HOSTNAME_WONT_WORK: int
UNKNOWN_STORAGE_ENGINE: int
WARN_DEPRECATED_SYNTAX: int
NON_UPDATABLE_TABLE: int
FEATURE_DISABLED: int
OPTION_PREVENTS_STATEMENT: int
DUPLICATED_VALUE_IN_TYPE: int
TRUNCATED_WRONG_VALUE: int
TOO_MUCH_AUTO_TIMESTAMP_COLS: int
INVALID_ON_UPDATE: int
UNSUPPORTED_PS: int
GET_ERRMSG: int
GET_TEMPORARY_ERRMSG: int
UNKNOWN_TIME_ZONE: int
WARN_INVALID_TIMESTAMP: int
INVALID_CHARACTER_STRING: int
WARN_ALLOWED_PACKET_OVERFLOWED: int
CONFLICTING_DECLARATIONS: int
SP_NO_RECURSIVE_CREATE: int
SP_ALREADY_EXISTS: int
SP_DOES_NOT_EXIST: int
SP_DROP_FAILED: int
SP_STORE_FAILED: int
SP_LILABEL_MISMATCH: int
SP_LABEL_REDEFINE: int
SP_LABEL_MISMATCH: int
SP_UNINIT_VAR: int
SP_BADSELECT: int
SP_BADRETURN: int
SP_BADSTATEMENT: int
UPDATE_LOG_DEPRECATED_IGNORED: int
UPDATE_LOG_DEPRECATED_TRANSLATED: int
QUERY_INTERRUPTED: int
SP_WRONG_NO_OF_ARGS: int
SP_COND_MISMATCH: int
SP_NORETURN: int
SP_NORETURNEND: int
SP_BAD_CURSOR_QUERY: int
SP_BAD_CURSOR_SELECT: int
SP_CURSOR_MISMATCH: int
SP_CURSOR_ALREADY_OPEN: int
SP_CURSOR_NOT_OPEN: int
SP_UNDECLARED_VAR: int
SP_WRONG_NO_OF_FETCH_ARGS: int
SP_FETCH_NO_DATA: int
SP_DUP_PARAM: int
SP_DUP_VAR: int
SP_DUP_COND: int
SP_DUP_CURS: int
SP_CANT_ALTER: int
SP_SUBSELECT_NYI: int
STMT_NOT_ALLOWED_IN_SF_OR_TRG: int
SP_VARCOND_AFTER_CURSHNDLR: int
SP_CURSOR_AFTER_HANDLER: int
SP_CASE_NOT_FOUND: int
FPARSER_TOO_BIG_FILE: int
FPARSER_BAD_HEADER: int
FPARSER_EOF_IN_COMMENT: int
FPARSER_ERROR_IN_PARAMETER: int
FPARSER_EOF_IN_UNKNOWN_PARAMETER: int
VIEW_NO_EXPLAIN: int
FRM_UNKNOWN_TYPE: int
WRONG_OBJECT: int
NONUPDATEABLE_COLUMN: int
VIEW_SELECT_DERIVED: int
VIEW_SELECT_CLAUSE: int
VIEW_SELECT_VARIABLE: int
VIEW_SELECT_TMPTABLE: int
VIEW_WRONG_LIST: int
WARN_VIEW_MERGE: int
WARN_VIEW_WITHOUT_KEY: int
VIEW_INVALID: int
SP_NO_DROP_SP: int
SP_GOTO_IN_HNDLR: int
TRG_ALREADY_EXISTS: int
TRG_DOES_NOT_EXIST: int
TRG_ON_VIEW_OR_TEMP_TABLE: int
TRG_CANT_CHANGE_ROW: int
TRG_NO_SUCH_ROW_IN_TRG: int
NO_DEFAULT_FOR_FIELD: int
DIVISION_BY_ZERO: int
TRUNCATED_WRONG_VALUE_FOR_FIELD: int
ILLEGAL_VALUE_FOR_TYPE: int
VIEW_NONUPD_CHECK: int
VIEW_CHECK_FAILED: int
PROCACCESS_DENIED_ERROR: int
RELAY_LOG_FAIL: int
PASSWD_LENGTH: int
UNKNOWN_TARGET_BINLOG: int
IO_ERR_LOG_INDEX_READ: int
BINLOG_PURGE_PROHIBITED: int
FSEEK_FAIL: int
BINLOG_PURGE_FATAL_ERR: int
LOG_IN_USE: int
LOG_PURGE_UNKNOWN_ERR: int
RELAY_LOG_INIT: int
NO_BINARY_LOGGING: int
RESERVED_SYNTAX: int
WSAS_FAILED: int
DIFF_GROUPS_PROC: int
NO_GROUP_FOR_PROC: int
ORDER_WITH_PROC: int
LOGGING_PROHIBIT_CHANGING_OF: int
NO_FILE_MAPPING: int
WRONG_MAGIC: int
PS_MANY_PARAM: int
KEY_PART_0: int
VIEW_CHECKSUM: int
VIEW_MULTIUPDATE: int
VIEW_NO_INSERT_FIELD_LIST: int
VIEW_DELETE_MERGE_VIEW: int
CANNOT_USER: int
XAER_NOTA: int
XAER_INVAL: int
XAER_RMFAIL: int
XAER_OUTSIDE: int
XAER_RMERR: int
XA_RBROLLBACK: int
NONEXISTING_PROC_GRANT: int
PROC_AUTO_GRANT_FAIL: int
PROC_AUTO_REVOKE_FAIL: int
DATA_TOO_LONG: int
SP_BAD_SQLSTATE: int
STARTUP: int
LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR: int
CANT_CREATE_USER_WITH_GRANT: int
WRONG_VALUE_FOR_TYPE: int
TABLE_DEF_CHANGED: int
SP_DUP_HANDLER: int
SP_NOT_VAR_ARG: int
SP_NO_RETSET: int
CANT_CREATE_GEOMETRY_OBJECT: int
FAILED_ROUTINE_BREAK_BINLOG: int
BINLOG_UNSAFE_ROUTINE: int
BINLOG_CREATE_ROUTINE_NEED_SUPER: int
EXEC_STMT_WITH_OPEN_CURSOR: int
STMT_HAS_NO_OPEN_CURSOR: int
COMMIT_NOT_ALLOWED_IN_SF_OR_TRG: int
NO_DEFAULT_FOR_VIEW_FIELD: int
SP_NO_RECURSION: int
TOO_BIG_SCALE: int
TOO_BIG_PRECISION: int
M_BIGGER_THAN_D: int
WRONG_LOCK_OF_SYSTEM_TABLE: int
CONNECT_TO_FOREIGN_DATA_SOURCE: int
QUERY_ON_FOREIGN_DATA_SOURCE: int
FOREIGN_DATA_SOURCE_DOESNT_EXIST: int
FOREIGN_DATA_STRING_INVALID_CANT_CREATE: int
FOREIGN_DATA_STRING_INVALID: int
CANT_CREATE_FEDERATED_TABLE: int
TRG_IN_WRONG_SCHEMA: int
STACK_OVERRUN_NEED_MORE: int
TOO_LONG_BODY: int
WARN_CANT_DROP_DEFAULT_KEYCACHE: int
TOO_BIG_DISPLAYWIDTH: int
XAER_DUPID: int
DATETIME_FUNCTION_OVERFLOW: int
CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG: int
VIEW_PREVENT_UPDATE: int
PS_NO_RECURSION: int
SP_CANT_SET_AUTOCOMMIT: int
MALFORMED_DEFINER: int
VIEW_FRM_NO_USER: int
VIEW_OTHER_USER: int
NO_SUCH_USER: int
FORBID_SCHEMA_CHANGE: int
ROW_IS_REFERENCED_2: int
NO_REFERENCED_ROW_2: int
SP_BAD_VAR_SHADOW: int
TRG_NO_DEFINER: int
OLD_FILE_FORMAT: int
SP_RECURSION_LIMIT: int
SP_PROC_TABLE_CORRUPT: int
SP_WRONG_NAME: int
TABLE_NEEDS_UPGRADE: int
SP_NO_AGGREGATE: int
MAX_PREPARED_STMT_COUNT_REACHED: int
VIEW_RECURSIVE: int
NON_GROUPING_FIELD_USED: int
TABLE_CANT_HANDLE_SPKEYS: int
NO_TRIGGERS_ON_SYSTEM_SCHEMA: int
USERNAME: int
HOSTNAME: int
WRONG_STRING_LENGTH: int
ERROR_LAST: int
| 11,280 | Python | .py | 471 | 22.949045 | 44 | 0.815524 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,754 | rrule.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/rrule.pyi | import datetime
from typing import Any, Iterable, Optional, Union
from ._common import weekday as weekdaybase
YEARLY: int
MONTHLY: int
WEEKLY: int
DAILY: int
HOURLY: int
MINUTELY: int
SECONDLY: int
class weekday(weekdaybase): ...
MO: weekday
TU: weekday
WE: weekday
TH: weekday
FR: weekday
SA: weekday
SU: weekday
class rrulebase:
def __init__(self, cache: bool = ...) -> None: ...
def __iter__(self): ...
def __getitem__(self, item): ...
def __contains__(self, item): ...
def count(self): ...
def before(self, dt, inc: bool = ...): ...
def after(self, dt, inc: bool = ...): ...
def xafter(self, dt, count: Optional[Any] = ..., inc: bool = ...): ...
def between(self, after, before, inc: bool = ..., count: int = ...): ...
class rrule(rrulebase):
def __init__(
self,
freq,
dtstart: Optional[datetime.date] = ...,
interval: int = ...,
wkst: Optional[Union[weekday, int]] = ...,
count: Optional[int] = ...,
until: Optional[Union[datetime.date, int]] = ...,
bysetpos: Optional[Union[int, Iterable[int]]] = ...,
bymonth: Optional[Union[int, Iterable[int]]] = ...,
bymonthday: Optional[Union[int, Iterable[int]]] = ...,
byyearday: Optional[Union[int, Iterable[int]]] = ...,
byeaster: Optional[Union[int, Iterable[int]]] = ...,
byweekno: Optional[Union[int, Iterable[int]]] = ...,
byweekday: Optional[Union[int, weekday, Iterable[int], Iterable[weekday]]] = ...,
byhour: Optional[Union[int, Iterable[int]]] = ...,
byminute: Optional[Union[int, Iterable[int]]] = ...,
bysecond: Optional[Union[int, Iterable[int]]] = ...,
cache: bool = ...,
) -> None: ...
def replace(self, **kwargs): ...
class _iterinfo:
rrule: Any = ...
def __init__(self, rrule) -> None: ...
yearlen: int = ...
nextyearlen: int = ...
yearordinal: int = ...
yearweekday: int = ...
mmask: Any = ...
mdaymask: Any = ...
nmdaymask: Any = ...
wdaymask: Any = ...
mrange: Any = ...
wnomask: Any = ...
nwdaymask: Any = ...
eastermask: Any = ...
lastyear: int = ...
lastmonth: int = ...
def rebuild(self, year, month): ...
def ydayset(self, year, month, day): ...
def mdayset(self, year, month, day): ...
def wdayset(self, year, month, day): ...
def ddayset(self, year, month, day): ...
def htimeset(self, hour, minute, second): ...
def mtimeset(self, hour, minute, second): ...
def stimeset(self, hour, minute, second): ...
class rruleset(rrulebase):
class _genitem:
dt: Any = ...
genlist: Any = ...
gen: Any = ...
def __init__(self, genlist, gen) -> None: ...
def __next__(self): ...
next: Any = ...
def __lt__(self, other): ...
def __gt__(self, other): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __init__(self, cache: bool = ...) -> None: ...
def rrule(self, rrule): ...
def rdate(self, rdate): ...
def exrule(self, exrule): ...
def exdate(self, exdate): ...
class _rrulestr:
def __call__(self, s, **kwargs): ...
rrulestr: _rrulestr
| 3,219 | Python | .py | 95 | 28.610526 | 89 | 0.557161 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,755 | utils.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/utils.pyi | from datetime import datetime, timedelta, tzinfo
from typing import Optional
def default_tzinfo(dt: datetime, tzinfo: tzinfo) -> datetime: ...
def today(tzinfo: Optional[tzinfo] = ...) -> datetime: ...
def within_delta(dt1: datetime, dt2: datetime, delta: timedelta) -> bool: ...
| 281 | Python | .py | 5 | 55 | 77 | 0.730909 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,756 | _common.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/_common.pyi | from typing import Optional, TypeVar
_T = TypeVar("_T")
class weekday(object):
def __init__(self, weekday: int, n: Optional[int] = ...) -> None: ...
def __call__(self: _T, n: int) -> _T: ...
def __eq__(self, other) -> bool: ...
def __repr__(self) -> str: ...
def __hash__(self) -> int: ...
weekday: int
n: int
| 340 | Python | .py | 10 | 30 | 73 | 0.52439 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,757 | parser.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/parser.pyi | from datetime import datetime, tzinfo
from typing import IO, Any, Dict, List, Mapping, Optional, Text, Tuple, Union
_FileOrStr = Union[bytes, Text, IO[str], IO[Any]]
class parserinfo(object):
JUMP: List[str]
WEEKDAYS: List[Tuple[str, str]]
MONTHS: List[Tuple[str, str]]
HMS: List[Tuple[str, str, str]]
AMPM: List[Tuple[str, str]]
UTCZONE: List[str]
PERTAIN: List[str]
TZOFFSET: Dict[str, int]
def __init__(self, dayfirst: bool = ..., yearfirst: bool = ...) -> None: ...
def jump(self, name: Text) -> bool: ...
def weekday(self, name: Text) -> Optional[int]: ...
def month(self, name: Text) -> Optional[int]: ...
def hms(self, name: Text) -> Optional[int]: ...
def ampm(self, name: Text) -> Optional[int]: ...
def pertain(self, name: Text) -> bool: ...
def utczone(self, name: Text) -> bool: ...
def tzoffset(self, name: Text) -> Optional[int]: ...
def convertyear(self, year: int) -> int: ...
def validate(self, res: datetime) -> bool: ...
class parser(object):
def __init__(self, info: Optional[parserinfo] = ...) -> None: ...
def parse(
self,
timestr: _FileOrStr,
default: Optional[datetime] = ...,
ignoretz: bool = ...,
tzinfos: Optional[Mapping[Text, tzinfo]] = ...,
**kwargs: Any,
) -> datetime: ...
def isoparse(dt_str: Union[str, bytes, IO[str], IO[bytes]]) -> datetime: ...
DEFAULTPARSER: parser
def parse(timestr: _FileOrStr, parserinfo: Optional[parserinfo] = ..., **kwargs: Any) -> datetime: ...
class _tzparser: ...
DEFAULTTZPARSER: _tzparser
class InvalidDatetimeError(ValueError): ...
class InvalidDateError(InvalidDatetimeError): ...
class InvalidTimeError(InvalidDatetimeError): ...
class ParserError(ValueError): ...
| 1,779 | Python | .py | 42 | 37.904762 | 102 | 0.634838 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,758 | relativedelta.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/relativedelta.pyi | from datetime import date, datetime, timedelta
from typing import Optional, SupportsFloat, TypeVar, Union, overload
from ._common import weekday
_SelfT = TypeVar("_SelfT", bound=relativedelta)
_DateT = TypeVar("_DateT", date, datetime)
# Work around attribute and type having the same name.
_weekday = weekday
MO: weekday
TU: weekday
WE: weekday
TH: weekday
FR: weekday
SA: weekday
SU: weekday
class relativedelta(object):
years: int
months: int
days: int
leapdays: int
hours: int
minutes: int
seconds: int
microseconds: int
year: Optional[int]
month: Optional[int]
weekday: Optional[_weekday]
day: Optional[int]
hour: Optional[int]
minute: Optional[int]
second: Optional[int]
microsecond: Optional[int]
def __init__(
self,
dt1: Optional[date] = ...,
dt2: Optional[date] = ...,
years: Optional[int] = ...,
months: Optional[int] = ...,
days: Optional[int] = ...,
leapdays: Optional[int] = ...,
weeks: Optional[int] = ...,
hours: Optional[int] = ...,
minutes: Optional[int] = ...,
seconds: Optional[int] = ...,
microseconds: Optional[int] = ...,
year: Optional[int] = ...,
month: Optional[int] = ...,
day: Optional[int] = ...,
weekday: Optional[Union[int, _weekday]] = ...,
yearday: Optional[int] = ...,
nlyearday: Optional[int] = ...,
hour: Optional[int] = ...,
minute: Optional[int] = ...,
second: Optional[int] = ...,
microsecond: Optional[int] = ...,
) -> None: ...
@property
def weeks(self) -> int: ...
@weeks.setter
def weeks(self, value: int) -> None: ...
def normalized(self: _SelfT) -> _SelfT: ...
# TODO: use Union when mypy will handle it properly in overloaded operator
# methods (#2129, #1442, #1264 in mypy)
@overload
def __add__(self: _SelfT, other: relativedelta) -> _SelfT: ...
@overload
def __add__(self: _SelfT, other: timedelta) -> _SelfT: ...
@overload
def __add__(self, other: _DateT) -> _DateT: ...
@overload
def __radd__(self: _SelfT, other: relativedelta) -> _SelfT: ...
@overload
def __radd__(self: _SelfT, other: timedelta) -> _SelfT: ...
@overload
def __radd__(self, other: _DateT) -> _DateT: ...
@overload
def __rsub__(self: _SelfT, other: relativedelta) -> _SelfT: ...
@overload
def __rsub__(self: _SelfT, other: timedelta) -> _SelfT: ...
@overload
def __rsub__(self, other: _DateT) -> _DateT: ...
def __sub__(self: _SelfT, other: relativedelta) -> _SelfT: ...
def __neg__(self: _SelfT) -> _SelfT: ...
def __bool__(self) -> bool: ...
def __nonzero__(self) -> bool: ...
def __mul__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...
def __rmul__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...
def __eq__(self, other) -> bool: ...
def __ne__(self, other: object) -> bool: ...
def __div__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...
def __truediv__(self: _SelfT, other: SupportsFloat) -> _SelfT: ...
def __repr__(self) -> str: ...
def __abs__(self: _SelfT) -> _SelfT: ...
def __hash__(self) -> int: ...
| 3,243 | Python | .py | 93 | 29.526882 | 78 | 0.57438 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,759 | easter.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/easter.pyi | from datetime import date
from typing_extensions import Literal
EASTER_JULIAN: Literal[1]
EASTER_ORTHODOX: Literal[2]
EASTER_WESTERN: Literal[3]
def easter(year: int, method: Literal[1, 2, 3] = ...) -> date: ...
| 214 | Python | .py | 6 | 34.333333 | 66 | 0.747573 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,760 | _common.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/tz/_common.pyi | from datetime import datetime, timedelta, tzinfo
from typing import Any, Optional
def tzname_in_python2(namefunc): ...
def enfold(dt: datetime, fold: int = ...): ...
class _DatetimeWithFold(datetime):
@property
def fold(self): ...
class _tzinfo(tzinfo):
def is_ambiguous(self, dt: datetime) -> bool: ...
def fromutc(self, dt: datetime) -> datetime: ...
class tzrangebase(_tzinfo):
def __init__(self) -> None: ...
def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
def tzname(self, dt: Optional[datetime]) -> str: ...
def fromutc(self, dt: datetime) -> datetime: ...
def is_ambiguous(self, dt: datetime) -> bool: ...
__hash__: Any
def __ne__(self, other): ...
__reduce__: Any
| 818 | Python | .py | 20 | 37.1 | 75 | 0.642317 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,761 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/tz/__init__.pyi | from .tz import (
datetime_ambiguous as datetime_ambiguous,
datetime_exists as datetime_exists,
gettz as gettz,
resolve_imaginary as resolve_imaginary,
tzfile as tzfile,
tzical as tzical,
tzlocal as tzlocal,
tzoffset as tzoffset,
tzrange as tzrange,
tzstr as tzstr,
tzutc as tzutc,
)
UTC: tzutc
| 340 | Python | .py | 14 | 20.071429 | 45 | 0.72 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,762 | tz.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/dateutil/tz/tz.pyi | import datetime
from typing import IO, Any, List, Optional, Text, Tuple, Union
from ..relativedelta import relativedelta
from ._common import _tzinfo as _tzinfo, enfold as enfold, tzname_in_python2 as tzname_in_python2, tzrangebase as tzrangebase
_FileObj = Union[str, Text, IO[str], IO[Text]]
ZERO: datetime.timedelta
EPOCH: datetime.datetime
EPOCHORDINAL: int
class tzutc(datetime.tzinfo):
def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...
def __eq__(self, other): ...
__hash__: Any
def __ne__(self, other): ...
__reduce__: Any
class tzoffset(datetime.tzinfo):
def __init__(self, name, offset) -> None: ...
def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def __eq__(self, other): ...
__hash__: Any
def __ne__(self, other): ...
__reduce__: Any
@classmethod
def instance(cls, name, offset) -> tzoffset: ...
class tzlocal(_tzinfo):
def __init__(self) -> None: ...
def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...
def __eq__(self, other): ...
__hash__: Any
def __ne__(self, other): ...
__reduce__: Any
class _ttinfo:
def __init__(self) -> None: ...
def __eq__(self, other): ...
__hash__: Any
def __ne__(self, other): ...
class tzfile(_tzinfo):
def __init__(self, fileobj: _FileObj, filename: Optional[Text] = ...) -> None: ...
def is_ambiguous(self, dt: Optional[datetime.datetime], idx: Optional[int] = ...) -> bool: ...
def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def __eq__(self, other): ...
__hash__: Any
def __ne__(self, other): ...
def __reduce__(self): ...
def __reduce_ex__(self, protocol): ...
class tzrange(tzrangebase):
hasdst: bool
def __init__(
self,
stdabbr: Text,
stdoffset: Union[int, datetime.timedelta, None] = ...,
dstabbr: Optional[Text] = ...,
dstoffset: Union[int, datetime.timedelta, None] = ...,
start: Optional[relativedelta] = ...,
end: Optional[relativedelta] = ...,
) -> None: ...
def transitions(self, year: int) -> Tuple[datetime.datetime, datetime.datetime]: ...
def __eq__(self, other): ...
class tzstr(tzrange):
hasdst: bool
def __init__(self, s: Union[bytes, _FileObj], posix_offset: bool = ...) -> None: ...
@classmethod
def instance(cls, name, offset) -> tzoffset: ...
class tzical:
def __init__(self, fileobj: _FileObj) -> None: ...
def keys(self): ...
def get(self, tzid: Optional[Any] = ...): ...
TZFILES: List[str]
TZPATHS: List[str]
def datetime_exists(dt: datetime.datetime, tz: Optional[datetime.tzinfo] = ...) -> bool: ...
def datetime_ambiguous(dt: datetime.datetime, tz: Optional[datetime.tzinfo] = ...) -> bool: ...
def resolve_imaginary(dt: datetime.datetime) -> datetime.datetime: ...
class _GetTZ:
def __call__(self, name: Optional[Text] = ...) -> Optional[datetime.tzinfo]: ...
def nocache(self, name: Optional[Text]) -> Optional[datetime.tzinfo]: ...
gettz: _GetTZ
| 3,970 | Python | .py | 86 | 41.732558 | 125 | 0.635048 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,763 | converters.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/attr/converters.pyi | from typing import Callable, Optional, TypeVar, overload
from . import _ConverterType
_T = TypeVar("_T")
def optional(converter: _ConverterType[_T]) -> _ConverterType[Optional[_T]]: ...
@overload
def default_if_none(default: _T) -> _ConverterType[_T]: ...
@overload
def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
| 346 | Python | .py | 8 | 41.875 | 80 | 0.701493 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,764 | validators.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/attr/validators.pyi | from typing import (
Any,
AnyStr,
Callable,
Container,
Iterable,
List,
Mapping,
Match,
Optional,
Tuple,
Type,
TypeVar,
Union,
overload,
)
from . import _ValidatorType
_T = TypeVar("_T")
_T1 = TypeVar("_T1")
_T2 = TypeVar("_T2")
_T3 = TypeVar("_T3")
_I = TypeVar("_I", bound=Iterable)
_K = TypeVar("_K")
_V = TypeVar("_V")
_M = TypeVar("_M", bound=Mapping)
# To be more precise on instance_of use some overloads.
# If there are more than 3 items in the tuple then we fall back to Any
@overload
def instance_of(type: Type[_T]) -> _ValidatorType[_T]: ...
@overload
def instance_of(type: Tuple[Type[_T]]) -> _ValidatorType[_T]: ...
@overload
def instance_of(type: Tuple[Type[_T1], Type[_T2]]) -> _ValidatorType[Union[_T1, _T2]]: ...
@overload
def instance_of(type: Tuple[Type[_T1], Type[_T2], Type[_T3]]) -> _ValidatorType[Union[_T1, _T2, _T3]]: ...
@overload
def instance_of(type: Tuple[type, ...]) -> _ValidatorType[Any]: ...
def provides(interface: Any) -> _ValidatorType[Any]: ...
def optional(validator: Union[_ValidatorType[_T], List[_ValidatorType[_T]]]) -> _ValidatorType[Optional[_T]]: ...
def in_(options: Container[_T]) -> _ValidatorType[_T]: ...
def and_(*validators: _ValidatorType[_T]) -> _ValidatorType[_T]: ...
def matches_re(
regex: AnyStr, flags: int = ..., func: Optional[Callable[[AnyStr, AnyStr, int], Optional[Match[AnyStr]]]] = ...
) -> _ValidatorType[AnyStr]: ...
def deep_iterable(
member_validator: _ValidatorType[_T], iterable_validator: Optional[_ValidatorType[_I]] = ...
) -> _ValidatorType[_I]: ...
def deep_mapping(
key_validator: _ValidatorType[_K], value_validator: _ValidatorType[_V], mapping_validator: Optional[_ValidatorType[_M]] = ...
) -> _ValidatorType[_M]: ...
def is_callable() -> _ValidatorType[_T]: ...
| 1,814 | Python | .py | 51 | 33.176471 | 129 | 0.653409 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,765 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/attr/__init__.pyi | from typing import Any, Callable, Dict, Generic, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
# `import X as X` is required to make these public
from . import converters as converters, exceptions as exceptions, filters as filters, validators as validators
from ._version_info import VersionInfo
__version__: str
__version_info__: VersionInfo
__title__: str
__description__: str
__url__: str
__uri__: str
__author__: str
__email__: str
__license__: str
__copyright__: str
_T = TypeVar("_T")
_C = TypeVar("_C", bound=type)
_ValidatorType = Callable[[Any, Attribute[_T], _T], Any]
_ConverterType = Callable[[Any], _T]
_FilterType = Callable[[Attribute[_T], _T], bool]
_ReprType = Callable[[Any], str]
_ReprArgType = Union[bool, _ReprType]
# FIXME: in reality, if multiple validators are passed they must be in a list or tuple,
# but those are invariant and so would prevent subtypes of _ValidatorType from working
# when passed in a list or tuple.
_ValidatorArgType = Union[_ValidatorType[_T], Sequence[_ValidatorType[_T]]]
# _make --
NOTHING: object
# NOTE: Factory lies about its return type to make this possible: `x: List[int] = Factory(list)`
# Work around mypy issue #4554 in the common case by using an overload.
@overload
def Factory(factory: Callable[[], _T]) -> _T: ...
@overload
def Factory(factory: Union[Callable[[Any], _T], Callable[[], _T]], takes_self: bool = ...) -> _T: ...
class Attribute(Generic[_T]):
name: str
default: Optional[_T]
validator: Optional[_ValidatorType[_T]]
repr: _ReprArgType
cmp: bool
eq: bool
order: bool
hash: Optional[bool]
init: bool
converter: Optional[_ConverterType[_T]]
metadata: Dict[Any, Any]
type: Optional[Type[_T]]
kw_only: bool
# NOTE: We had several choices for the annotation to use for type arg:
# 1) Type[_T]
# - Pros: Handles simple cases correctly
# - Cons: Might produce less informative errors in the case of conflicting TypeVars
# e.g. `attr.ib(default='bad', type=int)`
# 2) Callable[..., _T]
# - Pros: Better error messages than #1 for conflicting TypeVars
# - Cons: Terrible error messages for validator checks.
# e.g. attr.ib(type=int, validator=validate_str)
# -> error: Cannot infer function type argument
# 3) type (and do all of the work in the mypy plugin)
# - Pros: Simple here, and we could customize the plugin with our own errors.
# - Cons: Would need to write mypy plugin code to handle all the cases.
# We chose option #1.
# `attr` lies about its return type to make the following possible:
# attr() -> Any
# attr(8) -> int
# attr(validator=<some callable>) -> Whatever the callable expects.
# This makes this type of assignments possible:
# x: int = attr(8)
#
# This form catches explicit None or no default but with no other arguments returns Any.
@overload
def attrib(
default: None = ...,
validator: None = ...,
repr: _ReprArgType = ...,
cmp: Optional[bool] = ...,
hash: Optional[bool] = ...,
init: bool = ...,
metadata: Optional[Mapping[Any, Any]] = ...,
type: None = ...,
converter: None = ...,
factory: None = ...,
kw_only: bool = ...,
eq: Optional[bool] = ...,
order: Optional[bool] = ...,
) -> Any: ...
# This form catches an explicit None or no default and infers the type from the other arguments.
@overload
def attrib(
default: None = ...,
validator: Optional[_ValidatorArgType[_T]] = ...,
repr: _ReprArgType = ...,
cmp: Optional[bool] = ...,
hash: Optional[bool] = ...,
init: bool = ...,
metadata: Optional[Mapping[Any, Any]] = ...,
type: Optional[Type[_T]] = ...,
converter: Optional[_ConverterType[_T]] = ...,
factory: Optional[Callable[[], _T]] = ...,
kw_only: bool = ...,
eq: Optional[bool] = ...,
order: Optional[bool] = ...,
) -> _T: ...
# This form catches an explicit default argument.
@overload
def attrib(
default: _T,
validator: Optional[_ValidatorArgType[_T]] = ...,
repr: _ReprArgType = ...,
cmp: Optional[bool] = ...,
hash: Optional[bool] = ...,
init: bool = ...,
metadata: Optional[Mapping[Any, Any]] = ...,
type: Optional[Type[_T]] = ...,
converter: Optional[_ConverterType[_T]] = ...,
factory: Optional[Callable[[], _T]] = ...,
kw_only: bool = ...,
eq: Optional[bool] = ...,
order: Optional[bool] = ...,
) -> _T: ...
# This form covers type=non-Type: e.g. forward references (str), Any
@overload
def attrib(
default: Optional[_T] = ...,
validator: Optional[_ValidatorArgType[_T]] = ...,
repr: _ReprArgType = ...,
cmp: Optional[bool] = ...,
hash: Optional[bool] = ...,
init: bool = ...,
metadata: Optional[Mapping[Any, Any]] = ...,
type: object = ...,
converter: Optional[_ConverterType[_T]] = ...,
factory: Optional[Callable[[], _T]] = ...,
kw_only: bool = ...,
eq: Optional[bool] = ...,
order: Optional[bool] = ...,
) -> Any: ...
@overload
def attrs(
maybe_cls: _C,
these: Optional[Dict[str, Any]] = ...,
repr_ns: Optional[str] = ...,
repr: bool = ...,
cmp: Optional[bool] = ...,
hash: Optional[bool] = ...,
init: bool = ...,
slots: bool = ...,
frozen: bool = ...,
weakref_slot: bool = ...,
str: bool = ...,
auto_attribs: bool = ...,
kw_only: bool = ...,
cache_hash: bool = ...,
auto_exc: bool = ...,
eq: Optional[bool] = ...,
order: Optional[bool] = ...,
) -> _C: ...
@overload
def attrs(
maybe_cls: None = ...,
these: Optional[Dict[str, Any]] = ...,
repr_ns: Optional[str] = ...,
repr: bool = ...,
cmp: Optional[bool] = ...,
hash: Optional[bool] = ...,
init: bool = ...,
slots: bool = ...,
frozen: bool = ...,
weakref_slot: bool = ...,
str: bool = ...,
auto_attribs: bool = ...,
kw_only: bool = ...,
cache_hash: bool = ...,
auto_exc: bool = ...,
eq: Optional[bool] = ...,
order: Optional[bool] = ...,
) -> Callable[[_C], _C]: ...
# TODO: add support for returning NamedTuple from the mypy plugin
class _Fields(Tuple[Attribute[Any], ...]):
def __getattr__(self, name: str) -> Attribute[Any]: ...
def fields(cls: type) -> _Fields: ...
def fields_dict(cls: type) -> Dict[str, Attribute[Any]]: ...
def validate(inst: Any) -> None: ...
# TODO: add support for returning a proper attrs class from the mypy plugin
# we use Any instead of _CountingAttr so that e.g. `make_class('Foo', [attr.ib()])` is valid
def make_class(
name: str,
attrs: Union[List[str], Tuple[str, ...], Dict[str, Any]],
bases: Tuple[type, ...] = ...,
repr_ns: Optional[str] = ...,
repr: bool = ...,
cmp: Optional[bool] = ...,
hash: Optional[bool] = ...,
init: bool = ...,
slots: bool = ...,
frozen: bool = ...,
weakref_slot: bool = ...,
str: bool = ...,
auto_attribs: bool = ...,
kw_only: bool = ...,
cache_hash: bool = ...,
auto_exc: bool = ...,
eq: Optional[bool] = ...,
order: Optional[bool] = ...,
) -> type: ...
# _funcs --
# TODO: add support for returning TypedDict from the mypy plugin
# FIXME: asdict/astuple do not honor their factory args. waiting on one of these:
# https://github.com/python/mypy/issues/4236
# https://github.com/python/typing/issues/253
def asdict(
inst: Any,
recurse: bool = ...,
filter: Optional[_FilterType[Any]] = ...,
dict_factory: Type[Mapping[Any, Any]] = ...,
retain_collection_types: bool = ...,
) -> Dict[str, Any]: ...
# TODO: add support for returning NamedTuple from the mypy plugin
def astuple(
inst: Any,
recurse: bool = ...,
filter: Optional[_FilterType[Any]] = ...,
tuple_factory: Type[Sequence[Any]] = ...,
retain_collection_types: bool = ...,
) -> Tuple[Any, ...]: ...
def has(cls: type) -> bool: ...
def assoc(inst: _T, **changes: Any) -> _T: ...
def evolve(inst: _T, **changes: Any) -> _T: ...
# _config --
def set_run_validators(run: bool) -> None: ...
def get_run_validators() -> bool: ...
# aliases --
s = attributes = attrs
ib = attr = attrib
dataclass = attrs # Technically, partial(attrs, auto_attribs=True) ;)
| 8,149 | Python | .py | 234 | 31.538462 | 121 | 0.613913 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,766 | filters.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/attr/filters.pyi | from typing import Any, Union
from . import Attribute, _FilterType
def include(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]: ...
def exclude(*what: Union[type, Attribute[Any]]) -> _FilterType[Any]: ...
| 215 | Python | .py | 4 | 52.25 | 72 | 0.712919 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,767 | _version_info.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/attr/_version_info.pyi | class VersionInfo:
@property
def year(self) -> int: ...
@property
def minor(self) -> int: ...
@property
def micro(self) -> int: ...
@property
def releaselevel(self) -> str: ...
| 209 | Python | .py | 9 | 18.666667 | 38 | 0.57 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,768 | exceptions.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/attr/exceptions.pyi | from typing import Any
class FrozenInstanceError(AttributeError):
msg: str = ...
class AttrsAttributeNotFoundError(ValueError): ...
class NotAnAttrsClassError(ValueError): ...
class DefaultAlreadySetError(RuntimeError): ...
class UnannotatedAttributeError(RuntimeError): ...
class PythonTooOldError(RuntimeError): ...
class NotCallableError(TypeError):
msg: str = ...
value: Any = ...
def __init__(self, msg: str, value: Any) -> None: ...
| 458 | Python | .py | 12 | 35.583333 | 57 | 0.740406 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,769 | api.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/retry/api.pyi | from logging import Logger
from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Type, TypeVar, Union
_T = TypeVar("_T", bound=Callable[..., Any])
_Decorator = Callable[[_T], _T]
_R = TypeVar("_R")
def retry_call(
f: Callable[..., _R],
fargs: Optional[Sequence[Any]] = ...,
fkwargs: Optional[Dict[str, Any]] = ...,
exceptions: Union[Type[Exception], Tuple[Type[Exception], ...]] = ...,
tries: int = ...,
delay: float = ...,
max_delay: Optional[float] = ...,
backoff: float = ...,
jitter: Union[Tuple[float, float], float] = ...,
logger: Optional[Logger] = ...,
) -> _R: ...
def retry(
exceptions: Union[Type[Exception], Tuple[Type[Exception], ...]] = ...,
tries: int = ...,
delay: float = ...,
max_delay: Optional[float] = ...,
backoff: float = ...,
jitter: Union[Tuple[float, float], float] = ...,
logger: Optional[Logger] = ...,
) -> _Decorator: ...
| 935 | Python | .py | 26 | 32.269231 | 87 | 0.583241 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,770 | transport.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/transport.pyi | from logging import Logger
from socket import socket
from threading import Condition, Event, Lock, Thread
from types import ModuleType
from typing import Any, Callable, Dict, Iterable, List, Optional, Protocol, Sequence, Tuple, Type, Union
from paramiko.auth_handler import AuthHandler, _InteractiveCallback
from paramiko.channel import Channel
from paramiko.compress import ZlibCompressor, ZlibDecompressor
from paramiko.message import Message
from paramiko.packet import NeedRekeyException, Packetizer
from paramiko.pkey import PKey
from paramiko.primes import ModulusPack
from paramiko.server import ServerInterface, SubsystemHandler
from paramiko.sftp_client import SFTPClient
from paramiko.ssh_gss import _SSH_GSSAuth
from paramiko.util import ClosingContextManager
_Addr = Tuple[str, int]
class _KexEngine(Protocol):
def start_kex(self) -> None: ...
def parse_next(self, ptype: int, m: Message) -> None: ...
class Transport(Thread, ClosingContextManager):
active: bool
hostname: Optional[str]
sock: socket
packetizer: Packetizer
local_version: str
remote_version: str
local_cipher: str
local_kex_init: Optional[bytes]
local_mac: Optional[str]
local_compression: Optional[str]
session_id: Optional[bytes]
host_key_type: Optional[str]
host_key: Optional[PKey]
use_gss_kex: bool
gss_kex_used: bool
kexgss_ctxt: Optional[_SSH_GSSAuth]
gss_host: str
kex_engine: Optional[_KexEngine]
H: Optional[bytes]
K: Optional[int]
initial_kex_done: bool
in_kex: bool
authenticated: bool
lock: Lock
channel_events: Dict[int, Event]
channels_seen: Dict[int, bool]
default_max_packet_size: int
default_window_size: int
saved_exception: Optional[Exception]
clear_to_send: Event
clear_to_send_lock: Lock
clear_to_send_timeout: float
log_name: str
logger: Logger
auth_handler: Optional[AuthHandler]
global_response: Optional[Message]
completion_event: Optional[Event]
banner_timeout: float
handshake_timeout: float
auth_timeout: float
disabled_algorithms: Optional[Dict[str, Iterable[str]]]
server_mode: bool
server_object: Optional[ServerInterface]
server_key_dict: Dict[str, PKey]
server_accepts: List[Channel]
server_accept_cv: Condition
subsystem_table: Dict[str, Tuple[Type[SubsystemHandler], Tuple[Any, ...], Dict[str, Any]]]
sys: ModuleType
def __init__(
self,
sock: Union[str, Tuple[str, int], socket],
default_window_size: int = ...,
default_max_packet_size: int = ...,
gss_kex: bool = ...,
gss_deleg_creds: bool = ...,
disabled_algorithms: Optional[Dict[str, Iterable[str]]] = ...,
) -> None: ...
@property
def preferred_ciphers(self) -> Sequence[str]: ...
@property
def preferred_macs(self) -> Sequence[str]: ...
@property
def preferred_keys(self) -> Sequence[str]: ...
@property
def preferred_kex(self) -> Sequence[str]: ...
@property
def preferred_compression(self) -> Sequence[str]: ...
def atfork(self) -> None: ...
def get_security_options(self) -> SecurityOptions: ...
def set_gss_host(self, gss_host: Optional[str], trust_dns: bool = ..., gssapi_requested: bool = ...) -> None: ...
def start_client(self, event: Optional[Event] = ..., timeout: Optional[float] = ...) -> None: ...
def start_server(self, event: Event = ..., server: Optional[ServerInterface] = ...) -> None: ...
def add_server_key(self, key: PKey) -> None: ...
def get_server_key(self) -> Optional[PKey]: ...
@staticmethod
def load_server_moduli(filename: Optional[str] = ...) -> bool: ...
def close(self) -> None: ...
def get_remote_server_key(self) -> PKey: ...
def is_active(self) -> bool: ...
def open_session(
self, window_size: Optional[int] = ..., max_packet_size: Optional[int] = ..., timeout: Optional[float] = ...
) -> Channel: ...
def open_x11_channel(self, src_addr: _Addr = ...) -> Channel: ...
def open_forward_agent_channel(self) -> Channel: ...
def open_forwarded_tcpip_channel(self, src_addr: _Addr, dest_addr: _Addr) -> Channel: ...
def open_channel(
self,
kind: str,
dest_addr: Optional[_Addr] = ...,
src_addr: Optional[_Addr] = ...,
window_size: Optional[int] = ...,
max_packet_size: Optional[int] = ...,
timeout: Optional[float] = ...,
) -> Channel: ...
def request_port_forward(
self, address: str, port: int, handler: Optional[Callable[[Channel, _Addr, _Addr], None]] = ...
) -> int: ...
def cancel_port_forward(self, address: str, port: int) -> None: ...
def open_sftp_client(self) -> Optional[SFTPClient]: ...
def send_ignore(self, byte_count: int = ...) -> None: ...
def renegotiate_keys(self) -> None: ...
def set_keepalive(self, interval: int) -> None: ...
def global_request(self, kind: str, data: Optional[Iterable[Any]] = ..., wait: bool = ...) -> Optional[Message]: ...
def accept(self, timeout: Optional[float] = ...) -> Optional[Channel]: ...
def connect(
self,
hostkey: Optional[PKey] = ...,
username: str = ...,
password: Optional[str] = ...,
pkey: Optional[PKey] = ...,
gss_host: Optional[str] = ...,
gss_auth: bool = ...,
gss_kex: bool = ...,
gss_deleg_creds: bool = ...,
gss_trust_dns: bool = ...,
) -> None: ...
def get_exception(self) -> Optional[Exception]: ...
def set_subsystem_handler(self, name: str, handler: Type[SubsystemHandler], *larg: Any, **kwarg: Any) -> None: ...
def is_authenticated(self) -> bool: ...
def get_username(self) -> Optional[str]: ...
def get_banner(self) -> Optional[str]: ...
def auth_none(self, username: str) -> List[str]: ...
def auth_password(self, username: str, password: str, event: Optional[Event] = ..., fallback: bool = ...) -> List[str]: ...
def auth_publickey(self, username: str, key: PKey, event: Optional[Event] = ...) -> List[str]: ...
def auth_interactive(self, username: str, handler: _InteractiveCallback, submethods: str = ...) -> List[str]: ...
def auth_interactive_dumb(
self, username: str, handler: Optional[_InteractiveCallback] = ..., submethods: str = ...
) -> List[str]: ...
def auth_gssapi_with_mic(self, username: str, gss_host: str, gss_deleg_creds: bool) -> List[str]: ...
def auth_gssapi_keyex(self, username: str) -> List[str]: ...
def set_log_channel(self, name: str) -> None: ...
def get_log_channel(self) -> str: ...
def set_hexdump(self, hexdump: bool) -> None: ...
def get_hexdump(self) -> bool: ...
def use_compression(self, compress: bool = ...) -> None: ...
def getpeername(self) -> Tuple[str, int]: ...
def stop_thread(self) -> None: ...
def run(self) -> None: ...
class SecurityOptions:
def __init__(self, transport: Transport) -> None: ...
@property
def ciphers(self) -> Sequence[str]: ...
@ciphers.setter
def ciphers(self, x: Sequence[str]) -> None: ...
@property
def digests(self) -> Sequence[str]: ...
@digests.setter
def digests(self, x: Sequence[str]) -> None: ...
@property
def key_types(self) -> Sequence[str]: ...
@key_types.setter
def key_types(self, x: Sequence[str]) -> None: ...
@property
def kex(self) -> Sequence[str]: ...
@kex.setter
def kex(self, x: Sequence[str]) -> None: ...
@property
def compression(self) -> Sequence[str]: ...
@compression.setter
def compression(self, x: Sequence[str]) -> None: ...
class ChannelMap:
def __init__(self) -> None: ...
def put(self, chanid: int, chan: Channel) -> None: ...
def get(self, chanid: int) -> Channel: ...
def delete(self, chanid: int) -> None: ...
def values(self) -> List[Channel]: ...
def __len__(self) -> int: ...
| 7,945 | Python | .py | 188 | 37.101064 | 127 | 0.634757 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,771 | client.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/client.pyi | from socket import socket
from typing import Any, Dict, Iterable, Mapping, NoReturn, Optional, Tuple, Type, Union
from paramiko.agent import Agent
from paramiko.channel import Channel, ChannelFile, ChannelStderrFile, ChannelStdinFile
from paramiko.hostkeys import HostKeys
from paramiko.pkey import PKey
from paramiko.sftp_client import SFTPClient
from paramiko.transport import Transport
from paramiko.util import ClosingContextManager
class SSHClient(ClosingContextManager):
def __init__(self) -> None: ...
def load_system_host_keys(self, filename: Optional[str] = ...) -> None: ...
def load_host_keys(self, filename: str) -> None: ...
def save_host_keys(self, filename: str) -> None: ...
def get_host_keys(self) -> HostKeys: ...
def set_log_channel(self, name: str) -> None: ...
def set_missing_host_key_policy(self, policy: Union[Type[MissingHostKeyPolicy], MissingHostKeyPolicy]) -> None: ...
def connect(
self,
hostname: str,
port: int = ...,
username: Optional[str] = ...,
password: Optional[str] = ...,
pkey: Optional[PKey] = ...,
key_filename: Optional[str] = ...,
timeout: Optional[float] = ...,
allow_agent: bool = ...,
look_for_keys: bool = ...,
compress: bool = ...,
sock: Optional[socket] = ...,
gss_auth: bool = ...,
gss_kex: bool = ...,
gss_deleg_creds: bool = ...,
gss_host: Optional[str] = ...,
banner_timeout: Optional[float] = ...,
auth_timeout: Optional[float] = ...,
gss_trust_dns: bool = ...,
passphrase: Optional[str] = ...,
disabled_algorithms: Optional[Dict[str, Iterable[str]]] = ...,
) -> None: ...
def close(self) -> None: ...
def exec_command(
self,
command: str,
bufsize: int = ...,
timeout: Optional[float] = ...,
get_pty: bool = ...,
environment: Optional[Dict[str, str]] = ...,
) -> Tuple[ChannelStdinFile, ChannelFile, ChannelStderrFile]: ...
def invoke_shell(
self,
term: str = ...,
width: int = ...,
height: int = ...,
width_pixels: int = ...,
height_pixels: int = ...,
environment: Optional[Mapping[str, str]] = ...,
) -> Channel: ...
def open_sftp(self) -> Optional[SFTPClient]: ...
def get_transport(self) -> Optional[Transport]: ...
class MissingHostKeyPolicy:
def missing_host_key(self, client: SSHClient, hostname: str, key: PKey) -> None: ...
class AutoAddPolicy(MissingHostKeyPolicy):
def missing_host_key(self, client: SSHClient, hostname: str, key: PKey) -> None: ...
class RejectPolicy(MissingHostKeyPolicy):
def missing_host_key(self, client: SSHClient, hostname: str, key: PKey) -> NoReturn: ...
class WarningPolicy(MissingHostKeyPolicy):
def missing_host_key(self, client: SSHClient, hostname: str, key: PKey) -> None: ...
| 2,932 | Python | .py | 68 | 36.852941 | 119 | 0.621064 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,772 | compress.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/compress.pyi | from zlib import _Compress, _Decompress
class ZlibCompressor:
z: _Compress
def __init__(self) -> None: ...
def __call__(self, data: bytes) -> bytes: ...
class ZlibDecompressor:
z: _Decompress
def __init__(self) -> None: ...
def __call__(self, data: bytes) -> bytes: ...
| 296 | Python | .py | 9 | 29 | 49 | 0.603509 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,773 | hostkeys.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/hostkeys.pyi | import collections
import typing
from typing import Dict, Iterator, List, Optional
from paramiko.pkey import PKey
class _SubDict(typing.MutableMapping[str, PKey]):
# Internal to HostKeys.lookup()
def __init__(self, hostname: str, entries: List[HostKeyEntry], hostkeys: HostKeys) -> None: ...
def __iter__(self) -> Iterator[str]: ...
def __len__(self) -> int: ...
def __delitem__(self, key: str) -> None: ...
def __getitem__(self, key: str) -> PKey: ...
def __setitem__(self, key: str, val: PKey) -> None: ...
def keys(self) -> List[str]: ... # type: ignore
class HostKeys(collections.MutableMapping):
def __init__(self, filename: Optional[str] = ...) -> None: ...
def add(self, hostname: str, keytype: str, key: PKey) -> None: ...
def load(self, filename: str) -> None: ...
def save(self, filename: str) -> None: ...
def lookup(self, hostname: str) -> Optional[_SubDict]: ...
def check(self, hostname: str, key: PKey) -> bool: ...
def clear(self) -> None: ...
def __iter__(self) -> Iterator[str]: ...
def __len__(self) -> int: ...
def __getitem__(self, key: str) -> _SubDict: ...
def __delitem__(self, key: str) -> None: ...
def __setitem__(self, hostname: str, entry: Dict[str, PKey]) -> None: ...
def keys(self) -> List[str]: ... # type: ignore
def values(self) -> List[_SubDict]: ... # type: ignore
@staticmethod
def hash_host(hostname: str, salt: Optional[str] = ...) -> str: ...
class InvalidHostKey(Exception):
line: str
exc: Exception
def __init__(self, line: str, exc: Exception) -> None: ...
class HostKeyEntry:
valid: bool
hostnames: str
key: PKey
def __init__(self, hostnames: Optional[List[str]] = ..., key: Optional[PKey] = ...) -> None: ...
@classmethod
def from_line(cls, line: str, lineno: Optional[int] = ...) -> Optional[HostKeyEntry]: ...
def to_line(self) -> Optional[str]: ...
| 1,942 | Python | .py | 42 | 41.880952 | 100 | 0.600528 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,774 | py3compat.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/py3compat.pyi | import sys
from typing import Any, Iterable, Sequence, Text, Type, TypeVar, Union
_T = TypeVar("_T")
PY2: bool
string_types: Union[Type, Sequence[Type]]
text_type: Union[Type, Sequence[Type]]
bytes_types: Union[Type, Sequence[Type]]
bytes = bytes
integer_types: Union[Type, Sequence[Type]]
long = int
def input(prompt: Any) -> str: ...
def decodebytes(s: bytes) -> bytes: ...
def encodebytes(s: bytes) -> bytes: ...
if sys.version_info < (3, 0):
import __builtin__ as builtins
import cStringIO
StringIO = cStringIO.StringIO
BytesIO = StringIO
else:
import builtins as builtins
import io
StringIO = io.StringIO
BytesIO = io.BytesIO
def byte_ord(c: Union[int, str]) -> int: ...
def byte_chr(c: int) -> bytes: ...
def byte_mask(c: int, mask: int) -> bytes: ...
def b(s: Union[bytes, str], encoding: str = ...) -> bytes: ...
def u(s: Union[bytes, str], encoding: str = ...) -> Text: ...
def b2s(s: Union[bytes, str]) -> str: ...
def is_callable(c: Any) -> bool: ...
def next(c: Iterable[_T]) -> _T: ...
MAXSIZE: int
| 1,053 | Python | .py | 32 | 30.625 | 70 | 0.660079 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,775 | channel.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/channel.pyi | from logging import Logger
from threading import Condition, Event, Lock
from typing import Any, Callable, Mapping, Optional, Tuple, TypeVar
from paramiko.buffered_pipe import BufferedPipe, PipeTimeout
from paramiko.file import BufferedFile
from paramiko.message import Message
from paramiko.transport import Transport
from paramiko.util import ClosingContextManager
_F = TypeVar("_F", bound=Callable[..., Any])
def open_only(func: _F) -> Callable[[_F], _F]: ...
class Channel(ClosingContextManager):
chanid: int
remote_chanid: int
transport: Optional[Transport]
active: bool
eof_received: int
eof_sent: int
in_buffer: BufferedPipe
in_stderr_buffer: BufferedPipe
timeout: Optional[float]
closed: bool
ultra_debug: bool
lock: Lock
out_buffer_cv: Condition
in_window_size: int
out_window_size: int
in_max_packet_size: int
out_max_packet_size: int
in_window_threshold: int
in_window_sofar: int
status_event: Event
logger: Logger
event: Event
event_ready: bool
combine_stderr: bool
exit_status: int
origin_addr: None
def __init__(self, chanid: int) -> None: ...
def __del__(self) -> None: ...
def get_pty(
self, term: str = ..., width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...
) -> None: ...
def invoke_shell(self) -> None: ...
def exec_command(self, command: str) -> None: ...
def invoke_subsystem(self, subsystem: str) -> None: ...
def resize_pty(self, width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...) -> None: ...
def update_environment(self, environment: Mapping[str, str]) -> None: ...
def set_environment_variable(self, name: str, value: str) -> None: ...
def exit_status_ready(self) -> bool: ...
def recv_exit_status(self) -> int: ...
def send_exit_status(self, status: int) -> None: ...
def request_x11(
self,
screen_number: int = ...,
auth_protocol: Optional[str] = ...,
auth_cookie: Optional[str] = ...,
single_connection: bool = ...,
handler: Optional[Callable[[Channel, Tuple[str, int]], None]] = ...,
) -> bytes: ...
def request_forward_agent(self, handler: Callable[[Channel], None]) -> bool: ...
def get_transport(self) -> Transport: ...
def set_name(self, name: str) -> None: ...
def get_name(self) -> str: ...
def get_id(self) -> int: ...
def set_combine_stderr(self, combine: bool) -> bool: ...
def settimeout(self, timeout: Optional[float]) -> None: ...
def gettimeout(self) -> Optional[float]: ...
def setblocking(self, blocking: bool) -> None: ...
def getpeername(self) -> str: ...
def close(self) -> None: ...
def recv_ready(self) -> bool: ...
def recv(self, nbytes: int) -> bytes: ...
def recv_stderr_ready(self) -> bool: ...
def recv_stderr(self, nbytes: int) -> bytes: ...
def send_ready(self) -> bool: ...
def send(self, s: bytes) -> int: ...
def send_stderr(self, s: bytes) -> int: ...
def sendall(self, s: bytes) -> None: ...
def sendall_stderr(self, s: bytes) -> None: ...
def makefile(self, *params: Any) -> ChannelFile: ...
def makefile_stderr(self, *params: Any) -> ChannelStderrFile: ...
def makefile_stdin(self, *params: Any) -> ChannelStdinFile: ...
def fileno(self) -> int: ...
def shutdown(self, how: int) -> None: ...
def shutdown_read(self) -> None: ...
def shutdown_write(self) -> None: ...
class ChannelFile(BufferedFile):
channel: Channel
def __init__(self, channel: Channel, mode: str = ..., bufsize: int = ...) -> None: ...
class ChannelStderrFile(ChannelFile): ...
class ChannelStdinFile(ChannelFile):
def close(self) -> None: ...
| 3,796 | Python | .py | 92 | 36.48913 | 125 | 0.627806 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,776 | util.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/util.pyi | import sys
from logging import Logger, LogRecord
from types import TracebackType
from typing import IO, AnyStr, Callable, Generic, List, Optional, Protocol, Text, Type, TypeVar, Union
from paramiko.config import SSHConfig, SSHConfigDict
from paramiko.hostkeys import HostKeys
if sys.version_info < (3, 0):
from hashlib import _hash as _Hash
else:
from hashlib import _Hash
class SupportsClose(Protocol):
def close(self) -> None: ...
_T = TypeVar("_T")
_TC = TypeVar("_TC", bound=SupportsClose)
def inflate_long(s: bytes, always_positive: bool = ...) -> int: ...
deflate_zero: int
deflate_ff: int
def deflate_long(n: int, add_sign_padding: bool = ...) -> bytes: ...
def format_binary(data: bytes, prefix: str = ...) -> List[str]: ...
def format_binary_line(data: bytes) -> str: ...
def safe_string(s: bytes) -> bytes: ...
def bit_length(n: int) -> int: ...
def tb_strings() -> List[str]: ...
def generate_key_bytes(hash_alg: Type[_Hash], salt: bytes, key: Union[bytes, str], nbytes: int) -> bytes: ...
def load_host_keys(filename: str) -> HostKeys: ...
def parse_ssh_config(file_obj: IO[str]) -> SSHConfig: ...
def lookup_ssh_host_config(hostname: str, config: SSHConfig) -> SSHConfigDict: ...
def mod_inverse(x: int, m: int) -> int: ...
def get_thread_id() -> int: ...
def log_to_file(filename: str, level: int = ...) -> None: ...
class PFilter:
def filter(self, record: LogRecord) -> bool: ...
def get_logger(name: str) -> Logger: ...
def retry_on_signal(function: Callable[[], _T]) -> _T: ...
def constant_time_bytes_eq(a: AnyStr, b: AnyStr) -> bool: ...
class ClosingContextManager:
def __enter__(self: _TC) -> _TC: ...
def __exit__(
self: _TC, type: Optional[Type[BaseException]], value: Optional[BaseException], traceback: Optional[TracebackType]
) -> None: ...
def clamp_value(minimum: int, val: int, maximum: int) -> int: ...
| 1,880 | Python | .py | 41 | 43.707317 | 122 | 0.672867 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,777 | config.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/config.pyi | from typing import IO, Any, Dict, Iterable, List, Optional, Pattern, Set
from paramiko.ssh_exception import ConfigParseError as ConfigParseError, CouldNotCanonicalize as CouldNotCanonicalize
SSH_PORT: int
class SSHConfig:
SETTINGS_REGEX: Pattern[str]
TOKENS_BY_CONFIG_KEY: Dict[str, List[str]]
def __init__(self) -> None: ...
@classmethod
def from_text(cls, text: str) -> SSHConfig: ...
@classmethod
def from_path(cls, path: str) -> SSHConfig: ...
@classmethod
def from_file(cls, flo: IO[str]) -> SSHConfig: ...
def parse(self, file_obj: IO[str]) -> None: ...
def lookup(self, hostname: str) -> SSHConfigDict: ...
def canonicalize(self, hostname: str, options: SSHConfigDict, domains: Iterable[str]) -> str: ...
def get_hostnames(self) -> Set[str]: ...
class LazyFqdn:
fqdn: Optional[str]
config: SSHConfig
host: Optional[str]
def __init__(self, config: SSHConfigDict, host: Optional[str] = ...) -> None: ...
class SSHConfigDict(Dict[str, str]):
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def as_bool(self, key: str) -> bool: ...
def as_int(self, key: str) -> int: ...
| 1,170 | Python | .py | 26 | 40.730769 | 117 | 0.657594 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,778 | agent.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/agent.pyi | from socket import _RetAddress, socket
from threading import Thread
from typing import Dict, Protocol, Tuple
from paramiko.channel import Channel
from paramiko.message import Message
from paramiko.pkey import PKey
from paramiko.transport import Transport
class _AgentProxy(Protocol):
def connect(self) -> None: ...
def close(self) -> None: ...
cSSH2_AGENTC_REQUEST_IDENTITIES: bytes
SSH2_AGENT_IDENTITIES_ANSWER: int
cSSH2_AGENTC_SIGN_REQUEST: bytes
SSH2_AGENT_SIGN_RESPONSE: int
class AgentSSH:
def __init__(self) -> None: ...
def get_keys(self) -> Tuple[AgentKey, ...]: ...
class AgentProxyThread(Thread):
def __init__(self, agent: _AgentProxy) -> None: ...
def run(self) -> None: ...
class AgentLocalProxy(AgentProxyThread):
def __init__(self, agent: AgentServerProxy) -> None: ...
def get_connection(self) -> Tuple[socket, _RetAddress]: ...
class AgentRemoteProxy(AgentProxyThread):
def __init__(self, agent: AgentClientProxy, chan: Channel) -> None: ...
def get_connection(self) -> Tuple[socket, _RetAddress]: ...
class AgentClientProxy:
thread: Thread
def __init__(self, chanRemote: Channel) -> None: ...
def __del__(self) -> None: ...
def connect(self) -> None: ...
def close(self) -> None: ...
class AgentServerProxy(AgentSSH):
thread: Thread
def __init__(self, t: Transport) -> None: ...
def __del__(self) -> None: ...
def connect(self) -> None: ...
def close(self) -> None: ...
def get_env(self) -> Dict[str, str]: ...
class AgentRequestHandler:
def __init__(self, chanClient: Channel) -> None: ...
def __del__(self) -> None: ...
def close(self) -> None: ...
class Agent(AgentSSH):
def __init__(self) -> None: ...
def close(self) -> None: ...
class AgentKey(PKey):
agent: AgentSSH
blob: bytes
public_blob: None
name: str
def __init__(self, agent: AgentSSH, blob: bytes) -> None: ...
def asbytes(self) -> bytes: ...
def get_name(self) -> str: ...
def sign_ssh_data(self, data: bytes) -> Message: ...
| 2,057 | Python | .py | 55 | 33.709091 | 75 | 0.653769 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,779 | server.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/server.pyi | import threading
from typing import Any, List, Optional, Tuple, Union
from paramiko.channel import Channel
from paramiko.message import Message
from paramiko.pkey import PKey
from paramiko.transport import Transport
class ServerInterface:
def check_channel_request(self, kind: str, chanid: int) -> int: ...
def get_allowed_auths(self, username: str) -> str: ...
def check_auth_none(self, username: str) -> int: ...
def check_auth_password(self, username: str, password: str) -> int: ...
def check_auth_publickey(self, username: str, key: PKey) -> int: ...
def check_auth_interactive(self, username: str, submethods: str) -> Union[int, InteractiveQuery]: ...
def check_auth_interactive_response(self, responses: List[str]) -> Union[int, InteractiveQuery]: ...
def check_auth_gssapi_with_mic(self, username: str, gss_authenticated: int = ..., cc_file: Optional[str] = ...) -> int: ...
def check_auth_gssapi_keyex(self, username: str, gss_authenticated: int = ..., cc_file: Optional[str] = ...) -> int: ...
def enable_auth_gssapi(self) -> bool: ...
def check_port_forward_request(self, address: str, port: int) -> int: ...
def cancel_port_forward_request(self, address: str, port: int) -> None: ...
def check_global_request(self, kind: str, msg: Message) -> Union[bool, Tuple[Any, ...]]: ...
def check_channel_pty_request(
self, channel: Channel, term: str, width: int, height: int, pixelwidth: int, pixelheight: int, modes: str
) -> bool: ...
def check_channel_shell_request(self, channel: Channel) -> bool: ...
def check_channel_exec_request(self, channel: Channel, command: bytes) -> bool: ...
def check_channel_subsystem_request(self, channel: Channel, name: str) -> bool: ...
def check_channel_window_change_request(
self, channel: Channel, width: int, height: int, pixelwidth: int, pixelheight: int
) -> bool: ...
def check_channel_x11_request(
self, channel: Channel, single_connection: bool, auth_protocol: str, auth_cookie: bytes, screen_number: int
) -> bool: ...
def check_channel_forward_agent_request(self, channel: Channel) -> bool: ...
def check_channel_direct_tcpip_request(self, chanid: int, origin: Tuple[str, int], destination: Tuple[str, int]) -> int: ...
def check_channel_env_request(self, channel: Channel, name: str, value: str) -> bool: ...
def get_banner(self) -> Tuple[Optional[str], Optional[str]]: ...
class InteractiveQuery:
name: str
instructions: str
prompts: List[Tuple[str, bool]]
def __init__(self, name: str = ..., instructions: str = ..., *prompts: Union[str, Tuple[str, bool]]) -> None: ...
def add_prompt(self, prompt: str, echo: bool = ...) -> None: ...
class SubsystemHandler(threading.Thread):
def __init__(self, channel: Channel, name: str, server: ServerInterface) -> None: ...
def get_server(self) -> ServerInterface: ...
def start_subsystem(self, name: str, transport: Transport, channel: Channel) -> None: ...
def finish_subsystem(self) -> None: ...
| 3,062 | Python | .py | 47 | 60.574468 | 128 | 0.67187 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,780 | sftp_client.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_client.pyi | from logging import Logger
from typing import IO, Any, Callable, Iterator, List, Optional, Text, Tuple, Union
from paramiko.channel import Channel
from paramiko.sftp import BaseSFTP
from paramiko.sftp_attr import SFTPAttributes
from paramiko.sftp_file import SFTPFile
from paramiko.transport import Transport
from paramiko.util import ClosingContextManager
_Callback = Callable[[int, int], Any]
b_slash: bytes
class SFTPClient(BaseSFTP, ClosingContextManager):
sock: Channel
ultra_debug: bool
request_number: int
logger: Logger
def __init__(self, sock: Channel) -> None: ...
@classmethod
def from_transport(
cls, t: Transport, window_size: Optional[int] = ..., max_packet_size: Optional[int] = ...
) -> Optional[SFTPClient]: ...
def close(self) -> None: ...
def get_channel(self) -> Optional[Channel]: ...
def listdir(self, path: str = ...) -> List[str]: ...
def listdir_attr(self, path: str = ...) -> List[SFTPAttributes]: ...
def listdir_iter(self, path: Union[bytes, Text] = ..., read_aheads: int = ...) -> Iterator[SFTPAttributes]: ...
def open(self, filename: Union[bytes, Text], mode: str = ..., bufsize: int = ...) -> SFTPFile: ...
file = open
def remove(self, path: Union[bytes, Text]) -> None: ...
unlink = remove
def rename(self, oldpath: Union[bytes, Text], newpath: Union[bytes, Text]) -> None: ...
def posix_rename(self, oldpath: Union[bytes, Text], newpath: Union[bytes, Text]) -> None: ...
def mkdir(self, path: Union[bytes, Text], mode: int = ...) -> None: ...
def rmdir(self, path: Union[bytes, Text]) -> None: ...
def stat(self, path: Union[bytes, Text]) -> SFTPAttributes: ...
def lstat(self, path: Union[bytes, Text]) -> SFTPAttributes: ...
def symlink(self, source: Union[bytes, Text], dest: Union[bytes, Text]) -> None: ...
def chmod(self, path: Union[bytes, Text], mode: int) -> None: ...
def chown(self, path: Union[bytes, Text], uid: int, gid: int) -> None: ...
def utime(self, path: Union[bytes, Text], times: Optional[Tuple[float, float]]) -> None: ...
def truncate(self, path: Union[bytes, Text], size: int) -> None: ...
def readlink(self, path: Union[bytes, Text]) -> Optional[Text]: ...
def normalize(self, path: Union[bytes, Text]) -> Text: ...
def chdir(self, path: Union[None, bytes, Text] = ...) -> None: ...
def getcwd(self) -> Optional[Text]: ...
def putfo(
self,
fl: IO[bytes],
remotepath: Union[bytes, Text],
file_size: int = ...,
callback: Optional[_Callback] = ...,
confirm: bool = ...,
) -> SFTPAttributes: ...
def put(
self,
localpath: Union[bytes, Text],
remotepath: Union[bytes, Text],
callback: Optional[_Callback] = ...,
confirm: bool = ...,
) -> SFTPAttributes: ...
def getfo(self, remotepath: Union[bytes, Text], fl: IO[bytes], callback: Optional[_Callback] = ...) -> int: ...
def get(self, remotepath: Union[bytes, Text], localpath: Union[bytes, Text], callback: Optional[_Callback] = ...) -> None: ...
class SFTP(SFTPClient): ...
| 3,133 | Python | .py | 62 | 45.451613 | 130 | 0.630463 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,781 | pkey.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/pkey.pyi | from typing import IO, Any, Optional, Pattern, Text, Union
from paramiko.message import Message
OPENSSH_AUTH_MAGIC: bytes = ...
def _unpad_openssh(data: bytes) -> bytes: ...
class PKey:
public_blob: Optional[PublicBlob]
BEGIN_TAG: Pattern[str]
END_TAG: Pattern[str]
def __init__(self, msg: Optional[Message] = ..., data: Optional[str] = ...) -> None: ...
def asbytes(self) -> bytes: ...
def __cmp__(self, other: object) -> int: ...
def __eq__(self, other: object) -> bool: ...
def get_name(self) -> str: ...
def get_bits(self) -> int: ...
def can_sign(self) -> bool: ...
def get_fingerprint(self) -> bytes: ...
def get_base64(self) -> str: ...
def sign_ssh_data(self, data: bytes) -> Message: ...
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
@classmethod
def from_private_key_file(cls: Any, filename: str, password: Optional[str] = ...) -> PKey: ...
@classmethod
def from_private_key(cls, file_obj: IO[str], password: Optional[str] = ...) -> PKey: ...
def write_private_key_file(self, filename: str, password: Optional[str] = ...) -> None: ...
def write_private_key(self, file_obj: IO[str], password: Optional[str] = ...) -> None: ...
def load_certificate(self, value: Union[Message, str]) -> None: ...
class PublicBlob:
key_type: str
key_blob: str
comment: str
def __init__(self, type_: str, blob: bytes, comment: Optional[str] = ...) -> None: ...
@classmethod
def from_file(cls, filename: str) -> PublicBlob: ...
@classmethod
def from_string(cls, string: str) -> PublicBlob: ...
@classmethod
def from_message(cls, message: Message) -> PublicBlob: ...
def __eq__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...
| 1,800 | Python | .py | 39 | 41.641026 | 98 | 0.611048 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,782 | sftp_server.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_server.pyi | from logging import Logger
from typing import Any, Dict, Optional, Type
from paramiko.channel import Channel
from paramiko.server import ServerInterface, SubsystemHandler
from paramiko.sftp import BaseSFTP
from paramiko.sftp_attr import SFTPAttributes
from paramiko.sftp_handle import SFTPHandle
from paramiko.sftp_si import SFTPServerInterface
from paramiko.transport import Transport
class SFTPServer(BaseSFTP, SubsystemHandler):
logger: Logger
ultra_debug: bool
next_handle: int
file_table: Dict[bytes, SFTPHandle]
folder_table: Dict[bytes, SFTPHandle]
server: SFTPServerInterface
sock: Optional[Channel]
def __init__(
self, channel: Channel, name: str, server: ServerInterface, sftp_si: Type[SFTPServerInterface], *largs: Any, **kwargs: Any
) -> None: ...
def start_subsystem(self, name: str, transport: Transport, channel: Channel) -> None: ...
def finish_subsystem(self) -> None: ...
@staticmethod
def convert_errno(e: int) -> int: ...
@staticmethod
def set_file_attr(filename: str, attr: SFTPAttributes) -> None: ...
| 1,094 | Python | .py | 26 | 38.384615 | 130 | 0.748593 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,783 | packet.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/packet.pyi | import sys
from logging import Logger
from socket import socket
from typing import Any, Callable, Tuple
from cryptography.hazmat.primitives.ciphers import Cipher
from paramiko.compress import ZlibCompressor, ZlibDecompressor
from paramiko.message import Message
if sys.version_info < (3, 0):
from hashlib import _hash as _Hash
else:
from hashlib import _Hash
def compute_hmac(key: bytes, message: bytes, digest_class: _Hash) -> bytes: ...
class NeedRekeyException(Exception): ...
def first_arg(e: Exception) -> Any: ...
class Packetizer:
REKEY_PACKETS: int
REKEY_BYTES: int
REKEY_PACKETS_OVERFLOW_MAX: int
REKEY_BYTES_OVERFLOW_MAX: int
def __init__(self, socket: socket) -> None: ...
@property
def closed(self) -> bool: ...
def set_log(self, log: Logger) -> None: ...
def set_outbound_cipher(
self,
block_engine: Cipher,
block_size: int,
mac_engine: _Hash,
mac_size: int,
mac_key: bytes,
sdctr: bool = ...,
etm: bool = ...,
) -> None: ...
def set_inbound_cipher(
self, block_engine: Cipher, block_size: int, mac_engine: _Hash, mac_size: int, mac_key: bytes, etm: bool = ...
) -> None: ...
def set_outbound_compressor(self, compressor: ZlibCompressor) -> None: ...
def set_inbound_compressor(self, compressor: ZlibDecompressor) -> None: ...
def close(self) -> None: ...
def set_hexdump(self, hexdump: bool) -> None: ...
def get_hexdump(self) -> bool: ...
def get_mac_size_in(self) -> int: ...
def get_mac_size_out(self) -> int: ...
def need_rekey(self) -> bool: ...
def set_keepalive(self, interval: int, callback: Callable[[], None]) -> None: ...
def read_timer(self) -> None: ...
def start_handshake(self, timeout: float) -> None: ...
def handshake_timed_out(self) -> bool: ...
def complete_handshake(self) -> None: ...
def read_all(self, n: int, check_rekey: bool = ...) -> bytes: ...
def write_all(self, out: bytes) -> None: ...
def readline(self, timeout: float) -> str: ...
def send_message(self, data: Message) -> None: ...
def read_message(self) -> Tuple[int, Message]: ...
| 2,187 | Python | .py | 54 | 35.685185 | 118 | 0.636577 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,784 | ecdsakey.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/ecdsakey.pyi | from typing import IO, Any, Callable, List, Optional, Sequence, Tuple, Type
from cryptography.hazmat.primitives.asymmetric.ec2 import EllipticCurve, EllipticCurvePrivateKey, EllipticCurvePublicKey
from cryptography.hazmat.primitives.hashes import HashAlgorithm
from paramiko.message import Message
from paramiko.pkey import PKey
class _ECDSACurve:
nist_name: str
key_length: int
key_format_identifier: str
hash_object: Type[HashAlgorithm]
curve_class: Type[EllipticCurve]
def __init__(self, curve_class: Type[EllipticCurve], nist_name: str) -> None: ...
class _ECDSACurveSet:
ecdsa_curves: Sequence[_ECDSACurve]
def __init__(self, ecdsa_curves: Sequence[_ECDSACurve]) -> None: ...
def get_key_format_identifier_list(self) -> List[str]: ...
def get_by_curve_class(self, curve_class: Type[Any]) -> Optional[_ECDSACurve]: ...
def get_by_key_format_identifier(self, key_format_identifier: str) -> Optional[_ECDSACurve]: ...
def get_by_key_length(self, key_length: int) -> Optional[_ECDSACurve]: ...
class ECDSAKey(PKey):
verifying_key: EllipticCurvePublicKey
signing_key: EllipticCurvePrivateKey
public_blob: None
ecdsa_curve: Optional[_ECDSACurve]
def __init__(
self,
msg: Optional[Message] = ...,
data: Optional[bytes] = ...,
filename: Optional[str] = ...,
password: Optional[str] = ...,
vals: Optional[Tuple[EllipticCurvePrivateKey, EllipticCurvePublicKey]] = ...,
file_obj: Optional[IO[str]] = ...,
validate_point: bool = ...,
) -> None: ...
@classmethod
def supported_key_format_identifiers(cls: Any) -> List[str]: ...
def asbytes(self) -> bytes: ...
def __hash__(self) -> int: ...
def get_name(self) -> str: ...
def get_bits(self) -> int: ...
def can_sign(self) -> bool: ...
def sign_ssh_data(self, data: bytes) -> Message: ...
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
def write_private_key_file(self, filename: str, password: Optional[str] = ...) -> None: ...
def write_private_key(self, file_obj: IO[str], password: Optional[str] = ...) -> None: ...
@classmethod
def generate(
cls, curve: EllipticCurve = ..., progress_func: Optional[Callable[..., Any]] = ..., bits: Optional[int] = ...
) -> ECDSAKey: ...
| 2,338 | Python | .py | 49 | 42.55102 | 120 | 0.657768 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,785 | sftp_si.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_si.pyi | from typing import Any, List, Union
from paramiko.server import ServerInterface
from paramiko.sftp_attr import SFTPAttributes
from paramiko.sftp_handle import SFTPHandle
class SFTPServerInterface:
def __init__(self, server: ServerInterface, *largs: Any, **kwargs: Any) -> None: ...
def session_started(self) -> None: ...
def session_ended(self) -> None: ...
def open(self, path: str, flags: int, attr: SFTPAttributes) -> Union[SFTPHandle, int]: ...
def list_folder(self, path: str) -> Union[List[SFTPAttributes], int]: ...
def stat(self, path: str) -> Union[SFTPAttributes, int]: ...
def lstat(self, path: str) -> Union[SFTPAttributes, int]: ...
def remove(self, path: str) -> int: ...
def rename(self, oldpath: str, newpath: str) -> int: ...
def posix_rename(self, oldpath: str, newpath: str) -> int: ...
def mkdir(self, path: str, attr: SFTPAttributes) -> int: ...
def rmdir(self, path: str) -> int: ...
def chattr(self, path: str, attr: SFTPAttributes) -> int: ...
def canonicalize(self, path: str) -> str: ...
def readlink(self, path: str) -> Union[str, int]: ...
def symlink(self, target_path: str, path: str) -> int: ...
| 1,193 | Python | .py | 21 | 52.666667 | 94 | 0.653846 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,786 | kex_gss.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/kex_gss.pyi | from typing import Optional
from paramiko.message import Message
from paramiko.ssh_gss import _SSH_GSSAuth
from paramiko.transport import Transport
MSG_KEXGSS_INIT: int
MSG_KEXGSS_CONTINUE: int
MSG_KEXGSS_COMPLETE: int
MSG_KEXGSS_HOSTKEY: int
MSG_KEXGSS_ERROR: int
MSG_KEXGSS_GROUPREQ: int
MSG_KEXGSS_GROUP: int
c_MSG_KEXGSS_INIT: bytes
c_MSG_KEXGSS_CONTINUE: bytes
c_MSG_KEXGSS_COMPLETE: bytes
c_MSG_KEXGSS_HOSTKEY: bytes
c_MSG_KEXGSS_ERROR: bytes
c_MSG_KEXGSS_GROUPREQ: bytes
c_MSG_KEXGSS_GROUP: bytes
class KexGSSGroup1:
P: int
G: int
b7fffffffffffffff: bytes
b0000000000000000: bytes
NAME: str
transport: Transport
kexgss: _SSH_GSSAuth
gss_host: Optional[str]
x: int
e: int
f: int
def __init__(self, transport: Transport) -> None: ...
def start_kex(self) -> None: ...
def parse_next(self, ptype: int, m: Message) -> None: ...
class KexGSSGroup14(KexGSSGroup1):
P: int
G: int
NAME: str
class KexGSSGex:
NAME: str
min_bits: int
max_bits: int
preferred_bits: int
transport: Transport
kexgss: _SSH_GSSAuth
gss_host: Optional[str]
p: Optional[int]
q: Optional[int]
g: Optional[int]
x: Optional[int]
e: Optional[int]
f: Optional[int]
old_style: bool
def __init__(self, transport: Transport) -> None: ...
def start_kex(self) -> None: ...
def parse_next(self, ptype: int, m: Message) -> None: ...
class NullHostKey:
key: str
def __init__(self) -> None: ...
def get_name(self) -> str: ...
| 1,539 | Python | .py | 59 | 22.457627 | 61 | 0.687712 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,787 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/__init__.pyi | from paramiko.agent import Agent as Agent, AgentKey as AgentKey
from paramiko.channel import Channel as Channel
from paramiko.client import (
AutoAddPolicy as AutoAddPolicy,
MissingHostKeyPolicy as MissingHostKeyPolicy,
RejectPolicy as RejectPolicy,
SSHClient as SSHClient,
WarningPolicy as WarningPolicy,
)
from paramiko.common import io_sleep as io_sleep
from paramiko.config import SSHConfig as SSHConfig
from paramiko.dsskey import DSSKey as DSSKey
from paramiko.ecdsakey import ECDSAKey as ECDSAKey
from paramiko.ed25519key import Ed25519Key as Ed25519Key
from paramiko.file import BufferedFile as BufferedFile
from paramiko.hostkeys import HostKeys as HostKeys
from paramiko.message import Message as Message
from paramiko.pkey import PKey as PKey
from paramiko.proxy import ProxyCommand as ProxyCommand
from paramiko.rsakey import RSAKey as RSAKey
from paramiko.server import ServerInterface as ServerInterface, SubsystemHandler as SubsystemHandler
from paramiko.sftp import SFTPError as SFTPError
from paramiko.sftp_attr import SFTPAttributes as SFTPAttributes
from paramiko.sftp_client import SFTP as SFTP, SFTPClient as SFTPClient
from paramiko.sftp_file import SFTPFile as SFTPFile
from paramiko.sftp_handle import SFTPHandle as SFTPHandle
from paramiko.sftp_server import SFTPServer as SFTPServer
from paramiko.sftp_si import SFTPServerInterface as SFTPServerInterface
from paramiko.ssh_exception import (
AuthenticationException as AuthenticationException,
BadAuthenticationType as BadAuthenticationType,
BadHostKeyException as BadHostKeyException,
ChannelException as ChannelException,
PasswordRequiredException as PasswordRequiredException,
ProxyCommandFailure as ProxyCommandFailure,
SSHException as SSHException,
)
from paramiko.transport import SecurityOptions as SecurityOptions, Transport as Transport
# Names in __all__ with no definition:
# util
| 1,919 | Python | .py | 40 | 45.75 | 100 | 0.856763 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,788 | ssh_gss.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/ssh_gss.pyi | from typing import Any, Optional, Tuple, Type
from paramiko.ssh_exception import SSHException
GSS_AUTH_AVAILABLE: bool
GSS_EXCEPTIONS: Tuple[Type[Exception], ...]
def GSSAuth(auth_method: str, gss_deleg_creds: bool = ...) -> _SSH_GSSAuth: ...
class _SSH_GSSAuth:
cc_file: None
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
def set_service(self, service: str) -> None: ...
def set_username(self, username: str) -> None: ...
def ssh_gss_oids(self, mode: str = ...) -> bytes: ...
def ssh_check_mech(self, desired_mech: str) -> bool: ...
class _SSH_GSSAPI_OLD(_SSH_GSSAuth):
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
def ssh_init_sec_context(
self, target: str, desired_mech: Optional[str] = ..., username: Optional[str] = ..., recv_token: Optional[str] = ...
) -> Optional[str]: ...
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: Optional[str] = ...) -> Optional[str]: ...
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: Optional[str] = ...) -> None: ...
@property
def credentials_delegated(self) -> bool: ...
def save_client_creds(self, client_token: str) -> None: ...
_SSH_GSSAPI = _SSH_GSSAPI_OLD
class _SSH_GSSAPI_NEW(_SSH_GSSAuth):
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
def ssh_init_sec_context(
self, target: str, desired_mech: Optional[str] = ..., username: Optional[str] = ..., recv_token: Optional[str] = ...
) -> str: ...
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
def ssh_accept_sec_context(self, hostname: str, recv_token: str, username: Optional[str] = ...) -> Optional[str]: ...
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: Optional[str] = ...) -> None: ...
@property
def credentials_delegated(self) -> bool: ...
def save_client_creds(self, client_token: str) -> None: ...
class _SSH_SSPI(_SSH_GSSAuth):
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
def ssh_init_sec_context(
self, target: str, desired_mech: Optional[str] = ..., username: Optional[str] = ..., recv_token: Optional[str] = ...
) -> str: ...
def ssh_get_mic(self, session_id: bytes, gss_kex: bool = ...) -> Any: ...
def ssh_accept_sec_context(self, hostname: str, username: str, recv_token: str) -> Optional[str]: ...
def ssh_check_mic(self, mic_token: str, session_id: bytes, username: Optional[str] = ...) -> None: ...
@property
def credentials_delegated(self) -> bool: ...
def save_client_creds(self, client_token: str) -> None: ...
| 2,774 | Python | .py | 46 | 55.73913 | 124 | 0.626103 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,789 | rsakey.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/rsakey.pyi | from typing import IO, Any, Callable, Optional, Union
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey, RSAPublicNumbers
from paramiko.message import Message
from paramiko.pkey import PKey
class RSAKey(PKey):
key: Union[None, RSAPublicKey, RSAPrivateKey]
public_blob: None
def __init__(
self,
msg: Optional[Message] = ...,
data: Optional[bytes] = ...,
filename: Optional[str] = ...,
password: Optional[str] = ...,
key: Union[None, RSAPublicKey, RSAPrivateKey] = ...,
file_obj: Optional[IO[str]] = ...,
) -> None: ...
@property
def size(self) -> int: ...
@property
def public_numbers(self) -> RSAPublicNumbers: ...
def asbytes(self) -> bytes: ...
def __hash__(self) -> int: ...
def get_name(self) -> str: ...
def get_bits(self) -> int: ...
def can_sign(self) -> bool: ...
def sign_ssh_data(self, data: bytes) -> Message: ...
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
def write_private_key_file(self, filename: str, password: Optional[str] = ...) -> None: ...
def write_private_key(self, file_obj: IO[str], password: Optional[str] = ...) -> None: ...
@staticmethod
def generate(bits: int, progress_func: Optional[Callable[..., Any]] = ...) -> RSAKey: ...
| 1,347 | Python | .py | 31 | 38.129032 | 103 | 0.619482 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,790 | dsskey.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/dsskey.pyi | from typing import IO, Any, Callable, Optional, Tuple
from paramiko.ber import BER
from paramiko.message import Message
from paramiko.pkey import PKey, PublicBlob
class DSSKey(PKey):
p: Optional[int]
q: Optional[int]
g: Optional[int]
y: Optional[int]
x: Optional[int]
public_blob: None
size: int
def __init__(
self,
msg: Optional[Message] = ...,
data: Optional[bytes] = ...,
filename: Optional[str] = ...,
password: Optional[str] = ...,
vals: Optional[Tuple[int, int, int, int]] = ...,
file_obj: Optional[IO[str]] = ...,
) -> None: ...
def asbytes(self) -> bytes: ...
def __hash__(self) -> int: ...
def get_name(self) -> str: ...
def get_bits(self) -> int: ...
def can_sign(self) -> bool: ...
def sign_ssh_data(self, data: bytes) -> Message: ...
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
def write_private_key_file(self, filename: str, password: Optional[str] = ...) -> None: ...
def write_private_key(self, file_obj: IO[str], password: Optional[str] = ...) -> None: ...
@staticmethod
def generate(bits: int = ..., progress_func: Optional[Callable[..., Any]] = ...) -> DSSKey: ...
| 1,242 | Python | .py | 32 | 33.5 | 99 | 0.589404 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,791 | kex_gex.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/kex_gex.pyi | import sys
from _typeshed import ReadableBuffer
from typing import Callable, Optional
from paramiko.message import Message
from paramiko.transport import Transport
if sys.version_info < (3, 0):
from hashlib import _hash as _Hash
else:
from hashlib import _Hash
c_MSG_KEXDH_GEX_REQUEST_OLD: bytes
c_MSG_KEXDH_GEX_GROUP: bytes
c_MSG_KEXDH_GEX_INIT: bytes
c_MSG_KEXDH_GEX_REPLY: bytes
c_MSG_KEXDH_GEX_REQUEST: bytes
class KexGex:
name: str
min_bits: int
max_bits: int
preferred_bits: int
hash_algo: Callable[[ReadableBuffer], _Hash] = ...
transport: Transport
p: Optional[int]
q: Optional[int]
g: Optional[int]
x: Optional[int]
e: Optional[int]
f: Optional[int]
old_style: bool
def __init__(self, transport: Transport) -> None: ...
def start_kex(self, _test_old_style: bool = ...) -> None: ...
def parse_next(self, ptype: int, m: Message) -> None: ...
class KexGexSHA256(KexGex):
name: str
hash_algo: Callable[[ReadableBuffer], _Hash] = ...
| 1,023 | Python | .py | 34 | 26.588235 | 65 | 0.696138 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,792 | primes.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/primes.pyi | from typing import Dict, List, Tuple
class ModulusPack:
pack: Dict[int, List[Tuple[int, int]]]
discarded: List[Tuple[int, str]]
def __init__(self) -> None: ...
def read_file(self, filename: str) -> None: ...
def get_modulus(self, min: int, prefer: int, max: int) -> Tuple[int, int]: ...
| 308 | Python | .py | 7 | 40 | 82 | 0.63 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,793 | ber.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/ber.pyi | from typing import Any, Iterable, List, Union
class BERException(Exception): ...
class BER:
content: bytes
idx: int
def __init__(self, content: bytes = ...) -> None: ...
def asbytes(self) -> bytes: ...
def decode(self) -> Union[None, int, List[int]]: ...
def decode_next(self) -> Union[None, int, List[int]]: ...
@staticmethod
def decode_sequence(data: bytes) -> List[Union[int, List[int]]]: ...
def encode_tlv(self, ident: int, val: bytes) -> None: ...
def encode(self, x: Any) -> None: ...
@staticmethod
def encode_sequence(data: Iterable[str]) -> bytes: ...
| 611 | Python | .py | 15 | 36.4 | 72 | 0.614478 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,794 | ed25519key.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/ed25519key.pyi | from typing import IO, Any, Optional
from paramiko.message import Message
from paramiko.pkey import PKey
class Ed25519Key(PKey):
public_blob: None
def __init__(
self,
msg: Optional[Message] = ...,
data: Optional[bytes] = ...,
filename: Optional[str] = ...,
password: Optional[str] = ...,
file_obj: Optional[IO[str]] = ...,
) -> None: ...
def asbytes(self) -> bytes: ...
def __hash__(self) -> int: ...
def get_name(self) -> str: ...
def get_bits(self) -> int: ...
def can_sign(self) -> bool: ...
def sign_ssh_data(self, data: bytes) -> Message: ...
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
| 703 | Python | .py | 20 | 29.65 | 68 | 0.571219 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,795 | win_pageant.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/win_pageant.pyi | import ctypes.wintypes
import sys
assert sys.platform == "win32"
win32con_WM_COPYDATA: int
def can_talk_to_agent(): ...
class COPYDATASTRUCT(ctypes.Structure): ...
class PageantConnection:
def __init__(self) -> None: ...
def send(self, data: bytes) -> None: ...
def recv(self, n: int) -> bytes: ...
def close(self) -> None: ...
| 349 | Python | .py | 11 | 28.818182 | 44 | 0.660661 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,796 | buffered_pipe.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/buffered_pipe.pyi | from threading import Event
from typing import Generic, Optional, Text, TypeVar
_T = TypeVar("_T", Text, bytes)
class PipeTimeout(IOError): ...
class BufferedPipe(Generic[_T]):
def __init__(self) -> None: ...
def set_event(self, event: Event) -> None: ...
def feed(self, data: _T) -> None: ...
def read_ready(self) -> bool: ...
def read(self, nbytes: int, timeout: Optional[float] = ...) -> _T: ...
def empty(self) -> _T: ...
def close(self) -> None: ...
def __len__(self) -> int: ...
| 520 | Python | .py | 13 | 36.307692 | 74 | 0.593254 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,797 | sftp_file.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_file.pyi | from typing import Iterator, Optional, Sequence, Tuple
from paramiko.file import BufferedFile
from paramiko.sftp_attr import SFTPAttributes
from paramiko.sftp_client import SFTPClient
from paramiko.sftp_handle import SFTPHandle
class SFTPFile(BufferedFile):
MAX_REQUEST_SIZE: int
sftp: SFTPClient
handle: SFTPHandle
pipelined: bool
def __init__(self, sftp: SFTPClient, handle: bytes, mode: str = ..., bufsize: int = ...) -> None: ...
def __del__(self) -> None: ...
def close(self) -> None: ...
def settimeout(self, timeout: float) -> None: ...
def gettimeout(self) -> float: ...
def setblocking(self, blocking: bool) -> None: ...
def seekable(self) -> bool: ...
def seek(self, offset: int, whence: int = ...) -> None: ...
def stat(self) -> SFTPAttributes: ...
def chmod(self, mode: int) -> None: ...
def chown(self, uid: int, gid: int) -> None: ...
def utime(self, times: Optional[Tuple[float, float]]) -> None: ...
def truncate(self, size: int) -> None: ...
def check(self, hash_algorithm: str, offset: int = ..., length: int = ..., block_size: int = ...) -> bytes: ...
def set_pipelined(self, pipelined: bool = ...) -> None: ...
def prefetch(self, file_size: Optional[int] = ...) -> None: ...
def readv(self, chunks: Sequence[Tuple[int, int]]) -> Iterator[bytes]: ...
| 1,356 | Python | .py | 27 | 46.037037 | 115 | 0.63376 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,798 | kex_group16.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/kex_group16.pyi | import sys
from _typeshed import ReadableBuffer
from typing import Callable
from paramiko.kex_group1 import KexGroup1 as KexGroup1
if sys.version_info < (3, 0):
from hashlib import _hash as _Hash
else:
from hashlib import _Hash
class KexGroup16SHA512(KexGroup1):
name: str
P: int
G: int
hash_algo: Callable[[ReadableBuffer], _Hash]
| 359 | Python | .py | 13 | 24.538462 | 54 | 0.760933 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
28,799 | sftp_handle.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/2and3/paramiko/sftp_handle.pyi | from typing import Union
from paramiko.sftp_attr import SFTPAttributes
from paramiko.sftp_server import SFTPServer
from paramiko.util import ClosingContextManager
class SFTPHandle(ClosingContextManager):
def __init__(self, flags: int = ...) -> None: ...
def close(self) -> None: ...
def read(self, offset: int, length: int) -> Union[bytes, int]: ...
def write(self, offset: int, data: bytes) -> int: ...
def stat(self) -> Union[int, SFTPAttributes]: ...
def chattr(self, attr: SFTPAttributes) -> int: ...
| 531 | Python | .py | 11 | 44.909091 | 70 | 0.69305 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |