SYMBOL INDEX (31050 symbols across 1112 files)
FILE: conftest.py
function pytest_configure (line 8) | def pytest_configure(config):
function pytest_addoption (line 16) | def pytest_addoption(parser) -> None:
FILE: docs/source/conf.py
function setup (line 287) | def setup(app: Sphinx) -> None:
FILE: docs/source/html_builder.py
class MypyHTMLBuilder (line 15) | class MypyHTMLBuilder(StandaloneHTMLBuilder):
method __init__ (line 16) | def __init__(self, app: Sphinx, env: BuildEnvironment) -> None:
method write_doc (line 20) | def write_doc(self, docname: str, doctree: document) -> None:
method _verify_error_codes (line 24) | def _verify_error_codes(self) -> None:
method _write_ref_redirector (line 33) | def _write_ref_redirector(self) -> None:
method finish (line 55) | def finish(self) -> None:
function setup (line 60) | def setup(app: Sphinx) -> dict[str, Any]:
FILE: misc/analyze_cache.py
class CacheData (line 18) | class CacheData:
method __init__ (line 19) | def __init__(
method total_size (line 34) | def total_size(self) -> int:
function extract_classes (line 38) | def extract_classes(chunks: Iterable[CacheData]) -> Iterable[JsonDict]:
function load_json (line 50) | def load_json(data_path: str, meta_path: str) -> CacheData:
function get_files (line 65) | def get_files(root: str) -> Iterable[CacheData]:
function pluck (line 75) | def pluck(name: str, chunks: Iterable[JsonDict]) -> Iterable[JsonDict]:
function report_counter (line 79) | def report_counter(counter: Counter[str], amount: int | None = None) -> ...
function report_most_common (line 85) | def report_most_common(chunks: list[JsonDict], amount: int | None = None...
function compress (line 89) | def compress(chunk: JsonDict) -> JsonDict:
function decompress (line 122) | def decompress(chunk: JsonDict) -> JsonDict:
function main (line 151) | def main() -> None:
FILE: misc/apply-cache-diff.py
function make_cache (line 20) | def make_cache(input_dir: str, sqlite: bool) -> MetadataStore:
function apply_diff (line 27) | def apply_diff(cache_dir: str, diff_file: str, sqlite: bool = False) -> ...
function main (line 48) | def main() -> None:
FILE: misc/cherry-pick-typeshed.py
function parse_commit_title (line 18) | def parse_commit_title(diff: str) -> str:
function main (line 24) | def main() -> None:
FILE: misc/convert-cache.py
function main (line 21) | def main() -> None:
FILE: misc/diff-cache.py
function make_cache (line 22) | def make_cache(input_dir: str, sqlite: bool) -> MetadataStore:
function merge_deps (line 29) | def merge_deps(all: dict[str, set[str]], new: dict[str, set[str]]) -> None:
function load (line 34) | def load(cache: MetadataStore, s: str) -> Any:
function main (line 61) | def main() -> None:
FILE: misc/docker/build.py
function main (line 22) | def main() -> None:
FILE: misc/dump-ast.py
function dump (line 17) | def dump(fname: str, python_version: tuple[int, int], quiet: bool = Fals...
function main (line 27) | def main() -> None:
FILE: misc/find_type.py
function update_line (line 38) | def update_line(line: str, s: str, pos: int) -> str:
function run_mypy (line 42) | def run_mypy(mypy_and_args: list[str], filename: str, tmp_name: str) -> ...
function get_revealed_type (line 52) | def get_revealed_type(line: str, relevant_file: str, relevant_line: int)...
function process_output (line 60) | def process_output(output: str, filename: str, start_line: int) -> tuple...
function main (line 71) | def main() -> None:
FILE: misc/gen_blog_post_html.py
function format_lists (line 22) | def format_lists(h: str) -> str:
function format_code (line 40) | def format_code(h: str) -> str:
function convert (line 77) | def convert(src: str) -> str:
function extract_version (line 157) | def extract_version(src: str, version: str) -> str:
function main (line 173) | def main() -> None:
FILE: misc/generate_changelog.py
function find_all_release_branches (line 12) | def find_all_release_branches() -> list[tuple[int, int]]:
function git_merge_base (line 24) | def git_merge_base(rev1: str, rev2: str) -> str:
class CommitInfo (line 32) | class CommitInfo:
function normalize_author (line 39) | def normalize_author(author: str) -> str:
function git_commit_log (line 48) | def git_commit_log(rev1: str, rev2: str) -> list[CommitInfo]:
function filter_omitted_commits (line 69) | def filter_omitted_commits(commits: list[CommitInfo]) -> list[CommitInfo]:
function normalize_title (line 99) | def normalize_title(title: str) -> str:
function filter_out_commits_from_old_release_branch (line 108) | def filter_out_commits_from_old_release_branch(
function find_changes_between_releases (line 126) | def find_changes_between_releases(old_branch: str, new_branch: str) -> l...
function format_changelog_entry (line 141) | def format_changelog_entry(c: CommitInfo) -> str:
function main (line 156) | def main() -> None:
FILE: misc/incremental_checker.py
function print_offset (line 58) | def print_offset(text: str, indent_length: int = 4) -> None:
function delete_folder (line 64) | def delete_folder(folder_path: str) -> None:
function execute (line 69) | def execute(command: list[str], fail_on_error: bool = True) -> tuple[str...
function ensure_environment_is_ready (line 87) | def ensure_environment_is_ready(mypy_path: str, temp_repo_path: str, myp...
function initialize_repo (line 93) | def initialize_repo(repo_url: str, temp_repo_path: str, branch: str) -> ...
function get_commits (line 101) | def get_commits(repo_folder_path: str, commit_range: str) -> list[tuple[...
function get_commits_starting_at (line 112) | def get_commits_starting_at(repo_folder_path: str, start_commit: str) ->...
function get_nth_commit (line 117) | def get_nth_commit(repo_folder_path: str, n: int) -> tuple[str, str]:
function run_mypy (line 122) | def run_mypy(
function filter_daemon_stats (line 165) | def filter_daemon_stats(output: str) -> tuple[str, dict[str, Any]]:
function start_daemon (line 181) | def start_daemon(mypy_cache_path: str) -> None:
function stop_daemon (line 193) | def stop_daemon() -> None:
function load_cache (line 197) | def load_cache(incremental_cache_path: str = CACHE_PATH) -> JsonDict:
function save_cache (line 207) | def save_cache(cache: JsonDict, incremental_cache_path: str = CACHE_PATH...
function set_expected (line 212) | def set_expected(
function test_incremental (line 245) | def test_incremental(
function combine_stats (line 291) | def combine_stats(overall_stats: dict[str, float], new_stats: dict[str, ...
function cleanup (line 303) | def cleanup(temp_repo_path: str, mypy_cache_path: str) -> None:
function test_repo (line 308) | def test_repo(
function main (line 395) | def main() -> None:
FILE: misc/install.py
function main (line 5) | def main(args: argparse.Namespace):
FILE: misc/perf_checker.py
class Command (line 14) | class Command:
method __init__ (line 15) | def __init__(self, setup: Callable[[], None], command: Callable[[], No...
function print_offset (line 20) | def print_offset(text: str, indent_length: int = 4) -> None:
function delete_folder (line 26) | def delete_folder(folder_path: str) -> None:
function execute (line 31) | def execute(command: list[str]) -> None:
function trial (line 48) | def trial(num_trials: int, command: Command) -> list[float]:
function report (line 59) | def report(name: str, times: list[float]) -> None:
function main (line 67) | def main() -> None:
FILE: misc/perf_compare.py
function heading (line 32) | def heading(s: str) -> None:
function build_mypy (line 38) | def build_mypy(target_dir: str) -> None:
function clone (line 47) | def clone(target_dir: str, commit: str | None) -> None:
function edit_python_file (line 58) | def edit_python_file(fnam: str) -> None:
function run_benchmark (line 66) | def run_benchmark(
function main (line 93) | def main() -> None:
FILE: misc/sync-typeshed.py
function check_state (line 27) | def check_state() -> None:
function update_typeshed (line 36) | def update_typeshed(typeshed_dir: str, commit: str | None) -> str:
function git_head_commit (line 61) | def git_head_commit(repo: str) -> str:
function get_github_api_headers (line 67) | def get_github_api_headers() -> Mapping[str, str]:
function get_origin_owner (line 78) | def get_origin_owner() -> str:
function create_or_update_pull_request (line 90) | def create_or_update_pull_request(*, title: str, body: str, branch_name:...
function main (line 129) | def main() -> None:
FILE: misc/update-stubinfo.py
function main (line 7) | def main() -> None:
FILE: misc/upload-pypi.py
function is_whl_or_tar (line 30) | def is_whl_or_tar(name: str) -> bool:
function item_ok_for_pypi (line 34) | def item_ok_for_pypi(name: str) -> bool:
function get_release_for_tag (line 49) | def get_release_for_tag(tag: str) -> dict[str, Any]:
function download_asset (line 57) | def download_asset(asset: dict[str, Any], dst: Path) -> Path:
function download_all_release_assets (line 68) | def download_all_release_assets(release: dict[str, Any], dst: Path) -> N...
function check_sdist (line 75) | def check_sdist(dist: Path, version: str) -> None:
function spot_check_dist (line 107) | def spot_check_dist(dist: Path, version: str) -> None:
function tmp_twine (line 115) | def tmp_twine() -> Iterator[Path]:
function upload_dist (line 124) | def upload_dist(dist: Path, dry_run: bool = True) -> None:
function upload_to_pypi (line 136) | def upload_to_pypi(version: str, dry_run: bool = True, save_dist=False) ...
function main (line 163) | def main() -> None:
FILE: mypy/__main__.py
function console_entry (line 13) | def console_entry() -> None:
FILE: mypy/api.py
function _run (line 53) | def _run(main_wrapper: Callable[[TextIO, TextIO], None]) -> tuple[str, s...
function run (line 67) | def run(args: list[str]) -> tuple[str, str, int]:
function run_dmypy (line 76) | def run_dmypy(args: list[str]) -> tuple[str, str, int]:
FILE: mypy/applytype.py
class ReportIncompatibleTypevarValue (line 35) | class ReportIncompatibleTypevarValue(Protocol):
method __call__ (line 36) | def __call__(
function get_target_type (line 41) | def get_target_type(
function apply_generic_arguments (line 95) | def apply_generic_arguments(
function apply_poly (line 194) | def apply_poly(tp: CallableType, poly_tvars: Sequence[TypeVarLikeType]) ...
class PolyTranslationError (line 214) | class PolyTranslationError(Exception):
class PolyTranslator (line 218) | class PolyTranslator(TypeTranslator):
method __init__ (line 224) | def __init__(
method collect_vars (line 236) | def collect_vars(self, t: CallableType | Parameters) -> list[TypeVarLi...
method visit_callable_type (line 250) | def visit_callable_type(self, t: CallableType) -> Type:
method visit_type_var (line 260) | def visit_type_var(self, t: TypeVarType) -> Type:
method visit_param_spec (line 265) | def visit_param_spec(self, t: ParamSpecType) -> Type:
method visit_type_var_tuple (line 270) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> Type:
method visit_type_alias_type (line 275) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
method visit_instance (line 284) | def visit_instance(self, t: Instance) -> Type:
FILE: mypy/argmap.py
function map_actuals_to_formals (line 27) | def map_actuals_to_formals(
function map_formals_to_actuals (line 125) | def map_formals_to_actuals(
class ArgTypeExpander (line 144) | class ArgTypeExpander:
method __init__ (line 166) | def __init__(self, context: ArgumentInferContext) -> None:
method expand_actual_type (line 174) | def expand_actual_type(
FILE: mypy/binder.py
class CurrentType (line 34) | class CurrentType(NamedTuple):
class Frame (line 39) | class Frame:
method __init__ (line 51) | def __init__(self, id: int, conditional_frame: bool = False) -> None:
method __repr__ (line 67) | def __repr__(self) -> str:
class ConditionalTypeBinder (line 74) | class ConditionalTypeBinder:
method __init__ (line 99) | def __init__(self) -> None:
method collect_artificial_keys (line 134) | def collect_artificial_keys(self) -> Generator[None, None, None]:
method _get_id (line 143) | def _get_id(self) -> int:
method _add_dependencies (line 147) | def _add_dependencies(self, key: Key, value: Key | None = None) -> None:
method push_frame (line 155) | def push_frame(self, conditional_frame: bool = False) -> Frame:
method _put (line 162) | def _put(self, key: Key, type: Type, from_assignment: bool, index: int...
method _get (line 167) | def _get(self, key: Key, index: int = -1) -> CurrentType | None:
method put (line 175) | def put(self, expr: Expression, typ: Type, *, from_assignment: bool = ...
method unreachable (line 187) | def unreachable(self, artificial=False) -> None:
method suppress_unreachable_warnings (line 190) | def suppress_unreachable_warnings(self) -> None:
method get (line 193) | def get(self, expr: Expression) -> Type | None:
method is_unreachable (line 201) | def is_unreachable(self) -> bool:
method is_unreachable_warning_suppressed (line 206) | def is_unreachable_warning_suppressed(self) -> bool:
method cleanse (line 209) | def cleanse(self, expr: Expression) -> None:
method _cleanse_key (line 215) | def _cleanse_key(self, key: Key) -> None:
method update_from_options (line 221) | def update_from_options(self, frames: list[Frame]) -> bool:
method pop_frame (line 296) | def pop_frame(self, can_skip: bool, fall_through: int) -> Frame:
method accumulate_type_assignments (line 316) | def accumulate_type_assignments(self) -> Iterator[Assigns]:
method assign_type (line 330) | def assign_type(
method invalidate_dependencies (line 406) | def invalidate_dependencies(self, expr: BindableExpression) -> None:
method most_recent_enclosing_type (line 419) | def most_recent_enclosing_type(self, expr: BindableExpression, type: T...
method allow_jump (line 432) | def allow_jump(self, index: int) -> None:
method handle_break (line 444) | def handle_break(self) -> None:
method handle_continue (line 448) | def handle_continue(self) -> None:
method frame_context (line 453) | def frame_context(
method top_frame_context (line 511) | def top_frame_context(self) -> Iterator[Frame]:
function get_declaration (line 521) | def get_declaration(expr: BindableExpression) -> Type | None:
function collapse_variadic_union (line 532) | def collapse_variadic_union(typ: UnionType) -> Type:
FILE: mypy/build.py
class BuildResult (line 129) | class BuildResult:
method __init__ (line 140) | def __init__(self, manager: BuildManager, graph: Graph) -> None:
function build (line 149) | def build(
function _build (line 214) | def _build(
function default_data_dir (line 306) | def default_data_dir() -> str:
function normpath (line 311) | def normpath(path: str, options: Options) -> str:
class CacheMeta (line 326) | class CacheMeta(NamedTuple):
class FgDepMeta (line 353) | class FgDepMeta(TypedDict):
function cache_meta_from_dict (line 358) | def cache_meta_from_dict(meta: dict[str, Any], data_json: str) -> CacheM...
function import_priority (line 398) | def import_priority(imp: ImportBase, toplevel_priority: int) -> int:
function load_plugins_from_config (line 410) | def load_plugins_from_config(
function load_plugins (line 502) | def load_plugins(
function take_module_snapshot (line 524) | def take_module_snapshot(module: types.ModuleType) -> str:
function find_config_file_line_number (line 540) | def find_config_file_line_number(path: str, section: str, setting_name: ...
class BuildManager (line 563) | class BuildManager:
method __init__ (line 605) | def __init__(
method dump_stats (line 721) | def dump_stats(self) -> None:
method use_fine_grained_cache (line 727) | def use_fine_grained_cache(self) -> bool:
method maybe_swap_for_shadow_path (line 730) | def maybe_swap_for_shadow_path(self, path: str) -> str:
method get_stat (line 748) | def get_stat(self, path: str) -> os.stat_result | None:
method getmtime (line 751) | def getmtime(self, path: str) -> int:
method all_imported_modules_in_file (line 762) | def all_imported_modules_in_file(self, file: MypyFile) -> list[tuple[i...
method is_module (line 836) | def is_module(self, id: str) -> bool:
method parse_file (line 840) | def parse_file(
method load_fine_grained_deps (line 866) | def load_fine_grained_deps(self, id: str) -> dict[str, set[str]]:
method report_file (line 877) | def report_file(
method verbosity (line 883) | def verbosity(self) -> int:
method log (line 886) | def log(self, *message: str) -> None:
method log_fine_grained (line 894) | def log_fine_grained(self, *message: str) -> None:
method trace (line 907) | def trace(self, *message: str) -> None:
method add_stats (line 912) | def add_stats(self, **kwds: Any) -> None:
method stats_summary (line 919) | def stats_summary(self) -> Mapping[str, object]:
function deps_to_json (line 923) | def deps_to_json(x: dict[str, set[str]]) -> bytes:
function write_deps_cache (line 937) | def write_deps_cache(
function invert_deps (line 1003) | def invert_deps(deps: dict[str, set[str]], graph: Graph) -> dict[str, di...
function generate_deps_for_cache (line 1029) | def generate_deps_for_cache(manager: BuildManager, graph: Graph) -> dict...
class BaselineType (line 1061) | class BaselineType(TypedDict):
function save_baseline (line 1067) | def save_baseline(manager: BuildManager):
function load_baseline (line 1109) | def load_baseline(options: Options, errors: Errors, stdout: TextIO):
function write_plugins_snapshot (line 1189) | def write_plugins_snapshot(manager: BuildManager) -> None:
function read_plugins_snapshot (line 1200) | def read_plugins_snapshot(manager: BuildManager) -> dict[str, str] | None:
function read_quickstart_file (line 1216) | def read_quickstart_file(
function read_deps_cache (line 1233) | def read_deps_cache(manager: BuildManager, graph: Graph) -> dict[str, Fg...
function _load_json_file (line 1278) | def _load_json_file(
function _cache_dir_prefix (line 1313) | def _cache_dir_prefix(options: Options) -> str:
function add_catch_all_gitignore (line 1324) | def add_catch_all_gitignore(target_dir: str) -> None:
function exclude_from_backups (line 1338) | def exclude_from_backups(target_dir: str) -> None:
function create_metastore (line 1356) | def create_metastore(options: Options) -> MetadataStore:
function get_cache_names (line 1365) | def get_cache_names(id: str, path: str, options: Options) -> tuple[str, ...
function find_cache_meta (line 1401) | def find_cache_meta(id: str, path: str, manager: BuildManager) -> CacheM...
function validate_meta (line 1512) | def validate_meta(
function compute_hash (line 1653) | def compute_hash(text: str) -> str:
function write_cache (line 1662) | def write_cache(
function delete_cache (line 1812) | def delete_cache(id: str, path: str, manager: BuildManager) -> None:
class ModuleNotFound (line 1971) | class ModuleNotFound(Exception):
class State (line 1975) | class State:
method __init__ (line 2052) | def __init__(
method xmeta (line 2163) | def xmeta(self) -> CacheMeta:
method add_ancestors (line 2167) | def add_ancestors(self) -> None:
method is_fresh (line 2183) | def is_fresh(self) -> bool:
method is_interface_fresh (line 2195) | def is_interface_fresh(self) -> bool:
method mark_as_rechecked (line 2198) | def mark_as_rechecked(self) -> None:
method mark_interface_stale (line 2202) | def mark_interface_stale(self, *, on_errors: bool = False) -> None:
method check_blockers (line 2208) | def check_blockers(self) -> None:
method wrap_context (line 2215) | def wrap_context(self, check_blockers: bool = True) -> Iterator[None]:
method load_fine_grained_deps (line 2246) | def load_fine_grained_deps(self) -> dict[str, set[str]]:
method load_tree (line 2249) | def load_tree(self, temporary: bool = False) -> None:
method fix_cross_refs (line 2275) | def fix_cross_refs(self) -> None:
method parse_file (line 2283) | def parse_file(self, *, temporary: bool = False) -> None:
method parse_inline_configuration (line 2381) | def parse_inline_configuration(self, source: str) -> None:
method semantic_analysis_pass1 (line 2391) | def semantic_analysis_pass1(self) -> None:
method add_dependency (line 2422) | def add_dependency(self, dep: str) -> None:
method suppress_dependency (line 2430) | def suppress_dependency(self, dep: str) -> None:
method compute_dependencies (line 2438) | def compute_dependencies(self) -> None:
method type_check_first_pass (line 2476) | def type_check_first_pass(self) -> None:
method type_checker (line 2484) | def type_checker(self) -> TypeChecker:
method type_map (line 2499) | def type_map(self) -> dict[Expression, Type]:
method type_check_second_pass (line 2505) | def type_check_second_pass(self) -> bool:
method detect_possibly_undefined_vars (line 2514) | def detect_possibly_undefined_vars(self) -> None:
method finish_passes (line 2533) | def finish_passes(self) -> None:
method free_state (line 2585) | def free_state(self) -> None:
method _patch_indirect_dependencies (line 2590) | def _patch_indirect_dependencies(self, module_refs: set[str], types: l...
method compute_fine_grained_deps (line 2606) | def compute_fine_grained_deps(self) -> dict[str, set[str]]:
method update_fine_grained_deps (line 2626) | def update_fine_grained_deps(self, deps: dict[str, set[str]]) -> None:
method valid_references (line 2634) | def valid_references(self) -> set[str]:
method write_cache (line 2644) | def write_cache(self, *, baseline_errors: list[ErrorInfo] | None) -> N...
method verify_dependencies (line 2692) | def verify_dependencies(self, suppressed_only: bool = False) -> None:
method dependency_priorities (line 2737) | def dependency_priorities(self) -> list[int]:
method dependency_lines (line 2740) | def dependency_lines(self) -> list[int]:
method generate_unused_ignore_notes (line 2743) | def generate_unused_ignore_notes(self) -> None:
method generate_ignore_without_code_notes (line 2755) | def generate_ignore_without_code_notes(self) -> None:
function find_module_and_diagnose (line 2765) | def find_module_and_diagnose(
function exist_added_packages (line 2864) | def exist_added_packages(suppressed: list[str], manager: BuildManager, o...
function find_module_simple (line 2888) | def find_module_simple(id: str, manager: BuildManager) -> str | None:
function find_module_with_reason (line 2898) | def find_module_with_reason(id: str, manager: BuildManager) -> ModuleSea...
function in_partial_package (line 2906) | def in_partial_package(id: str, manager: BuildManager) -> bool:
function module_not_found (line 2933) | def module_not_found(
function skipping_module (line 2975) | def skipping_module(
function skipping_ancestor (line 2994) | def skipping_ancestor(manager: BuildManager, id: str, path: str, ancesto...
function log_configuration (line 3014) | def log_configuration(manager: BuildManager, sources: list[BuildSource])...
function dispatch (line 3054) | def dispatch(sources: list[BuildSource], manager: BuildManager, stdout: ...
class NodeInfo (line 3138) | class NodeInfo:
method __init__ (line 3141) | def __init__(self, index: int, scc: list[str]) -> None:
method dumps (line 3147) | def dumps(self) -> str:
function dump_timing_stats (line 3159) | def dump_timing_stats(path: str, graph: Graph) -> None:
function dump_line_checking_stats (line 3166) | def dump_line_checking_stats(path: str, graph: Graph) -> None:
function dump_graph (line 3178) | def dump_graph(graph: Graph, stdout: TextIO | None = None) -> None:
function load_graph (line 3217) | def load_graph(
function process_graph (line 3379) | def process_graph(graph: Graph, manager: BuildManager) -> None:
function order_ascc (line 3527) | def order_ascc(graph: Graph, ascc: AbstractSet[str], pri_max: int = PRI_...
function process_fresh_modules (line 3574) | def process_fresh_modules(graph: Graph, modules: list[str], manager: Bui...
function process_stale_scc (line 3590) | def process_stale_scc(graph: Graph, scc: list[str], manager: BuildManage...
function sorted_components (line 3649) | def sorted_components(
function deps_filtered (line 3680) | def deps_filtered(graph: Graph, vertices: AbstractSet[str], id: str, pri...
function missing_stubs_file (line 3692) | def missing_stubs_file(cache_dir: str) -> str:
function record_missing_stub_packages (line 3696) | def record_missing_stub_packages(cache_dir: str, missing_stub_packages: ...
function is_silent_import_module (line 3712) | def is_silent_import_module(manager: BuildManager, path: str) -> bool:
function write_undocumented_ref_info (line 3721) | def write_undocumented_ref_info(
FILE: mypy/checker.py
class DeferredNode (line 244) | class DeferredNode(NamedTuple):
class FineGrainedDeferredNode (line 252) | class FineGrainedDeferredNode(NamedTuple):
class TypeRange (line 275) | class TypeRange(NamedTuple):
class PartialTypeScope (line 283) | class PartialTypeScope(NamedTuple):
class InvalidTypeType (line 289) | class InvalidTypeType(Exception):
class TypeChecker (line 293) | class TypeChecker(NodeVisitor[None], CheckerPluginInterface):
method __init__ (line 372) | def __init__(
method type_context (line 440) | def type_context(self) -> list[Type | None]:
method reset (line 443) | def reset(self) -> None:
method check_first_pass (line 464) | def check_first_pass(self) -> None:
method check_second_pass (line 508) | def check_second_pass(
method check_partial (line 544) | def check_partial(self, node: DeferredNodeType | FineGrainedDeferredNo...
method check_top_level (line 555) | def check_top_level(self, node: MypyFile) -> None:
method defer_node (line 566) | def defer_node(self, node: DeferredNodeType, enclosing_class: TypeInfo...
method handle_cannot_determine_type (line 579) | def handle_cannot_determine_type(self, name: str, context: Context) ->...
method accept (line 595) | def accept(self, stmt: Statement) -> None:
method accept_loop (line 602) | def accept_loop(
method visit_overloaded_func_def (line 657) | def visit_overloaded_func_def(self, defn: OverloadedFuncDef, do_items=...
method _visit_overloaded_func_def (line 663) | def _visit_overloaded_func_def(self, defn: OverloadedFuncDef, do_items...
method extract_callable_type (line 714) | def extract_callable_type(self, inner_type: Type | None, ctx: Context)...
method check_overlapping_overloads (line 763) | def check_overlapping_overloads(self, defn: OverloadedFuncDef) -> None:
method is_generator_return_type (line 937) | def is_generator_return_type(self, typ: Type, is_coroutine: bool) -> b...
method is_async_generator_return_type (line 956) | def is_async_generator_return_type(self, typ: Type) -> bool:
method get_generator_yield_type (line 969) | def get_generator_yield_type(self, return_type: Type, is_coroutine: bo...
method get_generator_receive_type (line 1003) | def get_generator_receive_type(self, return_type: Type, is_coroutine: ...
method get_coroutine_return_type (line 1038) | def get_coroutine_return_type(self, return_type: Type) -> Type:
method get_generator_return_type (line 1046) | def get_generator_return_type(self, return_type: Type, is_coroutine: b...
method visit_func_def (line 1077) | def visit_func_def(self, defn: FuncDef) -> None:
method _visit_func_def (line 1182) | def _visit_func_def(self, defn: FuncDef) -> None:
method check_func_item (line 1199) | def check_func_item(
method check_func_def_override (line 1233) | def check_func_def_override(self, defn: FuncDef, new_type: FunctionLik...
method enter_attribute_inference_context (line 1277) | def enter_attribute_inference_context(self) -> Iterator[None]:
method check_func_def (line 1283) | def check_func_def(
method is_var_redefined_in_outer_context (line 1703) | def is_var_redefined_in_outer_context(self, v: Var, after_line: int) -...
method check_unbound_return_typevar (line 1720) | def check_unbound_return_typevar(self, typ: CallableType) -> None:
method check_default_args (line 1740) | def check_default_args(self, item: FuncItem, body_is_trivial: bool) ->...
method is_forward_op_method (line 1775) | def is_forward_op_method(self, method_name: str) -> bool:
method is_reverse_op_method (line 1778) | def is_reverse_op_method(self, method_name: str) -> bool:
method check_for_missing_annotations (line 1781) | def check_for_missing_annotations(self, fdef: FuncItem) -> None:
method check___new___signature (line 1820) | def check___new___signature(self, fdef: FuncDef, typ: CallableType) ->...
method check_reverse_op_method (line 1855) | def check_reverse_op_method(
method check_overlapping_op_methods (line 1943) | def check_overlapping_op_methods(
method is_unsafe_overlapping_op (line 2007) | def is_unsafe_overlapping_op(
method check_inplace_operator_method (line 2060) | def check_inplace_operator_method(self, defn: FuncBase) -> None:
method check_getattr_method (line 2087) | def check_getattr_method(self, typ: Type, context: Context, name: str)...
method check_setattr_method (line 2116) | def check_setattr_method(self, typ: Type, context: Context) -> None:
method check_slots_definition (line 2133) | def check_slots_definition(self, typ: Type, context: Context) -> None:
method check_match_args (line 2149) | def check_match_args(self, var: Var, typ: Type, context: Context) -> N...
method expand_typevars (line 2164) | def expand_typevars(
method check_explicit_override_decorator (line 2188) | def check_explicit_override_decorator(
method check_method_override (line 2211) | def check_method_override(
method check_method_or_accessor_override_for_base (line 2243) | def check_method_or_accessor_override_for_base(
method check_method_override_for_base_with_name (line 2284) | def check_method_override_for_base_with_name(
method bind_and_map_method (line 2457) | def bind_and_map_method(
method get_op_other_domain (line 2502) | def get_op_other_domain(self, tp: FunctionLike) -> Type | None:
method check_override (line 2518) | def check_override(
method check__exit__return_type (line 2684) | def check__exit__return_type(self, defn: FuncItem) -> None:
method visit_class_def (line 2709) | def visit_class_def(self, defn: ClassDef) -> None:
method check_final_deletable (line 2783) | def check_final_deletable(self, typ: TypeInfo) -> None:
method check_init_subclass (line 2791) | def check_init_subclass(self, defn: ClassDef) -> None:
method check_typevar_defaults (line 2839) | def check_typevar_defaults(self, tvars: Sequence[TypeVarLikeType]) -> ...
method check_enum (line 2848) | def check_enum(self, defn: ClassDef) -> None:
method check_final_enum (line 2877) | def check_final_enum(self, defn: ClassDef, base: TypeInfo) -> None:
method is_final_enum_value (line 2883) | def is_final_enum_value(self, sym: SymbolTableNode) -> bool:
method check_enum_bases (line 2907) | def check_enum_bases(self, defn: ClassDef) -> None:
method check_enum_new (line 2935) | def check_enum_new(self, defn: ClassDef) -> None:
method check_protocol_variance (line 2963) | def check_protocol_variance(self, defn: ClassDef) -> None:
method check_multiple_inheritance (line 3002) | def check_multiple_inheritance(self, typ: TypeInfo) -> None:
method determine_type_of_member (line 3024) | def determine_type_of_member(self, sym: SymbolTableNode) -> Type | None:
method check_compatibility (line 3047) | def check_compatibility(
method check_metaclass_compatibility (line 3137) | def check_metaclass_compatibility(self, typ: TypeInfo) -> None:
method visit_import_from (line 3166) | def visit_import_from(self, node: ImportFrom) -> None:
method visit_import_all (line 3172) | def visit_import_all(self, node: ImportAll) -> None:
method visit_import (line 3175) | def visit_import(self, node: Import) -> None:
method check_import (line 3178) | def check_import(self, node: ImportBase) -> None:
method visit_block (line 3200) | def visit_block(self, b: Block) -> None:
method should_report_unreachable_issues (line 3217) | def should_report_unreachable_issues(self) -> bool:
method is_noop_for_reachability (line 3225) | def is_noop_for_reachability(self, s: Statement) -> bool:
method check_assignment_for_untyped (line 3253) | def check_assignment_for_untyped(self, lvalues: list[Lvalue]):
method visit_assignment_stmt (line 3268) | def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
method check_type_alias_rvalue (line 3332) | def check_type_alias_rvalue(self, s: AssignmentStmt) -> None:
method check_function_on_class (line 3337) | def check_function_on_class(
method check_assignment (line 3411) | def check_assignment(
method get_variable_type_context (line 3633) | def get_variable_type_context(self, inferred: Var) -> Type | None:
method try_infer_partial_generic_type_from_assignment (line 3656) | def try_infer_partial_generic_type_from_assignment(
method check_compatibility_all_supers (line 3702) | def check_compatibility_all_supers(
method check_compatibility_super (line 3756) | def check_compatibility_super(
method lvalue_type_from_base (line 3835) | def lvalue_type_from_base(
method check_compatibility_classvar_super (line 3880) | def check_compatibility_classvar_super(
method check_compatibility_final_super (line 3893) | def check_compatibility_final_super(
method check_if_final_var_override_writable (line 3922) | def check_if_final_var_override_writable(
method get_final_context (line 3942) | def get_final_context(self) -> bool:
method enter_final_context (line 3947) | def enter_final_context(self, is_final_def: bool) -> Iterator[None]:
method check_final (line 3956) | def check_final(self, s: AssignmentStmt | OperatorAssignmentStmt | Ass...
method check_assignment_to_slots (line 4010) | def check_assignment_to_slots(self, lvalue: Lvalue) -> None:
method is_assignable_slot (line 4041) | def is_assignable_slot(self, lvalue: Lvalue, typ: Type | None) -> bool:
method flatten_rvalues (line 4060) | def flatten_rvalues(self, rvalues: list[Expression]) -> list[Expression]:
method check_assignment_to_multiple_lvalues (line 4091) | def check_assignment_to_multiple_lvalues(
method check_rvalue_count_in_assignment (line 4176) | def check_rvalue_count_in_assignment(
method check_multi_assignment (line 4212) | def check_multi_assignment(
method check_multi_assignment_from_union (line 4266) | def check_multi_assignment_from_union(
method flatten_lvalues (line 4334) | def flatten_lvalues(self, lvalues: list[Expression]) -> list[Expression]:
method check_multi_assignment_from_tuple (line 4345) | def check_multi_assignment_from_tuple(
method lvalue_type_for_inference (line 4438) | def lvalue_type_for_inference(self, lvalues: list[Lvalue], rvalue_type...
method split_around_star (line 4476) | def split_around_star(
method type_is_iterable (line 4492) | def type_is_iterable(self, type: Type) -> bool:
method check_multi_assignment_from_iterable (line 4500) | def check_multi_assignment_from_iterable(
method check_lvalue (line 4525) | def check_lvalue(self, lvalue: Lvalue) -> tuple[Type | None, IndexExpr...
method is_definition (line 4564) | def is_definition(self, s: Lvalue) -> bool:
method infer_variable_type (line 4580) | def infer_variable_type(
method infer_partial_type (line 4615) | def infer_partial_type(self, name: Var, lvalue: Lvalue, init_type: Typ...
method is_valid_defaultdict_partial_value_type (line 4655) | def is_valid_defaultdict_partial_value_type(self, t: ProperType) -> bool:
method set_inferred_type (line 4680) | def set_inferred_type(self, var: Var, lvalue: Lvalue, type: Type) -> N...
method set_inference_error_fallback_type (line 4698) | def set_inference_error_fallback_type(self, var: Var, lvalue: Lvalue, ...
method inference_error_fallback_type (line 4712) | def inference_error_fallback_type(self, type: Type) -> Type:
method simple_rvalue (line 4718) | def simple_rvalue(self, rvalue: Expression) -> bool:
method check_simple_assignment (line 4735) | def check_simple_assignment(
method check_member_assignment (line 4814) | def check_member_assignment(
method check_indexed_assignment (line 4940) | def check_indexed_assignment(
method try_infer_partial_type_from_indexed_assignment (line 4966) | def try_infer_partial_type_from_indexed_assignment(
method type_requires_usage (line 5005) | def type_requires_usage(self, typ: Type) -> tuple[str, ErrorCode] | None:
method visit_expression_stmt (line 5022) | def visit_expression_stmt(self, s: ExpressionStmt) -> None:
method visit_return_stmt (line 5034) | def visit_return_stmt(self, s: ReturnStmt) -> None:
method check_return_stmt (line 5039) | def check_return_stmt(self, s: ReturnStmt) -> None:
method visit_if_stmt (line 5145) | def visit_if_stmt(self, s: IfStmt) -> None:
method visit_while_stmt (line 5188) | def visit_while_stmt(self, s: WhileStmt) -> None:
method visit_operator_assignment_stmt (line 5199) | def visit_operator_assignment_stmt(self, s: OperatorAssignmentStmt) ->...
method visit_assert_stmt (line 5233) | def visit_assert_stmt(self, s: AssertStmt) -> None:
method visit_raise_stmt (line 5247) | def visit_raise_stmt(self, s: RaiseStmt) -> None:
method type_check_raise (line 5255) | def type_check_raise(self, e: Expression, s: RaiseStmt, optional: bool...
method visit_try_stmt (line 5284) | def visit_try_stmt(self, s: TryStmt) -> None:
method visit_try_without_finally (line 5317) | def visit_try_without_finally(self, s: TryStmt, try_frame: bool) -> None:
method check_except_handler_test (line 5358) | def check_except_handler_test(self, n: Expression, is_star: bool) -> T...
method default_exception_type (line 5399) | def default_exception_type(self, is_star: bool) -> Type:
method wrap_exception_group (line 5406) | def wrap_exception_group(self, types: Sequence[Type]) -> Type:
method get_types_from_except_handler (line 5415) | def get_types_from_except_handler(self, typ: Type, n: Expression) -> l...
method visit_for_stmt (line 5432) | def visit_for_stmt(self, s: ForStmt) -> None:
method analyze_async_iterable_item_type (line 5443) | def analyze_async_iterable_item_type(self, expr: Expression) -> tuple[...
method analyze_iterable_item_type (line 5454) | def analyze_iterable_item_type(self, expr: Expression) -> tuple[Type, ...
method analyze_iterable_item_type_without_expression (line 5464) | def analyze_iterable_item_type_without_expression(
method analyze_range_native_int_type (line 5483) | def analyze_range_native_int_type(self, expr: Expression) -> Type | None:
method analyze_container_item_type (line 5510) | def analyze_container_item_type(self, typ: Type) -> Type | None:
method analyze_index_variables (line 5532) | def analyze_index_variables(
method visit_del_stmt (line 5538) | def visit_del_stmt(self, s: DelStmt) -> None:
method visit_decorator (line 5559) | def visit_decorator(self, e: Decorator) -> None:
method visit_decorator_inner (line 5568) | def visit_decorator_inner(self, e: Decorator, allow_empty: bool = Fals...
method check_for_untyped_decorator (line 5656) | def check_for_untyped_decorator(
method check_incompatible_property_override (line 5666) | def check_incompatible_property_override(self, e: Decorator) -> None:
method visit_with_stmt (line 5680) | def visit_with_stmt(self, s: WithStmt) -> None:
method check_untyped_after_decorator (line 5717) | def check_untyped_after_decorator(self, typ: Type, func: FuncDef) -> N...
method check_async_with_item (line 5724) | def check_async_with_item(
method check_with_item (line 5743) | def check_with_item(
method visit_break_stmt (line 5757) | def visit_break_stmt(self, s: BreakStmt) -> None:
method visit_continue_stmt (line 5760) | def visit_continue_stmt(self, s: ContinueStmt) -> None:
method visit_match_stmt (line 5764) | def visit_match_stmt(self, s: MatchStmt) -> None:
method _get_recursive_sub_patterns_map (line 5854) | def _get_recursive_sub_patterns_map(
method infer_variable_types_from_type_maps (line 5868) | def infer_variable_types_from_type_maps(
method remove_capture_conflicts (line 5912) | def remove_capture_conflicts(
method visit_type_alias_stmt (line 5922) | def visit_type_alias_stmt(self, o: TypeAliasStmt) -> None:
method make_fake_typeinfo (line 5929) | def make_fake_typeinfo(
method intersect_instances (line 5951) | def intersect_instances(
method intersect_instance_callable (line 6052) | def intersect_instance_callable(self, typ: Instance, callable_type: Ca...
method make_fake_callable (line 6080) | def make_fake_callable(self, typ: Instance) -> Instance:
method partition_by_callable (line 6095) | def partition_by_callable(
method conditional_callable_type_map (line 6181) | def conditional_callable_type_map(
method conditional_types_for_iterable (line 6209) | def conditional_types_for_iterable(
method _is_truthy_type (line 6248) | def _is_truthy_type(self, t: ProperType) -> bool:
method check_for_truthy_type (line 6264) | def check_for_truthy_type(self, t: Type, expr: Expression) -> None:
method find_type_equals_check (line 6318) | def find_type_equals_check(
method find_isinstance_check (line 6396) | def find_isinstance_check(
method upstream_typeis (line 6424) | def upstream_typeis(self, node: CallExpr, expr: Expression) -> tuple[T...
method find_isinstance_check_helper (line 6472) | def find_isinstance_check_helper(
method comparison_type_narrowing_helper (line 6696) | def comparison_type_narrowing_helper(self, node: ComparisonExpr) -> tu...
method equality_type_narrowing_helper (line 6811) | def equality_type_narrowing_helper(
method propagate_up_typemap_info (line 6882) | def propagate_up_typemap_info(self, new_types: TypeMap) -> TypeMap:
method refine_parent_types (line 6925) | def refine_parent_types(self, expr: Expression, expr_type: Type) -> Ma...
method refine_identity_comparison_expression (line 7045) | def refine_identity_comparison_expression(
method refine_away_none_in_comparison (line 7183) | def refine_away_none_in_comparison(
method is_len_of_tuple (line 7226) | def is_len_of_tuple(self, expr: Expression) -> bool:
method can_be_narrowed_with_len (line 7241) | def can_be_narrowed_with_len(self, typ: Type) -> bool:
method literal_int_expr (line 7263) | def literal_int_expr(self, expr: Expression) -> int | None:
method find_tuple_len_narrowing (line 7279) | def find_tuple_len_narrowing(self, node: ComparisonExpr) -> list[tuple...
method narrow_with_len (line 7372) | def narrow_with_len(self, typ: Type, op: str, size: int) -> tuple[Type...
method refine_tuple_type_with_len (line 7406) | def refine_tuple_type_with_len(
method refine_instance_type_with_len (line 7474) | def refine_instance_type_with_len(
method check_subtype (line 7511) | def check_subtype(
method check_subtype (line 7526) | def check_subtype(
method check_subtype (line 7539) | def check_subtype(
method get_precise_awaitable_type (line 7617) | def get_precise_awaitable_type(self, typ: Type, local_errors: ErrorWat...
method checking_await_set (line 7640) | def checking_await_set(self) -> Iterator[None]:
method check_possible_missing_await (line 7647) | def check_possible_missing_await(
method named_type (line 7664) | def named_type(self, name: str) -> Instance:
method named_generic_type (line 7679) | def named_generic_type(self, name: str, args: list[Type]) -> Instance:
method lookup_typeinfo (line 7690) | def lookup_typeinfo(self, fullname: str) -> TypeInfo:
method type_type (line 7697) | def type_type(self) -> Instance:
method str_type (line 7701) | def str_type(self) -> Instance:
method store_type (line 7705) | def store_type(self, node: Expression, typ: Type) -> None:
method has_type (line 7709) | def has_type(self, node: Expression) -> bool:
method lookup_type_or_none (line 7712) | def lookup_type_or_none(self, node: Expression) -> Type | None:
method lookup_type (line 7718) | def lookup_type(self, node: Expression) -> Type:
method store_types (line 7725) | def store_types(self, d: dict[Expression, Type]) -> None:
method local_type_map (line 7729) | def local_type_map(self) -> Iterator[dict[Expression, Type]]:
method in_checked_function (line 7740) | def in_checked_function(self) -> bool:
method lookup (line 7752) | def lookup(self, name: str) -> SymbolTableNode:
method lookup_qualified (line 7765) | def lookup_qualified(self, name: str) -> SymbolTableNode:
method enter_partial_types (line 7797) | def enter_partial_types(
method handle_partial_var_type (line 7853) | def handle_partial_var_type(
method is_defined_in_base_class (line 7882) | def is_defined_in_base_class(self, var: Var) -> bool:
method find_partial_types (line 7889) | def find_partial_types(self, var: Var) -> dict[Var, Context] | None:
method find_partial_types_in_all_scopes (line 7901) | def find_partial_types_in_all_scopes(
method temp_node (line 7926) | def temp_node(self, t: Type, context: Context | None = None) -> TempNode:
method fail (line 7930) | def fail(
method note (line 7939) | def note(
method iterable_item_type (line 7953) | def iterable_item_type(
method function_type (line 7966) | def function_type(self, func: FuncBase) -> FunctionLike:
method push_type_map (line 7969) | def push_type_map(self, type_map: TypeMap, *, from_assignment: bool = ...
method infer_issubclass_maps (line 7977) | def infer_issubclass_maps(self, node: CallExpr, expr: Expression) -> t...
method conditional_types_with_intersection (line 8029) | def conditional_types_with_intersection(
method conditional_types_with_intersection (line 8040) | def conditional_types_with_intersection(
method conditional_types_with_intersection (line 8050) | def conditional_types_with_intersection(
method is_writable_attribute (line 8123) | def is_writable_attribute(self, node: Node) -> bool:
method get_isinstance_type (line 8135) | def get_isinstance_type(self, expr: Expression) -> list[TypeRange] | N...
method is_literal_enum (line 8178) | def is_literal_enum(self, n: Expression) -> bool:
method add_any_attribute_to_type (line 8216) | def add_any_attribute_to_type(self, typ: Type, name: str) -> Type:
method hasattr_type_maps (line 8249) | def hasattr_type_maps(
method partition_union_by_attr (line 8274) | def partition_union_by_attr(
method has_valid_attribute (line 8286) | def has_valid_attribute(self, typ: Type, name: str) -> bool:
method get_expression_type (line 8312) | def get_expression_type(self, node: Expression, type_context: Type | N...
method check_deprecated (line 8315) | def check_deprecated(self, node: Node | None, context: Context) -> None:
method warn_deprecated (line 8328) | def warn_deprecated(self, node: Node | None, context: Context) -> None:
method warn_deprecated_overload_item (line 8340) | def warn_deprecated_overload_item(
class CollectArgTypeVarTypes (line 8356) | class CollectArgTypeVarTypes(TypeTraverserVisitor):
method __init__ (line 8359) | def __init__(self) -> None:
method visit_type_var (line 8362) | def visit_type_var(self, t: TypeVarType) -> None:
function conditional_types (line 8368) | def conditional_types(
function conditional_types (line 8378) | def conditional_types(
function conditional_types (line 8383) | def conditional_types(
function conditional_types_to_typemaps (line 8441) | def conditional_types_to_typemaps(
function gen_unique_name (line 8459) | def gen_unique_name(base: str, table: SymbolTable) -> str:
function is_true_literal (line 8469) | def is_true_literal(n: Expression) -> bool:
function is_false_literal (line 8474) | def is_false_literal(n: Expression) -> bool:
function is_literal_none (line 8479) | def is_literal_none(n: Expression) -> bool:
function is_literal_not_implemented (line 8484) | def is_literal_not_implemented(n: Expression) -> bool:
function _is_empty_generator_function (line 8488) | def _is_empty_generator_function(func: FuncItem) -> bool:
function builtin_item_type (line 8504) | def builtin_item_type(tp: Type) -> Type | None:
function and_conditional_maps (line 8561) | def and_conditional_maps(m1: TypeMap, m2: TypeMap, use_meet: bool = Fals...
function or_conditional_maps (line 8591) | def or_conditional_maps(m1: TypeMap, m2: TypeMap, coalesce_any: bool = F...
function reduce_conditional_maps (line 8617) | def reduce_conditional_maps(
function convert_to_typetype (line 8656) | def convert_to_typetype(type_map: TypeMap) -> TypeMap:
function flatten (line 8672) | def flatten(t: Expression) -> list[Expression]:
function flatten_types (line 8682) | def flatten_types(t: Type) -> list[Type]:
function expand_func (line 8693) | def expand_func(defn: FuncItem, map: dict[TypeVarId, Type]) -> FuncItem:
class TypeTransformVisitor (line 8700) | class TypeTransformVisitor(TransformVisitor):
method __init__ (line 8701) | def __init__(self, map: dict[TypeVarId, Type]) -> None:
method type (line 8705) | def type(self, type: Type) -> Type:
function are_argument_counts_overlapping (line 8709) | def are_argument_counts_overlapping(t: CallableType, s: CallableType) ->...
function expand_callable_variants (line 8716) | def expand_callable_variants(c: CallableType) -> list[CallableType]:
function is_unsafe_overlapping_overload_signatures (line 8745) | def is_unsafe_overlapping_overload_signatures(
function detach_callable (line 8824) | def detach_callable(typ: CallableType, class_type_vars: list[TypeVarLike...
function overload_can_never_match (line 8837) | def overload_can_never_match(signature: CallableType, other: CallableTyp...
function is_more_general_arg_prefix (line 8860) | def is_more_general_arg_prefix(t: FunctionLike, s: FunctionLike) -> bool:
function is_same_arg_prefix (line 8878) | def is_same_arg_prefix(t: CallableType, s: CallableType) -> bool:
function infer_operator_assignment_method (line 8889) | def infer_operator_assignment_method(typ: Type, operator: str) -> tuple[...
function _find_inplace_method (line 8908) | def _find_inplace_method(inst: Instance, method: str, operator: str) -> ...
function is_valid_inferred_type (line 8916) | def is_valid_inferred_type(typ: Type, is_lvalue_final: bool = False) -> ...
class InvalidInferredTypes (line 8941) | class InvalidInferredTypes(BoolTypeQuery):
method __init__ (line 8948) | def __init__(self) -> None:
method visit_uninhabited_type (line 8951) | def visit_uninhabited_type(self, t: UninhabitedType) -> bool:
method visit_erased_type (line 8954) | def visit_erased_type(self, t: ErasedType) -> bool:
method visit_type_var (line 8958) | def visit_type_var(self, t: TypeVarType) -> bool:
class SetNothingToAny (line 8964) | class SetNothingToAny(TypeTranslator):
method visit_uninhabited_type (line 8967) | def visit_uninhabited_type(self, t: UninhabitedType) -> Type:
method visit_type_alias_type (line 8972) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
function is_node_static (line 8978) | def is_node_static(node: Node | None) -> bool | None:
class CheckerScope (line 8990) | class CheckerScope:
method __init__ (line 8994) | def __init__(self, module: MypyFile) -> None:
method top_function (line 8997) | def top_function(self) -> FuncItem | None:
method top_non_lambda_function (line 9003) | def top_non_lambda_function(self) -> FuncItem | None:
method active_class (line 9009) | def active_class(self) -> TypeInfo | None:
method enclosing_class (line 9014) | def enclosing_class(self) -> TypeInfo | None:
method active_self_type (line 9025) | def active_self_type(self) -> Instance | TupleType | None:
method push_function (line 9039) | def push_function(self, item: FuncItem) -> Iterator[None]:
method push_class (line 9045) | def push_class(self, info: TypeInfo) -> Iterator[None]:
class DisjointDict (line 9055) | class DisjointDict(Generic[TKey, TValue]):
method __init__ (line 9082) | def __init__(self) -> None:
method add_mapping (line 9094) | def add_mapping(self, keys: set[TKey], values: set[TValue]) -> None:
method items (line 9114) | def items(self) -> list[tuple[set[TKey], set[TValue]]]:
method _lookup_or_make_root_id (line 9129) | def _lookup_or_make_root_id(self, key: TKey) -> int:
method _lookup_root_id (line 9139) | def _lookup_root_id(self, key: TKey) -> int:
function group_comparison_operands (line 9150) | def group_comparison_operands(
function is_typed_callable (line 9250) | def is_typed_callable(c: Type | None) -> bool:
function is_untyped_decorator (line 9260) | def is_untyped_decorator(typ: Type | None) -> bool:
function is_static (line 9285) | def is_static(func: FuncBase | Decorator) -> bool:
function is_property (line 9293) | def is_property(defn: SymbolNode) -> bool:
function get_property_type (line 9302) | def get_property_type(t: ProperType) -> ProperType:
function is_subset_no_promote (line 9310) | def is_subset_no_promote(left: Type, right: Type) -> bool:
function is_overlapping_types_for_overload (line 9314) | def is_overlapping_types_for_overload(left: Type, right: Type) -> bool:
function is_private (line 9331) | def is_private(node_name: str) -> bool:
function is_string_literal (line 9336) | def is_string_literal(typ: Type) -> bool:
function has_bool_item (line 9341) | def has_bool_item(typ: ProperType) -> bool:
function collapse_walrus (line 9350) | def collapse_walrus(e: Expression) -> Expression:
function find_last_var_assignment_line (line 9361) | def find_last_var_assignment_line(n: Node, v: Var) -> int:
class VarAssignVisitor (line 9373) | class VarAssignVisitor(TraverserVisitor):
method __init__ (line 9374) | def __init__(self, v: Var) -> None:
method visit_assignment_stmt (line 9379) | def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
method visit_name_expr (line 9385) | def visit_name_expr(self, e: NameExpr) -> None:
method visit_member_expr (line 9389) | def visit_member_expr(self, e: MemberExpr) -> None:
method visit_index_expr (line 9395) | def visit_index_expr(self, e: IndexExpr) -> None:
method visit_with_stmt (line 9401) | def visit_with_stmt(self, s: WithStmt) -> None:
method visit_for_stmt (line 9409) | def visit_for_stmt(self, s: ForStmt) -> None:
method visit_assignment_expr (line 9417) | def visit_assignment_expr(self, e: AssignmentExpr) -> None:
method visit_as_pattern (line 9423) | def visit_as_pattern(self, p: AsPattern) -> None:
method visit_starred_pattern (line 9431) | def visit_starred_pattern(self, p: StarredPattern) -> None:
function is_ambiguous_mix_of_enums (line 9438) | def is_ambiguous_mix_of_enums(types: list[Type]) -> bool:
function _ambiguous_enum_variants (line 9456) | def _ambiguous_enum_variants(types: list[Type]) -> set[str]:
FILE: mypy/checkexpr.py
class TooManyUnions (line 243) | class TooManyUnions(Exception):
function allow_fast_container_literal (line 249) | def allow_fast_container_literal(t: Type) -> bool:
function extract_refexpr_names (line 258) | def extract_refexpr_names(expr: RefExpr) -> set[str]:
class Finished (line 290) | class Finished(Exception):
class UseReverse (line 295) | class UseReverse(enum.Enum):
class ExpressionChecker (line 308) | class ExpressionChecker(ExpressionVisitor[Type]):
method __init__ (line 327) | def __init__(
method reset (line 361) | def reset(self) -> None:
method visit_name_expr (line 364) | def visit_name_expr(self, e: NameExpr) -> Type:
method analyze_ref_expr (line 375) | def analyze_ref_expr(self, e: RefExpr, lvalue: bool = False) -> Type:
method analyze_var_ref (line 450) | def analyze_var_ref(self, var: Var, context: Context) -> Type:
method module_type (line 468) | def module_type(self, node: MypyFile) -> Instance:
method visit_call_expr (line 493) | def visit_call_expr(self, e: CallExpr, allow_none_return: bool = False...
method refers_to_typeddict (line 504) | def refers_to_typeddict(self, base: Expression) -> bool:
method visit_call_expr_inner (line 514) | def visit_call_expr_inner(self, e: CallExpr, allow_none_return: bool =...
method check_str_format_call (line 741) | def check_str_format_call(self, e: CallExpr) -> None:
method method_fullname (line 764) | def method_fullname(self, object_type: Type, method_name: str) -> str ...
method always_returns_none (line 792) | def always_returns_none(self, node: Expression) -> bool:
method defn_returns_none (line 814) | def defn_returns_none(self, defn: SymbolNode | None) -> bool:
method check_runtime_protocol_test (line 838) | def check_runtime_protocol_test(self, e: CallExpr) -> None:
method check_protocol_issubclass (line 849) | def check_protocol_issubclass(self, e: CallExpr) -> None:
method check_typeddict_call (line 857) | def check_typeddict_call(
method validate_typeddict_kwargs (line 899) | def validate_typeddict_kwargs(
method validate_star_typeddict_item (line 949) | def validate_star_typeddict_item(
method valid_unpack_fallback_item (line 1005) | def valid_unpack_fallback_item(self, typ: ProperType) -> bool:
method match_typeddict_call_with_dict (line 1013) | def match_typeddict_call_with_dict(
method check_typeddict_call_with_dict (line 1026) | def check_typeddict_call_with_dict(
method typeddict_callable (line 1046) | def typeddict_callable(self, info: TypeInfo) -> CallableType:
method typeddict_callable_from_context (line 1070) | def typeddict_callable_from_context(self, callee: TypedDictType) -> Ca...
method check_typeddict_call_with_kwargs (line 1082) | def check_typeddict_call_with_kwargs(
method get_partial_self_var (line 1177) | def get_partial_self_var(self, expr: MemberExpr) -> Var | None:
method try_infer_partial_type (line 1211) | def try_infer_partial_type(self, e: CallExpr) -> None:
method get_partial_var (line 1251) | def get_partial_var(self, ref: RefExpr) -> tuple[Var, dict[Var, Contex...
method try_infer_partial_value_type_from_call (line 1262) | def try_infer_partial_value_type_from_call(
method apply_function_plugin (line 1305) | def apply_function_plugin(
method apply_signature_hook (line 1378) | def apply_signature_hook(
method apply_function_signature_hook (line 1410) | def apply_function_signature_hook(
method apply_method_signature_hook (line 1428) | def apply_method_signature_hook(
method transform_callee_type (line 1452) | def transform_callee_type(
method is_generic_decorator_overload_call (line 1493) | def is_generic_decorator_overload_call(
method handle_decorator_overload_call (line 1512) | def handle_decorator_overload_call(
method check_call_expr_with_callee_type (line 1542) | def check_call_expr_with_callee_type(
method check_union_call_expr (line 1597) | def check_union_call_expr(self, e: CallExpr, object_type: UnionType, m...
method check_call (line 1626) | def check_call(
method check_callable_call (line 1754) | def check_callable_call(
method can_return_none (line 1941) | def can_return_none(self, type: TypeInfo, attr_name: str) -> bool:
method analyze_type_type_callee (line 1965) | def analyze_type_type_callee(self, item: ProperType, context: Context)...
method infer_arg_types_in_empty_context (line 2011) | def infer_arg_types_in_empty_context(self, args: list[Expression]) -> ...
method infer_more_unions_for_recursive_type (line 2027) | def infer_more_unions_for_recursive_type(self, type_context: Type) -> ...
method infer_arg_types_in_context (line 2043) | def infer_arg_types_in_context(
method infer_function_type_arguments_using_context (line 2080) | def infer_function_type_arguments_using_context(
method infer_function_type_arguments (line 2160) | def infer_function_type_arguments(
method infer_function_type_arguments_pass2 (line 2299) | def infer_function_type_arguments_pass2(
method argument_infer_context (line 2355) | def argument_infer_context(self) -> ArgumentInferContext:
method get_arg_infer_passes (line 2360) | def get_arg_infer_passes(
method apply_inferred_arguments (line 2407) | def apply_inferred_arguments(
method check_argument_count (line 2427) | def check_argument_count(
method check_for_extra_actual_arguments (line 2498) | def check_for_extra_actual_arguments(
method missing_classvar_callable_note (line 2559) | def missing_classvar_callable_note(
method check_argument_types (line 2573) | def check_argument_types(
method check_arg (line 2716) | def check_arg(
method check_overload_call (line 2756) | def check_overload_call(
method plausible_overload_call_targets (line 2902) | def plausible_overload_call_targets(
method infer_overload_return_type (line 2961) | def infer_overload_return_type(
method overload_erased_call_targets (line 3056) | def overload_erased_call_targets(
method possible_none_type_var_overlap (line 3077) | def possible_none_type_var_overlap(
method union_overload_result (line 3115) | def union_overload_result(
method real_union (line 3217) | def real_union(self, typ: Type) -> bool:
method type_overrides_set (line 3222) | def type_overrides_set(
method combine_function_signatures (line 3235) | def combine_function_signatures(self, types: list[ProperType]) -> AnyT...
method erased_signature_similarity (line 3317) | def erased_signature_similarity(
method apply_generic_arguments (line 3370) | def apply_generic_arguments(
method check_any_type_call (line 3386) | def check_any_type_call(self, args: list[Expression], callee: Type) ->...
method check_union_call (line 3399) | def check_union_call(
method check_intersection_call (line 3415) | def check_intersection_call(
method visit_member_expr (line 3466) | def visit_member_expr(self, e: MemberExpr, is_lvalue: bool = False) ->...
method analyze_ordinary_member_access (line 3474) | def analyze_ordinary_member_access(self, e: MemberExpr, is_lvalue: boo...
method analyze_external_member_access (line 3511) | def analyze_external_member_access(
method is_literal_context (line 3531) | def is_literal_context(self) -> bool:
method infer_literal_expr_type (line 3534) | def infer_literal_expr_type(self, value: LiteralValue, fallback_name: ...
method concat_tuples (line 3561) | def concat_tuples(self, left: TupleType, right: TupleType) -> TupleType:
method visit_int_expr (line 3568) | def visit_int_expr(self, e: IntExpr) -> Type:
method visit_str_expr (line 3572) | def visit_str_expr(self, e: StrExpr) -> Type:
method visit_bytes_expr (line 3576) | def visit_bytes_expr(self, e: BytesExpr) -> Type:
method visit_float_expr (line 3580) | def visit_float_expr(self, e: FloatExpr) -> Type:
method visit_complex_expr (line 3584) | def visit_complex_expr(self, e: ComplexExpr) -> Type:
method visit_ellipsis (line 3588) | def visit_ellipsis(self, e: EllipsisExpr) -> Type:
method visit_op_expr (line 3592) | def visit_op_expr(self, e: OpExpr) -> Type:
method visit_comparison_expr (line 3701) | def visit_comparison_expr(self, e: ComparisonExpr) -> Type:
method find_partial_type_ref_fast_path (line 3850) | def find_partial_type_ref_fast_path(self, expr: Expression) -> Type | ...
method dangerous_comparison (line 3866) | def dangerous_comparison(
method check_method_call_by_name (line 3991) | def check_method_call_by_name(
method check_union_method_call_by_name (line 4028) | def check_union_method_call_by_name(
method check_method_call (line 4056) | def check_method_call(
method check_op_reversible (line 4086) | def check_op_reversible(
method check_op (line 4282) | def check_op(
method check_boolean_op (line 4393) | def check_boolean_op(self, e: OpExpr, context: Context) -> Type:
method check_list_multiply (line 4468) | def check_list_multiply(self, e: OpExpr) -> Type:
method visit_assignment_expr (line 4484) | def visit_assignment_expr(self, e: AssignmentExpr) -> Type:
method visit_unary_expr (line 4495) | def visit_unary_expr(self, e: UnaryExpr) -> Type:
method visit_index_expr (line 4508) | def visit_index_expr(self, e: IndexExpr) -> Type:
method visit_index_expr_helper (line 4524) | def visit_index_expr_helper(self, e: IndexExpr) -> Type:
method visit_index_with_type (line 4531) | def visit_index_with_type(
method min_tuple_length (line 4607) | def min_tuple_length(self, left: TupleType) -> int:
method visit_tuple_index_helper (line 4617) | def visit_tuple_index_helper(self, left: TupleType, n: int) -> Type | ...
method visit_tuple_slice_helper (line 4665) | def visit_tuple_slice_helper(self, left_type: TupleType, slic: SliceEx...
method try_getting_int_literals (line 4697) | def try_getting_int_literals(self, index: Expression) -> list[int] | N...
method nonliteral_tuple_index_helper (line 4735) | def nonliteral_tuple_index_helper(self, left_type: TupleType, index: E...
method union_tuple_fallback_item (line 4743) | def union_tuple_fallback_item(self, left_type: TupleType) -> Type:
method visit_typeddict_index_expr (line 4762) | def visit_typeddict_index_expr(
method visit_enum_index_expr (line 4799) | def visit_enum_index_expr(
method visit_cast_expr (line 4812) | def visit_cast_expr(self, expr: CastExpr) -> Type:
method visit_assert_type_expr (line 4841) | def visit_assert_type_expr(self, expr: AssertTypeExpr) -> Type:
method visit_reveal_expr (line 4867) | def visit_reveal_expr(self, expr: RevealExpr) -> Type:
method check_reveal_imported (line 4916) | def check_reveal_imported(self, expr: RevealExpr) -> None:
method visit_type_application (line 4939) | def visit_type_application(self, tapp: TypeApplication) -> Type:
method visit_type_alias_expr (line 4986) | def visit_type_alias_expr(self, alias: TypeAliasExpr) -> Type:
method alias_type_in_runtime_context (line 5000) | def alias_type_in_runtime_context(
method split_for_callable (line 5073) | def split_for_callable(
method apply_type_arguments_to_callable (line 5129) | def apply_type_arguments_to_callable(
method visit_list_expr (line 5219) | def visit_list_expr(self, e: ListExpr) -> Type:
method visit_set_expr (line 5223) | def visit_set_expr(self, e: SetExpr) -> Type:
method fast_container_type (line 5226) | def fast_container_type(
method check_lst_expr (line 5260) | def check_lst_expr(self, e: ListExpr | SetExpr | TupleExpr, fullname: ...
method tuple_context_matches (line 5295) | def tuple_context_matches(self, expr: TupleExpr, ctx: TupleType) -> bool:
method visit_tuple_expr (line 5308) | def visit_tuple_expr(self, e: TupleExpr) -> Type:
method fast_dict_type (line 5413) | def fast_dict_type(self, e: DictExpr) -> Type | None:
method check_typeddict_literal_in_context (line 5460) | def check_typeddict_literal_in_context(
method visit_dict_expr (line 5471) | def visit_dict_expr(self, e: DictExpr) -> Type:
method find_typeddict_context (line 5553) | def find_typeddict_context(
method visit_lambda_expr (line 5572) | def visit_lambda_expr(self, e: LambdaExpr) -> Type:
method infer_lambda_type_using_context (line 5656) | def infer_lambda_type_using_context(
method visit_super_expr (line 5733) | def visit_super_expr(self, e: SuperExpr) -> Type:
method _super_arg_types (line 5817) | def _super_arg_types(self, e: SuperExpr) -> Type | tuple[Type, Type]:
method visit_slice_expr (line 5899) | def visit_slice_expr(self, e: SliceExpr) -> Type:
method visit_list_comprehension (line 5915) | def visit_list_comprehension(self, e: ListComprehension) -> Type:
method visit_set_comprehension (line 5920) | def visit_set_comprehension(self, e: SetComprehension) -> Type:
method visit_generator_expr (line 5925) | def visit_generator_expr(self, e: GeneratorExpr) -> Type:
method check_generator_or_comprehension (line 5945) | def check_generator_or_comprehension(
method visit_dictionary_comprehension (line 5979) | def visit_dictionary_comprehension(self, e: DictionaryComprehension) -...
method check_for_comp (line 6015) | def check_for_comp(self, e: GeneratorExpr | DictionaryComprehension) -...
method visit_conditional_expr (line 6044) | def visit_conditional_expr(self, e: ConditionalExpr, allow_none_return...
method analyze_cond_branch (line 6125) | def analyze_cond_branch(
method accept (line 6148) | def accept(
method named_type (line 6216) | def named_type(self, name: str) -> Instance:
method type_alias_type_type (line 6222) | def type_alias_type_type(self) -> Instance:
method is_valid_var_arg (line 6228) | def is_valid_var_arg(self, typ: Type) -> bool:
method is_valid_keyword_var_arg (line 6235) | def is_valid_keyword_var_arg(self, typ: Type) -> bool:
method has_member (line 6254) | def has_member(self, typ: Type, member: str) -> bool:
method not_ready_callback (line 6293) | def not_ready_callback(self, name: str, context: Context) -> None:
method visit_yield_expr (line 6301) | def visit_yield_expr(self, e: YieldExpr) -> Type:
method visit_await_expr (line 6322) | def visit_await_expr(self, e: AwaitExpr, allow_none_return: bool = Fal...
method check_awaitable_expr (line 6336) | def check_awaitable_expr(
method visit_yield_from_expr (line 6359) | def visit_yield_from_expr(self, e: YieldFromExpr, allow_none_return: b...
method visit_temp_node (line 6418) | def visit_temp_node(self, e: TempNode) -> Type:
method visit_type_var_expr (line 6421) | def visit_type_var_expr(self, e: TypeVarExpr) -> Type:
method visit_paramspec_expr (line 6433) | def visit_paramspec_expr(self, e: ParamSpecExpr) -> Type:
method visit_type_var_tuple_expr (line 6436) | def visit_type_var_tuple_expr(self, e: TypeVarTupleExpr) -> Type:
method visit_newtype_expr (line 6439) | def visit_newtype_expr(self, e: NewTypeExpr) -> Type:
method visit_namedtuple_expr (line 6442) | def visit_namedtuple_expr(self, e: NamedTupleExpr) -> Type:
method visit_enum_call_expr (line 6454) | def visit_enum_call_expr(self, e: EnumCallExpr) -> Type:
method visit_typeddict_expr (line 6469) | def visit_typeddict_expr(self, e: TypedDictExpr) -> Type:
method visit__promote_expr (line 6472) | def visit__promote_expr(self, e: PromoteExpr) -> Type:
method visit_star_expr (line 6475) | def visit_star_expr(self, e: StarExpr) -> Type:
method object_type (line 6479) | def object_type(self) -> Instance:
method bool_type (line 6483) | def bool_type(self) -> Instance:
method narrow_type_from_binder (line 6488) | def narrow_type_from_binder(self, expr: Expression, known_type: Type) ...
method narrow_type_from_binder (line 6491) | def narrow_type_from_binder(
method narrow_type_from_binder (line 6495) | def narrow_type_from_binder(
method has_abstract_type_part (line 6519) | def has_abstract_type_part(self, caller_type: ProperType, callee_type:...
method has_abstract_type (line 6528) | def has_abstract_type(self, caller_type: ProperType, callee_type: Prop...
function has_any_type (line 6540) | def has_any_type(
function has_untyped_type (line 6547) | def has_untyped_type(t: Type, ignore_in_type_obj: bool = False) -> bool:
class HasAnyType (line 6552) | class HasAnyType(types.BoolTypeQuery):
method __init__ (line 6553) | def __init__(self, ignore_in_type_obj: bool, ignore_any_from_error: bo...
method visit_any (line 6558) | def visit_any(self, t: AnyType) -> bool:
method visit_callable_type (line 6570) | def visit_callable_type(self, t: CallableType) -> bool:
method visit_type_var (line 6575) | def visit_type_var(self, t: TypeVarType) -> bool:
method visit_param_spec (line 6579) | def visit_param_spec(self, t: ParamSpecType) -> bool:
method visit_type_var_tuple (line 6583) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> bool:
class HasUntypedType (line 6588) | class HasUntypedType(HasAnyType):
method __init__ (line 6589) | def __init__(self) -> None:
method visit_any (line 6592) | def visit_any(self, t: AnyType) -> bool:
function has_coroutine_decorator (line 6599) | def has_coroutine_decorator(t: Type) -> bool:
function is_async_def (line 6605) | def is_async_def(t: Type) -> bool:
function is_non_empty_tuple (line 6629) | def is_non_empty_tuple(t: Type) -> bool:
function is_duplicate_mapping (line 6634) | def is_duplicate_mapping(
function replace_callable_return_type (line 6659) | def replace_callable_return_type(c: CallableType, new_ret_type: Type) ->...
class ArgInferSecondPassQuery (line 6664) | class ArgInferSecondPassQuery(types.BoolTypeQuery):
method __init__ (line 6672) | def __init__(self) -> None:
method visit_callable_type (line 6675) | def visit_callable_type(self, t: CallableType) -> bool:
function has_erased_component (line 6680) | def has_erased_component(t: Type | None) -> bool:
class HasErasedComponentsQuery (line 6684) | class HasErasedComponentsQuery(types.BoolTypeQuery):
method __init__ (line 6687) | def __init__(self) -> None:
method visit_erased_type (line 6690) | def visit_erased_type(self, t: ErasedType) -> bool:
function has_uninhabited_component (line 6694) | def has_uninhabited_component(t: Type | None) -> bool:
class HasUninhabitedComponentsQuery (line 6698) | class HasUninhabitedComponentsQuery(types.BoolTypeQuery):
method __init__ (line 6701) | def __init__(self) -> None:
method visit_uninhabited_type (line 6704) | def visit_uninhabited_type(self, t: UninhabitedType) -> bool:
function arg_approximate_similarity (line 6708) | def arg_approximate_similarity(actual: Type, formal: Type) -> bool:
function any_causes_overload_ambiguity (line 6771) | def any_causes_overload_ambiguity(
function all_same_types (line 6829) | def all_same_types(types: list[Type]) -> bool:
function merge_typevars_in_callables_by_name (line 6835) | def merge_typevars_in_callables_by_name(
function try_getting_literal (line 6880) | def try_getting_literal(typ: Type) -> ProperType:
function is_expr_literal_type (line 6888) | def is_expr_literal_type(node: Expression) -> bool:
function has_bytes_component (line 6901) | def has_bytes_component(typ: Type) -> bool:
function type_info_from_type (line 6912) | def type_info_from_type(typ: Type) -> TypeInfo | None:
function is_operator_method (line 6931) | def is_operator_method(fullname: str | None) -> bool:
function get_partial_instance_type (line 6942) | def get_partial_instance_type(t: Type | None) -> PartialType | None:
function is_type_type_context (line 6948) | def is_type_type_context(context: Type | None) -> bool:
FILE: mypy/checkmember.py
class MemberContext (line 86) | class MemberContext:
method __init__ (line 92) | def __init__(
method named_type (line 119) | def named_type(self, name: str) -> Instance:
method not_ready_callback (line 122) | def not_ready_callback(self, name: str, context: Context) -> None:
method copy_modified (line 125) | def copy_modified(
function analyze_member_access (line 156) | def analyze_member_access(
function _analyze_member_access (line 222) | def _analyze_member_access(
function may_be_awaitable_attribute (line 266) | def may_be_awaitable_attribute(
function report_missing_attribute (line 281) | def report_missing_attribute(
function analyze_instance_member_access (line 299) | def analyze_instance_member_access(
function validate_super_call (line 373) | def validate_super_call(node: FuncBase, mx: MemberContext) -> None:
function analyze_type_callable_member_access (line 386) | def analyze_type_callable_member_access(name: str, typ: FunctionLike, mx...
function analyze_type_type_member_access (line 422) | def analyze_type_type_member_access(
function analyze_union_member_access (line 478) | def analyze_union_member_access(name: str, typ: UnionType, mx: MemberCon...
function analyze_intersection_member_access (line 488) | def analyze_intersection_member_access(
function analyze_none_member_access (line 505) | def analyze_none_member_access(name: str, typ: NoneType, mx: MemberConte...
function analyze_member_var_access (line 519) | def analyze_member_var_access(
function check_final_member (line 667) | def check_final_member(name: str, info: TypeInfo, msg: MessageBuilder, c...
function analyze_descriptor_access (line 675) | def analyze_descriptor_access(
function is_instance_var (line 781) | def is_instance_var(var: Var) -> bool:
function analyze_var (line 793) | def analyze_var(
function expand_self_type_if_needed (line 901) | def expand_self_type_if_needed(
function freeze_all_type_vars (line 945) | def freeze_all_type_vars(member_type: Type) -> None:
class FreezeTypeVarsVisitor (line 949) | class FreezeTypeVarsVisitor(TypeTraverserVisitor):
method visit_callable_type (line 950) | def visit_callable_type(self, t: CallableType) -> None:
function lookup_member_var_or_accessor (line 956) | def lookup_member_var_or_accessor(info: TypeInfo, name: str, is_lvalue: ...
function check_self_arg (line 966) | def check_self_arg(
function analyze_class_attribute_access (line 1023) | def analyze_class_attribute_access(
function apply_class_attr_hook (line 1216) | def apply_class_attr_hook(
function analyze_enum_class_attribute_access (line 1228) | def analyze_enum_class_attribute_access(
function analyze_typeddict_access (line 1253) | def analyze_typeddict_access(
function add_class_tvars (line 1292) | def add_class_tvars(
function type_object_type (line 1368) | def type_object_type(info: TypeInfo, named_type: Callable[[str], Instanc...
function analyze_decorator_or_funcbase_access (line 1439) | def analyze_decorator_or_funcbase_access(
function is_valid_constructor (line 1459) | def is_valid_constructor(n: SymbolNode | None) -> bool:
FILE: mypy/checkpattern.py
class PatternType (line 80) | class PatternType(NamedTuple):
class PatternChecker (line 86) | class PatternChecker(PatternVisitor[PatternType]):
method __init__ (line 114) | def __init__(
method accept (line 128) | def accept(self, o: Pattern, type_context: Type) -> PatternType:
method visit_as_pattern (line 135) | def visit_as_pattern(self, o: AsPattern) -> PatternType:
method visit_or_pattern (line 152) | def visit_or_pattern(self, o: OrPattern) -> PatternType:
method visit_value_pattern (line 202) | def visit_value_pattern(self, o: ValuePattern) -> PatternType:
method visit_singleton_pattern (line 213) | def visit_singleton_pattern(self, o: SingletonPattern) -> PatternType:
method visit_sequence_pattern (line 228) | def visit_sequence_pattern(self, o: SequencePattern) -> PatternType:
method get_sequence_type (line 354) | def get_sequence_type(self, t: Type, context: Context) -> Type | None:
method contract_starred_pattern_types (line 373) | def contract_starred_pattern_types(
method expand_starred_pattern_types (line 422) | def expand_starred_pattern_types(
method narrow_sequence_child (line 450) | def narrow_sequence_child(self, outer_type: Type, inner_type: Type, ct...
method visit_starred_pattern (line 460) | def visit_starred_pattern(self, o: StarredPattern) -> PatternType:
method visit_mapping_pattern (line 467) | def visit_mapping_pattern(self, o: MappingPattern) -> PatternType:
method get_mapping_item_type (line 503) | def get_mapping_item_type(
method get_simple_mapping_item_type (line 526) | def get_simple_mapping_item_type(
method visit_class_pattern (line 534) | def visit_class_pattern(self, o: ClassPattern) -> PatternType:
method should_self_match (line 704) | def should_self_match(self, typ: Type) -> bool:
method can_match_sequence (line 715) | def can_match_sequence(self, typ: ProperType) -> bool:
method generate_types_from_names (line 729) | def generate_types_from_names(self, type_names: list[str]) -> list[Type]:
method update_type_map (line 740) | def update_type_map(
method construct_sequence_child (line 755) | def construct_sequence_child(self, outer_type: Type, inner_type: Type)...
method early_non_match (line 788) | def early_non_match(self) -> PatternType:
function get_match_arg_names (line 792) | def get_match_arg_names(typ: TupleType) -> list[str | None]:
function get_var (line 803) | def get_var(expr: Expression) -> Var:
function get_type_range (line 814) | def get_type_range(typ: Type) -> mypy.checker.TypeRange:
function is_uninhabited (line 825) | def is_uninhabited(typ: Type) -> bool:
FILE: mypy/checkstrformat.py
function compile_format_re (line 81) | def compile_format_re() -> Pattern[str]:
function compile_new_format_re (line 97) | def compile_new_format_re(custom_spec: bool) -> Pattern[str]:
class ConversionSpecifier (line 146) | class ConversionSpecifier:
method __init__ (line 147) | def __init__(
method has_key (line 171) | def has_key(self) -> bool:
method has_star (line 174) | def has_star(self) -> bool:
function parse_conversion_specifiers (line 178) | def parse_conversion_specifiers(format_str: str) -> list[ConversionSpeci...
function parse_format_value (line 186) | def parse_format_value(
function find_non_escaped_targets (line 242) | def find_non_escaped_targets(
class StringFormatterChecker (line 299) | class StringFormatterChecker:
method __init__ (line 312) | def __init__(
method check_str_format_call (line 323) | def check_str_format_call(self, call: CallExpr, format_value: str) -> ...
method check_specs_in_format_call (line 360) | def check_specs_in_format_call(
method helpful_check (line 445) | def helpful_check(self, actual_type: ProperType, context: Context) -> ...
method perform_special_format_checks (line 490) | def perform_special_format_checks(
method find_replacements_in_call (line 545) | def find_replacements_in_call(self, call: CallExpr, keys: list[str]) -...
method get_expr_by_position (line 581) | def get_expr_by_position(self, pos: int, call: CallExpr) -> Expression...
method get_expr_by_name (line 607) | def get_expr_by_name(self, key: str, call: CallExpr) -> Expression | N...
method auto_generate_keys (line 634) | def auto_generate_keys(self, all_specs: list[ConversionSpecifier], ctx...
method apply_field_accessors (line 663) | def apply_field_accessors(
method validate_and_transform_accessors (line 703) | def validate_and_transform_accessors(
method check_str_interpolation (line 763) | def check_str_interpolation(self, expr: FormatStringExpr, replacements...
method analyze_conversion_specifiers (line 784) | def analyze_conversion_specifiers(
method check_simple_str_interpolation (line 801) | def check_simple_str_interpolation(
method check_mapping_str_interpolation (line 874) | def check_mapping_str_interpolation(
method build_dict_type (line 934) | def build_dict_type(self, expr: FormatStringExpr) -> Type:
method build_replacement_checkers (line 950) | def build_replacement_checkers(
method replacement_checkers (line 961) | def replacement_checkers(
method checkers_for_star (line 987) | def checkers_for_star(self, context: Context) -> Checkers:
method check_placeholder_type (line 1005) | def check_placeholder_type(self, typ: Type, expected_type: Type, conte...
method check_builtins_type (line 1016) | def check_builtins_type(self, typ: Type, context: Context) -> bool:
method check_datetime (line 1036) | def check_datetime(self, typ: Type, spec: str, ctx: Context):
method checkers_for_regular_type (line 1085) | def checkers_for_regular_type(
method check_s_special_cases (line 1108) | def check_s_special_cases(self, expr: FormatStringExpr, typ: Type, con...
method checkers_for_c_type (line 1131) | def checkers_for_c_type(
method conversion_type (line 1174) | def conversion_type(
method named_type (line 1233) | def named_type(self, name: str) -> Instance:
method accept (line 1239) | def accept(self, expr: Expression, context: Type | None = None) -> Type:
function has_type_component (line 1244) | def has_type_component(typ: Type, fullname: str) -> bool:
FILE: mypy/config_parser.py
function parse_version (line 31) | def parse_version(v: str | float) -> tuple[int, int]:
function try_split (line 55) | def try_split(v: str | Sequence[str], split_regex: str = "[,]") -> list[...
function validate_codes (line 63) | def validate_codes(codes: list[str]) -> list[str]:
function validate_package_allow_list (line 72) | def validate_package_allow_list(allow_list: list[str]) -> list[str]:
function expand_path (line 86) | def expand_path(path: str) -> str:
function str_or_array_as_list (line 94) | def str_or_array_as_list(v: str | Sequence[str]) -> list[str]:
function split_and_match_files_list (line 100) | def split_and_match_files_list(paths: Sequence[str]) -> list[str]:
function split_and_match_files (line 120) | def split_and_match_files(paths: str) -> list[str]:
function check_follow_imports (line 132) | def check_follow_imports(choice: str) -> str:
function check_junit_format (line 143) | def check_junit_format(choice: str) -> str:
function split_commas (line 154) | def split_commas(value: str) -> list[str]:
function parse_config_file (line 220) | def parse_config_file(
function get_prefix (line 332) | def get_prefix(file_read: str, name: str) -> str:
function is_toml (line 341) | def is_toml(filename: str) -> bool:
function destructure_overrides (line 345) | def destructure_overrides(toml_data: dict[str, Any]) -> dict[str, Any]:
function parse_section (line 428) | def parse_section(
function convert_to_boolean (line 534) | def convert_to_boolean(value: Any | None) -> bool:
function split_directive (line 545) | def split_directive(s: str) -> tuple[list[str], list[str]]:
function mypy_comments_to_config_map (line 574) | def mypy_comments_to_config_map(line: str, template: Options) -> tuple[d...
function parse_mypy_comments (line 593) | def parse_mypy_comments(
function get_config_module_names (line 642) | def get_config_module_names(filename: str | None, modules: list[str]) ->...
class ConfigTOMLValueError (line 652) | class ConfigTOMLValueError(ValueError):
FILE: mypy/constant_fold.py
function constant_fold_expr (line 27) | def constant_fold_expr(expr: Expression, cur_mod_id: str) -> ConstantVal...
function constant_fold_binary_op (line 79) | def constant_fold_binary_op(
function constant_fold_binary_int_op (line 114) | def constant_fold_binary_int_op(op: str, left: int, right: int) -> int |...
function constant_fold_binary_float_op (line 150) | def constant_fold_binary_float_op(op: str, left: int | float, right: int...
function constant_fold_unary_op (line 180) | def constant_fold_unary_op(op: str, value: ConstantValue) -> int | float...
FILE: mypy/constraints.py
class Constraint (line 73) | class Constraint:
method __init__ (line 83) | def __init__(self, type_var: TypeVarLikeType, op: int, target: Type) -...
method __repr__ (line 95) | def __repr__(self) -> str:
method __hash__ (line 101) | def __hash__(self) -> int:
method __eq__ (line 104) | def __eq__(self, other: object) -> bool:
function infer_constraints_for_callable (line 110) | def infer_constraints_for_callable(
function infer_constraints (line 279) | def infer_constraints(
function _infer_constraints (line 323) | def _infer_constraints(
function _is_type_type (line 474) | def _is_type_type(tp: ProperType) -> TypeGuard[TypeType | UnionType]:
function _unwrap_type_type (line 487) | def _unwrap_type_type(tp: TypeType | UnionType) -> ProperType:
function infer_constraints_if_possible (line 494) | def infer_constraints_if_possible(
function select_trivial (line 520) | def select_trivial(options: Sequence[list[Constraint] | None]) -> list[l...
function merge_with_any (line 531) | def merge_with_any(constraint: Constraint) -> Constraint:
function handle_recursive_union (line 546) | def handle_recursive_union(template: UnionType, actual: Type, direction:...
function any_constraints (line 559) | def any_constraints(options: list[list[Constraint] | None], eager: bool)...
function filter_satisfiable (line 611) | def filter_satisfiable(option: list[Constraint] | None) -> list[Constrai...
function is_same_constraints (line 634) | def is_same_constraints(x: list[Constraint], y: list[Constraint]) -> bool:
function is_same_constraint (line 644) | def is_same_constraint(c1: Constraint, c2: Constraint) -> bool:
function is_similar_constraints (line 656) | def is_similar_constraints(x: list[Constraint], y: list[Constraint]) -> ...
function _is_similar_constraints (line 666) | def _is_similar_constraints(x: list[Constraint], y: list[Constraint]) ->...
function simplify_away_incomplete_types (line 686) | def simplify_away_incomplete_types(types: Iterable[Type]) -> list[Type]:
function is_complete_type (line 694) | def is_complete_type(typ: Type) -> bool:
class CompleteTypeVisitor (line 703) | class CompleteTypeVisitor(TypeQuery[bool]):
method __init__ (line 704) | def __init__(self) -> None:
method visit_uninhabited_type (line 707) | def visit_uninhabited_type(self, t: UninhabitedType) -> bool:
class ConstraintBuilderVisitor (line 711) | class ConstraintBuilderVisitor(TypeVisitor[list[Constraint]]):
method __init__ (line 718) | def __init__(self, actual: ProperType, direction: int, skip_neg_op: bo...
method visit_unbound_type (line 729) | def visit_unbound_type(self, template: UnboundType) -> list[Constraint]:
method visit_any (line 732) | def visit_any(self, template: AnyType) -> list[Constraint]:
method visit_none_type (line 735) | def visit_none_type(self, template: NoneType) -> list[Constraint]:
method visit_uninhabited_type (line 738) | def visit_uninhabited_type(self, template: UninhabitedType) -> list[Co...
method visit_erased_type (line 741) | def visit_erased_type(self, template: ErasedType) -> list[Constraint]:
method visit_deleted_type (line 744) | def visit_deleted_type(self, template: DeletedType) -> list[Constraint]:
method visit_literal_type (line 747) | def visit_literal_type(self, template: LiteralType) -> list[Constraint]:
method visit_partial_type (line 752) | def visit_partial_type(self, template: PartialType) -> list[Constraint]:
method visit_type_var (line 758) | def visit_type_var(self, template: TypeVarType) -> list[Constraint]:
method visit_param_spec (line 764) | def visit_param_spec(self, template: ParamSpecType) -> list[Constraint]:
method visit_type_var_tuple (line 768) | def visit_type_var_tuple(self, template: TypeVarTupleType) -> list[Con...
method visit_unpack_type (line 771) | def visit_unpack_type(self, template: UnpackType) -> list[Constraint]:
method visit_parameters (line 774) | def visit_parameters(self, template: Parameters) -> list[Constraint]:
method visit_instance (line 792) | def visit_instance(self, template: Instance) -> list[Constraint]:
method infer_constraints_from_protocol_members (line 1066) | def infer_constraints_from_protocol_members(
method visit_callable_type (line 1096) | def visit_callable_type(self, template: CallableType) -> list[Constrai...
method infer_against_overloaded (line 1254) | def infer_against_overloaded(
method visit_tuple_type (line 1265) | def visit_tuple_type(self, template: TupleType) -> list[Constraint]:
method visit_typeddict_type (line 1362) | def visit_typeddict_type(self, template: TypedDictType) -> list[Constr...
method visit_union_type (line 1376) | def visit_union_type(self, template: UnionType) -> list[Constraint]:
method visit_intersection_type (line 1382) | def visit_intersection_type(self, template: IntersectionType) -> list[...
method visit_type_alias_type (line 1385) | def visit_type_alias_type(self, template: TypeAliasType) -> list[Const...
method infer_against_any (line 1388) | def infer_against_any(self, types: Iterable[Type], any_type: AnyType) ...
method visit_overloaded (line 1405) | def visit_overloaded(self, template: Overloaded) -> list[Constraint]:
method visit_type_type (line 1415) | def visit_type_type(self, template: TypeType) -> list[Constraint]:
function neg_op (line 1428) | def neg_op(op: int) -> int:
function find_matching_overload_item (line 1439) | def find_matching_overload_item(overloaded: Overloaded, template: Callab...
function find_matching_overload_items (line 1458) | def find_matching_overload_items(
function get_tuple_fallback_from_unpack (line 1482) | def get_tuple_fallback_from_unpack(unpack: UnpackType) -> TypeInfo:
function repack_callable_args (line 1496) | def repack_callable_args(callable: CallableType, tuple_type: TypeInfo) -...
function build_constraints_for_simple_unpack (line 1522) | def build_constraints_for_simple_unpack(
function infer_directed_arg_constraints (line 1618) | def infer_directed_arg_constraints(left: Type, right: Type, direction: i...
function infer_callable_arguments_constraints (line 1633) | def infer_callable_arguments_constraints(
function filter_imprecise_kinds (line 1706) | def filter_imprecise_kinds(cs: list[Constraint]) -> list[Constraint]:
FILE: mypy/copytype.py
function copy_type (line 35) | def copy_type(t: ProperType) -> ProperType:
class TypeShallowCopier (line 46) | class TypeShallowCopier(TypeVisitor[ProperType]):
method visit_unbound_type (line 47) | def visit_unbound_type(self, t: UnboundType) -> ProperType:
method visit_any (line 50) | def visit_any(self, t: AnyType) -> ProperType:
method visit_none_type (line 53) | def visit_none_type(self, t: NoneType) -> ProperType:
method visit_uninhabited_type (line 56) | def visit_uninhabited_type(self, t: UninhabitedType) -> ProperType:
method visit_erased_type (line 61) | def visit_erased_type(self, t: ErasedType) -> ProperType:
method visit_deleted_type (line 64) | def visit_deleted_type(self, t: DeletedType) -> ProperType:
method visit_instance (line 67) | def visit_instance(self, t: Instance) -> ProperType:
method visit_type_var (line 73) | def visit_type_var(self, t: TypeVarType) -> ProperType:
method visit_param_spec (line 76) | def visit_param_spec(self, t: ParamSpecType) -> ProperType:
method visit_parameters (line 82) | def visit_parameters(self, t: Parameters) -> ProperType:
method visit_type_var_tuple (line 92) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> ProperType:
method visit_unpack_type (line 98) | def visit_unpack_type(self, t: UnpackType) -> ProperType:
method visit_partial_type (line 102) | def visit_partial_type(self, t: PartialType) -> ProperType:
method visit_callable_type (line 105) | def visit_callable_type(self, t: CallableType) -> ProperType:
method visit_tuple_type (line 108) | def visit_tuple_type(self, t: TupleType) -> ProperType:
method visit_typeddict_type (line 111) | def visit_typeddict_type(self, t: TypedDictType) -> ProperType:
method visit_literal_type (line 116) | def visit_literal_type(self, t: LiteralType) -> ProperType:
method visit_union_type (line 119) | def visit_union_type(self, t: UnionType) -> ProperType:
method visit_intersection_type (line 122) | def visit_intersection_type(self, t: IntersectionType) -> ProperType:
method visit_overloaded (line 125) | def visit_overloaded(self, t: Overloaded) -> ProperType:
method visit_type_type (line 128) | def visit_type_type(self, t: TypeType) -> ProperType:
method visit_type_alias_type (line 132) | def visit_type_alias_type(self, t: TypeAliasType) -> ProperType:
method copy_common (line 135) | def copy_common(self, t: ProperType, t2: ProperType) -> ProperType:
FILE: mypy/defaults.py
function find_pyproject (line 16) | def find_pyproject() -> str:
FILE: mypy/dmypy/client.py
class AugmentedHelpFormatter (line 31) | class AugmentedHelpFormatter(argparse.RawDescriptionHelpFormatter):
method __init__ (line 32) | def __init__(self, prog: str) -> None:
class BadStatus (line 260) | class BadStatus(Exception):
function main (line 270) | def main(argv: list[str]) -> None:
function fail (line 295) | def fail(msg: str) -> NoReturn:
function action (line 303) | def action(subparser: argparse.ArgumentParser) -> Callable[[ActionFuncti...
function do_start (line 317) | def do_start(args: argparse.Namespace) -> None:
function do_restart (line 339) | def do_restart(args: argparse.Namespace) -> None:
function restart_server (line 348) | def restart_server(args: argparse.Namespace, allow_sources: bool = False...
function start_server (line 358) | def start_server(args: argparse.Namespace, allow_sources: bool = False) ...
function wait_for_server (line 369) | def wait_for_server(status_file: str, timeout: float = 5.0) -> None:
function do_run (line 390) | def do_run(args: argparse.Namespace) -> None:
function do_status (line 432) | def do_status(args: argparse.Namespace) -> None:
function do_stop (line 454) | def do_stop(args: argparse.Namespace) -> None:
function do_kill (line 466) | def do_kill(args: argparse.Namespace) -> None:
function do_check (line 478) | def do_check(args: argparse.Namespace) -> None:
function do_recheck (line 488) | def do_recheck(args: argparse.Namespace) -> None:
function do_suggest (line 519) | def do_suggest(args: argparse.Namespace) -> None:
function do_inspect (line 541) | def do_inspect(args: argparse.Namespace) -> None:
function check_output (line 559) | def check_output(
function show_stats (line 600) | def show_stats(response: Mapping[str, object]) -> None:
function do_hang (line 613) | def do_hang(args: argparse.Namespace) -> None:
function do_daemon (line 619) | def do_daemon(args: argparse.Namespace) -> None:
function do_help (line 650) | def do_help(args: argparse.Namespace) -> None:
function request (line 658) | def request(
function get_status (line 704) | def get_status(status_file: str) -> tuple[int, str]:
function check_status (line 715) | def check_status(data: dict[str, Any]) -> tuple[int, str]:
function read_status (line 737) | def read_status(status_file: str) -> dict[str, object]:
function is_running (line 755) | def is_running(status_file: str) -> bool:
function console_entry (line 765) | def console_entry() -> None:
FILE: mypy/dmypy_os.py
function alive (line 22) | def alive(pid: int) -> bool:
function kill (line 38) | def kill(pid: int) -> None:
FILE: mypy/dmypy_server.py
function daemonize (line 46) | def daemonize(
function _daemonize_cb (line 79) | def _daemonize_cb(func: Callable[[], None], log_file: str | None = None)...
function daemonize (line 124) | def daemonize(
function process_start_options (line 140) | def process_start_options(flags: list[str], allow_sources: bool) -> Opti...
function ignore_suppressed_imports (line 159) | def ignore_suppressed_imports(module: str) -> bool:
class Server (line 172) | class Server:
method __init__ (line 176) | def __init__(self, options: Options, status_file: str, timeout: int | ...
method _response_metadata (line 208) | def _response_metadata(self) -> dict[str, str]:
method serve (line 212) | def serve(self) -> None:
method run_command (line 279) | def run_command(self, command: str, data: dict[str, object]) -> dict[s...
method cmd_status (line 296) | def cmd_status(self, fswatcher_dump_file: str | None = None) -> dict[s...
method cmd_stop (line 308) | def cmd_stop(self) -> dict[str, object]:
method cmd_run (line 317) | def cmd_run(
method cmd_check (line 360) | def cmd_check(
method cmd_recheck (line 370) | def cmd_recheck(
method check (line 421) | def check(
method flush_caches (line 446) | def flush_caches(self) -> None:
method update_stats (line 451) | def update_stats(self, res: dict[str, Any]) -> None:
method following_imports (line 458) | def following_imports(self) -> bool:
method initialize_fine_grained (line 463) | def initialize_fine_grained(
method fine_grained_increment (line 551) | def fine_grained_increment(
method fine_grained_increment_follow_imports (line 605) | def fine_grained_increment_follow_imports(
method find_reachable_changed_modules (line 728) | def find_reachable_changed_modules(
method direct_imports (line 769) | def direct_imports(
method find_added_suppressed (line 776) | def find_added_suppressed(
method increment_output (line 826) | def increment_output(
method pretty_messages (line 833) | def pretty_messages(
method update_sources (line 862) | def update_sources(self, sources: list[BuildSource]) -> None:
method update_changed (line 869) | def update_changed(
method find_changed (line 875) | def find_changed(self, sources: list[BuildSource]) -> ChangesAndRemovals:
method _find_changed (line 879) | def _find_changed(
method add_explicitly_new (line 911) | def add_explicitly_new(
method cmd_inspect (line 929) | def cmd_inspect(
method cmd_suggest (line 975) | def cmd_suggest(self, function: str, callsites: bool, **kwargs: Any) -...
method cmd_hang (line 999) | def cmd_hang(self) -> dict[str, object]:
function get_meminfo (line 1011) | def get_meminfo() -> dict[str, Any]:
function find_all_sources_in_build (line 1040) | def find_all_sources_in_build(
function add_all_sources_to_changed (line 1051) | def add_all_sources_to_changed(sources: list[BuildSource], changed: list...
function fix_module_deps (line 1067) | def fix_module_deps(graph: mypy.build.Graph) -> None:
function filter_out_missing_top_level_packages (line 1087) | def filter_out_missing_top_level_packages(
FILE: mypy/dmypy_util.py
function receive (line 19) | def receive(connection: IPCBase) -> Any:
function send (line 37) | def send(connection: IPCBase, data: Any) -> None:
class WriteToConn (line 46) | class WriteToConn(TextIO):
method __init__ (line 49) | def __init__(self, server: IPCBase, output_key: str, isatty: bool) -> ...
method __enter__ (line 54) | def __enter__(self) -> TextIO:
method __exit__ (line 57) | def __exit__(
method __iter__ (line 65) | def __iter__(self) -> Iterator[str]:
method __next__ (line 68) | def __next__(self) -> str:
method close (line 71) | def close(self) -> None:
method fileno (line 74) | def fileno(self) -> int:
method flush (line 77) | def flush(self) -> None:
method isatty (line 80) | def isatty(self) -> bool:
method read (line 83) | def read(self, n: int = 0) -> str:
method readable (line 86) | def readable(self) -> bool:
method readline (line 89) | def readline(self, limit: int = 0) -> str:
method readlines (line 92) | def readlines(self, hint: int = 0) -> list[str]:
method seek (line 95) | def seek(self, offset: int, whence: int = 0) -> int:
method seekable (line 98) | def seekable(self) -> bool:
method tell (line 101) | def tell(self) -> int:
method truncate (line 104) | def truncate(self, size: int | None = 0) -> int:
method write (line 107) | def write(self, output: str) -> int:
method writable (line 112) | def writable(self) -> bool:
method writelines (line 115) | def writelines(self, lines: Iterable[str]) -> None:
FILE: mypy/erasetype.py
function erase_type (line 42) | def erase_type(typ: Type) -> ProperType:
class EraseTypeVisitor (line 58) | class EraseTypeVisitor(TypeVisitor[ProperType]):
method visit_unbound_type (line 59) | def visit_unbound_type(self, t: UnboundType) -> ProperType:
method visit_any (line 63) | def visit_any(self, t: AnyType) -> ProperType:
method visit_none_type (line 66) | def visit_none_type(self, t: NoneType) -> ProperType:
method visit_uninhabited_type (line 69) | def visit_uninhabited_type(self, t: UninhabitedType) -> ProperType:
method visit_erased_type (line 72) | def visit_erased_type(self, t: ErasedType) -> ProperType:
method visit_partial_type (line 75) | def visit_partial_type(self, t: PartialType) -> ProperType:
method visit_deleted_type (line 79) | def visit_deleted_type(self, t: DeletedType) -> ProperType:
method visit_instance (line 82) | def visit_instance(self, t: Instance) -> ProperType:
method visit_type_var (line 86) | def visit_type_var(self, t: TypeVarType) -> ProperType:
method visit_param_spec (line 89) | def visit_param_spec(self, t: ParamSpecType) -> ProperType:
method visit_parameters (line 92) | def visit_parameters(self, t: Parameters) -> ProperType:
method visit_type_var_tuple (line 95) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> ProperType:
method visit_unpack_type (line 100) | def visit_unpack_type(self, t: UnpackType) -> ProperType:
method visit_callable_type (line 103) | def visit_callable_type(self, t: CallableType) -> ProperType:
method visit_overloaded (line 116) | def visit_overloaded(self, t: Overloaded) -> ProperType:
method visit_tuple_type (line 119) | def visit_tuple_type(self, t: TupleType) -> ProperType:
method visit_typeddict_type (line 122) | def visit_typeddict_type(self, t: TypedDictType) -> ProperType:
method visit_literal_type (line 125) | def visit_literal_type(self, t: LiteralType) -> ProperType:
method visit_union_type (line 131) | def visit_union_type(self, t: UnionType) -> ProperType:
method visit_intersection_type (line 137) | def visit_intersection_type(self, t: IntersectionType) -> ProperType:
method visit_type_type (line 143) | def visit_type_type(self, t: TypeType) -> ProperType:
method visit_type_alias_type (line 146) | def visit_type_alias_type(self, t: TypeAliasType) -> ProperType:
function erase_typevars (line 150) | def erase_typevars(t: Type, ids_to_erase: Container[TypeVarId] | None = ...
function replace_meta_vars (line 163) | def replace_meta_vars(t: Type, target_type: Type) -> Type:
class TypeVarEraser (line 168) | class TypeVarEraser(TypeTranslator):
method __init__ (line 171) | def __init__(self, erase_id: Callable[[TypeVarId], bool], replacement:...
method visit_type_var (line 176) | def visit_type_var(self, t: TypeVarType) -> Type:
method visit_instance (line 183) | def visit_instance(self, t: Instance) -> Type:
method visit_tuple_type (line 196) | def visit_tuple_type(self, t: TupleType) -> Type:
method visit_type_var_tuple (line 213) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> Type:
method visit_param_spec (line 218) | def visit_param_spec(self, t: ParamSpecType) -> Type:
method visit_type_alias_type (line 223) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
function remove_instance_last_known_values (line 229) | def remove_instance_last_known_values(t: Type) -> Type:
class LastKnownValueEraser (line 233) | class LastKnownValueEraser(TypeTranslator):
method visit_instance (line 237) | def visit_instance(self, t: Instance) -> Type:
method visit_type_alias_type (line 242) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
method visit_union_type (line 247) | def visit_union_type(self, t: UnionType) -> Type:
FILE: mypy/error_formatter.py
class ErrorFormatter (line 11) | class ErrorFormatter(ABC):
method report_error (line 15) | def report_error(self, error: "MypyError") -> str:
class JSONFormatter (line 19) | class JSONFormatter(ErrorFormatter):
method report_error (line 22) | def report_error(self, error: "MypyError") -> str:
FILE: mypy/errorcodes.py
class ErrorCode (line 18) | class ErrorCode:
method __init__ (line 19) | def __init__(
method __str__ (line 37) | def __str__(self) -> str:
method __eq__ (line 40) | def __eq__(self, other: object) -> bool:
method __hash__ (line 45) | def __hash__(self) -> int:
FILE: mypy/errors.py
class ErrorInfo (line 72) | class ErrorInfo:
method __repr__ (line 75) | def __repr__(self) -> str:
method __init__ (line 138) | def __init__(
class ErrorWatcher (line 188) | class ErrorWatcher:
method __init__ (line 197) | def __init__(
method __enter__ (line 209) | def __enter__(self) -> ErrorWatcher:
method __exit__ (line 213) | def __exit__(self, exc_type: object, exc_val: object, exc_tb: object) ...
method on_error (line 218) | def on_error(self, file: str, info: ErrorInfo) -> bool:
method has_new_errors (line 241) | def has_new_errors(self) -> bool:
method filtered_errors (line 244) | def filtered_errors(self) -> list[ErrorInfo]:
class StoredBaselineError (line 249) | class StoredBaselineError(TypedDict):
class BaselineError (line 260) | class BaselineError(TypedDict):
class Errors (line 269) | class Errors:
method __init__ (line 348) | def __init__(
method initialize (line 363) | def initialize(self) -> None:
method reset (line 382) | def reset(self) -> None:
method set_ignore_prefix (line 385) | def set_ignore_prefix(self, prefix: str) -> None:
method simplify_path (line 393) | def simplify_path(self, file: str) -> str:
method common_path (line 400) | def common_path(self, file: str) -> str:
method set_file (line 405) | def set_file(
method set_file_ignored_lines (line 420) | def set_file_ignored_lines(
method set_skipped_lines (line 427) | def set_skipped_lines(self, file: str, skipped_lines: set[int]) -> None:
method current_target (line 430) | def current_target(self) -> str | None:
method current_module (line 438) | def current_module(self) -> str | None:
method import_context (line 441) | def import_context(self) -> list[tuple[str, int]]:
method set_import_context (line 445) | def set_import_context(self, ctx: list[tuple[str, int]]) -> None:
method report (line 449) | def report(
method _add_error_info (line 556) | def _add_error_info(self, file: str, info: ErrorInfo) -> None:
method _filter_error (line 570) | def _filter_error(self, file: str, info: ErrorInfo) -> bool:
method add_error_info (line 583) | def add_error_info(self, info: ErrorInfo) -> None:
method has_many_errors (line 687) | def has_many_errors(self) -> bool:
method report_hidden_errors (line 699) | def report_hidden_errors(self, info: ErrorInfo) -> None:
method is_ignored_error (line 728) | def is_ignored_error(self, line: int, info: ErrorInfo, ignores: dict[i...
method is_error_code_enabled (line 747) | def is_error_code_enabled(self, error_code: ErrorCode) -> bool:
method clear_errors_in_targets (line 764) | def clear_errors_in_targets(self, path: str, targets: set[str]) -> None:
method generate_unused_ignore_errors (line 779) | def generate_unused_ignore_errors(self, file: str) -> None:
method generate_ignore_without_code_errors (line 830) | def generate_ignore_without_code_errors(
method num_messages (line 882) | def num_messages(self) -> int:
method is_errors (line 886) | def is_errors(self) -> bool:
method is_blockers (line 890) | def is_blockers(self) -> bool:
method blocker_module (line 894) | def blocker_module(self) -> str | None:
method is_errors_for_file (line 902) | def is_errors_for_file(self, file: str) -> bool:
method prefer_simple_messages (line 906) | def prefer_simple_messages(self) -> bool:
method raise_error (line 924) | def raise_error(self, use_stdout: bool = True) -> NoReturn:
method format_messages (line 935) | def format_messages(
method filter_baseline_pre (line 1002) | def filter_baseline_pre(self, path: str):
method file_messages (line 1017) | def file_messages(
method find_shadow_file_mapping (line 1051) | def find_shadow_file_mapping(self, path: str) -> str | None:
method new_messages (line 1061) | def new_messages(self) -> list[str]:
method targets (line 1074) | def targets(self) -> set[str]:
method render_messages (line 1082) | def render_messages(
method sort_messages (line 1296) | def sort_messages(self, errors: list[ErrorInfo]) -> list[ErrorInfo]:
method sort_within_context (line 1322) | def sort_within_context(self, errors: list[ErrorInfo]) -> list[ErrorIn...
method remove_duplicates (line 1349) | def remove_duplicates(self, errors: list[ErrorTuple]) -> list[ErrorTup...
method initialize_baseline (line 1389) | def initialize_baseline(
method prepare_baseline_errors (line 1405) | def prepare_baseline_errors(self) -> dict[str, list[StoredBaselineErro...
method filter_baseline (line 1465) | def filter_baseline(
function clean_baseline_message (line 1554) | def clean_baseline_message(message: str) -> str:
class CompileError (line 1558) | class CompileError(Exception):
method __init__ (line 1576) | def __init__(
function remove_path_prefix (line 1585) | def remove_path_prefix(path: str, prefix: str | None) -> str:
function report_internal_error (line 1595) | def report_internal_error(
class MypyError (line 1678) | class MypyError:
method __init__ (line 1679) | def __init__(
function create_errors (line 1701) | def create_errors(error_tuples: list[ErrorTuple]) -> list[MypyError]:
FILE: mypy/evalexpr.py
class _NodeEvaluator (line 19) | class _NodeEvaluator(ExpressionVisitor[object]):
method visit_int_expr (line 20) | def visit_int_expr(self, o: mypy.nodes.IntExpr) -> int:
method visit_str_expr (line 23) | def visit_str_expr(self, o: mypy.nodes.StrExpr) -> str:
method visit_bytes_expr (line 26) | def visit_bytes_expr(self, o: mypy.nodes.BytesExpr) -> object:
method visit_float_expr (line 34) | def visit_float_expr(self, o: mypy.nodes.FloatExpr) -> float:
method visit_complex_expr (line 37) | def visit_complex_expr(self, o: mypy.nodes.ComplexExpr) -> object:
method visit_ellipsis (line 40) | def visit_ellipsis(self, o: mypy.nodes.EllipsisExpr) -> object:
method visit_star_expr (line 43) | def visit_star_expr(self, o: mypy.nodes.StarExpr) -> object:
method visit_name_expr (line 46) | def visit_name_expr(self, o: mypy.nodes.NameExpr) -> object:
method visit_member_expr (line 57) | def visit_member_expr(self, o: mypy.nodes.MemberExpr) -> object:
method visit_yield_from_expr (line 60) | def visit_yield_from_expr(self, o: mypy.nodes.YieldFromExpr) -> object:
method visit_yield_expr (line 63) | def visit_yield_expr(self, o: mypy.nodes.YieldExpr) -> object:
method visit_call_expr (line 66) | def visit_call_expr(self, o: mypy.nodes.CallExpr) -> object:
method visit_op_expr (line 69) | def visit_op_expr(self, o: mypy.nodes.OpExpr) -> object:
method visit_comparison_expr (line 72) | def visit_comparison_expr(self, o: mypy.nodes.ComparisonExpr) -> object:
method visit_cast_expr (line 75) | def visit_cast_expr(self, o: mypy.nodes.CastExpr) -> object:
method visit_assert_type_expr (line 78) | def visit_assert_type_expr(self, o: mypy.nodes.AssertTypeExpr) -> object:
method visit_reveal_expr (line 81) | def visit_reveal_expr(self, o: mypy.nodes.RevealExpr) -> object:
method visit_super_expr (line 84) | def visit_super_expr(self, o: mypy.nodes.SuperExpr) -> object:
method visit_unary_expr (line 87) | def visit_unary_expr(self, o: mypy.nodes.UnaryExpr) -> object:
method visit_assignment_expr (line 105) | def visit_assignment_expr(self, o: mypy.nodes.AssignmentExpr) -> object:
method visit_list_expr (line 108) | def visit_list_expr(self, o: mypy.nodes.ListExpr) -> object:
method visit_dict_expr (line 114) | def visit_dict_expr(self, o: mypy.nodes.DictExpr) -> object:
method visit_tuple_expr (line 123) | def visit_tuple_expr(self, o: mypy.nodes.TupleExpr) -> object:
method visit_set_expr (line 129) | def visit_set_expr(self, o: mypy.nodes.SetExpr) -> object:
method visit_index_expr (line 135) | def visit_index_expr(self, o: mypy.nodes.IndexExpr) -> object:
method visit_type_application (line 138) | def visit_type_application(self, o: mypy.nodes.TypeApplication) -> obj...
method visit_lambda_expr (line 141) | def visit_lambda_expr(self, o: mypy.nodes.LambdaExpr) -> object:
method visit_list_comprehension (line 144) | def visit_list_comprehension(self, o: mypy.nodes.ListComprehension) ->...
method visit_set_comprehension (line 147) | def visit_set_comprehension(self, o: mypy.nodes.SetComprehension) -> o...
method visit_dictionary_comprehension (line 150) | def visit_dictionary_comprehension(self, o: mypy.nodes.DictionaryCompr...
method visit_generator_expr (line 153) | def visit_generator_expr(self, o: mypy.nodes.GeneratorExpr) -> object:
method visit_slice_expr (line 156) | def visit_slice_expr(self, o: mypy.nodes.SliceExpr) -> object:
method visit_conditional_expr (line 159) | def visit_conditional_expr(self, o: mypy.nodes.ConditionalExpr) -> obj...
method visit_type_var_expr (line 162) | def visit_type_var_expr(self, o: mypy.nodes.TypeVarExpr) -> object:
method visit_paramspec_expr (line 165) | def visit_paramspec_expr(self, o: mypy.nodes.ParamSpecExpr) -> object:
method visit_type_var_tuple_expr (line 168) | def visit_type_var_tuple_expr(self, o: mypy.nodes.TypeVarTupleExpr) ->...
method visit_type_alias_expr (line 171) | def visit_type_alias_expr(self, o: mypy.nodes.TypeAliasExpr) -> object:
method visit_namedtuple_expr (line 174) | def visit_namedtuple_expr(self, o: mypy.nodes.NamedTupleExpr) -> object:
method visit_enum_call_expr (line 177) | def visit_enum_call_expr(self, o: mypy.nodes.EnumCallExpr) -> object:
method visit_typeddict_expr (line 180) | def visit_typeddict_expr(self, o: mypy.nodes.TypedDictExpr) -> object:
method visit_newtype_expr (line 183) | def visit_newtype_expr(self, o: mypy.nodes.NewTypeExpr) -> object:
method visit__promote_expr (line 186) | def visit__promote_expr(self, o: mypy.nodes.PromoteExpr) -> object:
method visit_await_expr (line 189) | def visit_await_expr(self, o: mypy.nodes.AwaitExpr) -> object:
method visit_temp_node (line 192) | def visit_temp_node(self, o: mypy.nodes.TempNode) -> object:
function evaluate_expression (line 199) | def evaluate_expression(expr: mypy.nodes.Expression) -> object:
FILE: mypy/expandtype.py
function expand_type (line 57) | def expand_type(typ: CallableType, env: Mapping[TypeVarId, Type]) -> Cal...
function expand_type (line 61) | def expand_type(typ: ProperType, env: Mapping[TypeVarId, Type]) -> Prope...
function expand_type (line 65) | def expand_type(typ: Type, env: Mapping[TypeVarId, Type]) -> Type: ...
function expand_type (line 68) | def expand_type(typ: Type, env: Mapping[TypeVarId, Type]) -> Type:
function expand_type_by_instance (line 76) | def expand_type_by_instance(typ: CallableType, instance: Instance) -> Ca...
function expand_type_by_instance (line 80) | def expand_type_by_instance(typ: ProperType, instance: Instance) -> Prop...
function expand_type_by_instance (line 84) | def expand_type_by_instance(typ: Type, instance: Instance) -> Type: ...
function expand_type_by_instance (line 87) | def expand_type_by_instance(typ: Type, instance: Instance) -> Type:
function freshen_function_type_vars (line 123) | def freshen_function_type_vars(callee: F) -> F:
class HasGenericCallable (line 143) | class HasGenericCallable(BoolTypeQuery):
method __init__ (line 144) | def __init__(self) -> None:
method visit_callable_type (line 147) | def visit_callable_type(self, t: CallableType) -> bool:
function freshen_all_functions_type_vars (line 158) | def freshen_all_functions_type_vars(t: T) -> T:
class FreshenCallableVisitor (line 169) | class FreshenCallableVisitor(mypy.type_visitor.TypeTranslator):
method visit_callable_type (line 170) | def visit_callable_type(self, t: CallableType) -> Type:
method visit_type_alias_type (line 175) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
class ExpandTypeVisitor (line 180) | class ExpandTypeVisitor(TrivialSyntheticTypeTranslator):
method __init__ (line 185) | def __init__(self, variables: Mapping[TypeVarId, Type]) -> None:
method visit_unbound_type (line 190) | def visit_unbound_type(self, t: UnboundType) -> Type:
method visit_any (line 193) | def visit_any(self, t: AnyType) -> Type:
method visit_none_type (line 196) | def visit_none_type(self, t: NoneType) -> Type:
method visit_uninhabited_type (line 199) | def visit_uninhabited_type(self, t: UninhabitedType) -> Type:
method visit_deleted_type (line 202) | def visit_deleted_type(self, t: DeletedType) -> Type:
method visit_erased_type (line 205) | def visit_erased_type(self, t: ErasedType) -> Type:
method visit_instance (line 214) | def visit_instance(self, t: Instance) -> Type:
method visit_type_var (line 236) | def visit_type_var(self, t: TypeVarType) -> Type:
method visit_param_spec (line 256) | def visit_param_spec(self, t: ParamSpecType) -> Type:
method visit_type_var_tuple (line 282) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> Type:
method visit_unpack_type (line 297) | def visit_unpack_type(self, t: UnpackType) -> Type:
method expand_unpack (line 309) | def expand_unpack(self, t: UnpackType) -> list[Type]:
method visit_parameters (line 334) | def visit_parameters(self, t: Parameters) -> Type:
method interpolate_args_for_unpack (line 337) | def interpolate_args_for_unpack(self, t: CallableType, var_arg: Unpack...
method visit_callable_type (line 365) | def visit_callable_type(self, t: CallableType) -> CallableType:
method visit_overloaded (line 429) | def visit_overloaded(self, t: Overloaded) -> Type:
method expand_types_with_unpack (line 438) | def expand_types_with_unpack(self, typs: Sequence[Type]) -> list[Type]:
method visit_tuple_type (line 448) | def visit_tuple_type(self, t: TupleType) -> Type:
method visit_typeddict_type (line 466) | def visit_typeddict_type(self, t: TypedDictType) -> Type:
method visit_literal_type (line 475) | def visit_literal_type(self, t: LiteralType) -> Type:
method visit_union_type (line 479) | def visit_union_type(self, t: UnionType) -> Type:
method visit_intersection_type (line 504) | def visit_intersection_type(self, t: IntersectionType) -> Type:
method visit_partial_type (line 519) | def visit_partial_type(self, t: PartialType) -> Type:
method visit_type_type (line 522) | def visit_type_type(self, t: TypeType) -> Type:
method visit_type_alias_type (line 529) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
method visit_typeguard_type (line 536) | def visit_typeguard_type(self, t: TypeGuardType) -> Type:
method expand_types (line 539) | def expand_types(self, types: Iterable[Type]) -> list[Type]:
function expand_self_type (line 547) | def expand_self_type(var: Var, typ: ProperType, replacement: ProperType)...
function expand_self_type (line 551) | def expand_self_type(var: Var, typ: Type, replacement: Type) -> Type: ...
function expand_self_type (line 554) | def expand_self_type(var: Var, typ: Type, replacement: Type) -> Type:
function remove_trivial (line 561) | def remove_trivial(types: Iterable[Type]) -> list[Type]:
FILE: mypy/exprtotype.py
class TypeTranslationError (line 51) | class TypeTranslationError(Exception):
function _extract_argument_name (line 55) | def _extract_argument_name(expr: Expression) -> str | None:
function expr_to_unanalyzed_type (line 64) | def expr_to_unanalyzed_type(
FILE: mypy/fastparse.py
function ast3_parse (line 141) | def ast3_parse(
function parse (line 205) | def parse(
function parse_type_ignore_tag (line 265) | def parse_type_ignore_tag(tag: str | None) -> list[str] | None:
function parse_type_comment (line 283) | def parse_type_comment(
function parse_type_string (line 344) | def parse_type_string(
function is_no_type_check_decorator (line 373) | def is_no_type_check_decorator(expr: ast3.expr) -> bool:
function find_disallowed_expression_in_annotation_scope (line 382) | def find_disallowed_expression_in_annotation_scope(expr: ast3.expr | Non...
class ASTConverter (line 391) | class ASTConverter:
method __init__ (line 392) | def __init__(
method note (line 416) | def note(self, msg: str, line: int, column: int) -> None:
method fail (line 419) | def fail(self, msg: ErrorMessage, line: int, column: int, blocker: boo...
method fail_merge_overload (line 427) | def fail_merge_overload(self, node: IfStmt) -> None:
method visit (line 435) | def visit(self, node: AST | None) -> Any:
method set_line (line 446) | def set_line(self, node: N, n: AstNode) -> N:
method translate_opt_expr_list (line 454) | def translate_opt_expr_list(self, l: Sequence[AST | None]) -> list[Exp...
method translate_expr_list (line 461) | def translate_expr_list(self, l: Sequence[AST]) -> list[Expression]:
method get_lineno (line 464) | def get_lineno(self, node: ast3.expr | ast3.stmt) -> int:
method translate_stmt_list (line 472) | def translate_stmt_list(
method translate_type_comment (line 550) | def translate_type_comment(
method from_operator (line 578) | def from_operator(self, op: ast3.operator) -> str:
method from_comp_operator (line 598) | def from_comp_operator(self, op: ast3.cmpop) -> str:
method set_block_lines (line 605) | def set_block_lines(self, b: Block, stmts: Sequence[ast3.stmt]) -> None:
method as_block (line 620) | def as_block(self, stmts: list[ast3.stmt]) -> Block | None:
method as_required_block (line 627) | def as_required_block(
method fix_function_overloads (line 639) | def fix_function_overloads(self, stmts: list[Statement]) -> list[State...
method _check_ifstmt_for_overloads (line 780) | def _check_ifstmt_for_overloads(
method _get_executable_if_block_with_overloads (line 823) | def _get_executable_if_block_with_overloads(
method _strip_contents_from_if_stmt (line 855) | def _strip_contents_from_if_stmt(self, stmt: IfStmt) -> None:
method _is_stripped_if_stmt (line 869) | def _is_stripped_if_stmt(self, stmt: Statement) -> bool:
method translate_module_id (line 888) | def translate_module_id(self, id: str) -> str:
method visit_Module (line 894) | def visit_Module(self, mod: ast3.Module) -> MypyFile:
method visit_FunctionDef (line 915) | def visit_FunctionDef(self, n: ast3.FunctionDef) -> FuncDef | Decorator:
method visit_AsyncFunctionDef (line 920) | def visit_AsyncFunctionDef(self, n: ast3.AsyncFunctionDef) -> FuncDef ...
method do_func_def (line 923) | def do_func_def(
method set_type_optional (line 1065) | def set_type_optional(self, type: Type | None, initializer: Expression...
method transform_args (line 1073) | def transform_args(
method make_argument (line 1117) | def make_argument(
method fail_arg (line 1149) | def fail_arg(self, msg: str, arg: ast3.arg) -> None:
method visit_ClassDef (line 1157) | def visit_ClassDef(self, n: ast3.ClassDef) -> ClassDef:
method validate_type_param (line 1187) | def validate_type_param(self, type_param: ast_TypeVar) -> None:
method translate_type_params (line 1210) | def translate_type_params(self, type_params: list[Any]) -> list[TypePa...
method visit_Return (line 1245) | def visit_Return(self, n: ast3.Return) -> ReturnStmt:
method visit_Delete (line 1250) | def visit_Delete(self, n: ast3.Delete) -> DelStmt:
method visit_Assign (line 1260) | def visit_Assign(self, n: ast3.Assign) -> AssignmentStmt:
method visit_AnnAssign (line 1268) | def visit_AnnAssign(self, n: ast3.AnnAssign) -> AssignmentStmt:
method visit_AugAssign (line 1282) | def visit_AugAssign(self, n: ast3.AugAssign) -> OperatorAssignmentStmt:
method visit_For (line 1289) | def visit_For(self, n: ast3.For) -> ForStmt:
method visit_AsyncFor (line 1301) | def visit_AsyncFor(self, n: ast3.AsyncFor) -> ForStmt:
method visit_While (line 1314) | def visit_While(self, n: ast3.While) -> WhileStmt:
method visit_If (line 1321) | def visit_If(self, n: ast3.If) -> IfStmt:
method visit_With (line 1328) | def visit_With(self, n: ast3.With) -> WithStmt:
method visit_AsyncWith (line 1339) | def visit_AsyncWith(self, n: ast3.AsyncWith) -> WithStmt:
method visit_Raise (line 1351) | def visit_Raise(self, n: ast3.Raise) -> RaiseStmt:
method visit_Try (line 1356) | def visit_Try(self, n: ast3.Try) -> TryStmt:
method visit_TryStar (line 1373) | def visit_TryStar(self, n: TryStar) -> TryStmt:
method visit_Assert (line 1392) | def visit_Assert(self, n: ast3.Assert) -> AssertStmt:
method visit_Import (line 1397) | def visit_Import(self, n: ast3.Import) -> Import:
method visit_ImportFrom (line 1413) | def visit_ImportFrom(self, n: ast3.ImportFrom) -> ImportBase:
method visit_Global (line 1428) | def visit_Global(self, n: ast3.Global) -> GlobalDecl:
method visit_Nonlocal (line 1433) | def visit_Nonlocal(self, n: ast3.Nonlocal) -> NonlocalDecl:
method visit_Expr (line 1438) | def visit_Expr(self, n: ast3.Expr) -> ExpressionStmt:
method visit_Pass (line 1444) | def visit_Pass(self, n: ast3.Pass) -> PassStmt:
method visit_Break (line 1449) | def visit_Break(self, n: ast3.Break) -> BreakStmt:
method visit_Continue (line 1454) | def visit_Continue(self, n: ast3.Continue) -> ContinueStmt:
method visit_NamedExpr (line 1460) | def visit_NamedExpr(self, n: NamedExpr) -> AssignmentExpr:
method visit_BoolOp (line 1465) | def visit_BoolOp(self, n: ast3.BoolOp) -> OpExpr:
method group (line 1479) | def group(self, op: str, vals: list[Expression], n: ast3.expr) -> OpExpr:
method visit_BinOp (line 1487) | def visit_BinOp(self, n: ast3.BinOp) -> OpExpr:
method visit_UnaryOp (line 1497) | def visit_UnaryOp(self, n: ast3.UnaryOp) -> UnaryExpr:
method visit_Lambda (line 1515) | def visit_Lambda(self, n: ast3.Lambda) -> LambdaExpr:
method visit_IfExp (line 1527) | def visit_IfExp(self, n: ast3.IfExp) -> ConditionalExpr:
method visit_Dict (line 1532) | def visit_Dict(self, n: ast3.Dict) -> DictExpr:
method visit_Set (line 1539) | def visit_Set(self, n: ast3.Set) -> SetExpr:
method visit_ListComp (line 1544) | def visit_ListComp(self, n: ast3.ListComp) -> ListComprehension:
method visit_SetComp (line 1549) | def visit_SetComp(self, n: ast3.SetComp) -> SetComprehension:
method visit_DictComp (line 1554) | def visit_DictComp(self, n: ast3.DictComp) -> DictionaryComprehension:
method visit_GeneratorExp (line 1565) | def visit_GeneratorExp(self, n: ast3.GeneratorExp) -> GeneratorExpr:
method visit_Await (line 1574) | def visit_Await(self, n: ast3.Await) -> AwaitExpr:
method visit_Yield (line 1580) | def visit_Yield(self, n: ast3.Yield) -> YieldExpr:
method visit_YieldFrom (line 1585) | def visit_YieldFrom(self, n: ast3.YieldFrom) -> YieldFromExpr:
method visit_Compare (line 1590) | def visit_Compare(self, n: ast3.Compare) -> ComparisonExpr:
method visit_Call (line 1598) | def visit_Call(self, n: Call) -> CallExpr:
method visit_Constant (line 1617) | def visit_Constant(self, n: Constant) -> Any:
method visit_JoinedStr (line 1641) | def visit_JoinedStr(self, n: ast3.JoinedStr) -> Expression:
method visit_FormattedValue (line 1665) | def visit_FormattedValue(self, n: ast3.FormattedValue) -> Expression:
method visit_Attribute (line 1684) | def visit_Attribute(self, n: Attribute) -> MemberExpr | SuperExpr:
method visit_Subscript (line 1699) | def visit_Subscript(self, n: ast3.Subscript) -> IndexExpr:
method visit_Starred (line 1704) | def visit_Starred(self, n: Starred) -> StarExpr:
method visit_Name (line 1709) | def visit_Name(self, n: Name) -> NameExpr:
method visit_List (line 1714) | def visit_List(self, n: ast3.List) -> ListExpr | TupleExpr:
method visit_Tuple (line 1724) | def visit_Tuple(self, n: ast3.Tuple) -> TupleExpr:
method visit_Slice (line 1731) | def visit_Slice(self, n: ast3.Slice) -> SliceExpr:
method visit_ExtSlice (line 1736) | def visit_ExtSlice(self, n: ast3.ExtSlice) -> TupleExpr:
method visit_Index (line 1741) | def visit_Index(self, n: Index) -> Node:
method visit_Match (line 1748) | def visit_Match(self, n: Match) -> MatchStmt:
method visit_MatchValue (line 1757) | def visit_MatchValue(self, n: MatchValue) -> ValuePattern:
method visit_MatchSingleton (line 1761) | def visit_MatchSingleton(self, n: MatchSingleton) -> SingletonPattern:
method visit_MatchSequence (line 1765) | def visit_MatchSequence(self, n: MatchSequence) -> SequencePattern:
method visit_MatchStar (line 1773) | def visit_MatchStar(self, n: MatchStar) -> StarredPattern:
method visit_MatchMapping (line 1782) | def visit_MatchMapping(self, n: MatchMapping) -> MappingPattern:
method visit_MatchClass (line 1794) | def visit_MatchClass(self, n: MatchClass) -> ClassPattern:
method visit_MatchAs (line 1805) | def visit_MatchAs(self, n: MatchAs) -> AsPattern:
method visit_MatchOr (line 1815) | def visit_MatchOr(self, n: MatchOr) -> OrPattern:
method validate_type_alias (line 1819) | def validate_type_alias(self, n: ast_TypeAlias) -> None:
method visit_TypeAlias (line 1831) | def visit_TypeAlias(self, n: ast_TypeAlias) -> TypeAliasStmt | Assignm...
class TypeConverter (line 1846) | class TypeConverter:
method __init__ (line 1847) | def __init__(
method convert_column (line 1860) | def convert_column(self, column: int) -> int:
method invalid_type (line 1871) | def invalid_type(self, node: AST, note: str | None = None) -> RawExpre...
method visit (line 1886) | def visit(self, node: ast3.expr) -> ProperType: ...
method visit (line 1889) | def visit(self, node: AST | None) -> ProperType | None: ...
method visit (line 1891) | def visit(self, node: AST | None) -> ProperType | None:
method parent (line 1908) | def parent(self) -> AST | None:
method fail (line 1914) | def fail(self, msg: ErrorMessage, line: int, column: int) -> None:
method note (line 1918) | def note(self, msg: str, line: int, column: int) -> None:
method translate_expr_list (line 1922) | def translate_expr_list(self, l: Sequence[ast3.expr]) -> list[Type]:
method visit_Call (line 1925) | def visit_Call(self, e: Call) -> Type:
method translate_argument_list (line 1978) | def translate_argument_list(self, l: Sequence[ast3.expr]) -> TypeList:
method _extract_argument_name (line 1981) | def _extract_argument_name(self, n: ast3.expr) -> str | None:
method visit_Name (line 1993) | def visit_Name(self, n: Name) -> Type:
method visit_BinOp (line 1996) | def visit_BinOp(self, n: ast3.BinOp) -> Type:
method visit_Compare (line 2018) | def visit_Compare(self, n: Compare) -> Type:
method visit_IfExp (line 2027) | def visit_IfExp(self, n: ast3.IfExp) -> Type:
method visit_Constant (line 2052) | def visit_Constant(self, n: Constant) -> Type:
method visit_UnaryOp (line 2075) | def visit_UnaryOp(self, n: UnaryOp) -> Type:
method numeric_type (line 2091) | def numeric_type(self, value: object, n: AST) -> Type:
method visit_Index (line 2109) | def visit_Index(self, n: ast3.Index) -> Type:
method visit_Slice (line 2115) | def visit_Slice(self, n: ast3.Slice) -> Type:
method visit_Subscript (line 2119) | def visit_Subscript(self, n: ast3.Subscript) -> Type:
method visit_Tuple (line 2140) | def visit_Tuple(self, n: ast3.Tuple) -> Type:
method visit_Dict (line 2149) | def visit_Dict(self, n: ast3.Dict) -> Type:
method visit_Attribute (line 2166) | def visit_Attribute(self, n: Attribute) -> Type:
method visit_Starred (line 2175) | def visit_Starred(self, n: ast3.Starred) -> Type:
method visit_List (line 2179) | def visit_List(self, n: ast3.List) -> Type:
function stringify_name (line 2185) | def stringify_name(n: AST) -> str | None:
class FindAttributeAssign (line 2195) | class FindAttributeAssign(TraverserVisitor):
method __init__ (line 2198) | def __init__(self) -> None:
method visit_assignment_stmt (line 2202) | def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
method visit_with_stmt (line 2208) | def visit_with_stmt(self, s: WithStmt) -> None:
method visit_for_stmt (line 2216) | def visit_for_stmt(self, s: ForStmt) -> None:
method visit_expression_stmt (line 2224) | def visit_expression_stmt(self, s: ExpressionStmt) -> None:
method visit_call_expr (line 2228) | def visit_call_expr(self, e: CallExpr) -> None:
method visit_index_expr (line 2232) | def visit_index_expr(self, e: IndexExpr) -> None:
method visit_member_expr (line 2236) | def visit_member_expr(self, e: MemberExpr) -> None:
class FindYield (line 2241) | class FindYield(TraverserVisitor):
method __init__ (line 2244) | def __init__(self) -> None:
method visit_yield_expr (line 2247) | def visit_yield_expr(self, e: YieldExpr) -> None:
method visit_yield_from_expr (line 2250) | def visit_yield_from_expr(self, e: YieldFromExpr) -> None:
function is_possible_trivial_body (line 2254) | def is_possible_trivial_body(s: list[Statement]) -> bool:
FILE: mypy/find_sources.py
class InvalidSourceList (line 17) | class InvalidSourceList(Exception):
function create_source_list (line 21) | def create_source_list(
function keyfunc (line 52) | def keyfunc(name: str) -> tuple[bool, int, str]:
function normalise_package_base (line 66) | def normalise_package_base(root: str) -> str:
function get_explicit_package_bases (line 75) | def get_explicit_package_bases(options: Options) -> list[str] | None:
class SourceFinder (line 91) | class SourceFinder:
method __init__ (line 92) | def __init__(self, fscache: FileSystemCache, options: Options) -> None:
method is_explicit_package_base (line 99) | def is_explicit_package_base(self, path: str) -> bool:
method find_sources_in_dir (line 103) | def find_sources_in_dir(self, path: str) -> list[BuildSource]:
method crawl_up (line 131) | def crawl_up(self, path: str) -> tuple[str, str]:
method crawl_up_dir (line 160) | def crawl_up_dir(self, dir: str) -> tuple[str, str]:
method _crawl_up_helper (line 164) | def _crawl_up_helper(self, dir: str) -> tuple[str, str] | None:
method get_init_file (line 213) | def get_init_file(self, dir: str) -> str | None:
function module_join (line 229) | def module_join(parent: str, child: str) -> str:
function strip_py (line 236) | def strip_py(arg: str) -> str | None:
FILE: mypy/fixup.py
function fixup_module (line 51) | def fixup_module(tree: MypyFile, modules: dict[str, MypyFile], allow_mis...
class NodeFixer (line 57) | class NodeFixer(NodeVisitor[None]):
method __init__ (line 60) | def __init__(self, modules: dict[str, MypyFile], allow_missing: bool) ...
method visit_type_info (line 66) | def visit_type_info(self, info: TypeInfo) -> None:
method visit_symbol_table (line 119) | def visit_symbol_table(self, symtab: SymbolTable, table_fullname: str)...
method visit_func_def (line 164) | def visit_func_def(self, func: FuncDef) -> None:
method visit_overloaded_func_def (line 170) | def visit_overloaded_func_def(self, o: OverloadedFuncDef) -> None:
method visit_decorator (line 180) | def visit_decorator(self, d: Decorator) -> None:
method visit_class_def (line 190) | def visit_class_def(self, c: ClassDef) -> None:
method visit_type_var_expr (line 194) | def visit_type_var_expr(self, tv: TypeVarExpr) -> None:
method visit_paramspec_expr (line 200) | def visit_paramspec_expr(self, p: ParamSpecExpr) -> None:
method visit_type_var_tuple_expr (line 204) | def visit_type_var_tuple_expr(self, tv: TypeVarTupleExpr) -> None:
method visit_var (line 209) | def visit_var(self, v: Var) -> None:
method visit_type_alias (line 215) | def visit_type_alias(self, a: TypeAlias) -> None:
class TypeFixer (line 221) | class TypeFixer(TypeVisitor[None]):
method __init__ (line 222) | def __init__(self, modules: dict[str, MypyFile], allow_missing: bool) ...
method visit_instance (line 226) | def visit_instance(self, inst: Instance) -> None:
method visit_type_alias_type (line 248) | def visit_type_alias_type(self, t: TypeAliasType) -> None:
method visit_any (line 259) | def visit_any(self, o: Any) -> None:
method visit_callable_type (line 262) | def visit_callable_type(self, ct: CallableType) -> None:
method visit_overloaded (line 281) | def visit_overloaded(self, t: Overloaded) -> None:
method visit_erased_type (line 285) | def visit_erased_type(self, o: Any) -> None:
method visit_deleted_type (line 289) | def visit_deleted_type(self, o: Any) -> None:
method visit_none_type (line 292) | def visit_none_type(self, o: Any) -> None:
method visit_uninhabited_type (line 295) | def visit_uninhabited_type(self, o: Any) -> None:
method visit_partial_type (line 298) | def visit_partial_type(self, o: Any) -> None:
method visit_tuple_type (line 301) | def visit_tuple_type(self, tt: TupleType) -> None:
method visit_typeddict_type (line 308) | def visit_typeddict_type(self, tdt: TypedDictType) -> None:
method visit_literal_type (line 327) | def visit_literal_type(self, lt: LiteralType) -> None:
method visit_type_var (line 330) | def visit_type_var(self, tvt: TypeVarType) -> None:
method visit_param_spec (line 337) | def visit_param_spec(self, p: ParamSpecType) -> None:
method visit_type_var_tuple (line 341) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> None:
method visit_unpack_type (line 346) | def visit_unpack_type(self, u: UnpackType) -> None:
method visit_parameters (line 349) | def visit_parameters(self, p: Parameters) -> None:
method visit_unbound_type (line 356) | def visit_unbound_type(self, o: UnboundType) -> None:
method visit_union_type (line 360) | def visit_union_type(self, ut: UnionType) -> None:
method visit_intersection_type (line 365) | def visit_intersection_type(self, it: IntersectionType):
method visit_type_type (line 369) | def visit_type_type(self, t: TypeType) -> None:
function lookup_fully_qualified_typeinfo (line 373) | def lookup_fully_qualified_typeinfo(
function lookup_fully_qualified_alias (line 390) | def lookup_fully_qualified_alias(
function missing_info (line 423) | def missing_info(modules: dict[str, MypyFile]) -> TypeInfo:
function missing_alias (line 435) | def missing_alias() -> TypeAlias:
FILE: mypy/freetree.py
class TreeFreer (line 9) | class TreeFreer(TraverserVisitor):
method visit_block (line 10) | def visit_block(self, block: Block) -> None:
function free_tree (line 15) | def free_tree(tree: MypyFile) -> None:
FILE: mypy/fscache.py
class FileSystemCache (line 42) | class FileSystemCache:
method __init__ (line 43) | def __init__(self) -> None:
method set_package_root (line 49) | def set_package_root(self, package_root: list[str]) -> None:
method flush (line 52) | def flush(self) -> None:
method stat_or_none (line 65) | def stat_or_none(self, path: str) -> os.stat_result | None:
method init_under_package_root (line 82) | def init_under_package_root(self, path: str) -> bool:
method _fake_init (line 134) | def _fake_init(self, path: str) -> os.stat_result:
method listdir (line 157) | def listdir(self, path: str) -> list[str]:
method isfile (line 179) | def isfile(self, path: str) -> bool:
method isfile_case (line 185) | def isfile_case(self, path: str, prefix: str) -> bool:
method exists_case (line 221) | def exists_case(self, path: str, prefix: str) -> bool:
method isdir (line 245) | def isdir(self, path: str) -> bool:
method exists (line 251) | def exists(self, path: str) -> bool:
method read (line 255) | def read(self, path: str) -> bytes:
method hash_digest (line 282) | def hash_digest(self, path: str) -> str:
method samefile (line 287) | def samefile(self, f1: str, f2: str) -> bool:
function copy_os_error (line 295) | def copy_os_error(e: OSError) -> OSError:
FILE: mypy/fswatcher.py
class FileData (line 12) | class FileData(NamedTuple):
class FileSystemWatcher (line 18) | class FileSystemWatcher:
method __init__ (line 36) | def __init__(self, fs: FileSystemCache) -> None:
method dump_file_data (line 41) | def dump_file_data(self) -> dict[str, tuple[float, int, str]]:
method set_file_data (line 44) | def set_file_data(self, path: str, data: FileData) -> None:
method add_watched_paths (line 47) | def add_watched_paths(self, paths: Iterable[str]) -> None:
method remove_watched_paths (line 55) | def remove_watched_paths(self, paths: Iterable[str]) -> None:
method _update (line 61) | def _update(self, path: str, st: os.stat_result) -> None:
method _find_changed (line 65) | def _find_changed(self, paths: Iterable[str]) -> AbstractSet[str]:
method find_changed (line 91) | def find_changed(self) -> AbstractSet[str]:
method update_changed (line 95) | def update_changed(self, remove: list[str], update: list[str]) -> Abst...
FILE: mypy/gclogger.py
class GcLogger (line 8) | class GcLogger:
method __enter__ (line 11) | def __enter__(self) -> GcLogger:
method gc_callback (line 21) | def gc_callback(self, phase: str, info: Mapping[str, int]) -> None:
method __exit__ (line 35) | def __exit__(self, *args: object) -> None:
method get_stats (line 39) | def get_stats(self) -> Mapping[str, float]:
FILE: mypy/git.py
function is_git_repo (line 10) | def is_git_repo(dir: str) -> bool:
function have_git (line 15) | def have_git() -> bool:
function git_revision (line 26) | def git_revision(dir: str) -> bytes:
function is_dirty (line 31) | def is_dirty(dir: str) -> bool:
FILE: mypy/graph_utils.py
function strongly_connected_components (line 11) | def strongly_connected_components(
function prepare_sccs (line 57) | def prepare_sccs(
function topsort (line 75) | def topsort(data: dict[T, set[T]]) -> Iterable[set[T]]:
FILE: mypy/indirection.py
function extract_module_names (line 10) | def extract_module_names(type_name: str | None) -> list[str]:
class TypeIndirectionVisitor (line 20) | class TypeIndirectionVisitor(TypeVisitor[None]):
method __init__ (line 23) | def __init__(self) -> None:
method find_modules (line 31) | def find_modules(self, typs: Iterable[types.Type]) -> set[str]:
method _visit (line 38) | def _visit(self, typ_or_typs: types.Type | Iterable[types.Type]) -> None:
method _visit_module_name (line 48) | def _visit_module_name(self, module_name: str) -> None:
method visit_unbound_type (line 52) | def visit_unbound_type(self, t: types.UnboundType) -> None:
method visit_any (line 55) | def visit_any(self, t: types.AnyType) -> None:
method visit_none_type (line 58) | def visit_none_type(self, t: types.NoneType) -> None:
method visit_uninhabited_type (line 61) | def visit_uninhabited_type(self, t: types.UninhabitedType) -> None:
method visit_erased_type (line 64) | def visit_erased_type(self, t: types.ErasedType) -> None:
method visit_deleted_type (line 67) | def visit_deleted_type(self, t: types.DeletedType) -> None:
method visit_type_var (line 70) | def visit_type_var(self, t: types.TypeVarType) -> None:
method visit_param_spec (line 75) | def visit_param_spec(self, t: types.ParamSpecType) -> None:
method visit_type_var_tuple (line 79) | def visit_type_var_tuple(self, t: types.TypeVarTupleType) -> None:
method visit_unpack_type (line 83) | def visit_unpack_type(self, t: types.UnpackType) -> None:
method visit_parameters (line 86) | def visit_parameters(self, t: types.Parameters) -> None:
method visit_instance (line 89) | def visit_instance(self, t: types.Instance) -> None:
method visit_callable_type (line 100) | def visit_callable_type(self, t: types.CallableType) -> None:
method visit_overloaded (line 109) | def visit_overloaded(self, t: types.Overloaded) -> None:
method visit_tuple_type (line 113) | def visit_tuple_type(self, t: types.TupleType) -> None:
method visit_typeddict_type (line 117) | def visit_typeddict_type(self, t: types.TypedDictType) -> None:
method visit_literal_type (line 121) | def visit_literal_type(self, t: types.LiteralType) -> None:
method visit_union_type (line 124) | def visit_union_type(self, t: types.UnionType) -> None:
method visit_intersection_type (line 127) | def visit_intersection_type(self, t: types.IntersectionType):
method visit_partial_type (line 130) | def visit_partial_type(self, t: types.PartialType) -> None:
method visit_type_type (line 133) | def visit_type_type(self, t: types.TypeType) -> None:
method visit_type_alias_type (line 136) | def visit_type_alias_type(self, t: types.TypeAliasType) -> None:
FILE: mypy/infer.py
class ArgumentInferContext (line 19) | class ArgumentInferContext(NamedTuple):
function infer_function_type_arguments (line 33) | def infer_function_type_arguments(
function infer_type_arguments (line 66) | def infer_type_arguments(
FILE: mypy/inspections.py
function node_starts_after (line 42) | def node_starts_after(o: Node, line: int, column: int) -> bool:
function node_ends_before (line 46) | def node_ends_before(o: Node, line: int, column: int) -> bool:
function expr_span (line 55) | def expr_span(expr: Expression) -> str:
function get_instance_fallback (line 60) | def get_instance_fallback(typ: ProperType) -> list[Instance]:
function find_node (line 87) | def find_node(name: str, info: TypeInfo) -> Var | FuncBase | None:
function find_module_by_fullname (line 109) | def find_module_by_fullname(fullname: str, modules: dict[str, State]) ->...
class SearchVisitor (line 128) | class SearchVisitor(ExtendedTraverserVisitor):
method __init__ (line 131) | def __init__(self, line: int, column: int, end_line: int, end_column: ...
method visit (line 138) | def visit(self, o: Node) -> bool:
function find_by_location (line 154) | def find_by_location(
class SearchAllVisitor (line 167) | class SearchAllVisitor(ExtendedTraverserVisitor):
method __init__ (line 170) | def __init__(self, line: int, column: int) -> None:
method visit (line 175) | def visit(self, o: Node) -> bool:
function find_all_by_location (line 185) | def find_all_by_location(tree: MypyFile, line: int, column: int) -> list...
class InspectionEngine (line 192) | class InspectionEngine:
method __init__ (line 195) | def __init__(
method reload_module (line 218) | def reload_module(self, state: State) -> None:
method expr_type (line 229) | def expr_type(self, expression: Expression) -> tuple[str, bool]:
method object_type (line 244) | def object_type(self) -> Instance:
method collect_attrs (line 251) | def collect_attrs(self, instances: list[Instance]) -> dict[TypeInfo, l...
method _fill_from_dict (line 305) | def _fill_from_dict(
method expr_attrs (line 313) | def expr_attrs(self, expression: Expression) -> tuple[str, bool]:
method format_node (line 361) | def format_node(self, module: State, node: FuncBase | SymbolNode) -> str:
method collect_nodes (line 364) | def collect_nodes(self, expression: RefExpr) -> list[FuncBase | Symbol...
method modules_for_nodes (line 406) | def modules_for_nodes(
method expression_def (line 429) | def expression_def(self, expression: Expression) -> tuple[str, bool]:
method missing_type (line 461) | def missing_type(self, expression: Expression) -> str:
method missing_node (line 470) | def missing_node(self, expression: Expression) -> str:
method add_prefixes (line 475) | def add_prefixes(self, result: str, expression: Expression) -> str:
method run_inspection_by_exact_location (line 487) | def run_inspection_by_exact_location(
method run_inspection_by_position (line 512) | def run_inspection_by_position(
method find_module (line 544) | def find_module(self, file: str) -> tuple[State | None, dict[str, obje...
method run_inspection (line 562) | def run_inspection(
method get_type (line 595) | def get_type(self, location: str) -> dict[str, object]:
method get_attrs (line 599) | def get_attrs(self, location: str) -> dict[str, object]:
method get_definition (line 603) | def get_definition(self, location: str) -> dict[str, object]:
function parse_location (line 614) | def parse_location(location: str) -> tuple[str, list[int]]:
FILE: mypy/ipc.py
class IPCException (line 34) | class IPCException(Exception):
class IPCBase (line 38) | class IPCBase:
method __init__ (line 51) | def __init__(self, name: str, timeout: float | None) -> None:
method frame_from_buffer (line 56) | def frame_from_buffer(self) -> bytearray | None:
method read (line 66) | def read(self, size: int = 100000) -> str:
method write (line 124) | def write(self, data: str) -> None:
method close (line 152) | def close(self) -> None:
class IPCClient (line 160) | class IPCClient(IPCBase):
method __init__ (line 163) | def __init__(self, name: str, timeout: float | None) -> None:
method __enter__ (line 199) | def __enter__(self) -> IPCClient:
method __exit__ (line 202) | def __exit__(
class IPCServer (line 211) | class IPCServer(IPCBase):
method __init__ (line 214) | def __init__(self, name: str, timeout: float | None = None) -> None:
method __enter__ (line 250) | def __enter__(self) -> IPCServer:
method __exit__ (line 278) | def __exit__(
method cleanup (line 296) | def cleanup(self) -> None:
method connection_name (line 303) | def connection_name(self) -> str:
FILE: mypy/join.py
class InstanceJoiner (line 60) | class InstanceJoiner:
method __init__ (line 61) | def __init__(self) -> None:
method join_instances (line 64) | def join_instances(self, t: Instance, s: Instance) -> ProperType:
method join_instances_via_supertype (line 161) | def join_instances_via_supertype(self, t: Instance, s: Instance) -> Pr...
function join_simple (line 189) | def join_simple(declaration: Type | None, s: Type, t: Type) -> ProperType:
function trivial_join (line 239) | def trivial_join(s: Type, t: Type) -> Type:
function _union_join (line 249) | def _union_join(l: ProperType, r: ProperType) -> ProperType | None:
function join_types (line 268) | def join_types(
function join_types (line 274) | def join_types(s: Type, t: Type, instance_joiner: InstanceJoiner | None ...
function join_types (line 277) | def join_types(s: Type, t: Type, instance_joiner: InstanceJoiner | None ...
class TypeJoinVisitor (line 322) | class TypeJoinVisitor(TypeVisitor[ProperType]):
method __init__ (line 329) | def __init__(self, s: ProperType, instance_joiner: InstanceJoiner | No...
method visit_unbound_type (line 333) | def visit_unbound_type(self, t: UnboundType) -> ProperType:
method visit_union_type (line 336) | def visit_union_type(self, t: UnionType) -> ProperType:
method visit_intersection_type (line 342) | def visit_intersection_type(self, t: IntersectionType) -> ProperType:
method visit_any (line 348) | def visit_any(self, t: AnyType) -> ProperType:
method visit_none_type (line 351) | def visit_none_type(self, t: NoneType) -> ProperType:
method visit_uninhabited_type (line 362) | def visit_uninhabited_type(self, t: UninhabitedType) -> ProperType:
method visit_deleted_type (line 365) | def visit_deleted_type(self, t: DeletedType) -> ProperType:
method visit_erased_type (line 368) | def visit_erased_type(self, t: ErasedType) -> ProperType:
method visit_type_var (line 371) | def visit_type_var(self, t: TypeVarType) -> ProperType:
method visit_param_spec (line 377) | def visit_param_spec(self, t: ParamSpecType) -> ProperType:
method visit_type_var_tuple (line 382) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> ProperType:
method visit_unpack_type (line 387) | def visit_unpack_type(self, t: UnpackType) -> UnpackType:
method visit_parameters (line 390) | def visit_parameters(self, t: Parameters) -> ProperType:
method visit_instance (line 405) | def visit_instance(self, t: Instance) -> ProperType:
method visit_callable_type (line 438) | def visit_callable_type(self, t: CallableType) -> ProperType:
method visit_overloaded (line 466) | def visit_overloaded(self, t: Overloaded) -> ProperType:
method join_tuples (line 519) | def join_tuples(self, s: TupleType, t: TupleType) -> list[Type] | None:
method visit_tuple_type (line 626) | def visit_tuple_type(self, t: TupleType) -> ProperType:
method visit_typeddict_type (line 658) | def visit_typeddict_type(self, t: TypedDictType) -> ProperType:
method visit_literal_type (line 681) | def visit_literal_type(self, t: LiteralType) -> ProperType:
method visit_partial_type (line 691) | def visit_partial_type(self, t: PartialType) -> ProperType:
method visit_type_type (line 696) | def visit_type_type(self, t: TypeType) -> ProperType:
method visit_type_alias_type (line 704) | def visit_type_alias_type(self, t: TypeAliasType) -> ProperType:
method default (line 707) | def default(self, typ: Type) -> ProperType:
function is_better (line 727) | def is_better(t: Type, s: Type) -> bool:
function normalize_callables (line 742) | def normalize_callables(s: ProperType, t: ProperType) -> tuple[ProperTyp...
function is_similar_callables (line 750) | def is_similar_callables(t: CallableType, s: CallableType) -> bool:
function update_callable_ids (line 761) | def update_callable_ids(c: CallableType, ids: list[TypeVarId]) -> Callab...
function match_generic_callables (line 771) | def match_generic_callables(t: CallableType, s: CallableType) -> tuple[C...
function join_similar_callables (line 788) | def join_similar_callables(t: CallableType, s: CallableType) -> Callable...
function safe_join (line 823) | def safe_join(t: Type, s: Type) -> Type:
function safe_meet (line 833) | def safe_meet(t: Type, s: Type) -> Type:
function combine_similar_callables (line 855) | def combine_similar_callables(t: CallableType, s: CallableType) -> Calla...
function combine_arg_names (line 877) | def combine_arg_names(
function object_from_instance (line 908) | def object_from_instance(instance: Instance) -> Instance:
function object_or_any_from_type (line 915) | def object_or_any_from_type(typ: ProperType) -> ProperType:
function join_type_list (line 939) | def join_type_list(types: Sequence[Type]) -> Type:
function unpack_callback_protocol (line 950) | def unpack_callback_protocol(t: Instance) -> ProperType | None:
FILE: mypy/literals.py
function literal (line 99) | def literal(e: Expression) -> int:
function subkeys (line 135) | def subkeys(key: Key) -> Iterable[Key]:
function literal_hash (line 139) | def literal_hash(e: Expression) -> Key | None:
function extract_var_from_literal_hash (line 143) | def extract_var_from_literal_hash(key: Key) -> Var | None:
class _Hasher (line 153) | class _Hasher(ExpressionVisitor[Optional[Key]]):
method visit_int_expr (line 154) | def visit_int_expr(self, e: IntExpr) -> Key:
method visit_str_expr (line 157) | def visit_str_expr(self, e: StrExpr) -> Key:
method visit_bytes_expr (line 160) | def visit_bytes_expr(self, e: BytesExpr) -> Key:
method visit_float_expr (line 163) | def visit_float_expr(self, e: FloatExpr) -> Key:
method visit_complex_expr (line 166) | def visit_complex_expr(self, e: ComplexExpr) -> Key:
method visit_star_expr (line 169) | def visit_star_expr(self, e: StarExpr) -> Key:
method visit_name_expr (line 172) | def visit_name_expr(self, e: NameExpr) -> Key:
method visit_member_expr (line 180) | def visit_member_expr(self, e: MemberExpr) -> Key:
method visit_op_expr (line 183) | def visit_op_expr(self, e: OpExpr) -> Key:
method visit_comparison_expr (line 186) | def visit_comparison_expr(self, e: ComparisonExpr) -> Key:
method visit_unary_expr (line 191) | def visit_unary_expr(self, e: UnaryExpr) -> Key:
method seq_expr (line 194) | def seq_expr(self, e: ListExpr | TupleExpr | SetExpr, name: str) -> Ke...
method visit_list_expr (line 200) | def visit_list_expr(self, e: ListExpr) -> Key | None:
method visit_dict_expr (line 203) | def visit_dict_expr(self, e: DictExpr) -> Key | None:
method visit_tuple_expr (line 211) | def visit_tuple_expr(self, e: TupleExpr) -> Key | None:
method visit_set_expr (line 214) | def visit_set_expr(self, e: SetExpr) -> Key | None:
method visit_index_expr (line 217) | def visit_index_expr(self, e: IndexExpr) -> Key | None:
method visit_assignment_expr (line 222) | def visit_assignment_expr(self, e: AssignmentExpr) -> Key | None:
method visit_call_expr (line 225) | def visit_call_expr(self, e: CallExpr) -> None:
method visit_slice_expr (line 228) | def visit_slice_expr(self, e: SliceExpr) -> None:
method visit_cast_expr (line 231) | def visit_cast_expr(self, e: CastExpr) -> None:
method visit_assert_type_expr (line 234) | def visit_assert_type_expr(self, e: AssertTypeExpr) -> None:
method visit_conditional_expr (line 237) | def visit_conditional_expr(self, e: ConditionalExpr) -> None:
method visit_ellipsis (line 240) | def visit_ellipsis(self, e: EllipsisExpr) -> None:
method visit_yield_from_expr (line 243) | def visit_yield_from_expr(self, e: YieldFromExpr) -> None:
method visit_yield_expr (line 246) | def visit_yield_expr(self, e: YieldExpr) -> None:
method visit_reveal_expr (line 249) | def visit_reveal_expr(self, e: RevealExpr) -> None:
method visit_super_expr (line 252) | def visit_super_expr(self, e: SuperExpr) -> None:
method visit_type_application (line 255) | def visit_type_application(self, e: TypeApplication) -> None:
method visit_lambda_expr (line 258) | def visit_lambda_expr(self, e: LambdaExpr) -> None:
method visit_list_comprehension (line 261) | def visit_list_comprehension(self, e: ListComprehension) -> None:
method visit_set_comprehension (line 264) | def visit_set_comprehension(self, e: SetComprehension) -> None:
method visit_dictionary_comprehension (line 267) | def visit_dictionary_comprehension(self, e: DictionaryComprehension) -...
method visit_generator_expr (line 270) | def visit_generator_expr(self, e: GeneratorExpr) -> None:
method visit_type_var_expr (line 273) | def visit_type_var_expr(self, e: TypeVarExpr) -> None:
method visit_paramspec_expr (line 276) | def visit_paramspec_expr(self, e: ParamSpecExpr) -> None:
method visit_type_var_tuple_expr (line 279) | def visit_type_var_tuple_expr(self, e: TypeVarTupleExpr) -> None:
method visit_type_alias_expr (line 282) | def visit_type_alias_expr(self, e: TypeAliasExpr) -> None:
method visit_namedtuple_expr (line 285) | def visit_namedtuple_expr(self, e: NamedTupleExpr) -> None:
method visit_enum_call_expr (line 288) | def visit_enum_call_expr(self, e: EnumCallExpr) -> None:
method visit_typeddict_expr (line 291) | def visit_typeddict_expr(self, e: TypedDictExpr) -> None:
method visit_newtype_expr (line 294) | def visit_newtype_expr(self, e: NewTypeExpr) -> None:
method visit__promote_expr (line 297) | def visit__promote_expr(self, e: PromoteExpr) -> None:
method visit_await_expr (line 300) | def visit_await_expr(self, e: AwaitExpr) -> None:
method visit_temp_node (line 303) | def visit_temp_node(self, e: TempNode) -> None:
FILE: mypy/lookup.py
function lookup_fully_qualified (line 13) | def lookup_fully_qualified(
FILE: mypy/main.py
function stat_proxy (line 48) | def stat_proxy(path: str) -> os.stat_result:
function main (line 62) | def main(
function run_build (line 204) | def run_build(
function show_messages (line 266) | def show_messages(
class AugmentedHelpFormatter (line 277) | class AugmentedHelpFormatter(argparse.RawDescriptionHelpFormatter):
method __init__ (line 278) | def __init__(self, prog: str) -> None:
method _fill_text (line 281) | def _fill_text(self, text: str, width: int, indent: str) -> str:
function invert_flag_name (line 299) | def invert_flag_name(flag: str) -> str:
class PythonExecutableInferenceError (line 311) | class PythonExecutableInferenceError(Exception):
function python_executable_prefix (line 315) | def python_executable_prefix(v: str) -> list[str]:
function _python_executable_from_version (line 326) | def _python_executable_from_version(python_version: tuple[int, int]) -> ...
function infer_python_executable (line 347) | def infer_python_executable(options: Options, special_opts: argparse.Nam...
class CapturableArgumentParser (line 403) | class CapturableArgumentParser(argparse.ArgumentParser):
method __init__ (line 410) | def __init__(self, *args: Any, **kwargs: Any) -> None:
method print_usage (line 418) | def print_usage(self, file: SupportsWrite[str] | None = None) -> None:
method print_help (line 423) | def print_help(self, file: SupportsWrite[str] | None = None) -> None:
method _print_message (line 428) | def _print_message(self, message: str, file: SupportsWrite[str] | None...
method exit (line 437) | def exit(self, status: int = 0, message: str | None = None) -> NoReturn:
method error (line 442) | def error(self, message: str) -> NoReturn:
class CapturableVersionAction (line 456) | class CapturableVersionAction(argparse.Action):
method __init__ (line 467) | def __init__(
method __call__ (line 482) | def __call__(
function process_options (line 495) | def process_options(
function process_package_roots (line 1633) | def process_package_roots(
function process_cache_map (line 1668) | def process_cache_map(
function maybe_write_junit_xml (line 1692) | def maybe_write_junit_xml(
function fail (line 1717) | def fail(msg: str, stderr: TextIO, options: Options) -> NoReturn:
function read_types_packages_to_install (line 1726) | def read_types_packages_to_install(cache_dir: str, after_run: bool) -> l...
function install_types (line 1745) | def install_types(
FILE: mypy/maptype.py
function map_instance_to_supertype (line 8) | def map_instance_to_supertype(instance: Instance, superclass: TypeInfo) ...
function map_instance_to_supertypes (line 45) | def map_instance_to_supertypes(instance: Instance, supertype: TypeInfo) ...
function class_derivation_paths (line 65) | def class_derivation_paths(typ: TypeInfo, supertype: TypeInfo) -> list[l...
function map_instance_to_direct_supertypes (line 89) | def map_instance_to_direct_supertypes(instance: Instance, supertype: Typ...
FILE: mypy/meet.py
function trivial_meet (line 66) | def trivial_meet(s: Type, t: Type) -> ProperType:
function meet_types (line 79) | def meet_types(s: Type, t: Type, intersect=False) -> ProperType:
function narrow_declared_type (line 125) | def narrow_declared_type(declared: Type, narrowed: Type) -> Type:
function get_possible_variants (line 213) | def get_possible_variants(typ: Type) -> list[Type]:
function is_enum_overlapping_union (line 263) | def is_enum_overlapping_union(x: ProperType, y: ProperType) -> bool:
function is_literal_in_union (line 276) | def is_literal_in_union(x: ProperType, y: ProperType) -> bool:
function is_object (line 285) | def is_object(t: ProperType) -> bool:
function is_overlapping_types (line 289) | def is_overlapping_types(
function is_overlapping_erased_types (line 627) | def is_overlapping_erased_types(
function are_typed_dicts_overlapping (line 639) | def are_typed_dicts_overlapping(
function are_tuples_overlapping (line 663) | def are_tuples_overlapping(
function expand_tuple_if_possible (line 690) | def expand_tuple_if_possible(tup: TupleType, target: int) -> TupleType:
function adjust_tuple (line 711) | def adjust_tuple(left: ProperType, r: ProperType) -> TupleType | None:
function is_tuple (line 719) | def is_tuple(typ: Type) -> bool:
class TypeMeetVisitor (line 726) | class TypeMeetVisitor(TypeVisitor[ProperType]):
method __init__ (line 727) | def __init__(self, s: ProperType) -> None:
method visit_unbound_type (line 730) | def visit_unbound_type(self, t: UnboundType) -> ProperType:
method visit_any (line 741) | def visit_any(self, t: AnyType) -> ProperType:
method visit_union_type (line 744) | def visit_union_type(self, t: UnionType) -> ProperType:
method visit_intersection_type (line 754) | def visit_intersection_type(self, t: IntersectionType) -> ProperType:
method visit_none_type (line 759) | def visit_none_type(self, t: NoneType) -> ProperType:
method visit_uninhabited_type (line 770) | def visit_uninhabited_type(self, t: UninhabitedType) -> ProperType:
method visit_deleted_type (line 773) | def visit_deleted_type(self, t: DeletedType) -> ProperType:
method visit_erased_type (line 784) | def visit_erased_type(self, t: ErasedType) -> ProperType:
method visit_type_var (line 787) | def visit_type_var(self, t: TypeVarType) -> ProperType:
method visit_param_spec (line 793) | def visit_param_spec(self, t: ParamSpecType) -> ProperType:
method visit_type_var_tuple (line 799) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> ProperType:
method visit_unpack_type (line 805) | def visit_unpack_type(self, t: UnpackType) -> ProperType:
method visit_parameters (line 808) | def visit_parameters(self, t: Parameters) -> ProperType:
method visit_instance (line 820) | def visit_instance(self, t: Instance) -> ProperType:
method visit_callable_type (line 905) | def visit_callable_type(self, t: CallableType) -> ProperType:
method visit_overloaded (line 933) | def visit_overloaded(self, t: Overloaded) -> ProperType:
method meet_tuples (line 952) | def meet_tuples(self, s: TupleType, t: TupleType) -> list[Type] | None:
method visit_tuple_type (line 1030) | def visit_tuple_type(self, t: TupleType) -> ProperType:
method visit_typeddict_type (line 1050) | def visit_typeddict_type(self, t: TypedDictType) -> ProperType:
method visit_literal_type (line 1075) | def visit_literal_type(self, t: LiteralType) -> ProperType:
method visit_partial_type (line 1083) | def visit_partial_type(self, t: PartialType) -> ProperType:
method visit_type_type (line 1087) | def visit_type_type(self, t: TypeType) -> ProperType:
method visit_type_alias_type (line 1100) | def visit_type_alias_type(self, t: TypeAliasType) -> ProperType:
method meet (line 1103) | def meet(self, s: Type, t: Type) -> ProperType:
method default (line 1106) | def default(self, typ: Type) -> ProperType:
function meet_similar_callables (line 1116) | def meet_similar_callables(t: CallableType, s: CallableType) -> Callable...
function meet_type_list (line 1138) | def meet_type_list(types: list[Type]) -> Type:
function typed_dict_mapping_pair (line 1149) | def typed_dict_mapping_pair(left: Type, right: Type) -> bool:
function typed_dict_mapping_overlap (line 1169) | def typed_dict_mapping_overlap(
FILE: mypy/memprofile.py
function collect_memory_stats (line 20) | def collect_memory_stats() -> tuple[dict[str, int], dict[str, int]]:
function print_memory_profile (line 69) | def print_memory_profile(run_gc: bool = True) -> None:
function find_recursive_objects (line 94) | def find_recursive_objects(objs: list[object]) -> None:
FILE: mypy/message_registry.py
class ErrorMessage (line 16) | class ErrorMessage(NamedTuple):
method format (line 20) | def format(self, *args: object, **kwargs: object) -> ErrorMessage:
method with_additional_msg (line 23) | def with_additional_msg(self, info: str) -> ErrorMessage:
FILE: mypy/messages.py
class MessageBuilder (line 160) | class MessageBuilder:
method __init__ (line 180) | def __init__(self, errors: Errors, modules: dict[str, MypyFile]) -> None:
method filter_errors (line 190) | def filter_errors(
method add_errors (line 200) | def add_errors(self, errors: list[ErrorInfo]) -> None:
method disable_type_names (line 206) | def disable_type_names(self) -> Iterator[None]:
method are_type_names_disabled (line 213) | def are_type_names_disabled(self) -> bool:
method prefer_simple_messages (line 216) | def prefer_simple_messages(self) -> bool:
method report (line 224) | def report(
method fail (line 287) | def fail(
method note (line 310) | def note(
method note_multiline (line 335) | def note_multiline(
method has_no_attr (line 367) | def has_no_attr(
method unsupported_operand_types (line 575) | def unsupported_operand_types(
method unsupported_left_operand (line 606) | def unsupported_left_operand(self, op: str, typ: Type, context: Contex...
method not_callable (line 613) | def not_callable(self, typ: Type, context: Context) -> Type:
method untyped_function_call (line 617) | def untyped_function_call(self, callee: CallableType, context: Context...
method partially_typed_function_call (line 626) | def partially_typed_function_call(self, callee: CallableType, context:...
method untyped_indexed_assignment (line 639) | def untyped_indexed_assignment(self, context: IndexExpr):
method untyped_name_usage (line 645) | def untyped_name_usage(self, name: str | Expression, context: Context):
method incompatible_argument (line 659) | def incompatible_argument(
method incompatible_argument_note (line 889) | def incompatible_argument_note(
method maybe_note_concatenate_pos_args (line 924) | def maybe_note_concatenate_pos_args(
method invalid_index_type (line 956) | def invalid_index_type(
method readonly_keys_mutated (line 976) | def readonly_keys_mutated(self, keys: set[str], context: Context) -> N...
method too_few_arguments (line 987) | def too_few_arguments(
method missing_named_argument (line 1011) | def missing_named_argument(self, callee: CallableType, context: Contex...
method too_many_arguments (line 1015) | def too_many_arguments(self, callee: CallableType, context: Context) -...
method too_many_arguments_from_typed_dict (line 1023) | def too_many_arguments_from_typed_dict(
method too_many_positional_arguments (line 1036) | def too_many_positional_arguments(self, callee: CallableType, context:...
method maybe_note_about_special_args (line 1044) | def maybe_note_about_special_args(self, callee: CallableType, context:...
method unexpected_keyword_argument_for_function (line 1057) | def unexpected_keyword_argument_for_function(
method unexpected_keyword_argument (line 1065) | def unexpected_keyword_argument(
method duplicate_argument_value (line 1098) | def duplicate_argument_value(self, callee: CallableType, index: int, c...
method does_not_return_value (line 1106) | def does_not_return_value(self, callee_type: Type | None, context: Con...
method deleted_as_rvalue (line 1114) | def deleted_as_rvalue(self, typ: DeletedType, context: Context) -> None:
method deleted_as_lvalue (line 1122) | def deleted_as_lvalue(self, typ: DeletedType, context: Context) -> None:
method no_variant_matches_arguments (line 1134) | def no_variant_matches_arguments(
method wrong_number_values_to_unpack (line 1173) | def wrong_number_values_to_unpack(
method unpacking_strings_disallowed (line 1188) | def unpacking_strings_disallowed(self, context: Context) -> None:
method type_not_iterable (line 1191) | def type_not_iterable(self, type: Type, context: Context) -> None:
method possible_missing_await (line 1194) | def possible_missing_await(self, context: Context, code: ErrorCode | N...
method incompatible_operator_assignment (line 1197) | def incompatible_operator_assignment(self, op: str, context: Context) ...
method overload_signature_incompatible_with_supertype (line 1200) | def overload_signature_incompatible_with_supertype(
method signature_incompatible_with_supertype (line 1211) | def signature_incompatible_with_supertype(
method pretty_callable_or_overload (line 1280) | def pretty_callable_or_overload(
method argument_incompatible_with_supertype (line 1312) | def argument_incompatible_with_supertype(
method comparison_method_example_msg (line 1356) | def comparison_method_example_msg(self, class_name: str) -> str:
method return_type_incompatible_with_supertype (line 1369) | def return_type_incompatible_with_supertype(
method override_target (line 1406) | def override_target(self, name: str, name_in_super: str, supertype: st...
method incompatible_type_application (line 1412) | def incompatible_type_application(
method could_not_infer_type_arguments (line 1429) | def could_not_infer_type_arguments(
method invalid_var_arg (line 1444) | def invalid_var_arg(self, typ: Type, context: Context) -> None:
method invalid_keyword_var_arg (line 1447) | def invalid_keyword_var_arg(self, typ: Type, is_mapping: bool, context...
method undefined_in_superclass (line 1458) | def undefined_in_superclass(self, member: str, context: Context) -> None:
method variable_may_be_undefined (line 1461) | def variable_may_be_undefined(self, name: str, context: Context) -> None:
method var_used_before_def (line 1464) | def var_used_before_def(self, name: str, context: Context) -> None:
method first_argument_for_super_must_be_type (line 1467) | def first_argument_for_super_must_be_type(self, actual: Type, context:...
method unsafe_super (line 1481) | def unsafe_super(self, method: str, cls: str, ctx: Context) -> None:
method too_few_string_formatting_arguments (line 1488) | def too_few_string_formatting_arguments(self, context: Context) -> None:
method too_many_string_formatting_arguments (line 1491) | def too_many_string_formatting_arguments(self, context: Context) -> None:
method unsupported_placeholder (line 1498) | def unsupported_placeholder(self, placeholder: str, context: Context) ...
method string_interpolation_with_star_and_key (line 1503) | def string_interpolation_with_star_and_key(self, context: Context) -> ...
method requires_int_or_single_byte (line 1510) | def requires_int_or_single_byte(self, context: Context, format_call: b...
method requires_int_or_char (line 1519) | def requires_int_or_char(self, context: Context, format_call: bool = F...
method key_not_in_mapping (line 1526) | def key_not_in_mapping(self, key: str, context: Context) -> None:
method string_interpolation_mixing_key_and_non_keys (line 1529) | def string_interpolation_mixing_key_and_non_keys(self, context: Contex...
method cannot_determine_type (line 1536) | def cannot_determine_type(self, name: str, context: Context) -> None:
method cannot_determine_type_in_base (line 1539) | def cannot_determine_type_in_base(self, name: str, base: str, context:...
method no_formal_self (line 1542) | def no_formal_self(self, name: str, item: CallableType, context: Conte...
method incompatible_self_argument (line 1548) | def incompatible_self_argument(
method incompatible_conditional_function_def (line 1558) | def incompatible_conditional_function_def(
method cannot_instantiate_abstract_class (line 1570) | def cannot_instantiate_abstract_class(
method base_class_definitions_incompatible (line 1600) | def base_class_definitions_incompatible(
method cant_assign_to_method (line 1609) | def cant_assign_to_method(self, context: Context) -> None:
method cant_assign_to_classvar (line 1612) | def cant_assign_to_classvar(self, name: str, context: Context) -> None:
method no_overridable_method (line 1615) | def no_overridable_method(self, name: str, context: Context) -> None:
method explicit_override_decorator_missing (line 1622) | def explicit_override_decorator_missing(
method final_cant_override_writable (line 1632) | def final_cant_override_writable(self, name: str, ctx: Context) -> None:
method cant_override_final (line 1635) | def cant_override_final(self, name: str, base_name: str, ctx: Context)...
method cant_assign_to_final (line 1644) | def cant_assign_to_final(self, name: str, attr_assign: bool, ctx: Cont...
method protocol_members_cant_be_final (line 1652) | def protocol_members_cant_be_final(self, ctx: Context) -> None:
method final_without_value (line 1655) | def final_without_value(self, ctx: Context) -> None:
method read_only_property (line 1658) | def read_only_property(self, name: str, type: TypeInfo, context: Conte...
method incompatible_typevar_value (line 1661) | def incompatible_typevar_value(
method dangerous_comparison (line 1686) | def dangerous_comparison(self, left: Type, right: Type, kind: str, ctx...
method overload_inconsistently_applies_decorator (line 1697) | def overload_inconsistently_applies_decorator(self, decorator: str, co...
method overloaded_signatures_overlap (line 1704) | def overloaded_signatures_overlap(
method overloaded_signature_will_never_match (line 1720) | def overloaded_signature_will_never_match(
method overloaded_signatures_typevar_specific (line 1732) | def overloaded_signatures_typevar_specific(self, index: int, context: ...
method overloaded_signatures_arg_specific (line 1739) | def overloaded_signatures_arg_specific(self, index: int, context: Cont...
method overloaded_signatures_ret_specific (line 1748) | def overloaded_signatures_ret_specific(self, index: int, context: Cont...
method warn_both_operands_are_from_unions (line 1754) | def warn_both_operands_are_from_unions(self, context: Context) -> None:
method warn_operand_was_from_union (line 1757) | def warn_operand_was_from_union(self, side: str, original: Type, conte...
method operator_method_signatures_overlap (line 1764) | def operator_method_signatures_overlap(
method forward_operator_not_callable (line 1782) | def forward_operator_not_callable(self, forward_method: str, context: ...
method signatures_incompatible (line 1785) | def signatures_incompatible(self, method: str, other_method: str, cont...
method yield_from_invalid_operand_type (line 1788) | def yield_from_invalid_operand_type(self, expr: Type, context: Context...
method invalid_signature (line 1797) | def invalid_signature(self, func_type: Type, context: Context) -> None:
method invalid_signature_for_special_method (line 1800) | def invalid_signature_for_special_method(
method reveal_type (line 1808) | def reveal_type(self, typ: Type, context: Context, defined: Type | Non...
method reveal_locals (line 1824) | def reveal_locals(self, type_map: dict[str, Type | None], context: Con...
method unsupported_type_type (line 1836) | def unsupported_type_type(self, item: Type, context: Context) -> None:
method redundant_cast (line 1841) | def redundant_cast(self, typ: Type, context: Context) -> None:
method assert_type_fail (line 1848) | def assert_type_fail(self, source_type: Type, target_type: Type, conte...
method unimported_type_becomes_any (line 1852) | def unimported_type_becomes_any(self, prefix: str, typ: Type, ctx: Con...
method need_annotation_for_var (line 1859) | def need_annotation_for_var(
method explicit_any (line 1896) | def explicit_any(self, ctx: Context) -> None:
method unsupported_target_for_star_typeddict (line 1899) | def unsupported_target_for_star_typeddict(self, typ: Type, ctx: Contex...
method non_required_keys_absent_with_star (line 1908) | def non_required_keys_absent_with_star(self, keys: list[str], ctx: Con...
method unexpected_typeddict_keys (line 1917) | def unexpected_typeddict_keys(
method typeddict_key_must_be_string_literal (line 1959) | def typeddict_key_must_be_string_literal(self, typ: TypedDictType, con...
method typeddict_key_not_found (line 1968) | def typeddict_key_not_found(
method typeddict_context_ambiguous (line 1998) | def typeddict_context_ambiguous(self, types: list[TypedDictType], cont...
method typeddict_key_cannot_be_deleted (line 2004) | def typeddict_key_cannot_be_deleted(
method typeddict_setdefault_arguments_inconsistent (line 2015) | def typeddict_setdefault_arguments_inconsistent(
method type_arguments_not_allowed (line 2025) | def type_arguments_not_allowed(self, context: Context) -> None:
method disallowed_any_type (line 2028) | def disallowed_any_type(self, typ: Type, context: Context) -> None:
method incorrectly_returning_any (line 2036) | def incorrectly_returning_any(self, typ: Type, context: Context) -> None:
method incorrect__exit__return (line 2042) | def incorrect__exit__return(self, context: Context) -> None:
method untyped_decorated_function (line 2060) | def untyped_decorated_function(self, typ: Type, context: Context) -> N...
method typed_function_untyped_decorator (line 2075) | def typed_function_untyped_decorator(self, func_name: str, context: Co...
method bad_proto_variance (line 2078) | def bad_proto_variance(
method concrete_only_assign (line 2088) | def concrete_only_assign(self, typ: Type, context: Context) -> None:
method concrete_only_call (line 2095) | def concrete_only_call(self, typ: Type, context: Context) -> None:
method cannot_use_function_with_type (line 2102) | def cannot_use_function_with_type(
method report_non_method_protocol (line 2107) | def report_non_method_protocol(
method note_call (line 2118) | def note_call(
method unreachable_statement (line 2130) | def unreachable_statement(self, context: Context) -> None:
method redundant_left_operand (line 2133) | def redundant_left_operand(self, op_name: str, context: Context) -> None:
method unreachable_right_operand (line 2140) | def unreachable_right_operand(self, op_name: str, context: Context) ->...
method redundant_condition_in_comprehension (line 2149) | def redundant_condition_in_comprehension(self, truthiness: bool, conte...
method redundant_condition_in_if (line 2152) | def redundant_condition_in_if(self, truthiness: bool, context: Context...
method redundant_expr (line 2155) | def redundant_expr(self, description: str, truthiness: bool, context: ...
method impossible_intersection (line 2162) | def impossible_intersection(
method tvar_without_default_type (line 2173) | def tvar_without_default_type(
method report_protocol_problems (line 2182) | def report_protocol_problems(
method pretty_overload (line 2383) | def pretty_overload(
method print_more (line 2410) | def print_more(
method try_report_long_tuple_assignment_error (line 2427) | def try_report_long_tuple_assignment_error(
method format_long_tuple_type (line 2472) | def format_long_tuple_type(self, typ: TupleType) -> str:
method generate_incompatible_tuple_error (line 2485) | def generate_incompatible_tuple_error(
method add_fixture_note (line 2517) | def add_fixture_note(self, fullname: str, ctx: Context) -> None:
method annotation_in_unchecked_function (line 2527) | def annotation_in_unchecked_function(self, context: Context) -> None:
method type_parameters_should_be_declared (line 2535) | def type_parameters_should_be_declared(self, undeclared: list[str], co...
function quote_type_string (line 2544) | def quote_type_string(type_string: str) -> str:
function format_callable_args (line 2559) | def format_callable_args(
function format_type_inner (line 2620) | def format_type_inner(
function collect_all_named_types (line 2904) | def collect_all_named_types(t: Type) -> list[Type]:
class CollectAllNamedTypesQuery (line 2915) | class CollectAllNamedTypesQuery(TypeTraverserVisitor):
method __init__ (line 2916) | def __init__(self) -> None:
method visit_instance (line 2919) | def visit_instance(self, t: Instance) -> None:
method visit_type_alias_type (line 2923) | def visit_type_alias_type(self, t: TypeAliasType) -> None:
method visit_type_var (line 2930) | def visit_type_var(self, t: TypeVarType) -> None:
method visit_type_var_tuple (line 2934) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> None:
method visit_param_spec (line 2938) | def visit_param_spec(self, t: ParamSpecType) -> None:
function scoped_type_var_name (line 2943) | def scoped_type_var_name(t: TypeVarLikeType) -> str:
function find_type_overlaps (line 2951) | def find_type_overlaps(*types: Type) -> set[str]:
function format_type (line 2978) | def format_type(
function format_type_bare (line 2994) | def format_type_bare(
function format_type_distinctly (line 3011) | def format_type_distinctly(*types: Type, options: Options, bare: bool = ...
function pretty_class_or_static_decorator (line 3037) | def pretty_class_or_static_decorator(tp: CallableType) -> str | None:
function pretty_callable (line 3047) | def pretty_callable(tp: CallableType, options: Options, skip_self: bool ...
function variance_string (line 3154) | def variance_string(variance: int) -> str:
function get_missing_protocol_members (line 3163) | def get_missing_protocol_members(left: Instance, right: Instance, skip: ...
function get_conflict_protocol_types (line 3177) | def get_conflict_protocol_types(
function get_bad_protocol_flags (line 3201) | def get_bad_protocol_flags(
function capitalize (line 3235) | def capitalize(s: str) -> str:
function extract_type (line 3243) | def extract_type(name: str) -> str:
function strip_quotes (line 3252) | def strip_quotes(s: str) -> str:
function format_string_list (line 3259) | def format_string_list(lst: list[str]) -> str:
function format_item_name_list (line 3273) | def format_item_name_list(s: Iterable[str]) -> str:
function callable_name (line 3281) | def callable_name(type: FunctionLike) -> str | None:
function for_function (line 3288) | def for_function(callee: CallableType) -> str:
function wrong_type_arg_count (line 3295) | def wrong_type_arg_count(low: int, high: int, act: str, name: str) -> str:
function find_defining_module (line 3309) | def find_defining_module(modules: dict[str, MypyFile], typ: CallableType...
function _real_quick_ratio (line 3328) | def _real_quick_ratio(a: str, b: str) -> float:
function best_matches (line 3336) | def best_matches(current: str, options: Collection[str], n: int) -> list...
function pretty_seq (line 3349) | def pretty_seq(args: Sequence[str], conjunction: str) -> str:
function append_invariance_notes (line 3359) | def append_invariance_notes(
function append_union_note (line 3391) | def append_union_note(
function append_numbers_notes (line 3408) | def append_numbers_notes(
function make_inferred_type_note (line 3419) | def make_inferred_type_note(
function format_key_list (line 3452) | def format_key_list(keys: list[str], *, short: bool = False) -> str:
function ignore_last_known_values (line 3463) | def ignore_last_known_values(t: UnionType) -> Type:
FILE: mypy/metastore.py
class MetadataStore (line 26) | class MetadataStore:
method getmtime (line 30) | def getmtime(self, name: str) -> float:
method read (line 37) | def read(self, name: str) -> bytes:
method write (line 44) | def write(self, name: str, data: bytes, mtime: float | None = None) ->...
method remove (line 54) | def remove(self, name: str) -> None:
method commit (line 58) | def commit(self) -> None:
method list_all (line 67) | def list_all(self) -> Iterable[str]: ...
function random_string (line 70) | def random_string() -> str:
class FilesystemMetadataStore (line 74) | class FilesystemMetadataStore(MetadataStore):
method __init__ (line 75) | def __init__(self, cache_dir_prefix: str) -> None:
method getmtime (line 84) | def getmtime(self, name: str) -> float:
method read (line 90) | def read(self, name: str) -> bytes:
method write (line 99) | def write(self, name: str, data: bytes, mtime: float | None = None) ->...
method remove (line 119) | def remove(self, name: str) -> None:
method commit (line 125) | def commit(self) -> None:
method list_all (line 128) | def list_all(self) -> Iterable[str]:
function connect_db (line 148) | def connect_db(db_file: str) -> sqlite3.Connection:
class SqliteMetadataStore (line 156) | class SqliteMetadataStore(MetadataStore):
method __init__ (line 157) | def __init__(self, cache_dir_prefix: str) -> None:
method _query (line 168) | def _query(self, name: str, field: str) -> Any:
method getmtime (line 180) | def getmtime(self, name: str) -> float:
method read (line 185) | def read(self, name: str) -> bytes:
method write (line 190) | def write(self, name: str, data: bytes, mtime: float | None = None) ->...
method remove (line 206) | def remove(self, name: str) -> None:
method commit (line 212) | def commit(self) -> None:
method list_all (line 216) | def list_all(self) -> Iterable[str]:
FILE: mypy/mixedtraverser.py
class MixedTraverserVisitor (line 27) | class MixedTraverserVisitor(TraverserVisitor, TypeTraverserVisitor):
method __init__ (line 30) | def __init__(self) -> None:
method visit_var (line 35) | def visit_var(self, var: Var, /) -> None:
method visit_func (line 38) | def visit_func(self, o: FuncItem, /) -> None:
method visit_class_def (line 42) | def visit_class_def(self, o: ClassDef, /) -> None:
method visit_type_alias_expr (line 51) | def visit_type_alias_expr(self, o: TypeAliasExpr, /) -> None:
method visit_type_var_expr (line 55) | def visit_type_var_expr(self, o: TypeVarExpr, /) -> None:
method visit_typeddict_expr (line 61) | def visit_typeddict_expr(self, o: TypedDictExpr, /) -> None:
method visit_namedtuple_expr (line 65) | def visit_namedtuple_expr(self, o: NamedTupleExpr, /) -> None:
method visit__promote_expr (line 70) | def visit__promote_expr(self, o: PromoteExpr, /) -> None:
method visit_newtype_expr (line 74) | def visit_newtype_expr(self, o: NewTypeExpr, /) -> None:
method visit_assignment_stmt (line 80) | def visit_assignment_stmt(self, o: AssignmentStmt, /) -> None:
method visit_type_alias_stmt (line 84) | def visit_type_alias_stmt(self, o: TypeAliasStmt, /) -> None:
method visit_type_alias (line 89) | def visit_type_alias(self, o: TypeAlias, /) -> None:
method visit_for_stmt (line 95) | def visit_for_stmt(self, o: ForStmt, /) -> None:
method visit_with_stmt (line 99) | def visit_with_stmt(self, o: WithStmt, /) -> None:
method visit_cast_expr (line 106) | def visit_cast_expr(self, o: CastExpr, /) -> None:
method visit_assert_type_expr (line 110) | def visit_assert_type_expr(self, o: AssertTypeExpr, /) -> None:
method visit_type_application (line 114) | def visit_type_application(self, o: TypeApplication, /) -> None:
method visit_optional_type (line 121) | def visit_optional_type(self, t: Type | None, /) -> None:
FILE: mypy/modulefinder.py
class SearchPaths (line 29) | class SearchPaths:
method __init__ (line 30) | def __init__(
method asdict (line 46) | def asdict(self) -> dict[str, tuple[str, ...]]:
class ModuleNotFoundReason (line 69) | class ModuleNotFoundReason(Enum):
method error_message_templates (line 87) | def error_message_templates(self, daemon: bool) -> tuple[str, list[str]]:
class BuildSource (line 121) | class BuildSource:
method __init__ (line 124) | def __init__(
method __repr__ (line 138) | def __repr__(self) -> str:
class BuildSourceSet (line 146) | class BuildSourceSet:
method __init__ (line 149) | def __init__(self, sources: list[BuildSource]) -> None:
method is_source (line 162) | def is_source(self, file: MypyFile) -> bool:
class FindModuleCache (line 170) | class FindModuleCache:
method __init__ (line 181) | def __init__(
method clear (line 206) | def clear(self) -> None:
method find_module_via_source_set (line 211) | def find_module_via_source_set(self, id: str) -> ModuleSearchResult | ...
method find_lib_path_dirs (line 260) | def find_lib_path_dirs(self, id: str, lib_path: tuple[str, ...]) -> Pa...
method get_toplevel_possibilities (line 276) | def get_toplevel_possibilities(self, lib_path: tuple[str, ...], id: st...
method find_module (line 307) | def find_module(self, id: str, *, fast_path: bool = False) -> ModuleSe...
method _typeshed_has_version (line 329) | def _typeshed_has_version(self, module: str) -> bool:
method _find_module_non_stub_helper (line 336) | def _find_module_non_stub_helper(
method _update_ns_ancestors (line 366) | def _update_ns_ancestors(self, components: list[str], match: tuple[str...
method _can_find_module_in_parent_dir (line 374) | def _can_find_module_in_parent_dir(self, id: str) -> bool:
method _find_module (line 392) | def _find_module(self, id: str, use_typeshed: bool) -> ModuleSearchRes...
method find_modules_recursive (line 607) | def find_modules_recursive(self, module: str) -> list[BuildSource]:
function matches_exclude (line 659) | def matches_exclude(
function is_init_file (line 677) | def is_init_file(path: str) -> bool:
function verify_module (line 681) | def verify_module(fscache: FileSystemCache, id: str, path: str, prefix: ...
function highest_init_level (line 695) | def highest_init_level(fscache: FileSystemCache, id: str, path: str, pre...
function mypy_path (line 710) | def mypy_path() -> list[str]:
function default_lib_path (line 717) | def default_lib_path(
function get_search_dirs (line 765) | def get_search_dirs(python_executable: str | None) -> tuple[list[str], l...
function compute_search_paths (line 803) | def compute_search_paths(
function load_stdlib_py_versions (line 891) | def load_stdlib_py_versions(custom_typeshed_dir: str | None) -> StdlibVe...
function parse_version (line 920) | def parse_version(version: str) -> tuple[int, int]:
function typeshed_py_version (line 925) | def typeshed_py_version(options: Options) -> tuple[int, int]:
FILE: mypy/moduleinspect.py
class ModuleProperties (line 17) | class ModuleProperties:
method __init__ (line 19) | def __init__(
function is_c_module (line 36) | def is_c_module(module: ModuleType) -> bool:
function is_pyc_only (line 44) | def is_pyc_only(file: str | None) -> bool:
class InspectError (line 48) | class InspectError(Exception):
function get_package_properties (line 52) | def get_package_properties(package_id: str) -> ModuleProperties:
function worker (line 95) | def worker(tasks: Queue[str], results: Queue[str | ModuleProperties], sy...
class ModuleInspect (line 108) | class ModuleInspect:
method __init__ (line 124) | def __init__(self) -> None:
method _start (line 127) | def _start(self) -> None:
method close (line 138) | def close(self) -> None:
method get_package_properties (line 142) | def get_package_properties(self, package_id: str) -> ModuleProperties:
method _get_from_queue (line 165) | def _get_from_queue(self) -> ModuleProperties | str | None:
method __enter__ (line 182) | def __enter__(self) -> ModuleInspect:
method __exit__ (line 185) | def __exit__(self, *args: object) -> None:
FILE: mypy/mro.py
function calculate_mro (line 10) | def calculate_mro(info: TypeInfo, obj_type: Callable[[], Instance] | Non...
class MroError (line 23) | class MroError(Exception):
function linearize_hierarchy (line 27) | def linearize_hierarchy(
function merge (line 46) | def merge(seqs: list[list[TypeInfo]]) -> list[TypeInfo]:
FILE: mypy/nodes.py
class Context (line 24) | class Context:
method __init__ (line 29) | def __init__(self, line: int = -1, column: int = -1) -> None:
method set_line (line 35) | def set_line(
function get_nongen_builtins (line 165) | def get_nongen_builtins(python_version: tuple[int, int]) -> dict[str, str]:
class Node (line 180) | class Node(Context):
method __str__ (line 185) | def __str__(self) -> str:
method str_with_options (line 191) | def str_with_options(self, options: Options) -> str:
method accept (line 196) | def accept(self, visitor: NodeVisitor[T]) -> T:
class Statement (line 201) | class Statement(Node):
method accept (line 206) | def accept(self, visitor: StatementVisitor[T]) -> T:
class Expression (line 211) | class Expression(Node):
method accept (line 216) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class FakeExpression (line 220) | class FakeExpression(Expression):
class SymbolNode (line 237) | class SymbolNode(Node):
method name (line 244) | def name(self) -> str:
method fullname (line 250) | def fullname(self) -> str:
method serialize (line 254) | def serialize(self) -> JsonDict:
method deserialize (line 258) | def deserialize(cls, data: JsonDict) -> SymbolNode:
class MypyFile (line 270) | class MypyFile(SymbolNode):
method __init__ (line 327) | def __init__(
method local_definitions (line 355) | def local_definitions(self) -> Iterator[Definition]:
method name (line 363) | def name(self) -> str:
method fullname (line 367) | def fullname(self) -> str:
method accept (line 370) | def accept(self, visitor: NodeVisitor[T]) -> T:
method is_package_init_file (line 373) | def is_package_init_file(self) -> bool:
method is_future_flag_set (line 376) | def is_future_flag_set(self, flag: str) -> bool:
method is_typeshed_file (line 379) | def is_typeshed_file(self, options: Options) -> bool:
method serialize (line 385) | def serialize(self) -> JsonDict:
method deserialize (line 397) | def deserialize(cls, data: JsonDict) -> MypyFile:
class ImportBase (line 410) | class ImportBase(Statement):
method __init__ (line 427) | def __init__(self) -> None:
class Import (line 435) | class Import(ImportBase):
method __init__ (line 444) | def __init__(self, ids: list[tuple[str, str | None]]) -> None:
method accept (line 448) | def accept(self, visitor: StatementVisitor[T]) -> T:
class ImportFrom (line 452) | class ImportFrom(ImportBase):
method __init__ (line 463) | def __init__(self, id: str, relative: int, names: list[tuple[str, str ...
method accept (line 469) | def accept(self, visitor: StatementVisitor[T]) -> T:
class ImportAll (line 473) | class ImportAll(ImportBase):
method __init__ (line 483) | def __init__(self, id: str, relative: int) -> None:
method accept (line 488) | def accept(self, visitor: StatementVisitor[T]) -> T:
class FuncBase (line 495) | class FuncBase(Node):
method __init__ (line 522) | def __init__(self) -> None:
method name (line 542) | def name(self) -> str:
method fullname (line 546) | def fullname(self) -> str:
class OverloadedFuncDef (line 553) | class OverloadedFuncDef(FuncBase, SymbolNode, Statement):
method __init__ (line 571) | def __init__(self, items: list[OverloadPart]) -> None:
method name (line 583) | def name(self) -> str:
method accept (line 591) | def accept(self, visitor: StatementVisitor[T]) -> T:
method serialize (line 594) | def serialize(self) -> JsonDict:
method deserialize (line 606) | def deserialize(cls, data: JsonDict) -> OverloadedFuncDef:
method is_dynamic (line 626) | def is_dynamic(self) -> bool:
class Argument (line 630) | class Argument(Node):
method __init__ (line 637) | def __init__(
method set_line (line 652) | def set_line(
class TypeParam (line 673) | class TypeParam:
method __init__ (line 676) | def __init__(
class FuncItem (line 700) | class FuncItem(FuncBase):
method __init__ (line 723) | def __init__(
method max_fixed_argc (line 751) | def max_fixed_argc(self) -> int:
method is_dynamic (line 754) | def is_dynamic(self) -> bool:
class FuncDef (line 775) | class FuncDef(FuncItem, SymbolNode, Statement):
method __init__ (line 798) | def __init__(
method name (line 823) | def name(self) -> str:
method accept (line 826) | def accept(self, visitor: StatementVisitor[T]) -> T:
method serialize (line 829) | def serialize(self) -> JsonDict:
method deserialize (line 855) | def deserialize(cls, data: JsonDict) -> FuncDef:
class Decorator (line 892) | class Decorator(SymbolNode, Statement):
method __init__ (line 910) | def __init__(self, func: FuncDef, decorators: list[Expression], var: V...
method name (line 919) | def name(self) -> str:
method fullname (line 923) | def fullname(self) -> str:
method is_final (line 927) | def is_final(self) -> bool:
method info (line 931) | def info(self) -> TypeInfo:
method type (line 935) | def type(self) -> mypy.types.Type | None:
method accept (line 938) | def accept(self, visitor: StatementVisitor[T]) -> T:
method serialize (line 941) | def serialize(self) -> JsonDict:
method deserialize (line 950) | def deserialize(cls, data: JsonDict) -> Decorator:
method is_dynamic (line 956) | def is_dynamic(self) -> bool:
class Var (line 985) | class Var(SymbolNode):
method __init__ (line 1022) | def __init__(self, name: str, type: mypy.types.Type | None = None) -> ...
method name (line 1077) | def name(self) -> str:
method fullname (line 1081) | def fullname(self) -> str:
method accept (line 1084) | def accept(self, visitor: NodeVisitor[T]) -> T:
method serialize (line 1087) | def serialize(self) -> JsonDict:
method deserialize (line 1102) | def deserialize(cls, data: JsonDict) -> Var:
class ClassDef (line 1114) | class ClassDef(Statement):
method __init__ (line 1157) | def __init__(
method fullname (line 1185) | def fullname(self) -> str:
method fullname (line 1189) | def fullname(self, v: str) -> None:
method accept (line 1192) | def accept(self, visitor: StatementVisitor[T]) -> T:
method is_generic (line 1195) | def is_generic(self) -> bool:
method serialize (line 1198) | def serialize(self) -> JsonDict:
method deserialize (line 1209) | def deserialize(cls, data: JsonDict) -> ClassDef:
class GlobalDecl (line 1224) | class GlobalDecl(Statement):
method __init__ (line 1233) | def __init__(self, names: list[str]) -> None:
method accept (line 1237) | def accept(self, visitor: StatementVisitor[T]) -> T:
class NonlocalDecl (line 1241) | class NonlocalDecl(Statement):
method __init__ (line 1250) | def __init__(self, names: list[str]) -> None:
method accept (line 1254) | def accept(self, visitor: StatementVisitor[T]) -> T:
class Block (line 1258) | class Block(Statement):
method __init__ (line 1263) | def __init__(self, body: list[Statement], *, is_unreachable: bool = Fa...
method accept (line 1273) | def accept(self, visitor: StatementVisitor[T]) -> T:
class ExpressionStmt (line 1280) | class ExpressionStmt(Statement):
method __init__ (line 1289) | def __init__(self, expr: Expression) -> None:
method accept (line 1293) | def accept(self, visitor: StatementVisitor[T]) -> T:
class AssignmentStmt (line 1297) | class AssignmentStmt(Statement):
method __init__ (line 1343) | def __init__(
method accept (line 1360) | def accept(self, visitor: StatementVisitor[T]) -> T:
class OperatorAssignmentStmt (line 1364) | class OperatorAssignmentStmt(Statement):
method __init__ (line 1375) | def __init__(self, op: str, lvalue: Lvalue, rvalue: Expression) -> None:
method accept (line 1381) | def accept(self, visitor: StatementVisitor[T]) -> T:
class WhileStmt (line 1385) | class WhileStmt(Statement):
method __init__ (line 1394) | def __init__(self, expr: Expression, body: Block, else_body: Block | N...
method accept (line 1400) | def accept(self, visitor: StatementVisitor[T]) -> T:
class ForStmt (line 1404) | class ForStmt(Statement):
method __init__ (line 1435) | def __init__(
method accept (line 1454) | def accept(self, visitor: StatementVisitor[T]) -> T:
class ReturnStmt (line 1458) | class ReturnStmt(Statement):
method __init__ (line 1465) | def __init__(self, expr: Expression | None) -> None:
method accept (line 1469) | def accept(self, visitor: StatementVisitor[T]) -> T:
class AssertStmt (line 1473) | class AssertStmt(Statement):
method __init__ (line 1481) | def __init__(self, expr: Expression, msg: Expression | None = None) ->...
method accept (line 1486) | def accept(self, visitor: StatementVisitor[T]) -> T:
class DelStmt (line 1490) | class DelStmt(Statement):
method __init__ (line 1497) | def __init__(self, expr: Lvalue) -> None:
method accept (line 1501) | def accept(self, visitor: StatementVisitor[T]) -> T:
class BreakStmt (line 1505) | class BreakStmt(Statement):
method accept (line 1508) | def accept(self, visitor: StatementVisitor[T]) -> T:
class ContinueStmt (line 1512) | class ContinueStmt(Statement):
method accept (line 1515) | def accept(self, visitor: StatementVisitor[T]) -> T:
class PassStmt (line 1519) | class PassStmt(Statement):
method accept (line 1522) | def accept(self, visitor: StatementVisitor[T]) -> T:
class IfStmt (line 1526) | class IfStmt(Statement):
method __init__ (line 1536) | def __init__(
method accept (line 1549) | def accept(self, visitor: StatementVisitor[T]) -> T:
class RaiseStmt (line 1553) | class RaiseStmt(Statement):
method __init__ (line 1562) | def __init__(self, expr: Expression | None, from_expr: Expression | No...
method accept (line 1567) | def accept(self, visitor: StatementVisitor[T]) -> T:
class TryStmt (line 1571) | class TryStmt(Statement):
method __init__ (line 1586) | def __init__(
method accept (line 1604) | def accept(self, visitor: StatementVisitor[T]) -> T:
class WithStmt (line 1608) | class WithStmt(Statement):
method __init__ (line 1622) | def __init__(
method accept (line 1637) | def accept(self, visitor: StatementVisitor[T]) -> T:
class MatchStmt (line 1641) | class MatchStmt(Statement):
method __init__ (line 1651) | def __init__(
method accept (line 1665) | def accept(self, visitor: StatementVisitor[T]) -> T:
class TypeAliasStmt (line 1669) | class TypeAliasStmt(Statement):
method __init__ (line 1680) | def __init__(self, name: NameExpr, type_args: list[TypeParam], value: ...
method accept (line 1688) | def accept(self, visitor: StatementVisitor[T]) -> T:
class IntExpr (line 1695) | class IntExpr(Expression):
method __init__ (line 1704) | def __init__(self, value: int) -> None:
method accept (line 1708) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class StrExpr (line 1718) | class StrExpr(Expression):
method __init__ (line 1727) | def __init__(self, value: str) -> None:
method accept (line 1731) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
function is_StrExpr_list (line 1735) | def is_StrExpr_list(seq: list[Expression]) -> TypeGuard[list[StrExpr]]: ...
class BytesExpr (line 1739) | class BytesExpr(Expression):
method __init__ (line 1757) | def __init__(self, value: str) -> None:
method accept (line 1761) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class FloatExpr (line 1765) | class FloatExpr(Expression):
method __init__ (line 1774) | def __init__(self, value: float) -> None:
method accept (line 1778) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class ComplexExpr (line 1782) | class ComplexExpr(Expression):
method __init__ (line 1791) | def __init__(self, value: complex) -> None:
method accept (line 1795) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class EllipsisExpr (line 1799) | class EllipsisExpr(Expression):
method accept (line 1804) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class StarExpr (line 1808) | class StarExpr(Expression):
method __init__ (line 1818) | def __init__(self, expr: Expression) -> None:
method accept (line 1825) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class RefExpr (line 1829) | class RefExpr(Expression):
method __init__ (line 1843) | def __init__(self) -> None:
method fullname (line 1866) | def fullname(self) -> str:
method fullname (line 1870) | def fullname(self, v: str) -> None:
class NameExpr (line 1874) | class NameExpr(RefExpr):
method __init__ (line 1884) | def __init__(self, name: str) -> None:
method accept (line 1890) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
method serialize (line 1893) | def serialize(self) -> JsonDict:
class MemberExpr (line 1897) | class MemberExpr(RefExpr):
method __init__ (line 1904) | def __init__(self, expr: Expression, name: str) -> None:
method accept (line 1912) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class ArgKind (line 1918) | class ArgKind(Enum):
method is_positional (line 1932) | def is_positional(self, star: bool = False) -> bool:
method is_named (line 1935) | def is_named(self, star: bool = False) -> bool:
method is_required (line 1938) | def is_required(self) -> bool:
method is_optional (line 1941) | def is_optional(self) -> bool:
method is_star (line 1944) | def is_star(self) -> bool:
class CallExpr (line 1956) | class CallExpr(Expression):
method __init__ (line 1967) | def __init__(
method accept (line 1990) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class YieldFromExpr (line 1994) | class YieldFromExpr(Expression):
method __init__ (line 2001) | def __init__(self, expr: Expression) -> None:
method accept (line 2005) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class YieldExpr (line 2009) | class YieldExpr(Expression):
method __init__ (line 2016) | def __init__(self, expr: Expression | None) -> None:
method accept (line 2020) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class IndexExpr (line 2024) | class IndexExpr(Expression):
method __init__ (line 2042) | def __init__(self, base: Expression, index: Expression) -> None:
method accept (line 2049) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class UnaryExpr (line 2053) | class UnaryExpr(Expression):
method __init__ (line 2065) | def __init__(self, op: str, expr: Expression) -> None:
method accept (line 2071) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class AssignmentExpr (line 2075) | class AssignmentExpr(Expression):
method __init__ (line 2082) | def __init__(self, target: Expression, value: Expression) -> None:
method accept (line 2087) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class OpExpr (line 2091) | class OpExpr(Expression):
method __init__ (line 2121) | def __init__(
method accept (line 2133) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class ComparisonExpr (line 2137) | class ComparisonExpr(Expression):
method __init__ (line 2149) | def __init__(self, operators: list[str], operands: list[Expression]) -...
method pairwise (line 2155) | def pairwise(self) -> Iterator[tuple[str, Expression, Expression]]:
method accept (line 2162) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class SliceExpr (line 2166) | class SliceExpr(Expression):
method __init__ (line 2180) | def __init__(
method accept (line 2191) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class CastExpr (line 2195) | class CastExpr(Expression):
method __init__ (line 2205) | def __init__(self, expr: Expression, typ: mypy.types.Type) -> None:
method accept (line 2210) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class AssertTypeExpr (line 2214) | class AssertTypeExpr(Expression):
method __init__ (line 2224) | def __init__(self, expr: Expression, typ: mypy.types.Type) -> None:
method accept (line 2229) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class RevealExpr (line 2233) | class RevealExpr(Expression):
method __init__ (line 2244) | def __init__(
method accept (line 2257) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class SuperExpr (line 2261) | class SuperExpr(Expression):
method __init__ (line 2272) | def __init__(self, name: str, call: CallExpr) -> None:
method accept (line 2278) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class LambdaExpr (line 2282) | class LambdaExpr(FuncItem, Expression):
method __init__ (line 2287) | def __init__(
method name (line 2298) | def name(self) -> str:
method expr (line 2301) | def expr(self) -> Expression:
method accept (line 2309) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
method is_dynamic (line 2312) | def is_dynamic(self) -> bool:
class ListExpr (line 2316) | class ListExpr(Expression):
method __init__ (line 2325) | def __init__(self, items: list[Expression]) -> None:
method accept (line 2329) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class DictExpr (line 2333) | class DictExpr(Expression):
method __init__ (line 2342) | def __init__(self, items: list[tuple[Expression | None, Expression]]) ...
method accept (line 2346) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class TupleExpr (line 2350) | class TupleExpr(Expression):
method __init__ (line 2361) | def __init__(self, items: list[Expression]) -> None:
method accept (line 2365) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class SetExpr (line 2369) | class SetExpr(Expression):
method __init__ (line 2378) | def __init__(self, items: list[Expression]) -> None:
method accept (line 2382) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class GeneratorExpr (line 2386) | class GeneratorExpr(Expression):
method __init__ (line 2399) | def __init__(
method accept (line 2414) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class ListComprehension (line 2418) | class ListComprehension(Expression):
method __init__ (line 2427) | def __init__(self, generator: GeneratorExpr) -> None:
method accept (line 2431) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class SetComprehension (line 2435) | class SetComprehension(Expression):
method __init__ (line 2444) | def __init__(self, generator: GeneratorExpr) -> None:
method accept (line 2448) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class DictionaryComprehension (line 2452) | class DictionaryComprehension(Expression):
method __init__ (line 2466) | def __init__(
method accept (line 2483) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class ConditionalExpr (line 2487) | class ConditionalExpr(Expression):
method __init__ (line 2498) | def __init__(self, cond: Expression, if_expr: Expression, else_expr: E...
method accept (line 2504) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class TypeApplication (line 2508) | class TypeApplication(Expression):
method __init__ (line 2518) | def __init__(self, expr: Expression, types: list[mypy.types.Type]) -> ...
method accept (line 2523) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class TypeVarLikeExpr (line 2542) | class TypeVarLikeExpr(SymbolNode, Expression):
method __init__ (line 2564) | def __init__(
method name (line 2583) | def name(self) -> str:
method fullname (line 2587) | def fullname(self) -> str:
class TypeVarExpr (line 2591) | class TypeVarExpr(TypeVarLikeExpr):
method __init__ (line 2611) | def __init__(
method accept (line 2625) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
method serialize (line 2628) | def serialize(self) -> JsonDict:
method deserialize (line 2640) | def deserialize(cls, data: JsonDict) -> TypeVarExpr:
class ParamSpecExpr (line 2652) | class ParamSpecExpr(TypeVarLikeExpr):
method accept (line 2657) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
method serialize (line 2660) | def serialize(self) -> JsonDict:
method deserialize (line 2671) | def deserialize(cls, data: JsonDict) -> ParamSpecExpr:
class TypeVarTupleExpr (line 2682) | class TypeVarTupleExpr(TypeVarLikeExpr):
method __init__ (line 2691) | def __init__(
method accept (line 2705) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
method serialize (line 2708) | def serialize(self) -> JsonDict:
method deserialize (line 2720) | def deserialize(cls, data: JsonDict) -> TypeVarTupleExpr:
class TypeAliasExpr (line 2732) | class TypeAliasExpr(Expression):
method __init__ (line 2741) | def __init__(self, node: TypeAlias) -> None:
method accept (line 2745) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class NamedTupleExpr (line 2749) | class NamedTupleExpr(Expression):
method __init__ (line 2761) | def __init__(self, info: TypeInfo, is_typed: bool = False) -> None:
method accept (line 2766) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class TypedDictExpr (line 2770) | class TypedDictExpr(Expression):
method __init__ (line 2780) | def __init__(self, info: TypeInfo) -> None:
method accept (line 2784) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class EnumCallExpr (line 2788) | class EnumCallExpr(Expression):
method __init__ (line 2801) | def __init__(self, info: TypeInfo, items: list[str], values: list[Expr...
method accept (line 2807) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class PromoteExpr (line 2811) | class PromoteExpr(Expression):
method __init__ (line 2818) | def __init__(self, type: mypy.types.ProperType) -> None:
method accept (line 2822) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class NewTypeExpr (line 2826) | class NewTypeExpr(Expression):
method __init__ (line 2839) | def __init__(
method accept (line 2847) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class AwaitExpr (line 2851) | class AwaitExpr(Expression):
method __init__ (line 2860) | def __init__(self, expr: Expression) -> None:
method accept (line 2864) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class TempNode (line 2871) | class TempNode(Expression):
method __init__ (line 2886) | def __init__(
method __repr__ (line 2897) | def __repr__(self) -> str:
method accept (line 2900) | def accept(self, visitor: ExpressionVisitor[T]) -> T:
class TypeInfo (line 2927) | class TypeInfo(SymbolNode):
method __init__ (line 3152) | def __init__(self, names: SymbolTable, defn: ClassDef, module_name: st...
method add_type_vars (line 3198) | def add_type_vars(self) -> None:
method name (line 3212) | def name(self) -> str:
method fullname (line 3217) | def fullname(self) -> str:
method is_generic (line 3220) | def is_generic(self) -> bool:
method get (line 3224) | def get(self, name: str) -> SymbolTableNode | None:
method get_containing_type_info (line 3231) | def get_containing_type_info(self, name: str) -> TypeInfo | None:
method protocol_members (line 3238) | def protocol_members(self) -> list[str]:
method enum_members (line 3255) | def enum_members(self) -> list[str]:
method __getitem__ (line 3267) | def __getitem__(self, name: str) -> SymbolTableNode:
method __repr__ (line 3274) | def __repr__(self) -> str:
method __bool__ (line 3277) | def __bool__(self) -> bool:
method has_readable_member (line 3283) | def has_readable_member(self, name: str) -> bool:
method get_method (line 3286) | def get_method(self, name: str) -> FuncBase | Decorator | None:
method calculate_metaclass_type (line 3298) | def calculate_metaclass_type(self) -> mypy.types.Instance | None:
method is_metaclass (line 3314) | def is_metaclass(self) -> bool:
method has_base (line 3321) | def has_base(self, fullname: str) -> bool:
method direct_base_classes (line 3331) | def direct_base_classes(self) -> list[TypeInfo]:
method update_tuple_type (line 3338) | def update_tuple_type(self, typ: mypy.types.TupleType) -> None:
method update_typeddict_type (line 3347) | def update_typeddict_type(self, typ: mypy.types.TypedDictType) -> None:
method __str__ (line 3356) | def __str__(self) -> str:
method dump (line 3367) | def dump(
method serialize (line 3397) | def serialize(self) -> JsonDict:
method deserialize (line 3437) | def deserialize(cls, data: JsonDict) -> TypeInfo:
class FakeInfo (line 3504) | class FakeInfo(TypeInfo):
method __init__ (line 3527) | def __init__(self, msg: str) -> None:
method __getattribute__ (line 3530) | def __getattribute__(self, attr: str) -> type:
class TypeAlias (line 3543) | class TypeAlias(SymbolNode):
method __init__ (line 3646) | def __init__(
method from_tuple_type (line 3678) | def from_tuple_type(cls, info: TypeInfo) -> TypeAlias:
method from_typeddict_type (line 3699) | def from_typeddict_type(cls, info: TypeInfo) -> TypeAlias:
method name (line 3720) | def name(self) -> str:
method fullname (line 3724) | def fullname(self) -> str:
method has_param_spec_type (line 3728) | def has_param_spec_type(self) -> bool:
method serialize (line 3731) | def serialize(self) -> JsonDict:
method accept (line 3745) | def accept(self, visitor: NodeVisitor[T]) -> T:
method deserialize (line 3749) | def deserialize(cls, data: JsonDict) -> TypeAlias:
class PlaceholderNode (line 3772) | class PlaceholderNode(SymbolNode):
method __init__ (line 3823) | def __init__(
method name (line 3832) | def name(self) -> str:
method fullname (line 3836) | def fullname(self) -> str:
method serialize (line 3839) | def serialize(self) -> JsonDict:
method accept (line 3842) | def accept(self, visitor: NodeVisitor[T]) -> T:
class SymbolTableNode (line 3846) | class SymbolTableNode:
method __init__ (line 3917) | def __init__(
method fullname (line 3938) | def fullname(self) -> str | None:
method type (line 3945) | def type(self) -> mypy.types.Type | None:
method copy (line 3954) | def copy(self) -> SymbolTableNode:
method __str__ (line 3961) | def __str__(self) -> str:
method serialize (line 3972) | def serialize(self, prefix: str, name: str) -> JsonDict:
method deserialize (line 4008) | def deserialize(cls, data: JsonDict) -> SymbolTableNode:
class SymbolTable (line 4030) | class SymbolTable(dict[str, SymbolTableNode]):
method __str__ (line 4038) | def __str__(self) -> str:
method copy (line 4055) | def copy(self) -> SymbolTable:
method serialize (line 4058) | def serialize(self, fullname: str) -> JsonDict:
method deserialize (line 4071) | def deserialize(cls, data: JsonDict) -> SymbolTable:
class DataclassTransformSpec (line 4080) | class DataclassTransformSpec:
method __init__ (line 4092) | def __init__(
method serialize (line 4110) | def serialize(self) -> JsonDict:
method deserialize (line 4120) | def deserialize(cls, data: JsonDict) -> DataclassTransformSpec:
function get_flags (line 4130) | def get_flags(node: Node, names: list[str]) -> list[str]:
function set_flags (line 4134) | def set_flags(node: Node, flags: list[str]) -> None:
function get_member_expr_fullname (line 4139) | def get_member_expr_fullname(expr: MemberExpr) -> str | None:
function check_arg_kinds (line 4165) | def check_arg_kinds(
function check_arg_names (line 4202) | def check_arg_names(
function is_class_var (line 4216) | def is_class_var(expr: NameExpr) -> bool:
function is_final_node (line 4223) | def is_final_node(
function local_definitions (line 4230) | def local_definitions(
FILE: mypy/options.py
class BuildType (line 16) | class BuildType:
function flip_if_not_based (line 85) | def flip_if_not_based(b: bool) -> bool:
function flip_if_legacy (line 96) | def flip_if_legacy(b: bool) -> bool:
class Options (line 114) | class Options:
method __init__ (line 117) | def __init__(self) -> None:
method use_lowercase_names (line 446) | def use_lowercase_names(self) -> bool:
method use_or_syntax (line 451) | def use_or_syntax(self) -> bool:
method use_star_unpack (line 456) | def use_star_unpack(self) -> bool:
method local_partial_types (line 461) | def local_partial_types(self) -> bool:
method local_partial_types (line 465) | def local_partial_types(self, value: bool) -> None:
method snapshot (line 468) | def snapshot(self) -> dict[str, object]:
method __repr__ (line 479) | def __repr__(self) -> str:
method process_error_codes (line 482) | def process_error_codes(
method process_incomplete_features (line 502) | def process_incomplete_features(
method apply_changes (line 512) | def apply_changes(self, changes: dict[str, object]) -> Options:
method compare_stable (line 539) | def compare_stable(self, other_snapshot: dict[str, object]) -> bool:
method build_per_module_cache (line 550) | def build_per_module_cache(self) -> None:
method clone_for_module (line 593) | def clone_for_module(self, module: str) -> Options:
method compile_glob (line 639) | def compile_glob(self, s: str) -> Pattern[str]:
method select_options_affecting_cache (line 649) | def select_options_affecting_cache(self) -> Mapping[str, object]:
method per_module (line 658) | def per_module(self, module: str) -> Options:
FILE: mypy/parse.py
function parse (line 8) | def parse(
FILE: mypy/partially_defined.py
class BranchState (line 51) | class BranchState:
method __init__ (line 59) | def __init__(
method copy (line 74) | def copy(self) -> BranchState:
class BranchStatement (line 82) | class BranchStatement:
method __init__ (line 83) | def __init__(self, initial_state: BranchState | None = None) -> None:
method copy (line 94) | def copy(self) -> BranchStatement:
method next_branch (line 99) | def next_branch(self) -> None:
method record_definition (line 107) | def record_definition(self, name: str) -> None:
method delete_var (line 112) | def delete_var(self, name: str) -> None:
method record_nested_branch (line 117) | def record_nested_branch(self, state: BranchState) -> None:
method skip_branch (line 127) | def skip_branch(self) -> None:
method is_possibly_undefined (line 131) | def is_possibly_undefined(self, name: str) -> bool:
method is_undefined (line 135) | def is_undefined(self, name: str) -> bool:
method is_defined_in_a_branch (line 140) | def is_defined_in_a_branch(self, name: str) -> bool:
method done (line 147) | def done(self) -> BranchState:
class ScopeType (line 173) | class ScopeType(Enum):
class Scope (line 180) | class Scope:
method __init__ (line 181) | def __init__(self, stmts: list[BranchStatement], scope_type: ScopeType...
method copy (line 186) | def copy(self) -> Scope:
method record_undefined_ref (line 191) | def record_undefined_ref(self, o: NameExpr) -> None:
method pop_undefined_ref (line 196) | def pop_undefined_ref(self, name: str) -> set[NameExpr]:
class DefinedVariableTracker (line 200) | class DefinedVariableTracker:
method __init__ (line 203) | def __init__(self) -> None:
method copy (line 210) | def copy(self) -> DefinedVariableTracker:
method _scope (line 216) | def _scope(self) -> Scope:
method enter_scope (line 220) | def enter_scope(self, scope_type: ScopeType) -> None:
method exit_scope (line 228) | def exit_scope(self) -> None:
method in_scope (line 231) | def in_scope(self, scope_type: ScopeType) -> bool:
method start_branch_statement (line 234) | def start_branch_statement(self) -> None:
method next_branch (line 240) | def next_branch(self) -> None:
method end_branch_statement (line 244) | def end_branch_statement(self) -> None:
method skip_branch (line 249) | def skip_branch(self) -> None:
method record_definition (line 254) | def record_definition(self, name: str) -> None:
method delete_var (line 259) | def delete_var(self, name: str) -> None:
method record_undefined_ref (line 264) | def record_undefined_ref(self, o: NameExpr) -> None:
method pop_undefined_ref (line 269) | def pop_undefined_ref(self, name: str) -> set[NameExpr]:
method is_possibly_undefined (line 274) | def is_possibly_undefined(self, name: str) -> bool:
method is_defined_in_different_branch (line 279) | def is_defined_in_different_branch(self, name: str) -> bool:
method is_undefined (line 290) | def is_undefined(self, name: str) -> bool:
class Loop (line 295) | class Loop:
method __init__ (line 296) | def __init__(self) -> None:
class PossiblyUndefinedVariableVisitor (line 300) | class PossiblyUndefinedVariableVisitor(ExtendedTraverserVisitor):
method __init__ (line 318) | def __init__(
method var_used_before_def (line 339) | def var_used_before_def(self, name: str, context: Context) -> None:
method variable_may_be_undefined (line 343) | def variable_may_be_undefined(self, name: str, context: Context) -> None:
method process_definition (line 347) | def process_definition(self, name: str) -> None:
method visit_global_decl (line 361) | def visit_global_decl(self, o: GlobalDecl) -> None:
method visit_nonlocal_decl (line 366) | def visit_nonlocal_decl(self, o: NonlocalDecl) -> None:
method process_lvalue (line 371) | def process_lvalue(self, lvalue: Lvalue | None) -> None:
method visit_assignment_stmt (line 380) | def visit_assignment_stmt(self, o: AssignmentStmt) -> None:
method visit_assignment_expr (line 385) | def visit_assignment_expr(self, o: AssignmentExpr) -> None:
method visit_if_stmt (line 389) | def visit_if_stmt(self, o: IfStmt) -> None:
method visit_match_stmt (line 405) | def visit_match_stmt(self, o: MatchStmt) -> None:
method visit_func_def (line 423) | def visit_func_def(self, o: FuncDef) -> None:
method visit_func (line 427) | def visit_func(self, o: FuncItem) -> None:
method visit_generator_expr (line 444) | def visit_generator_expr(self, o: GeneratorExpr) -> None:
method visit_dictionary_comprehension (line 451) | def visit_dictionary_comprehension(self, o: DictionaryComprehension) -...
method visit_for_stmt (line 458) | def visit_for_stmt(self, o: ForStmt) -> None:
method visit_return_stmt (line 481) | def visit_return_stmt(self, o: ReturnStmt) -> None:
method visit_lambda_expr (line 485) | def visit_lambda_expr(self, o: LambdaExpr) -> None:
method visit_assert_stmt (line 490) | def visit_assert_stmt(self, o: AssertStmt) -> None:
method visit_raise_stmt (line 495) | def visit_raise_stmt(self, o: RaiseStmt) -> None:
method visit_continue_stmt (line 499) | def visit_continue_stmt(self, o: ContinueStmt) -> None:
method visit_break_stmt (line 503) | def visit_break_stmt(self, o: BreakStmt) -> None:
method visit_expression_stmt (line 509) | def visit_expression_stmt(self, o: ExpressionStmt) -> None:
method visit_try_stmt (line 514) | def visit_try_stmt(self, o: TryStmt) -> None:
method process_try_stmt (line 546) | def process_try_stmt(self, o: TryStmt) -> None:
method visit_while_stmt (line 583) | def visit_while_stmt(self, o: WhileStmt) -> None:
method visit_as_pattern (line 609) | def visit_as_pattern(self, o: AsPattern) -> None:
method visit_starred_pattern (line 614) | def visit_starred_pattern(self, o: StarredPattern) -> None:
method visit_name_expr (line 619) | def visit_name_expr(self, o: NameExpr) -> None:
method visit_with_stmt (line 645) | def visit_with_stmt(self, o: WithStmt) -> None:
method visit_class_def (line 651) | def visit_class_def(self, o: ClassDef) -> None:
method visit_import (line 657) | def visit_import(self, o: Import) -> None:
method visit_import_from (line 670) | def visit_import_from(self, o: ImportFrom) -> None:
method visit_type_alias_stmt (line 678) | def visit_type_alias_stmt(self, o: TypeAliasStmt) -> None:
FILE: mypy/patterns.py
class Pattern (line 16) | class Pattern(Node):
method accept (line 21) | def accept(self, visitor: PatternVisitor[T]) -> T:
class AsPattern (line 25) | class AsPattern(Pattern):
method __init__ (line 36) | def __init__(self, pattern: Pattern | None, name: NameExpr | None) -> ...
method accept (line 41) | def accept(self, visitor: PatternVisitor[T]) -> T:
class OrPattern (line 45) | class OrPattern(Pattern):
method __init__ (line 50) | def __init__(self, patterns: list[Pattern]) -> None:
method accept (line 54) | def accept(self, visitor: PatternVisitor[T]) -> T:
class ValuePattern (line 58) | class ValuePattern(Pattern):
method __init__ (line 63) | def __init__(self, expr: Expression) -> None:
method accept (line 67) | def accept(self, visitor: PatternVisitor[T]) -> T:
class SingletonPattern (line 71) | class SingletonPattern(Pattern):
method __init__ (line 75) | def __init__(self, value: bool | None) -> None:
method accept (line 79) | def accept(self, visitor: PatternVisitor[T]) -> T:
class SequencePattern (line 83) | class SequencePattern(Pattern):
method __init__ (line 88) | def __init__(self, patterns: list[Pattern]) -> None:
method accept (line 92) | def accept(self, visitor: PatternVisitor[T]) -> T:
class StarredPattern (line 96) | class StarredPattern(Pattern):
method __init__ (line 101) | def __init__(self, capture: NameExpr | None) -> None:
method accept (line 105) | def accept(self, visitor: PatternVisitor[T]) -> T:
class MappingPattern (line 109) | class MappingPattern(Pattern):
method __init__ (line 114) | def __init__(
method accept (line 123) | def accept(self, visitor: PatternVisitor[T]) -> T:
class ClassPattern (line 127) | class ClassPattern(Pattern):
method __init__ (line 135) | def __init__(
method accept (line 149) | def accept(self, visitor: PatternVisitor[T]) -> T:
FILE: mypy/plugin.py
class TypeAnalyzerPluginInterface (line 154) | class TypeAnalyzerPluginInterface:
method fail (line 168) | def fail(self, msg: str, ctx: Context, *, code: ErrorCode | None = Non...
method named_type (line 173) | def named_type(self, fullname: str, args: list[Type], /) -> Instance:
method analyze_type (line 178) | def analyze_type(self, typ: Type, /) -> Type:
method analyze_callable_args (line 183) | def analyze_callable_args(
class AnalyzeTypeContext (line 191) | class AnalyzeTypeContext(NamedTuple):
class CommonPluginApi (line 198) | class CommonPluginApi:
method lookup_fully_qualified (line 210) | def lookup_fully_qualified(self, fullname: str) -> SymbolTableNode | N...
class CheckerPluginInterface (line 220) | class CheckerPluginInterface:
method type_context (line 234) | def type_context(self) -> list[Type | None]:
method fail (line 239) | def fail(
method named_generic_type (line 246) | def named_generic_type(self, name: str, args: list[Type]) -> Instance:
method get_expression_type (line 251) | def get_expression_type(self, node: Expression, type_context: Type | N...
class SemanticAnalyzerPluginInterface (line 257) | class SemanticAnalyzerPluginInterface:
method named_type (line 273) | def named_type(self, fullname: str, args: list[Type] | None = None) ->...
method builtin_type (line 278) | def builtin_type(self, fully_qualified_name: str) -> Instance:
method named_type_or_none (line 284) | def named_type_or_none(self, fullname: str, args: list[Type] | None = ...
method basic_new_typeinfo (line 294) | def basic_new_typeinfo(self, name: str, basetype_or_fallback: Instance...
method parse_bool (line 298) | def parse_bool(self, expr: Expression) -> bool | None:
method parse_str_literal (line 303) | def parse_str_literal(self, expr: Expression) -> str | None:
method fail (line 307) | def fail(
method anal_type (line 320) | def anal_type(
method class_type (line 339) | def class_type(self, self_type: Type) -> Type:
method lookup_fully_qualified (line 344) | def lookup_fully_qualified(self, fullname: str, /) -> SymbolTableNode:
method lookup_fully_qualified_or_none (line 352) | def lookup_fully_qualified_or_none(self, fullname: str, /) -> SymbolTa...
method lookup_qualified (line 360) | def lookup_qualified(
method add_plugin_dependency (line 370) | def add_plugin_dependency(self, trigger: str, target: str | None = Non...
method add_symbol_table_node (line 388) | def add_symbol_table_node(self, name: str, symbol: SymbolTableNode) ->...
method qualified_name (line 393) | def qualified_name(self, name: str) -> str:
method defer (line 398) | def defer(self) -> None:
method final_iteration (line 407) | def final_iteration(self) -> bool:
method is_stub_file (line 413) | def is_stub_file(self) -> bool:
method analyze_simple_literal_type (line 417) | def analyze_simple_literal_type(self, rvalue: Expression, is_final: bo...
class ReportConfigContext (line 423) | class ReportConfigContext(NamedTuple):
class FunctionSigContext (line 432) | class FunctionSigContext(NamedTuple):
class FunctionContext (line 444) | class FunctionContext(NamedTuple):
class MethodSigContext (line 467) | class MethodSigContext(NamedTuple):
class MethodContext (line 479) | class MethodContext(NamedTuple):
class AttributeContext (line 493) | class AttributeContext(NamedTuple):
class ClassDefContext (line 502) | class ClassDefContext(NamedTuple):
class DynamicClassDefContext (line 510) | class DynamicClassDefContext(NamedTuple):
class Plugin (line 517) | class Plugin(CommonPluginApi):
method __init__ (line 531) | def __init__(self, options: Options) -> None:
method set_modules (line 539) | def set_modules(self, modules: dict[str, MypyFile]) -> None:
method lookup_fully_qualified (line 542) | def lookup_fully_qualified(self, fullname: str) -> SymbolTableNode | N...
method report_config_data (line 546) | def report_config_data(self, ctx: ReportConfigContext) -> Any:
method get_additional_deps (line 569) | def get_additional_deps(self, file: MypyFile) -> list[tuple[int, str, ...
method get_type_analyze_hook (line 586) | def get_type_analyze_hook(self, fullname: str) -> Callable[[AnalyzeTyp...
method get_function_signature_hook (line 604) | def get_function_signature_hook(
method get_function_hook (line 621) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
method get_method_signature_hook (line 637) | def get_method_signature_hook(
method get_method_hook (line 667) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
method get_attribute_hook (line 675) | def get_attribute_hook(self, fullname: str) -> Callable[[AttributeCont...
method get_class_attribute_hook (line 706) | def get_class_attribute_hook(self, fullname: str) -> Callable[[Attribu...
method get_class_decorator_hook (line 724) | def get_class_decorator_hook(self, fullname: str) -> Callable[[ClassDe...
method get_class_decorator_hook_2 (line 742) | def get_class_decorator_hook_2(
method get_metaclass_hook (line 760) | def get_metaclass_hook(self, fullname: str) -> Callable[[ClassDefConte...
method get_base_class_hook (line 771) | def get_base_class_hook(self, fullname: str) -> Callable[[ClassDefCont...
method get_customize_class_mro_hook (line 780) | def get_customize_class_mro_hook(
method get_dynamic_class_hook (line 790) | def get_dynamic_class_hook(
class ChainedPlugin (line 811) | class ChainedPlugin(Plugin):
method __init__ (line 823) | def __init__(self, options: Options, plugins: list[Plugin]) -> None:
method set_modules (line 831) | def set_modules(self, modules: dict[str, MypyFile]) -> None:
method report_config_data (line 835) | def report_config_data(self, ctx: ReportConfigContext) -> Any:
method get_additional_deps (line 839) | def get_additional_deps(self, file: MypyFile) -> list[tuple[int, str, ...
method get_type_analyze_hook (line 845) | def get_type_analyze_hook(self, fullname: str) -> Callable[[AnalyzeTyp...
method get_function_signature_hook (line 848) | def get_function_signature_hook(
method get_function_hook (line 853) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
method get_method_signature_hook (line 856) | def get_method_signature_hook(
method get_method_hook (line 861) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
method get_attribute_hook (line 864) | def get_attribute_hook(self, fullname: str) -> Callable[[AttributeCont...
method get_class_attribute_hook (line 867) | def get_class_attribute_hook(self, fullname: str) -> Callable[[Attribu...
method get_class_decorator_hook (line 870) | def get_class_decorator_hook(self, fullname: str) -> Callable[[ClassDe...
method get_class_decorator_hook_2 (line 873) | def get_class_decorator_hook_2(
method get_metaclass_hook (line 878) | def get_metaclass_hook(self, fullname: str) -> Callable[[ClassDefConte...
method get_base_class_hook (line 881) | def get_base_class_hook(self, fullname: str) -> Callable[[ClassDefCont...
method get_customize_class_mro_hook (line 884) | def get_customize_class_mro_hook(
method get_dynamic_class_hook (line 889) | def get_dynamic_class_hook(
method _find_hook (line 894) | def _find_hook(self, lookup: Callable[[Plugin], T]) -> T | None:
FILE: mypy/plugins/attrs.py
class Converter (line 96) | class Converter:
method __init__ (line 99) | def __init__(self, init_type: Type | None = None, ret_type: Type | Non...
class Attribute (line 104) | class Attribute:
method __init__ (line 107) | def __init__(
method argument (line 129) | def argument(self, ctx: mypy.plugin.ClassDefContext) -> Argument:
method serialize (line 181) | def serialize(self) -> JsonDict:
method deserialize (line 201) | def deserialize(
method expand_typevar_from_subtype (line 226) | def expand_typevar_from_subtype(self, sub_type: TypeInfo) -> None:
function _determine_eq_order (line 235) | def _determine_eq_order(ctx: mypy.plugin.ClassDefContext) -> bool:
function _get_decorator_optional_bool_argument (line 264) | def _get_decorator_optional_bool_argument(
function attr_tag_callback (line 292) | def attr_tag_callback(ctx: mypy.plugin.ClassDefContext) -> None:
function attr_class_maker_callback (line 302) | def attr_class_maker_callback(
function attr_class_maker_callback_impl (line 332) | def attr_class_maker_callback_impl(
function _get_frozen (line 410) | def _get_frozen(ctx: mypy.plugin.ClassDefContext, frozen_default: bool) ...
function _analyze_class (line 421) | def _analyze_class(
function _add_empty_metadata (line 500) | def _add_empty_metadata(info: TypeInfo) -> None:
function _detect_auto_attribs (line 505) | def _detect_auto_attribs(ctx: mypy.plugin.ClassDefContext) -> bool:
function _attributes_from_assignment (line 534) | def _attributes_from_assignment(
function _cleanup_decorator (line 570) | def _cleanup_decorator(stmt: Decorator, attr_map: dict[str, Attribute]) ...
function _attribute_from_auto_attrib (line 600) | def _attribute_from_auto_attrib(
function _attribute_from_attrib_maker (line 616) | def _attribute_from_attrib_maker(
function _parse_converter (line 694) | def _parse_converter(
function is_valid_overloaded_converter (line 794) | def is_valid_overloaded_converter(defn: OverloadedFuncDef) -> bool:
function _parse_assignments (line 801) | def _parse_assignments(
function _add_order (line 818) | def _add_order(ctx: mypy.plugin.ClassDefContext, adder: MethodAdder) -> ...
function _make_frozen (line 848) | def _make_frozen(ctx: mypy.plugin.ClassDefContext, attributes: list[Attr...
function _add_init (line 870) | def _add_init(
function _add_attrs_magic_attribute (line 913) | def _add_attrs_magic_attribute(
function _add_slots (line 952) | def _add_slots(ctx: mypy.plugin.ClassDefContext, attributes: list[Attrib...
function _add_match_args (line 969) | def _add_match_args(ctx: mypy.plugin.ClassDefContext, attributes: list[A...
function _remove_hashability (line 986) | def _remove_hashability(ctx: mypy.plugin.ClassDefContext) -> None:
class MethodAdder (line 993) | class MethodAdder:
method __init__ (line 1001) | def __init__(self, ctx: mypy.plugin.ClassDefContext) -> None:
method add_method (line 1005) | def add_method(
function _get_attrs_init_type (line 1024) | def _get_attrs_init_type(typ: Instance) -> CallableType | None:
function _fail_not_attrs_class (line 1037) | def _fail_not_attrs_class(ctx: mypy.plugin.FunctionSigContext, t: Type, ...
function _get_expanded_attr_types (line 1056) | def _get_expanded_attr_types(
function _meet_fields (line 1098) | def _meet_fields(types: list[Mapping[str, Type]]) -> Mapping[str, Type]:
function evolve_function_sig_callback (line 1117) | def evolve_function_sig_callback(ctx: mypy.plugin.FunctionSigContext) ->...
function fields_function_sig_callback (line 1149) | def fields_function_sig_callback(ctx: mypy.plugin.FunctionSigContext) ->...
FILE: mypy/plugins/common.py
function _get_decorator_bool_argument (line 55) | def _get_decorator_bool_argument(ctx: ClassDefContext, name: str, defaul...
function _get_bool_argument (line 66) | def _get_bool_argument(ctx: ClassDefContext, expr: CallExpr, name: str, ...
function _get_argument (line 76) | def _get_argument(call: CallExpr, name: str) -> Expression | None:
function find_shallow_matching_overload_item (line 101) | def find_shallow_matching_overload_item(overload: Overloaded, call: Call...
function _get_callee_type (line 166) | def _get_callee_type(call: CallExpr) -> CallableType | None:
function add_method (line 189) | def add_method(
class MethodSpec (line 216) | class MethodSpec(NamedTuple):
function add_method_to_class (line 225) | def add_method_to_class(
function add_overloaded_method_to_class (line 256) | def add_overloaded_method_to_class(
function _prepare_class_namespace (line 305) | def _prepare_class_namespace(cls: ClassDef, name: str) -> None:
function _add_method_by_spec (line 324) | def _add_method_by_spec(
function add_attribute_to_class (line 391) | def add_attribute_to_class(
function deserialize_and_fixup_type (line 436) | def deserialize_and_fixup_type(data: str | JsonDict, api: SemanticAnalyz...
FILE: mypy/plugins/ctypes.py
function _find_simplecdata_base_arg (line 26) | def _find_simplecdata_base_arg(
function _autoconvertible_to_cdata (line 43) | def _autoconvertible_to_cdata(tp: Type, api: mypy.plugin.CheckerPluginIn...
function _autounboxed_cdata (line 78) | def _autounboxed_cdata(tp: Type) -> ProperType:
function _get_array_element_type (line 101) | def _get_array_element_type(tp: Type) -> ProperType | None:
function array_constructor_callback (line 111) | def array_constructor_callback(ctx: mypy.plugin.FunctionContext) -> Type:
function array_getitem_callback (line 149) | def array_getitem_callback(ctx: mypy.plugin.MethodContext) -> Type:
function array_setitem_callback (line 169) | def array_setitem_callback(ctx: mypy.plugin.MethodSigContext) -> Callabl...
function array_iter_callback (line 191) | def array_iter_callback(ctx: mypy.plugin.MethodContext) -> Type:
function array_value_callback (line 200) | def array_value_callback(ctx: mypy.plugin.AttributeContext) -> Type:
function array_raw_callback (line 225) | def array_raw_callback(ctx: mypy.plugin.AttributeContext) -> Type:
FILE: mypy/plugins/dataclasses.py
class DataclassAttribute (line 98) | class DataclassAttribute:
method __init__ (line 99) | def __init__(
method to_argument (line 127) | def to_argument(
method expand_type (line 161) | def expand_type(self, current_info: TypeInfo) -> Type | None:
method to_var (line 173) | def to_var(self, current_info: TypeInfo) -> Var:
method serialize (line 176) | def serialize(self) -> JsonDict:
method deserialize (line 192) | def deserialize(
method expand_typevar_from_subtype (line 199) | def expand_typevar_from_subtype(self, sub_type: TypeInfo) -> None:
class DataclassTransformer (line 207) | class DataclassTransformer:
method __init__ (line 217) | def __init__(
method transform (line 231) | def transform(self) -> bool:
method _add_dunder_replace (line 404) | def _add_dunder_replace(self, attributes: list[DataclassAttribute]) ->...
method _add_internal_replace_method (line 420) | def _add_internal_replace_method(self, attributes: list[DataclassAttri...
method _add_internal_post_init_method (line 434) | def _add_internal_post_init_method(self, attributes: list[DataclassAtt...
method add_slots (line 447) | def add_slots(
method reset_init_only_vars (line 489) | def reset_init_only_vars(self, info: TypeInfo, attributes: list[Datacl...
method _get_assignment_statements_from_if_statement (line 506) | def _get_assignment_statements_from_if_statement(
method _get_assignment_statements_from_block (line 515) | def _get_assignment_statements_from_block(self, block: Block) -> Itera...
method collect_attributes (line 522) | def collect_attributes(self) -> list[DataclassAttribute] | None:
method _freeze (line 754) | def _freeze(self, attributes: list[DataclassAttribute]) -> None:
method _propertize_callables (line 779) | def _propertize_callables(
method _is_kw_only_type (line 799) | def _is_kw_only_type(self, node: Type | None) -> bool:
method _add_dataclass_fields_magic_attribute (line 808) | def _add_dataclass_fields_magic_attribute(self) -> None:
method _collect_field_args (line 832) | def _collect_field_args(self, expr: Expression) -> tuple[bool, dict[st...
method _get_bool_arg (line 866) | def _get_bool_arg(self, name: str, default: bool) -> bool:
method _get_default_init_value_for_field_specifier (line 881) | def _get_default_init_value_for_field_specifier(self, call: Expression...
method _infer_dataclass_attr_init_type (line 905) | def _infer_dataclass_attr_init_type(
function add_dataclass_tag (line 950) | def add_dataclass_tag(info: TypeInfo) -> None:
function dataclass_tag_callback (line 955) | def dataclass_tag_callback(ctx: ClassDefContext) -> None:
function dataclass_class_maker_callback (line 964) | def dataclass_class_maker_callback(ctx: ClassDefContext) -> bool:
function _get_transform_spec (line 972) | def _get_transform_spec(reason: Expression) -> DataclassTransformSpec:
function _is_dataclasses_decorator (line 992) | def _is_dataclasses_decorator(node: Node) -> bool:
function _has_direct_dataclass_transform_metaclass (line 1000) | def _has_direct_dataclass_transform_metaclass(info: TypeInfo) -> bool:
function _get_expanded_dataclasses_fields (line 1007) | def _get_expanded_dataclasses_fields(
function _meet_replace_sigs (line 1044) | def _meet_replace_sigs(sigs: list[CallableType]) -> CallableType:
function replace_function_sig_callback (line 1073) | def replace_function_sig_callback(ctx: FunctionSigContext) -> CallableType:
function is_processed_dataclass (line 1105) | def is_processed_dataclass(info: TypeInfo) -> bool:
function check_post_init (line 1109) | def check_post_init(api: TypeChecker, defn: FuncItem, info: TypeInfo) ->...
FILE: mypy/plugins/default.py
class DefaultPlugin (line 40) | class DefaultPlugin(Plugin):
method get_function_hook (line 43) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
method get_function_signature_hook (line 72) | def get_function_signature_hook(
method get_method_signature_hook (line 87) | def get_method_signature_hook(
method get_method_hook (line 117) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
method get_attribute_hook (line 167) | def get_attribute_hook(self, fullname: str) -> Callable[[AttributeCont...
method get_class_decorator_hook (line 180) | def get_class_decorator_hook(self, fullname: str) -> Callable[[ClassDe...
method get_class_decorator_hook_2 (line 199) | def get_class_decorator_hook_2(
function typed_dict_get_signature_callback (line 225) | def typed_dict_get_signature_callback(ctx: MethodSigContext) -> Callable...
function typed_dict_get_callback (line 265) | def typed_dict_get_callback(ctx: MethodContext) -> Type:
function typed_dict_pop_signature_callback (line 304) | def typed_dict_pop_signature_callback(ctx: MethodSigContext) -> Callable...
function typed_dict_pop_callback (line 334) | def typed_dict_pop_callback(ctx: MethodContext) -> Type:
function typed_dict_setdefault_signature_callback (line 370) | def typed_dict_setdefault_signature_callback(ctx: MethodSigContext) -> C...
function typed_dict_setdefault_callback (line 393) | def typed_dict_setdefault_callback(ctx: MethodContext) -> Type:
function typed_dict_delitem_callback (line 442) | def typed_dict_delitem_callback(ctx: MethodContext) -> Type:
function typed_dict_update_signature_callback (line 470) | def typed_dict_update_signature_callback(ctx: MethodSigContext) -> Calla...
function int_pow_callback (line 521) | def int_pow_callback(ctx: MethodContext) -> Type:
function int_neg_callback (line 541) | def int_neg_callback(ctx: MethodContext, multiplier: int = -1) -> Type:
function int_pos_callback (line 570) | def int_pos_callback(ctx: MethodContext) -> Type:
function tuple_mul_callback (line 578) | def tuple_mul_callback(ctx: MethodContext) -> Type:
FILE: mypy/plugins/enums.py
function enum_name_callback (line 42) | def enum_name_callback(ctx: mypy.plugin.AttributeContext) -> Type:
function _first (line 69) | def _first(it: Iterable[_T]) -> _T | None:
function _infer_value_type_with_auto_fallback (line 79) | def _infer_value_type_with_auto_fallback(
function _implements_new (line 117) | def _implements_new(info: TypeInfo) -> bool:
function enum_member_callback (line 132) | def enum_member_callback(ctx: mypy.plugin.FunctionContext) -> Type:
function enum_value_callback (line 148) | def enum_value_callback(ctx: mypy.plugin.AttributeContext) -> Type:
function _extract_underlying_field_name (line 261) | def _extract_underlying_field_name(typ: Type) -> str | None:
FILE: mypy/plugins/functools.py
class _MethodInfo (line 36) | class _MethodInfo(NamedTuple):
function functools_total_ordering_maker_callback (line 41) | def functools_total_ordering_maker_callback(
function _find_other_type (line 80) | def _find_other_type(method: _MethodInfo) -> Type:
function _analyze_class (line 102) | def _analyze_class(ctx: mypy.plugin.ClassDefContext) -> dict[str, _Metho...
function partial_new_callback (line 126) | def partial_new_callback(ctx: mypy.plugin.FunctionContext) -> Type:
function handle_partial_with_callee (line 141) | def handle_partial_with_callee(ctx: mypy.plugin.FunctionContext, callee:...
function partial_call_callback (line 319) | def partial_call_callback(ctx: mypy.plugin.MethodContext) -> Type:
FILE: mypy/plugins/proper_plugin.py
class ProperTypePlugin (line 32) | class ProperTypePlugin(Plugin):
method get_function_hook (line 45) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
function isinstance_proper_hook (line 55) | def isinstance_proper_hook(ctx: FunctionContext) -> Type:
function is_special_target (line 79) | def is_special_target(right: ProperType) -> bool:
function is_improper_type (line 119) | def is_improper_type(typ: Type) -> bool:
function is_dangerous_target (line 130) | def is_dangerous_target(typ: ProperType) -> bool:
function proper_type_hook (line 139) | def proper_type_hook(ctx: FunctionContext) -> Type:
function proper_types_hook (line 153) | def proper_types_hook(ctx: FunctionContext) -> Type:
function get_proper_type_instance (line 166) | def get_proper_type_instance(ctx: FunctionContext) -> Instance:
function plugin (line 175) | def plugin(version: str) -> type[ProperTypePlugin]:
FILE: mypy/plugins/re.py
function match (line 30) | def match(ctx: FunctionContext | MethodContext) -> Type:
function match_groups (line 60) | def match_groups(ctx: MethodContext) -> Type:
function match_group (line 84) | def match_group(ctx: MethodContext) -> Type:
function _group (line 97) | def _group(value: object, groups: Groups, ctx: MethodContext) -> Type:
function compile (line 118) | def compile(ctx: FunctionContext) -> Type:
function split (line 137) | def split(ctx: FunctionContext | MethodContext) -> Type:
function findall (line 163) | def findall(ctx: FunctionContext | MethodContext) -> Type:
function sub (line 191) | def sub(ctx: FunctionSigContext | MethodSigContext) -> CallableType:
function _get_first_arg (line 229) | def _get_first_arg(arg: Type) -> str | int | None:
function _get_first_str_arg (line 245) | def _get_first_str_arg(arg: Type) -> str | None:
function match_groupdict (line 251) | def match_groupdict(ctx: MethodContext) -> Type:
function is_verbose (line 284) | def is_verbose(
function parse_groups (line 322) | def parse_groups(
function _parse_groups (line 333) | def _parse_groups(value: str, verbose=False) -> Groups | re.error:
function get_groups (line 448) | def get_groups(typ: Instance) -> Groups | None:
FILE: mypy/plugins/singledispatch.py
class SingledispatchTypeVars (line 26) | class SingledispatchTypeVars(NamedTuple):
class RegisterCallableInfo (line 31) | class RegisterCallableInfo(NamedTuple):
function get_singledispatch_info (line 43) | def get_singledispatch_info(typ: Instance) -> SingledispatchTypeVars | N...
function get_first_arg (line 52) | def get_first_arg(args: list[list[T]]) -> T | None:
function make_fake_register_class_instance (line 64) | def make_fake_register_class_instance(
function fail (line 84) | def fail(ctx: PluginContext, msg: str, context: Context | None) -> None:
function create_singledispatch_function_callback (line 100) | def create_singledispatch_function_callback(ctx: FunctionContext) -> Type:
function singledispatch_register_callback (line 127) | def singledispatch_register_callback(ctx: MethodContext) -> Type:
function register_function (line 158) | def register_function(
function get_dispatch_type (line 195) | def get_dispatch_type(func: CallableType, register_arg: Type | None) -> ...
function call_singledispatch_function_after_register_argument (line 203) | def call_singledispatch_function_after_register_argument(ctx: MethodCont...
function call_singledispatch_function_callback (line 218) | def call_singledispatch_function_callback(ctx: MethodSigContext) -> Func...
FILE: mypy/pyinfo.py
function getsitepackages (line 29) | def getsitepackages() -> list[str]:
function getsyspath (line 41) | def getsyspath() -> list[str]:
function getsearchdirs (line 70) | def getsearchdirs() -> tuple[list[str], list[str]]:
FILE: mypy/reachability.py
function infer_reachability_of_if_statement (line 54) | def infer_reachability_of_if_statement(s: IfStmt, options: Options) -> N...
function infer_reachability_of_match_statement (line 83) | def infer_reachability_of_match_statement(s: MatchStmt, options: Options...
function assert_will_always_fail (line 111) | def assert_will_always_fail(s: AssertStmt, options: Options) -> bool:
function infer_condition_value (line 115) | def infer_condition_value(expr: Expression, options: Options) -> int:
function infer_pattern_value (line 167) | def infer_pattern_value(pattern: Pattern) -> int:
function consider_sys_version_info (line 178) | def consider_sys_version_info(expr: Expression, pyversion: tuple[int, .....
function consider_sys_platform (line 222) | def consider_sys_platform(expr: Expression, platform: str) -> int:
function fixed_comparison (line 264) | def fixed_comparison(left: Targ, op: str, right: Targ) -> int:
function contains_int_or_tuple_of_ints (line 281) | def contains_int_or_tuple_of_ints(expr: Expression) -> None | int | tupl...
function contains_sys_version_info (line 295) | def contains_sys_version_info(expr: Expression) -> None | int | tuple[in...
function is_sys_attr (line 319) | def is_sys_attr(expr: Expression, name: str) -> bool:
function mark_block_unreachable (line 331) | def mark_block_unreachable(block: Block) -> None:
class MarkImportsUnreachableVisitor (line 336) | class MarkImportsUnreachableVisitor(TraverserVisitor):
method visit_import (line 339) | def visit_import(self, node: Import) -> None:
method visit_import_from (line 342) | def visit_import_from(self, node: ImportFrom) -> None:
method visit_import_all (line 345) | def visit_import_all(self, node: ImportAll) -> None:
function mark_block_mypy_only (line 349) | def mark_block_mypy_only(block: Block) -> None:
class MarkImportsMypyOnlyVisitor (line 353) | class MarkImportsMypyOnlyVisitor(TraverserVisitor):
method visit_import (line 356) | def visit_import(self, node: Import) -> None:
method visit_import_from (line 359) | def visit_import_from(self, node: ImportFrom) -> None:
method visit_import_all (line 362) | def visit_import_all(self, node: ImportAll) -> None:
method visit_func_def (line 365) | def visit_func_def(self, node: FuncDef) -> None:
method visit_overloaded_func_def (line 368) | def visit_overloaded_func_def(self, o: OverloadedFuncDef) -> None:
FILE: mypy/refinfo.py
class RefInfoVisitor (line 29) | class RefInfoVisitor(TraverserVisitor):
method __init__ (line 30) | def __init__(self, type_map: dict[Expression, Type]) -> None:
method visit_name_expr (line 35) | def visit_name_expr(self, expr: NameExpr) -> None:
method visit_member_expr (line 39) | def visit_member_expr(self, expr: MemberExpr) -> None:
method visit_func_def (line 43) | def visit_func_def(self, func: FuncDef) -> None:
method record_ref_expr (line 51) | def record_ref_expr(self, expr: RefExpr) -> None:
function type_fullname (line 70) | def type_fullname(typ: Type, node: SymbolNode | None = None) -> str | None:
function get_undocumented_ref_info_json (line 87) | def get_undocumented_ref_info_json(
FILE: mypy/renaming.py
class VariableRenameVisitor (line 40) | class VariableRenameVisitor(TraverserVisitor):
method __init__ (line 71) | def __init__(self) -> None:
method visit_mypy_file (line 94) | def visit_mypy_file(self, file_node: MypyFile) -> None:
method visit_func_def (line 104) | def visit_func_def(self, fdef: FuncDef) -> None:
method visit_class_def (line 121) | def visit_class_def(self, cdef: ClassDef) -> None:
method visit_block (line 126) | def visit_block(self, block: Block) -> None:
method visit_while_stmt (line 130) | def visit_while_stmt(self, stmt: WhileStmt) -> None:
method visit_for_stmt (line 134) | def visit_for_stmt(self, stmt: ForStmt) -> None:
method visit_break_stmt (line 144) | def visit_break_stmt(self, stmt: BreakStmt) -> None:
method visit_continue_stmt (line 147) | def visit_continue_stmt(self, stmt: ContinueStmt) -> None:
method visit_try_stmt (line 150) | def visit_try_stmt(self, stmt: TryStmt) -> None:
method visit_with_stmt (line 157) | def visit_with_stmt(self, stmt: WithStmt) -> None:
method visit_import (line 171) | def visit_import(self, imp: Import) -> None:
method visit_import_from (line 175) | def visit_import_from(self, imp: ImportFrom) -> None:
method visit_assignment_stmt (line 179) | def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
method visit_match_stmt (line 184) | def visit_match_stmt(self, s: MatchStmt) -> None:
method visit_capture_pattern (line 196) | def visit_capture_pattern(self, p: AsPattern) -> None:
method analyze_lvalue (line 200) | def analyze_lvalue(self, lvalue: Lvalue, is_nested: bool = False) -> N...
method visit_name_expr (line 231) | def visit_name_expr(self, expr: NameExpr) -> None:
method handle_arg (line 236) | def handle_arg(self, name: str) -> None:
method handle_def (line 241) | def handle_def(self, expr: NameExpr) -> None:
method handle_refine (line 248) | def handle_refine(self, expr: NameExpr) -> None:
method handle_ref (line 257) | def handle_ref(self, expr: NameExpr) -> None:
method flush_refs (line 268) | def flush_refs(self) -> None:
method clear (line 292) | def clear(self) -> None:
method enter_block (line 297) | def enter_block(self) -> Iterator[None]:
method enter_try (line 307) | def enter_try(self) -> Iterator[None]:
method enter_loop (line 315) | def enter_loop(self) -> Iterator[None]:
method current_block (line 322) | def current_block(self) -> int:
method enter_scope (line 326) | def enter_scope(self, kind: int) -> Iterator[None]:
method is_nested (line 339) | def is_nested(self) -> int:
method reject_redefinition_of_vars_in_scope (line 342) | def reject_redefinition_of_vars_in_scope(self) -> None:
method reject_redefinition_of_vars_in_loop (line 359) | def reject_redefinition_of_vars_in_loop(self) -> None:
method record_assignment (line 380) | def record_assignment(self, name: str, can_be_redefined: bool) -> bool:
class LimitedVariableRenameVisitor (line 413) | class LimitedVariableRenameVisitor(TraverserVisitor):
method __init__ (line 443) | def __init__(self) -> None:
method visit_mypy_file (line 455) | def visit_mypy_file(self, file_node: MypyFile) -> None:
method visit_func_def (line 464) | def visit_func_def(self, fdef: FuncDef) -> None:
method visit_class_def (line 471) | def visit_class_def(self, cdef: ClassDef) -> None:
method visit_with_stmt (line 476) | def visit_with_stmt(self, stmt: WithStmt) -> None:
method analyze_lvalue (line 491) | def analyze_lvalue(self, lvalue: Lvalue) -> None:
method visit_import (line 514) | def visit_import(self, imp: Import) -> None:
method visit_import_from (line 519) | def visit_import_from(self, imp: ImportFrom) -> None:
method visit_import_all (line 524) | def visit_import_all(self, imp: ImportAll) -> None:
method visit_name_expr (line 528) | def visit_name_expr(self, expr: NameExpr) -> None:
method enter_scope (line 539) | def enter_scope(self) -> Iterator[None]:
method reject_redefinition_of_vars_in_scope (line 545) | def reject_redefinition_of_vars_in_scope(self) -> None:
method record_skipped (line 548) | def record_skipped(self, name: str) -> None:
method flush_refs (line 551) | def flush_refs(self) -> None:
function rename_refs (line 565) | def rename_refs(names: list[NameExpr], index: int) -> None:
FILE: mypy/report.py
class Reports (line 54) | class Reports:
method __init__ (line 55) | def __init__(self, data_dir: str, report_dirs: dict[str, str]) -> None:
method add_report (line 63) | def add_report(self, report_type: str, report_dir: str) -> AbstractRep...
method file (line 84) | def file(
method finish (line 94) | def finish(self) -> None:
class AbstractReporter (line 99) | class AbstractReporter(metaclass=ABCMeta):
method __init__ (line 100) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 106) | def on_file(
method on_finish (line 116) | def on_finish(self) -> None:
function register_reporter (line 120) | def register_reporter(
function alias_reporter (line 128) | def alias_reporter(source_reporter: str, target_reporter: str) -> None:
function should_skip_path (line 132) | def should_skip_path(path: str) -> bool:
function iterate_python_lines (line 142) | def iterate_python_lines(path: str) -> Iterator[tuple[int, str]]:
class FuncCounterVisitor (line 152) | class FuncCounterVisitor(TraverserVisitor):
method __init__ (line 153) | def __init__(self) -> None:
method visit_func_def (line 157) | def visit_func_def(self, defn: FuncDef) -> None:
class LineCountReporter (line 161) | class LineCountReporter(AbstractReporter):
method __init__ (line 162) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 166) | def on_file(
method on_finish (line 202) | def on_finish(self) -> None:
class AnyExpressionsReporter (line 216) | class AnyExpressionsReporter(AbstractReporter):
method __init__ (line 219) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 224) | def on_file(
method on_finish (line 248) | def on_finish(self) -> None:
method _write_out_report (line 252) | def _write_out_report(
method _report_any_exprs (line 278) | def _report_any_exprs(self) -> None:
method _report_types_of_anys (line 296) | def _report_types_of_anys(self) -> None:
class LineCoverageVisitor (line 315) | class LineCoverageVisitor(TraverserVisitor):
method __init__ (line 316) | def __init__(self, source: list[str]) -> None:
method indentation_level (line 336) | def indentation_level(self, line_number: int) -> int | None:
method visit_func_def (line 360) | def visit_func_def(self, defn: FuncDef) -> None:
class LineCoverageReporter (line 406) | class LineCoverageReporter(AbstractReporter):
method __init__ (line 416) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 420) | def on_file(
method on_finish (line 440) | def on_finish(self) -> None:
class FileInfo (line 448) | class FileInfo:
method __init__ (line 449) | def __init__(self, name: str, module: str) -> None:
method total (line 454) | def total(self) -> int:
method attrib (line 457) | def attrib(self) -> dict[str, str]:
class MemoryXmlReporter (line 461) | class MemoryXmlReporter(AbstractReporter):
method __init__ (line 467) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 483) | def on_file(
method _get_any_info_for_line (line 536) | def _get_any_info_for_line(visitor: stats.StatisticsVisitor, lineno: i...
method on_finish (line 548) | def on_finish(self) -> None:
function get_line_rate (line 578) | def get_line_rate(covered_lines: int, total_lines: int) -> str:
class CoberturaPackage (line 585) | class CoberturaPackage:
method __init__ (line 588) | def __init__(self, name: str) -> None:
method as_xml (line 595) | def as_xml(self) -> Any:
method add_packages (line 605) | def add_packages(self, parent_element: Any) -> None:
class CoberturaXmlReporter (line 612) | class CoberturaXmlReporter(AbstractReporter):
method __init__ (line 615) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 624) | def on_file(
method on_finish (line 690) | def on_finish(self) -> None:
class AbstractXmlReporter (line 709) | class AbstractXmlReporter(AbstractReporter):
method __init__ (line 712) | def __init__(self, reports: Reports, output_dir: str) -> None:
class XmlReporter (line 721) | class XmlReporter(AbstractXmlReporter):
method on_file (line 731) | def on_file(
method on_finish (line 748) | def on_finish(self) -> None:
class XsltHtmlReporter (line 763) | class XsltHtmlReporter(AbstractXmlReporter):
method __init__ (line 770) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 776) | def on_file(
method on_finish (line 795) | def on_finish(self) -> None:
class XsltTxtReporter (line 810) | class XsltTxtReporter(AbstractXmlReporter):
method __init__ (line 816) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 821) | def on_file(
method on_finish (line 830) | def on_finish(self) -> None:
class LinePrecisionReporter (line 846) | class LinePrecisionReporter(AbstractReporter):
method __init__ (line 861) | def __init__(self, reports: Reports, output_dir: str) -> None:
method on_file (line 865) | def on_file(
method on_finish (line 896) | def on_finish(self) -> None:
FILE: mypy/scope.py
class Scope (line 18) | class Scope:
method __init__ (line 21) | def __init__(self) -> None:
method current_module_id (line 29) | def current_module_id(self) -> str:
method current_target (line 33) | def current_target(self) -> str:
method current_full_target (line 41) | def current_full_target(self) -> str:
method current_type_name (line 50) | def current_type_name(self) -> str | None:
method current_function_name (line 54) | def current_function_name(self) -> str | None:
method module_scope (line 59) | def module_scope(self, prefix: str) -> Iterator[None]:
method function_scope (line 69) | def function_scope(self, fdef: FuncBase) -> Iterator[None]:
method outer_functions (line 85) | def outer_functions(self) -> list[FuncBase]:
method enter_class (line 88) | def enter_class(self, info: TypeInfo) -> None:
method leave_class (line 96) | def leave_class(self) -> None:
method class_scope (line 107) | def class_scope(self, info: TypeInfo) -> Iterator[None]:
method save (line 112) | def save(self) -> SavedScope:
method saved_scope (line 121) | def saved_scope(self, saved: SavedScope) -> Iterator[None]:
FILE: mypy/semanal.py
class SemanticAnalyzer (line 349) | class SemanticAnalyzer(
method __init__ (line 425) | def __init__(
method type (line 509) | def type(self) -> TypeInfo | None:
method is_stub_file (line 513) | def is_stub_file(self) -> bool:
method is_typeshed_stub_file (line 517) | def is_typeshed_stub_file(self) -> bool:
method final_iteration (line 521) | def final_iteration(self) -> bool:
method allow_unbound_tvars_set (line 525) | def allow_unbound_tvars_set(self) -> Iterator[None]:
method inside_except_star_block_set (line 534) | def inside_except_star_block_set(
method prepare_file (line 556) | def prepare_file(self, file_node: MypyFile) -> None:
method prepare_typing_namespace (line 567) | def prepare_typing_namespace(self, file_node: MypyFile, aliases: dict[...
method prepare_builtins_namespace (line 598) | def prepare_builtins_namespace(self, file_node: MypyFile) -> None:
method refresh_partial (line 640) | def refresh_partial(
method refresh_top_level (line 669) | def refresh_top_level(self, file_node: MypyFile) -> None:
method add_implicit_module_attrs (line 683) | def add_implicit_module_attrs(self, file_node: MypyFile) -> None:
method add_builtin_aliases (line 752) | def add_builtin_aliases(self, tree: MypyFile) -> None:
method add_typing_extension_aliases (line 773) | def add_typing_extension_aliases(self, tree: MypyFile) -> None:
method create_alias (line 793) | def create_alias(self, tree: MypyFile, target_name: str, alias: str, n...
method adjust_public_exports (line 826) | def adjust_public_exports(self) -> None:
method file_context (line 840) | def file_context(
method visit_func_def (line 897) | def visit_func_def(self, defn: FuncDef) -> None:
method function_fullname (line 931) | def function_fullname(self, fullname: str) -> str:
method analyze_func_def (line 936) | def analyze_func_def(self, defn: FuncDef) -> None:
method remove_unpack_kwargs (line 1116) | def remove_unpack_kwargs(self, defn: FuncDef, typ: CallableType) -> Ca...
method prepare_method_signature (line 1139) | def prepare_method_signature(self, func: FuncDef, info: TypeInfo, has_...
method is_expected_self_type (line 1183) | def is_expected_self_type(self, typ: Type, is_classmethod: bool) -> bool:
method set_original_def (line 1216) | def set_original_def(self, previous: Node | None, new: FuncDef | Decor...
method update_function_type_variables (line 1239) | def update_function_type_variables(self, fun_type: CallableType, defn:...
method setup_self_type (line 1262) | def setup_self_type(self) -> None:
method visit_overloaded_func_def (line 1291) | def visit_overloaded_func_def(self, defn: OverloadedFuncDef) -> None:
method overload_item_set (line 1307) | def overload_item_set(self, item: int | None) -> Iterator[None]:
method analyze_overloaded_func_def (line 1314) | def analyze_overloaded_func_def(self, defn: OverloadedFuncDef) -> None:
method process_deprecated_overload (line 1382) | def process_deprecated_overload(self, defn: OverloadedFuncDef) -> None:
method get_deprecated (line 1412) | def get_deprecated(expression: Expression) -> str | None:
method process_overload_impl (line 1422) | def process_overload_impl(self, defn: OverloadedFuncDef) -> None:
method analyze_overload_sigs_and_impl (line 1438) | def analyze_overload_sigs_and_impl(
method handle_missing_overload_decorators (line 1491) | def handle_missing_overload_decorators(
method handle_missing_overload_implementation (line 1524) | def handle_missing_overload_implementation(self, defn: OverloadedFuncD...
method process_final_in_overload (line 1544) | def process_final_in_overload(self, defn: OverloadedFuncDef) -> None:
method process_static_or_class_method_in_overload (line 1563) | def process_static_or_class_method_in_overload(self, defn: OverloadedF...
method analyze_property_with_multi_part_definition (line 1594) | def analyze_property_with_multi_part_definition(self, defn: Overloaded...
method add_function_to_symbol_table (line 1680) | def add_function_to_symbol_table(self, func: FuncDef | OverloadedFuncD...
method analyze_arg_initializers (line 1687) | def analyze_arg_initializers(self, defn: FuncItem) -> None:
method analyze_function_body (line 1695) | def analyze_function_body(self, defn: FuncItem) -> None:
method check_classvar_in_signature (line 1724) | def check_classvar_in_signature(self, typ: ProperType) -> None:
method check_function_signature (line 1738) | def check_function_signature(self, fdef: FuncItem) -> None:
method visit_decorator (line 1750) | def visit_decorator(self, dec: Decorator) -> None:
method check_decorated_function_is_method (line 1850) | def check_decorated_function_is_method(self, decorator: str, context: ...
method visit_class_def (line 1858) | def visit_class_def(self, defn: ClassDef) -> None:
method push_type_args (line 1871) | def push_type_args(
method is_defined_type_param (line 1893) | def is_defined_type_param(self, name: str) -> bool:
method analyze_type_param (line 1903) | def analyze_type_param(
method pop_type_args (line 1983) | def pop_type_args(self, type_args: list[TypeParam] | None) -> None:
method analyze_class (line 1989) | def analyze_class(self, defn: ClassDef) -> None:
method check_type_alias_bases (line 2085) | def check_type_alias_bases(self, bases: list[Expression]) -> None:
method setup_type_vars (line 2098) | def setup_type_vars(self, defn: ClassDef, tvar_defs: list[TypeVarLikeT...
method setup_alias_type_vars (line 2104) | def setup_alias_type_vars(self, defn: ClassDef) -> None:
method is_core_builtin_class (line 2121) | def is_core_builtin_class(self, defn: ClassDef) -> bool:
method analyze_class_body_common (line 2124) | def analyze_class_body_common(self, defn: ClassDef) -> None:
method analyze_typeddict_classdef (line 2133) | def analyze_typeddict_classdef(self, defn: ClassDef) -> bool:
method analyze_namedtuple_classdef (line 2154) | def analyze_namedtuple_classdef(
method apply_class_plugin_hooks (line 2188) | def apply_class_plugin_hooks(self, defn: ClassDef) -> None:
method get_fullname_for_hook (line 2223) | def get_fullname_for_hook(self, expr: Expression) -> str | None:
method analyze_class_keywords (line 2239) | def analyze_class_keywords(self, defn: ClassDef) -> None:
method enter_class (line 2243) | def enter_class(self, info: TypeInfo) -> None:
method leave_class (line 2253) | def leave_class(self) -> None:
method analyze_class_decorator (line 2262) | def analyze_class_decorator(self, defn: ClassDef, decorator: Expressio...
method analyze_class_decorator_common (line 2276) | def analyze_class_decorator_common(
method clean_up_bases_and_infer_type_variables (line 2290) | def clean_up_bases_and_infer_type_variables(
method analyze_class_typevar_declaration (line 2380) | def analyze_class_typevar_declaration(self, base: Type) -> tuple[TypeV...
method analyze_unbound_tvar (line 2418) | def analyze_unbound_tvar(self, t: Type) -> tuple[str, TypeVarLikeExpr]...
method analyze_unbound_tvar_impl (line 2431) | def analyze_unbound_tvar_impl(
method find_type_var_likes (line 2457) | def find_type_var_likes(self, t: Type) -> TypeVarLikeList:
method get_all_bases_tvars (line 2462) | def get_all_bases_tvars(
method tvar_defs_from_tvars (line 2478) | def tvar_defs_from_tvars(
method get_and_bind_all_tvars (line 2498) | def get_and_bind_all_tvars(self, type_exprs: list[Expression]) -> list...
method prepare_class_def (line 2521) | def prepare_class_def(
method make_empty_type_info (line 2567) | def make_empty_type_info(self, defn: ClassDef) -> TypeInfo:
method get_name_repr_of_expr (line 2583) | def get_name_repr_of_expr(self, expr: Expression) -> str | None:
method analyze_base_classes (line 2595) | def analyze_base_classes(
method configure_base_classes (line 2645) | def configure_base_classes(
method configure_tuple_base_class (line 2710) | def configure_tuple_base_class(self, defn: ClassDef, base: TupleType) ...
method set_dummy_mro (line 2732) | def set_dummy_mro(self, info: TypeInfo) -> None:
method set_any_mro (line 2737) | def set_any_mro(self, info: TypeInfo) -> None:
method calculate_class_mro (line 2742) | def calculate_class_mro(
method infer_metaclass_and_bases_from_compat_helpers (line 2764) | def infer_metaclass_and_bases_from_compat_helpers(self, defn: ClassDef...
method verify_base_classes (line 2813) | def verify_base_classes(self, defn: ClassDef) -> bool:
method verify_duplicate_base_classes (line 2823) | def verify_duplicate_base_classes(self, defn: ClassDef) -> bool:
method is_base_class (line 2829) | def is_base_class(self, t: TypeInfo, s: TypeInfo) -> bool:
method get_declared_metaclass (line 2844) | def get_declared_metaclass(
method recalculate_metaclass (line 2905) | def recalculate_metaclass(self, defn: ClassDef, declared_metaclass: In...
method visit_import (line 2927) | def visit_import(self, i: Import) -> None:
method visit_import_from (line 2969) | def visit_import_from(self, imp: ImportFrom) -> None:
method process_imported_symbol (line 3060) | def process_imported_symbol(
method report_missing_module_attribute (line 3113) | def report_missing_module_attribute(
method process_import_over_existing_name (line 3178) | def process_import_over_existing_name(
method correct_relative_import (line 3210) | def correct_relative_import(self, node: ImportFrom | ImportAll) -> str:
method visit_import_all (line 3218) | def visit_import_all(self, i: ImportAll) -> None:
method visit_assignment_expr (line 3250) | def visit_assignment_expr(self, s: AssignmentExpr) -> None:
method check_valid_comprehension (line 3257) | def check_valid_comprehension(self, s: AssignmentExpr) -> bool:
method visit_assignment_stmt (line 3279) | def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
method analyze_identity_global_assignment (line 3364) | def analyze_identity_global_assignment(self, s: AssignmentStmt) -> bool:
method should_wait_rhs (line 3405) | def should_wait_rhs(self, rv: Expression) -> bool:
method can_be_type_alias (line 3434) | def can_be_type_alias(self, rv: Expression, allow_none: bool = False) ...
method can_possibly_be_type_form (line 3457) | def can_possibly_be_type_form(self, s: AssignmentStmt) -> bool:
method can_possibly_be_typevarlike_declaration (line 3479) | def can_possibly_be_typevarlike_declaration(self, s: AssignmentStmt) -...
method is_type_ref (line 3489) | def is_type_ref(self, rv: Expression, bare: bool = False) -> bool:
method is_none_alias (line 3544) | def is_none_alias(self, node: Expression) -> bool:
method record_special_form_lvalue (line 3569) | def record_special_form_lvalue(self, s: AssignmentStmt) -> None:
method analyze_enum_assign (line 3581) | def analyze_enum_assign(self, s: AssignmentStmt) -> bool:
method analyze_namedtuple_assign (line 3588) | def analyze_namedtuple_assign(self, s: AssignmentStmt) -> bool:
method analyze_typeddict_assign (line 3629) | def analyze_typeddict_assign(self, s: AssignmentStmt) -> bool:
method analyze_lvalues (line 3660) | def analyze_lvalues(self, s: AssignmentStmt) -> None:
method apply_dynamic_class_hook (line 3685) | def apply_dynamic_class_hook(self, s: AssignmentStmt) -> None:
method unwrap_final (line 3721) | def unwrap_final(self, s: AssignmentStmt) -> bool:
method check_final_implicit_def (line 3786) | def check_final_implicit_def(self, s: AssignmentStmt) -> None:
method store_final_status (line 3807) | def store_final_status(self, s: AssignmentStmt) -> None:
method flatten_lvalues (line 3866) | def flatten_lvalues(self, lvalues: list[Expression]) -> list[Expression]:
method process_type_annotation (line 3875) | def process_type_annotation(self, s: AssignmentStmt) -> None:
method is_annotated_protocol_member (line 3922) | def is_annotated_protocol_member(self, s: AssignmentStmt) -> bool:
method analyze_simple_literal_type (line 3931) | def analyze_simple_literal_type(
method analyze_alias (line 3963) | def analyze_alias(
method is_pep_613 (line 4038) | def is_pep_613(self, s: AssignmentStmt) -> bool:
method check_and_set_up_type_alias (line 4045) | def check_and_set_up_type_alias(self, s: AssignmentStmt) -> bool:
method check_type_alias_type_call (line 4256) | def check_type_alias_type_call(self, rvalue: Expression, *, name: str)...
method analyze_type_alias_type_params (line 4272) | def analyze_type_alias_type_params(
method disable_invalid_recursive_aliases (line 4346) | def disable_invalid_recursive_aliases(
method analyze_lvalue (line 4366) | def analyze_lvalue(
method analyze_name_lvalue (line 4416) | def analyze_name_lvalue(
method is_final_redefinition (line 4493) | def is_final_redefinition(self, kind: int, name: str) -> bool:
method is_alias_for_final_name (line 4500) | def is_alias_for_final_name(self, name: str) -> bool:
method make_name_lvalue_var (line 4522) | def make_name_lvalue_var(
method make_name_lvalue_point_to_existing_def (line 4550) | def make_name_lvalue_point_to_existing_def(
method analyze_tuple_or_list_lvalue (line 4577) | def analyze_tuple_or_list_lvalue(self, lval: TupleExpr, explicit_type:...
method analyze_member_lvalue (line 4597) | def analyze_member_lvalue(
method is_self_member_ref (line 4661) | def is_self_member_ref(self, memberexpr: MemberExpr) -> bool:
method check_lvalue_validity (line 4668) | def check_lvalue_validity(self, node: Expression | SymbolNode | None, ...
method store_declared_types (line 4674) | def store_declared_types(self, lvalue: Lvalue, typ: Type) -> None:
method process_typevar_declaration (line 4707) | def process_typevar_declaration(self, s: AssignmentStmt) -> bool:
method check_typevar_default (line 4795) | def check_typevar_default(self, default: Type, context: Context) -> Type:
method check_paramspec_default (line 4803) | def check_paramspec_default(self, default: Type, context: Context) -> ...
method check_typevartuple_default (line 4822) | def check_typevartuple_default(self, default: Type, context: Context) ...
method check_typevarlike_name (line 4829) | def check_typevarlike_name(self, call: CallExpr, name: str, context: C...
method get_typevarlike_declaration (line 4848) | def get_typevarlike_declaration(
method process_typevar_parameters (line 4866) | def process_typevar_parameters(
method get_typevarlike_argument (line 4943) | def get_typevarlike_argument(
method extract_typevarlike_name (line 4995) | def extract_typevarlike_name(self, s: AssignmentStmt, call: CallExpr) ...
method process_paramspec_declaration (line 5008) | def process_paramspec_declaration(self, s: AssignmentStmt) -> bool:
method process_typevartuple_declaration (line 5076) | def process_typevartuple_declaration(self, s: AssignmentStmt) -> bool:
method basic_new_typeinfo (line 5139) | def basic_new_typeinfo(self, name: str, basetype_or_fallback: Instance...
method analyze_value_types (line 5162) | def analyze_value_types(self, items: list[Expression]) -> list[Type]:
method check_classvar (line 5185) | def check_classvar(self, s: AssignmentStmt) -> None:
method is_classvar (line 5217) | def is_classvar(self, typ: Type) -> bool:
method is_final_type (line 5225) | def is_final_type(self, typ: Type | None) -> bool:
method fail_invalid_classvar (line 5233) | def fail_invalid_classvar(self, context: Context) -> None:
method process_module_assignment (line 5236) | def process_module_assignment(
method process__all__ (line 5308) | def process__all__(self, s: AssignmentStmt) -> None:
method process__deletable__ (line 5319) | def process__deletable__(self, s: AssignmentStmt) -> None:
method process__slots__ (line 5342) | def process__slots__(self, s: AssignmentStmt) -> None:
method visit_block (line 5405) | def visit_block(self, b: Block) -> None:
method visit_block_maybe (line 5413) | def visit_block_maybe(self, b: Block | None) -> None:
method visit_expression_stmt (line 5417) | def visit_expression_stmt(self, s: ExpressionStmt) -> None:
method visit_return_stmt (line 5421) | def visit_return_stmt(self, s: ReturnStmt) -> None:
method visit_raise_stmt (line 5430) | def visit_raise_stmt(self, s: RaiseStmt) -> None:
method visit_assert_stmt (line 5437) | def visit_assert_stmt(self, s: AssertStmt) -> None:
method visit_operator_assignment_stmt (line 5444) | def visit_operator_assignment_stmt(self, s: OperatorAssignmentStmt) ->...
method visit_while_stmt (line 5456) | def visit_while_stmt(self, s: WhileStmt) -> None:
method visit_for_stmt (line 5465) | def visit_for_stmt(self, s: ForStmt) -> None:
method visit_break_stmt (line 5490) | def visit_break_stmt(self, s: BreakStmt) -> None:
method visit_continue_stmt (line 5497) | def visit_continue_stmt(self, s: ContinueStmt) -> None:
method visit_if_stmt (line 5504) | def visit_if_stmt(self, s: IfStmt) -> None:
method visit_try_stmt (line 5520) | def visit_try_stmt(self, s: TryStmt) -> None:
method analyze_try_stmt (line 5524) | def analyze_try_stmt(self, s: TryStmt, visitor: NodeVisitor[None]) -> ...
method visit_with_stmt (line 5538) | def visit_with_stmt(self, s: WithStmt) -> None:
method visit_del_stmt (line 5588) | def visit_del_stmt(self, s: DelStmt) -> None:
method is_valid_del_target (line 5594) | def is_valid_del_target(self, s: Expression) -> bool:
method visit_global_decl (line 5602) | def visit_global_decl(self, g: GlobalDecl) -> None:
method visit_nonlocal_decl (line 5609) | def visit_nonlocal_decl(self, d: NonlocalDecl) -> None:
method visit_match_stmt (line 5638) | def visit_match_stmt(self, s: MatchStmt) -> None:
method visit_type_alias_stmt (line 5649) | def visit_type_alias_stmt(self, s: TypeAliasStmt) -> None:
method visit_name_expr (line 5770) | def visit_name_expr(self, expr: NameExpr) -> None:
method bind_name_expr (line 5775) | def bind_name_expr(self, expr: NameExpr, sym: SymbolTableNode) -> None:
method visit_super_expr (line 5790) | def visit_super_expr(self, expr: SuperExpr) -> None:
method visit_tuple_expr (line 5798) | def visit_tuple_expr(self, expr: TupleExpr) -> None:
method visit_list_expr (line 5804) | def visit_list_expr(self, expr: ListExpr) -> None:
method visit_set_expr (line 5810) | def visit_set_expr(self, expr: SetExpr) -> None:
method visit_dict_expr (line 5816) | def visit_dict_expr(self, expr: DictExpr) -> None:
method visit_star_expr (line 5822) | def visit_star_expr(self, expr: StarExpr) -> None:
method visit_yield_from_expr (line 5828) | def visit_yield_from_expr(self, e: YieldFromExpr) -> None:
method visit_call_expr (line 5845) | def visit_call_expr(self, expr: CallExpr) -> None:
method translate_dict_call (line 5999) | def translate_dict_call(self, call: CallExpr) -> DictExpr | None:
method check_fixed_args (line 6019) | def check_fixed_args(self, expr: CallExpr, numargs: int, name: str) ->...
method visit_member_expr (line 6035) | def visit_member_expr(self, expr: MemberExpr) -> None:
method visit_op_expr (line 6081) | def visit_op_expr(self, expr: OpExpr) -> None:
method visit_comparison_expr (line 6098) | def visit_comparison_expr(self, expr: ComparisonExpr) -> None:
method visit_unary_expr (line 6102) | def visit_unary_expr(self, expr: UnaryExpr) -> None:
method visit_index_expr (line 6105) | def visit_index_expr(self, expr: IndexExpr) -> None:
method analyze_type_application (line 6123) | def analyze_type_application(self, expr: IndexExpr) -> None:
method analyze_type_application_args (line 6157) | def analyze_type_application_args(self, expr: IndexExpr) -> list[Type]...
method visit_slice_expr (line 6233) | def visit_slice_expr(self, expr: SliceExpr) -> None:
method visit_cast_expr (line 6241) | def visit_cast_expr(self, expr: CastExpr) -> None:
method visit_assert_type_expr (line 6247) | def visit_assert_type_expr(self, expr: AssertTypeExpr) -> None:
method visit_reveal_expr (line 6253) | def visit_reveal_expr(self, expr: RevealExpr) -> None:
method visit_type_application (line 6262) | def visit_type_application(self, expr: TypeApplication) -> None:
method visit_list_comprehension (line 6269) | def visit_list_comprehension(self, expr: ListComprehension) -> None:
method visit_set_comprehension (line 6276) | def visit_set_comprehension(self, expr: SetComprehension) -> None:
method visit_dictionary_comprehension (line 6283) | def visit_dictionary_comprehension(self, expr: DictionaryComprehension...
method visit_generator_expr (line 6294) | def visit_generator_expr(self, expr: GeneratorExpr) -> None:
method analyze_comp_for (line 6300) | def analyze_comp_for(self, expr: GeneratorExpr | DictionaryComprehensi...
method analyze_comp_for_2 (line 6316) | def analyze_comp_for_2(self, expr: GeneratorExpr | DictionaryComprehen...
method visit_lambda_expr (line 6324) | def visit_lambda_expr(self, expr: LambdaExpr) -> None:
method visit_conditional_expr (line 6328) | def visit_conditional_expr(self, expr: ConditionalExpr) -> None:
method visit__promote_expr (line 6333) | def visit__promote_expr(self, expr: PromoteExpr) -> None:
method visit_yield_expr (line 6339) | def visit_yield_expr(self, e: YieldExpr) -> None:
method visit_await_expr (line 6357) | def visit_await_expr(self, expr: AwaitExpr) -> None:
method visit_as_pattern (line 6376) | def visit_as_pattern(self, p: AsPattern) -> None:
method visit_or_pattern (line 6382) | def visit_or_pattern(self, p: OrPattern) -> None:
method visit_value_pattern (line 6386) | def visit_value_pattern(self, p: ValuePattern) -> None:
method visit_sequence_pattern (line 6389) | def visit_sequence_pattern(self, p: SequencePattern) -> None:
method visit_starred_pattern (line 6393) | def visit_starred_pattern(self, p: StarredPattern) -> None:
method visit_mapping_pattern (line 6397) | def visit_mapping_pattern(self, p: MappingPattern) -> None:
method visit_class_pattern (line 6405) | def visit_class_pattern(self, p: ClassPattern) -> None:
method lookup (line 6416) | def lookup(
method is_active_symbol_in_class_body (line 6485) | def is_active_symbol_in_class_body(self, node: SymbolNode | None) -> b...
method is_textually_before_statement (line 6515) | def is_textually_before_statement(self, node: SymbolNode) -> bool:
method is_overloaded_item (line 6534) | def is_overloaded_item(self, node: SymbolNode, statement: Statement) -...
method is_defined_in_current_module (line 6547) | def is_defined_in_current_module(self, fullname: str | None) -> bool:
method lookup_qualified (line 6552) | def lookup_qualified(
method lookup_type_node (line 6607) | def lookup_type_node(self, expr: Expression) -> SymbolTableNode | None:
method get_module_symbol (line 6617) | def get_module_symbol(self, node: MypyFile, name: str) -> SymbolTableN...
method is_missing_module (line 6646) | def is_missing_module(self, module: str) -> bool:
method implicit_symbol (line 6649) | def implicit_symbol(
method create_getattr_var (line 6666) | def create_getattr_var(
method lookup_fully_qualified (line 6691) | def lookup_fully_qualified(self, fullname: str) -> SymbolTableNode:
method lookup_fully_qualified_or_none (line 6696) | def lookup_fully_qualified_or_none(self, fullname: str) -> SymbolTable...
method object_type (line 6747) | def object_type(self) -> Instance:
method str_type (line 6750) | def str_type(self) -> Instance:
method named_type (line 6753) | def named_type(self, fullname: str, args: list[Type] | None = None) ->...
method named_type_or_none (line 6763) | def named_type_or_none(self, fullname: str, args: list[Type] | None = ...
method builtin_type (line 6777) | def builtin_type(self, fully_qualified_name: str) -> Instance:
method lookup_current_scope (line 6781) | def lookup_current_scope(self, name: str) -> SymbolTableNode | None:
method add_symbol (line 6793) | def add_symbol(
method add_symbol_skip_local (line 6829) | def add_symbol_skip_local(self, name: str, node: SymbolNode) -> None:
method add_symbol_table_node (line 6851) | def add_symbol_table_node(
method add_redefinition (line 6915) | def add_redefinition(self, names: SymbolTable, name: str, symbol: Symb...
method add_local (line 6946) | def add_local(self, node: Var | FuncDef | OverloadedFuncDef, context: ...
method _get_node_for_class_scoped_import (line 6953) | def _get_node_for_class_scoped_import(
method add_imported_symbol (line 6995) | def add_imported_symbol(
method add_unknown_imported_symbol (line 7026) | def add_unknown_imported_symbol(
method tvar_scope_frame (line 7070) | def tvar_scope_frame(self, frame: TypeVarLikeScope) -> Iterator[None]:
method defer (line 7076) | def defer(self, debug_context: Context | None = None, force_progress: ...
method track_incomplete_refs (line 7104) | def track_incomplete_refs(self) -> Tag:
method found_incomplete_ref (line 7108) | def found_incomplete_ref(self, tag: Tag) -> bool:
method record_incomplete_ref (line 7112) | def record_incomplete_ref(self) -> None:
method mark_incomplete (line 7117) | def mark_incomplete(
method is_incomplete_namespace (line 7153) | def is_incomplete_namespace(self, fullname: str) -> bool:
method process_placeholder (line 7161) | def process_placeholder(
method cannot_resolve_name (line 7177) | def cannot_resolve_name(self, name: str | None, kind: str, ctx: Contex...
method qualified_name (line 7183) | def qualified_name(self, name: str) -> str:
method enter (line 7192) | def enter(
method is_func_scope (line 7217) | def is_func_scope(self) -> bool:
method is_nested_within_func_scope (line 7223) | def is_nested_within_func_scope(self) -> bool:
method is_class_scope (line 7227) | def is_class_scope(self) -> bool:
method is_module_scope (line 7230) | def is_module_scope(self) -> bool:
method current_symbol_kind (line 7233) | def current_symbol_kind(self) -> int:
method current_symbol_table (line 7242) | def current_symbol_table(
method is_global_or_nonlocal (line 7281) | def is_global_or_nonlocal(self, name: str) -> bool:
method add_exports (line 7286) | def add_exports(self, exp_or_exps: Iterable[Expression] | Expression) ...
method name_not_defined (line 7292) | def name_not_defined(self, name: str, ctx: Context, namespace: str | N...
method already_defined (line 7334) | def already_defined(
method name_already_defined (line 7359) | def name_already_defined(
method attribute_already_defined (line 7364) | def attribute_already_defined(
method is_local_name (line 7369) | def is_local_name(self, name: str) -> bool:
method in_checked_function (line 7373) | def in_checked_function(self) -> bool:
method fail (line 7399) | def fail(
method note (line 7418) | def note(self, msg: str, ctx: Context, code: ErrorCode | None = None) ...
method incomplete_feature_enabled (line 7423) | def incomplete_feature_enabled(self, feature: str, ctx: Context) -> bool:
method accept (line 7433) | def accept(self, node: Node) -> None:
method expr_to_analyzed_type (line 7439) | def expr_to_analyzed_type(
method analyze_type_expr (line 7481) | def analyze_type_expr(self, expr: Expression) -> None:
method type_analyzer (line 7491) | def type_analyzer(
method expr_to_unanalyzed_type (line 7532) | def expr_to_unanalyzed_type(self, node: Expression, allow_unpack: bool...
method anal_type (line 7537) | def anal_type(
method class_type (line 7606) | def class_type(self, self_type: Type) -> Type:
method schedule_patch (line 7609) | def schedule_patch(self, priority: int, patch: Callable[[], None]) -> ...
method report_hang (line 7612) | def report_hang(self) -> None:
method add_plugin_dependency (line 7623) | def add_plugin_dependency(self, trigger: str, target: str | None = Non...
method add_type_alias_deps (line 7632) | def add_type_alias_deps(
method is_mangled_global (line 7648) | def is_mangled_global(self, name: str) -> bool:
method is_initial_mangled_global (line 7652) | def is_initial_mangled_global(self, name: str) -> bool:
method parse_bool (line 7656) | def parse_bool(self, expr: Expression) -> bool | None:
method parse_str_literal (line 7660) | def parse_str_literal(self, expr: Expression) -> str | None:
method set_future_import_flags (line 7671) | def set_future_import_flags(self, module_name: str) -> None:
method is_future_flag_set (line 7675) | def is_future_flag_set(self, flag: str) -> bool:
method parse_dataclass_transform_spec (line 7678) | def parse_dataclass_transform_spec(self, call: CallExpr) -> DataclassT...
method parse_dataclass_transform_field_specifiers (line 7713) | def parse_dataclass_transform_field_specifiers(self, arg: Expression) ...
method infer_impl_from_parts (line 7726) | def infer_impl_from_parts(
function replace_implicit_first_type (line 7825) | def replace_implicit_first_type(sig: FunctionLike, new: Type) -> Functio...
function refers_to_fullname (line 7838) | def refers_to_fullname(node: Expression, fullnames: str | tuple[str, ......
function refers_to_class_or_function (line 7852) | def refers_to_class_or_function(node: Expression) -> bool:
function find_duplicate (line 7859) | def find_duplicate(list: list[T]) -> T | None:
function remove_imported_names_from_symtable (line 7870) | def remove_imported_names_from_symtable(names: SymbolTable, module: str)...
function make_any_non_explicit (line 7884) | def make_any_non_explicit(t: Type) -> Type:
class MakeAnyNonExplicit (line 7889) | class MakeAnyNonExplicit(TrivialSyntheticTypeTranslator):
method visit_any (line 7890) | def visit_any(self, t: AnyType) -> Type:
method visit_type_alias_type (line 7895) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
function make_any_non_unimported (line 7899) | def make_any_non_unimported(t: Type) -> Type:
class MakeAnyNonUnimported (line 7904) | class MakeAnyNonUnimported(TrivialSyntheticTypeTranslator):
method visit_any (line 7905) | def visit_any(self, t: AnyType) -> Type:
method visit_type_alias_type (line 7910) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
function apply_semantic_analyzer_patches (line 7914) | def apply_semantic_analyzer_patches(patches: list[tuple[int, Callable[[]...
function names_modified_by_assignment (line 7924) | def names_modified_by_assignment(s: AssignmentStmt) -> list[NameExpr]:
function names_modified_in_lvalue (line 7932) | def names_modified_in_lvalue(lvalue: Lvalue) -> list[NameExpr]:
function is_same_var_from_getattr (line 7946) | def is_same_var_from_getattr(n1: SymbolNode | None, n2: SymbolNode | Non...
function dummy_context (line 7957) | def dummy_context() -> Context:
function is_valid_replacement (line 7961) | def is_valid_replacement(old: SymbolTableNode, new: SymbolTableNode) -> ...
function is_same_symbol (line 7978) | def is_same_symbol(a: SymbolNode | None, b: SymbolNode | None) -> bool:
function infer_fdef_types_from_defaults (line 7986) | def infer_fdef_types_from_defaults(defn: FuncDef | Decorator, self: Sema...
function is_trivial_body (line 8052) | def is_trivial_body(block: Block) -> bool:
FILE: mypy/semanal_classprop.py
function calculate_class_abstract_status (line 42) | def calculate_class_abstract_status(typ: TypeInfo, is_stub_file: bool, e...
function check_protocol_status (line 120) | def check_protocol_status(info: TypeInfo, errors: Errors) -> None:
function calculate_class_vars (line 133) | def calculate_class_vars(info: TypeInfo) -> None:
function add_type_promotion (line 152) | def add_type_promotion(
FILE: mypy/semanal_enum.py
class EnumCallAnalyzer (line 58) | class EnumCallAnalyzer:
method __init__ (line 59) | def __init__(self, options: Options, api: SemanticAnalyzerInterface) -...
method process_enum_call (line 63) | def process_enum_call(self, s: AssignmentStmt, is_func_scope: bool) ->...
method check_enum_call (line 83) | def check_enum_call(
method build_enum_call_typeinfo (line 135) | def build_enum_call_typeinfo(
method parse_enum_call_args (line 157) | def parse_enum_call_args(
method fail_enum_call_arg (line 261) | def fail_enum_call_arg(
method fail (line 269) | def fail(self, msg: str, ctx: Context) -> None:
FILE: mypy/semanal_infer.py
function infer_decorator_signature_if_simple (line 21) | def infer_decorator_signature_if_simple(
function is_identity_signature (line 75) | def is_identity_signature(sig: Type) -> bool:
function calculate_return_type (line 84) | def calculate_return_type(expr: Expression) -> ProperType | None:
function find_fixed_callable_return (line 108) | def find_fixed_callable_return(expr: Expression) -> CallableType | None:
FILE: mypy/semanal_main.py
function semantic_analysis_for_scc (line 81) | def semantic_analysis_for_scc(graph: Graph, scc: list[str], errors: Erro...
function cleanup_builtin_scc (line 109) | def cleanup_builtin_scc(state: State) -> None:
function semantic_analysis_for_targets (line 121) | def semantic_analysis_for_targets(
function restore_saved_attrs (line 153) | def restore_saved_attrs(saved_attrs: SavedAttributes) -> None:
function process_top_levels (line 177) | def process_top_levels(graph: Graph, scc: list[str], patches: Patches) -...
function process_functions (line 235) | def process_functions(graph: Graph, scc: list[str], patches: Patches) ->...
function process_top_level_function (line 257) | def process_top_level_function(
function get_all_leaf_targets (line 312) | def get_all_leaf_targets(file: MypyFile) -> list[TargetInfo]:
function semantic_analyze_target (line 321) | def semantic_analyze_target(
function check_type_arguments (line 378) | def check_type_arguments(graph: Graph, scc: list[str], errors: Errors) -...
function check_type_arguments_in_targets (line 393) | def check_type_arguments_in_targets(
function apply_class_plugin_hooks (line 419) | def apply_class_plugin_hooks(graph: Graph, scc: list[str], errors: Error...
function apply_hooks_to_class (line 454) | def apply_hooks_to_class(
function calculate_class_properties (line 493) | def calculate_class_properties(graph: Graph, scc: list[str], errors: Err...
function check_blockers (line 511) | def check_blockers(graph: Graph, scc: list[str]) -> None:
FILE: mypy/semanal_namedtuple.py
class NamedTupleAnalyzer (line 99) | class NamedTupleAnalyzer:
method __init__ (line 100) | def __init__(
method analyze_namedtuple_classdef (line 107) | def analyze_namedtuple_classdef(
method check_namedtuple_classdef (line 142) | def check_namedtuple_classdef(
method check_namedtuple (line 223) | def check_namedtuple(
method store_namedtuple_info (line 332) | def store_namedtuple_info(
method parse_namedtuple_args (line 339) | def parse_namedtuple_args(
method parse_namedtuple_fields_with_types (line 459) | def parse_namedtuple_fields_with_types(
method build_namedtuple_typeinfo (line 503) | def build_namedtuple_typeinfo(
method save_namedtuple_body (line 668) | def save_namedtuple_body(self, named_tuple_info: TypeInfo) -> Iterator...
method check_namedtuple_field_name (line 709) | def check_namedtuple_field_name(self, field: str, seen_names: Containe...
method fail (line 721) | def fail(self, msg: str, ctx: Context, code: ErrorCode | None = None) ...
FILE: mypy/semanal_newtype.py
class NewTypeAnalyzer (line 47) | class NewTypeAnalyzer:
method __init__ (line 48) | def __init__(
method process_newtype_declaration (line 55) | def process_newtype_declaration(self, s: AssignmentStmt) -> bool:
method analyze_newtype_declaration (line 143) | def analyze_newtype_declaration(self, s: AssignmentStmt) -> tuple[str ...
method check_newtype_args (line 175) | def check_newtype_args(
method build_newtype_typeinfo (line 232) | def build_newtype_typeinfo(
method make_argument (line 274) | def make_argument(self, name: str, type: Type) -> Argument:
method fail (line 277) | def fail(self, msg: str, ctx: Context, *, code: ErrorCode | None = Non...
FILE: mypy/semanal_pass1.py
class SemanticAnalyzerPreAnalysis (line 30) | class SemanticAnalyzerPreAnalysis(TraverserVisitor):
method visit_file (line 58) | def visit_file(self, file: MypyFile, fnam: str, mod_id: str, options: ...
method visit_func_def (line 81) | def visit_func_def(self, node: FuncDef) -> None:
method visit_class_def (line 98) | def visit_class_def(self, node: ClassDef) -> None:
method visit_import_from (line 104) | def visit_import_from(self, node: ImportFrom) -> None:
method visit_import_all (line 108) | def visit_import_all(self, node: ImportAll) -> None:
method visit_import (line 112) | def visit_import(self, node: Import) -> None:
method visit_if_stmt (line 116) | def visit_if_stmt(self, s: IfStmt) -> None:
method visit_block (line 125) | def visit_block(self, b: Block) -> None:
method visit_match_stmt (line 133) | def visit_match_stmt(self, s: MatchStmt) -> None:
method visit_assignment_stmt (line 144) | def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
method visit_expression_stmt (line 147) | def visit_expression_stmt(self, s: ExpressionStmt) -> None:
method visit_return_stmt (line 150) | def visit_return_stmt(self, s: ReturnStmt) -> None:
method visit_for_stmt (line 153) | def visit_for_stmt(self, s: ForStmt) -> None:
FILE: mypy/semanal_shared.py
class SemanticAnalyzerCoreInterface (line 65) | class SemanticAnalyzerCoreInterface:
method lookup_qualified (line 72) | def lookup_qualified(
method lookup_fully_qualified (line 78) | def lookup_fully_qualified(self, fullname: str, /) -> SymbolTableNode:
method lookup_fully_qualified_or_none (line 82) | def lookup_fully_qualified_or_none(self, fullname: str, /) -> SymbolTa...
method fail (line 86) | def fail(
method note (line 98) | def note(self, msg: str, ctx: Context, *, code: ErrorCode | None = Non...
method incomplete_feature_enabled (line 102) | def incomplete_feature_enabled(self, feature: str, ctx: Context) -> bool:
method record_incomplete_ref (line 106) | def record_incomplete_ref(self) -> None:
method defer (line 110) | def defer(self, debug_context: Context | None = None, force_progress: ...
method is_incomplete_namespace (line 114) | def is_incomplete_namespace(self, fullname: str) -> bool:
method final_iteration (line 120) | def final_iteration(self) -> bool:
method is_future_flag_set (line 125) | def is_future_flag_set(self, flag: str) -> bool:
method is_stub_file (line 131) | def is_stub_file(self) -> bool:
method is_func_scope (line 135) | def is_func_scope(self) -> bool:
method type (line 140) | def type(self) -> TypeInfo | None:
class SemanticAnalyzerInterface (line 145) | class SemanticAnalyzerInterface(SemanticAnalyzerCoreInterface):
method lookup (line 158) | def lookup(
method named_type (line 164) | def named_type(self, fullname: str, args: list[Type] | None = None) ->...
method named_type_or_none (line 168) | def named_type_or_none(self, fullname: str, args: list[Type] | None = ...
method accept (line 172) | def accept(self, node: Node) -> None:
method anal_type (line 176) | def anal_type(
method get_and_bind_all_tvars (line 193) | def get_and_bind_all_tvars(self, type_exprs: list[Expression]) -> list...
method basic_new_typeinfo (line 197) | def basic_new_typeinfo(self, name: str, basetype_or_fallback: Instance...
method schedule_patch (line 201) | def schedule_patch(self, priority: int, patch: Callable[[], None]) -> ...
method add_symbol_table_node (line 205) | def add_symbol_table_node(self, name: str, symbol: SymbolTableNode) ->...
method current_symbol_table (line 210) | def current_symbol_table(self) -> SymbolTable:
method add_symbol (line 218) | def add_symbol(
method add_symbol_skip_local (line 231) | def add_symbol_skip_local(self, name: str, node: SymbolNode) -> None:
method parse_bool (line 241) | def parse_bool(self, expr: Expression) -> bool | None:
method qualified_name (line 245) | def qualified_name(self, name: str) -> str:
method is_typeshed_stub_file (line 250) | def is_typeshed_stub_file(self) -> bool:
method process_placeholder (line 254) | def process_placeholder(
function set_callable_name (line 260) | def set_callable_name(sig: Type, fdef: FuncDef) -> ProperType:
function calculate_tuple_fallback (line 276) | def calculate_tuple_fallback(typ: TupleType) -> None:
class _NamedTypeCallback (line 311) | class _NamedTypeCallback(Protocol):
method __call__ (line 312) | def __call__(self, fullname: str, args: list[Type] | None = None) -> I...
function paramspec_args (line 315) | def paramspec_args(
function paramspec_kwargs (line 338) | def paramspec_kwargs(
class HasPlaceholders (line 363) | class HasPlaceholders(BoolTypeQuery):
method __init__ (line 364) | def __init__(self) -> None:
method visit_placeholder_type (line 367) | def visit_placeholder_type(self, t: PlaceholderType) -> bool:
function has_placeholder (line 371) | def has_placeholder(typ: Type) -> bool:
function find_dataclass_transform_spec (line 376) | def find_dataclass_transform_spec(node: Node | None) -> DataclassTransfo...
function require_bool_literal_argument (line 451) | def require_bool_literal_argument(
function require_bool_literal_argument (line 460) | def require_bool_literal_argument(
function require_bool_literal_argument (line 468) | def require_bool_literal_argument(
function parse_bool (line 485) | def parse_bool(expr: Expression) -> bool | None:
FILE: mypy/semanal_typeargs.py
class TypeArgumentAnalyzer (line 45) | class TypeArgumentAnalyzer(MixedTraverserVisitor):
method __init__ (line 46) | def __init__(
method visit_mypy_file (line 65) | def visit_mypy_file(self, o: MypyFile) -> None:
method visit_func (line 70) | def visit_func(self, defn: FuncItem) -> None:
method visit_class_def (line 76) | def visit_class_def(self, defn: ClassDef) -> None:
method visit_block (line 80) | def visit_block(self, o: Block) -> None:
method visit_type_alias_type (line 84) | def visit_type_alias_type(self, t: TypeAliasType) -> None:
method visit_tuple_type (line 106) | def visit_tuple_type(self, t: TupleType) -> None:
method visit_callable_type (line 113) | def visit_callable_type(self, t: CallableType) -> None:
method visit_instance (line 117) | def visit_instance(self, t: Instance) -> None:
method validate_args (line 136) | def validate_args(
method visit_unpack_type (line 233) | def visit_unpack_type(self, typ: UnpackType) -> None:
method check_type_var_values (line 254) | def check_type_var_values(
method fail (line 282) | def fail(
method note (line 292) | def note(self, msg: str, context: Context, *, code: ErrorCode | None =...
FILE: mypy/semanal_typeddict.py
class TypedDictAnalyzer (line 61) | class TypedDictAnalyzer:
method __init__ (line 62) | def __init__(
method analyze_typeddict_classdef (line 69) | def analyze_typeddict_classdef(self, defn: ClassDef) -> tuple[bool, Ty...
method add_keys_and_types_from_base (line 186) | def add_keys_and_types_from_base(
method analyze_base_args (line 235) | def analyze_base_args(self, base: IndexExpr, ctx: Context) -> list[Typ...
method map_items_to_base (line 263) | def map_items_to_base(
method analyze_typeddict_classdef_fields (line 283) | def analyze_typeddict_classdef_fields(
method extract_meta_info (line 371) | def extract_meta_info(
method check_typeddict (line 401) | def check_typeddict(
method parse_typeddict_args (line 495) | def parse_typeddict_args(
method parse_typeddict_fields_with_types (line 539) | def parse_typeddict_fields_with_types(
method fail_typeddict_arg (line 579) | def fail_typeddict_arg(
method build_typeddict_typeinfo (line 585) | def build_typeddict_typeinfo(
method is_typeddict (line 612) | def is_typeddict(self, expr: Expression) -> bool:
method fail (line 619) | def fail(self, msg: str, ctx: Context, *, code: ErrorCode | None = Non...
method note (line 622) | def note(self, msg: str, ctx: Context) -> None:
FILE: mypy/server/astdiff.py
function compare_symbol_table_snapshots (line 125) | def compare_symbol_table_snapshots(
function snapshot_symbol_table (line 168) | def snapshot_symbol_table(name_prefix: str, table: SymbolTable) -> dict[...
function snapshot_definition (line 232) | def snapshot_definition(node: SymbolNode | None, common: SymbolSnapshot)...
function snapshot_type (line 320) | def snapshot_type(typ: Type) -> SnapshotItem:
function snapshot_optional_type (line 325) | def snapshot_optional_type(typ: Type | None) -> SnapshotItem:
function snapshot_types (line 332) | def snapshot_types(types: Sequence[Type]) -> SnapshotItem:
function snapshot_simple_type (line 336) | def snapshot_simple_type(typ: Type) -> SnapshotItem:
function encode_optional_str (line 340) | def encode_optional_str(s: str | None) -> str:
class SnapshotTypeVisitor (line 347) | class SnapshotTypeVisitor(TypeVisitor[SnapshotItem]):
method visit_unbound_type (line 362) | def visit_unbound_type(self, typ: UnboundType) -> SnapshotItem:
method visit_any (line 371) | def visit_any(self, typ: AnyType) -> SnapshotItem:
method visit_none_type (line 374) | def visit_none_type(self, typ: NoneType) -> SnapshotItem:
method visit_uninhabited_type (line 377) | def visit_uninhabited_type(self, typ: UninhabitedType) -> SnapshotItem:
method visit_erased_type (line 380) | def visit_erased_type(self, typ: ErasedType) -> SnapshotItem:
method visit_deleted_type (line 383) | def visit_deleted_type(self, typ: DeletedType) -> SnapshotItem:
method visit_instance (line 386) | def visit_instance(self, typ: Instance) -> SnapshotItem:
method visit_type_var (line 403) | def visit_type_var(self, typ: TypeVarType) -> SnapshotItem:
method visit_param_spec (line 416) | def visit_param_spec(self, typ: ParamSpecType) -> SnapshotItem:
method visit_type_var_tuple (line 426) | def visit_type_var_tuple(self, typ: TypeVarTupleType) -> SnapshotItem:
method visit_unpack_type (line 435) | def visit_unpack_type(self, typ: UnpackType) -> SnapshotItem:
method visit_parameters (line 438) | def visit_parameters(self, typ: Parameters) -> SnapshotItem:
method visit_callable_type (line 446) | def visit_callable_type(self, typ: CallableType) -> SnapshotItem:
method normalize_callable_variables (line 460) | def normalize_callable_variables(self, typ: CallableType) -> CallableT...
method visit_tuple_type (line 478) | def visit_tuple_type(self, typ: TupleType) -> SnapshotItem:
method visit_typeddict_type (line 481) | def visit_typeddict_type(self, typ: TypedDictType) -> SnapshotItem:
method visit_literal_type (line 487) | def visit_literal_type(self, typ: LiteralType) -> SnapshotItem:
method visit_union_type (line 490) | def visit_union_type(self, typ: UnionType) -> SnapshotItem:
method visit_intersection_type (line 497) | def visit_intersection_type(self, typ: IntersectionType) -> SnapshotItem:
method visit_overloaded (line 504) | def visit_overloaded(self, typ: Overloaded) -> SnapshotItem:
method visit_partial_type (line 507) | def visit_partial_type(self, typ: PartialType) -> SnapshotItem:
method visit_type_type (line 512) | def visit_type_type(self, typ: TypeType) -> SnapshotItem:
method visit_type_alias_type (line 515) | def visit_type_alias_type(self, typ: TypeAliasType) -> SnapshotItem:
function snapshot_untyped_signature (line 520) | def snapshot_untyped_signature(func: OverloadedFuncDef | FuncItem) -> Sy...
FILE: mypy/server/astmerge.py
function merge_asts (line 116) | def merge_asts(
function replacement_map_from_symbol_table (line 147) | def replacement_map_from_symbol_table(
function replace_nodes_in_ast (line 181) | def replace_nodes_in_ast(
class NodeReplaceVisitor (line 198) | class NodeReplaceVisitor(TraverserVisitor):
method __init__ (line 206) | def __init__(self, replacements: dict[SymbolNode, SymbolNode]) -> None:
method visit_mypy_file (line 209) | def visit_mypy_file(self, node: MypyFile) -> None:
method visit_block (line 214) | def visit_block(self, node: Block) -> None:
method visit_func_def (line 218) | def visit_func_def(self, node: FuncDef) -> None:
method visit_overloaded_func_def (line 223) | def visit_overloaded_func_def(self, node: OverloadedFuncDef) -> None:
method visit_class_def (line 227) | def visit_class_def(self, node: ClassDef) -> None:
method process_base_func (line 242) | def process_base_func(self, node: FuncBase) -> None:
method process_type_var_def (line 249) | def process_type_var_def(self, tv: TypeVarType) -> None:
method process_param_spec_def (line 255) | def process_param_spec_def(self, tv: ParamSpecType) -> None:
method process_type_var_tuple_def (line 259) | def process_type_var_tuple_def(self, tv: TypeVarTupleType) -> None:
method visit_assignment_stmt (line 263) | def visit_assignment_stmt(self, node: AssignmentStmt) -> None:
method visit_name_expr (line 269) | def visit_name_expr(self, node: NameExpr) -> None:
method visit_member_expr (line 272) | def visit_member_expr(self, node: MemberExpr) -> None:
method visit_ref_expr (line 278) | def visit_ref_expr(self, node: RefExpr) -> None:
method visit_namedtuple_expr (line 285) | def visit_namedtuple_expr(self, node: NamedTupleExpr) -> None:
method visit_cast_expr (line 290) | def visit_cast_expr(self, node: CastExpr) -> None:
method visit_assert_type_expr (line 294) | def visit_assert_type_expr(self, node: AssertTypeExpr) -> None:
method visit_super_expr (line 298) | def visit_super_expr(self, node: SuperExpr) -> None:
method visit_call_expr (line 303) | def visit_call_expr(self, node: CallExpr) -> None:
method visit_newtype_expr (line 308) | def visit_newtype_expr(self, node: NewTypeExpr) -> None:
method visit_lambda_expr (line 315) | def visit_lambda_expr(self, node: LambdaExpr) -> None:
method visit_typeddict_expr (line 319) | def visit_typeddict_expr(self, node: TypedDictExpr) -> None:
method visit_enum_call_expr (line 324) | def visit_enum_call_expr(self, node: EnumCallExpr) -> None:
method visit_var (line 331) | def visit_var(self, node: Var) -> None:
method visit_type_alias (line 336) | def visit_type_alias(self, node: TypeAlias) -> None:
method fixup (line 344) | def fixup(self, node: SN) -> SN:
method fixup_and_reset_typeinfo (line 357) | def fixup_and_reset_typeinfo(self, node: TypeInfo) -> TypeInfo:
method fixup_type (line 371) | def fixup_type(self, typ: Type | None) -> None:
method process_type_info (line 375) | def process_type_info(self, info: TypeInfo | None) -> None:
method process_synthetic_type_info (line 393) | def process_synthetic_type_info(self, info: TypeInfo) -> None:
method replace_statements (line 402) | def replace_statements(self, nodes: list[Statement]) -> list[Statement]:
class TypeReplaceVisitor (line 411) | class TypeReplaceVisitor(SyntheticTypeVisitor[None]):
method __init__ (line 419) | def __init__(self, replacements: dict[SymbolNode, SymbolNode]) -> None:
method visit_instance (line 422) | def visit_instance(self, typ: Instance) -> None:
method visit_type_alias_type (line 429) | def visit_type_alias_type(self, typ: TypeAliasType) -> None:
method visit_any (line 435) | def visit_any(self, typ: AnyType) -> None:
method visit_none_type (line 438) | def visit_none_type(self, typ: NoneType) -> None:
method visit_callable_type (line 441) | def visit_callable_type(self, typ: CallableType) -> None:
method visit_overloaded (line 457) | def visit_overloaded(self, t: Overloaded) -> None:
method visit_erased_type (line 464) | def visit_erased_type(self, t: ErasedType) -> None:
method visit_deleted_type (line 468) | def visit_deleted_type(self, typ: DeletedType) -> None:
method visit_partial_type (line 471) | def visit_partial_type(self, typ: PartialType) -> None:
method visit_tuple_type (line 474) | def visit_tuple_type(self, typ: TupleType) -> None:
method visit_type_type (line 481) | def visit_type_type(self, typ: TypeType) -> None:
method visit_type_var (line 484) | def visit_type_var(self, typ: TypeVarType) -> None:
method visit_param_spec (line 490) | def visit_param_spec(self, typ: ParamSpecType) -> None:
method visit_type_var_tuple (line 494) | def visit_type_var_tuple(self, typ: TypeVarTupleType) -> None:
method visit_unpack_type (line 498) | def visit_unpack_type(self, typ: UnpackType) -> None:
method visit_parameters (line 501) | def visit_parameters(self, typ: Parameters) -> None:
method visit_typeddict_type (line 505) | def visit_typeddict_type(self, typ: TypedDictType) -> None:
method visit_raw_expression_type (line 510) | def visit_raw_expression_type(self, t: RawExpressionType) -> None:
method visit_literal_type (line 513) | def visit_literal_type(self, typ: LiteralType) -> None:
method visit_unbound_type (line 516) | def visit_unbound_type(self, typ: UnboundType) -> None:
method visit_type_list (line 520) | def visit_type_list(self, typ: TypeList) -> None:
method visit_callable_argument (line 524) | def visit_callable_argument(self, typ: CallableArgument) -> None:
method visit_ellipsis_type (line 527) | def visit_ellipsis_type(self, typ: EllipsisType) -> None:
method visit_uninhabited_type (line 530) | def visit_uninhabited_type(self, typ: UninhabitedType) -> None:
method visit_union_type (line 533) | def visit_union_type(self, typ: UnionType) -> None:
method visit_intersection_type (line 537) | def visit_intersection_type(self, typ: IntersectionType):
method visit_placeholder_type (line 541) | def visit_placeholder_type(self, t: PlaceholderType) -> None:
method fixup (line 547) | def fixup(self, node: SN) -> SN:
function replace_nodes_in_symbol_table (line 554) | def replace_nodes_in_symbol_table(
FILE: mypy/server/aststrip.py
function strip_target (line 74) | def strip_target(
class NodeStripVisitor (line 95) | class NodeStripVisitor(TraverserVisitor):
method __init__ (line 96) | def __init__(self, saved_class_attrs: SavedAttributes) -> None:
method strip_file_top_level (line 109) | def strip_file_top_level(self, file_node: MypyFile) -> None:
method visit_block (line 120) | def visit_block(self, b: Block) -> None:
method visit_class_def (line 125) | def visit_class_def(self, node: ClassDef) -> None:
method save_implicit_attributes (line 151) | def save_implicit_attributes(self, node: ClassDef) -> None:
method visit_func_def (line 157) | def visit_func_def(self, node: FuncDef) -> None:
method visit_decorator (line 172) | def visit_decorator(self, node: Decorator) -> None:
method visit_overloaded_func_def (line 184) | def visit_overloaded_func_def(self, node: OverloadedFuncDef) -> None:
method visit_assignment_stmt (line 193) | def visit_assignment_stmt(self, node: AssignmentStmt) -> None:
method visit_import_from (line 203) | def visit_import_from(self, node: ImportFrom) -> None:
method visit_import_all (line 206) | def visit_import_all(self, node: ImportAll) -> None:
method visit_for_stmt (line 209) | def visit_for_stmt(self, node: ForStmt) -> None:
method visit_name_expr (line 215) | def visit_name_expr(self, node: NameExpr) -> None:
method visit_member_expr (line 218) | def visit_member_expr(self, node: MemberExpr) -> None:
method visit_index_expr (line 222) | def visit_index_expr(self, node: IndexExpr) -> None:
method visit_op_expr (line 226) | def visit_op_expr(self, node: OpExpr) -> None:
method strip_ref_expr (line 230) | def strip_ref_expr(self, node: RefExpr) -> None:
method visit_call_expr (line 237) | def visit_call_expr(self, node: CallExpr) -> None:
method visit_super_expr (line 241) | def visit_super_expr(self, node: SuperExpr) -> None:
method process_lvalue_in_method (line 245) | def process_lvalue_in_method(self, lvalue: Node) -> None:
method enter_class (line 264) | def enter_class(self, info: TypeInfo) -> Iterator[None]:
method enter_method (line 274) | def enter_method(self, info: TypeInfo) -> Iterator[None]:
FILE: mypy/server/deps.py
function get_dependencies (line 179) | def get_dependencies(
function get_dependencies_of_target (line 191) | def get_dependencies_of_target(
class DependencyVisitor (line 219) | class DependencyVisitor(TraverserVisitor):
method __init__ (line 220) | def __init__(
method visit_mypy_file (line 244) | def visit_mypy_file(self, o: MypyFile) -> None:
method visit_func_def (line 252) | def visit_func_def(self, o: FuncDef) -> None:
method visit_decorator (line 276) | def visit_decorator(self, o: Decorator) -> None:
method visit_class_def (line 300) | def visit_class_def(self, o: ClassDef) -> None:
method visit_newtype_expr (line 313) | def visit_newtype_expr(self, o: NewTypeExpr) -> None:
method process_type_info (line 318) | def process_type_info(self, info: TypeInfo) -> None:
method visit_import (line 404) | def visit_import(self, o: Import) -> None:
method visit_import_from (line 408) | def visit_import_from(self, o: ImportFrom) -> None:
method visit_import_all (line 419) | def visit_import_all(self, o: ImportAll) -> None:
method visit_block (line 427) | def visit_block(self, o: Block) -> None:
method visit_assignment_stmt (line 431) | def visit_assignment_stmt(self, o: AssignmentStmt) -> None:
method process_lvalue (line 517) | def process_lvalue(self, lvalue: Expression) -> None:
method is_self_member_ref (line 555) | def is_self_member_ref(self, memberexpr: MemberExpr) -> bool:
method get_non_partial_lvalue_type (line 562) | def get_non_partial_lvalue_type(self, lvalue: RefExpr) -> Type:
method visit_operator_assignment_stmt (line 583) | def visit_operator_assignment_stmt(self, o: OperatorAssignmentStmt) ->...
method visit_for_stmt (line 592) | def visit_for_stmt(self, o: ForStmt) -> None:
method visit_with_stmt (line 617) | def visit_with_stmt(self, o: WithStmt) -> None:
method visit_del_stmt (line 629) | def visit_del_stmt(self, o: DelStmt) -> None:
method process_global_ref_expr (line 636) | def process_global_ref_expr(self, o: RefExpr) -> None:
method visit_name_expr (line 650) | def visit_name_expr(self, o: NameExpr) -> None:
method visit_member_expr (line 661) | def visit_member_expr(self, e: MemberExpr) -> None:
method get_unimported_fullname (line 694) | def get_unimported_fullname(self, e: MemberExpr, typ: AnyType) -> str ...
method visit_super_expr (line 720) | def visit_super_expr(self, e: SuperExpr) -> None:
method visit_call_expr (line 734) | def visit_call_expr(self, e: CallExpr) -> None:
method process_isinstance_call (line 745) | def process_isinstance_call(self, e: CallExpr) -> None:
method visit_cast_expr (line 762) | def visit_cast_expr(self, e: CastExpr) -> None:
method visit_assert_type_expr (line 766) | def visit_assert_type_expr(self, e: AssertTypeExpr) -> None:
method visit_type_application (line 770) | def visit_type_application(self, e: TypeApplication) -> None:
method visit_index_expr (line 775) | def visit_index_expr(self, e: IndexExpr) -> None:
method visit_unary_expr (line 779) | def visit_unary_expr(self, e: UnaryExpr) -> None:
method visit_op_expr (line 786) | def visit_op_expr(self, e: OpExpr) -> None:
method visit_comparison_expr (line 790) | def visit_comparison_expr(self, e: ComparisonExpr) -> None:
method process_binary_op (line 797) | def process_binary_op(self, op: str, left: Expression, right: Expressi...
method add_operator_method_dependency (line 808) | def add_operator_method_dependency(self, e: Expression, method: str) -...
method add_operator_method_dependency_for_type (line 813) | def add_operator_method_dependency_for_type(self, typ: ProperType, met...
method visit_generator_expr (line 832) | def visit_generator_expr(self, e: GeneratorExpr) -> None:
method visit_dictionary_comprehension (line 837) | def visit_dictionary_comprehension(self, e: DictionaryComprehension) -...
method visit_star_expr (line 842) | def visit_star_expr(self, e: StarExpr) -> None:
method visit_yield_from_expr (line 846) | def visit_yield_from_expr(self, e: YieldFromExpr) -> None:
method visit_await_expr (line 850) | def visit_await_expr(self, e: AwaitExpr) -> None:
method add_type_alias_deps (line 856) | def add_type_alias_deps(self, target: str) -> None:
method add_dependency (line 863) | def add_dependency(self, trigger: str, target: str | None = None) -> N...
method add_type_dependencies (line 880) | def add_type_dependencies(self, typ: Type, target: str | None = None) ...
method add_attribute_dependency (line 890) | def add_attribute_dependency(self, typ: Type, name: str) -> None:
method attribute_triggers (line 896) | def attribute_triggers(self, typ: Type, name: str) -> list[str]:
method add_attribute_dependency_for_expr (line 926) | def add_attribute_dependency_for_expr(self, e: Expression, name: str) ...
method add_iter_dependency (line 931) | def add_iter_dependency(self, node: Expression) -> None:
method use_logical_deps (line 936) | def use_logical_deps(self) -> bool:
method get_type_triggers (line 939) | def get_type_triggers(self, typ: Type) -> list[str]:
function get_type_triggers (line 943) | def get_type_triggers(
class TypeTriggersVisitor (line 950) | class TypeTriggersVisitor(TypeVisitor[list[str]]):
method __init__ (line 951) | def __init__(
method get_type_triggers (line 958) | def get_type_triggers(self, typ: Type) -> list[str]:
method visit_instance (line 961) | def visit_instance(self, typ: Instance) -> list[str]:
method visit_type_alias_type (line 973) | def visit_type_alias_type(self, typ: TypeAliasType) -> list[str]:
method visit_any (line 987) | def visit_any(self, typ: AnyType) -> list[str]:
method visit_none_type (line 992) | def visit_none_type(self, typ: NoneType) -> list[str]:
method visit_callable_type (line 995) | def visit_callable_type(self, typ: CallableType) -> list[str]:
method visit_overloaded (line 1004) | def visit_overloaded(self, typ: Overloaded) -> list[str]:
method visit_erased_type (line 1010) | def visit_erased_type(self, t: ErasedType) -> list[str]:
method visit_deleted_type (line 1014) | def visit_deleted_type(self, typ: DeletedType) -> list[str]:
method visit_partial_type (line 1017) | def visit_partial_type(self, typ: PartialType) -> list[str]:
method visit_tuple_type (line 1020) | def visit_tuple_type(self, typ: TupleType) -> list[str]:
method visit_type_type (line 1027) | def visit_type_type(self, typ: TypeType) -> list[str]:
method visit_type_var (line 1036) | def visit_type_var(self, typ: TypeVarType) -> list[str]:
method visit_param_spec (line 1048) | def visit_param_spec(self, typ: ParamSpecType) -> list[str]:
method visit_type_var_tuple (line 1059) | def visit_type_var_tuple(self, typ: TypeVarTupleType) -> list[str]:
method visit_unpack_type (line 1070) | def visit_unpack_type(self, typ: UnpackType) -> list[str]:
method visit_parameters (line 1073) | def visit_parameters(self, typ: Parameters) -> list[str]:
method visit_typeddict_type (line 1079) | def visit_typeddict_type(self, typ: TypedDictType) -> list[str]:
method visit_literal_type (line 1086) | def visit_literal_type(self, typ: LiteralType) -> list[str]:
method visit_unbound_type (line 1089) | def visit_unbound_type(self, typ: UnboundType) -> list[str]:
method visit_uninhabited_type (line 1092) | def visit_uninhabited_type(self, typ: UninhabitedType) -> list[str]:
method visit_union_type (line 1095) | def visit_union_type(self, typ: UnionType) -> list[str]:
method visit_intersection_type (line 1101) | def visit_intersection_type(self, typ: IntersectionType) -> list[str]:
function merge_dependencies (line 1108) | def merge_dependencies(new_deps: dict[str, set[str]], deps: dict[str, se...
function non_trivial_bases (line 1113) | def non_trivial_bases(info: TypeInfo) -> list[TypeInfo]:
function has_user_bases (line 1117) | def has_user_bases(info: TypeInfo) -> bool:
function dump_all_dependencies (line 1121) | def dump_all_dependencies(
FILE: mypy/server/mergecheck.py
function check_consistency (line 14) | def check_consistency(o: object) -> None:
function path_to_str (line 68) | def path_to_str(path: list[tuple[object, object]]) -> str:
FILE: mypy/server/objgraph.py
function isproperty (line 37) | def isproperty(o: object, attr: str) -> bool:
function get_edge_candidates (line 41) | def get_edge_candidates(o: object) -> Iterator[tuple[object, object]]:
function get_edges (line 61) | def get_edges(o: object) -> Iterator[tuple[object, object]]:
function get_reachable_graph (line 78) | def get_reachable_graph(root: object) -> tuple[dict[int, object], dict[i...
function get_path (line 94) | def get_path(
FILE: mypy/server/subexpr.py
function get_subexpressions (line 38) | def get_subexpressions(node: Node) -> list[Expression]:
class SubexpressionFinder (line 44) | class SubexpressionFinder(TraverserVisitor):
method __init__ (line 45) | def __init__(self) -> None:
method visit_int_expr (line 48) | def visit_int_expr(self, o: Expression) -> None:
method visit_name_expr (line 51) | def visit_name_expr(self, o: Expression) -> None:
method visit_float_expr (line 54) | def visit_float_expr(self, o: Expression) -> None:
method visit_str_expr (line 57) | def visit_str_expr(self, o: Expression) -> None:
method visit_bytes_expr (line 60) | def visit_bytes_expr(self, o: Expression) -> None:
method visit_unicode_expr (line 63) | def visit_unicode_expr(self, o: Expression) -> None:
method visit_complex_expr (line 66) | def visit_complex_expr(self, o: Expression) -> None:
method visit_ellipsis (line 69) | def visit_ellipsis(self, o: Expression) -> None:
method visit_super_expr (line 72) | def visit_super_expr(self, o: Expression) -> None:
method visit_type_var_expr (line 75) | def visit_type_var_expr(self, o: Expression) -> None:
method visit_type_alias_expr (line 78) | def visit_type_alias_expr(self, o: Expression) -> None:
method visit_namedtuple_expr (line 81) | def visit_namedtuple_expr(self, o: Expression) -> None:
method visit_typeddict_expr (line 84) | def visit_typeddict_expr(self, o: Expression) -> None:
method visit__promote_expr (line 87) | def visit__promote_expr(self, o: Expression) -> None:
method visit_newtype_expr (line 90) | def visit_newtype_expr(self, o: Expression) -> None:
method visit_member_expr (line 93) | def visit_member_expr(self, e: MemberExpr) -> None:
method visit_yield_from_expr (line 97) | def visit_yield_from_expr(self, e: YieldFromExpr) -> None:
method visit_yield_expr (line 101) | def visit_yield_expr(self, e: YieldExpr) -> None:
method visit_call_expr (line 105) | def visit_call_expr(self, e: CallExpr) -> None:
method visit_op_expr (line 109) | def visit_op_expr(self, e: OpExpr) -> None:
method visit_comparison_expr (line 113) | def visit_comparison_expr(self, e: ComparisonExpr) -> None:
method visit_slice_expr (line 117) | def visit_slice_expr(self, e: SliceExpr) -> None:
method visit_cast_expr (line 121) | def visit_cast_expr(self, e: CastExpr) -> None:
method visit_assert_type_expr (line 125) | def visit_assert_type_expr(self, e: AssertTypeExpr) -> None:
method visit_reveal_expr (line 129) | def visit_reveal_expr(self, e: RevealExpr) -> None:
method visit_assignment_expr (line 133) | def visit_assignment_expr(self, e: AssignmentExpr) -> None:
method visit_unary_expr (line 137) | def visit_unary_expr(self, e: UnaryExpr) -> None:
method visit_list_expr (line 141) | def visit_list_expr(self, e: ListExpr) -> None:
method visit_tuple_expr (line 145) | def visit_tuple_expr(self, e: TupleExpr) -> None:
method visit_dict_expr (line 149) | def visit_dict_expr(self, e: DictExpr) -> None:
method visit_set_expr (line 153) | def visit_set_expr(self, e: SetExpr) -> None:
method visit_index_expr (line 157) | def visit_index_expr(self, e: IndexExpr) -> None:
method visit_generator_expr (line 161) | def visit_generator_expr(self, e: GeneratorExpr) -> None:
method visit_dictionary_comprehension (line 165) | def visit_dictionary_comprehension(self, e: DictionaryComprehension) -...
method visit_list_comprehension (line 169) | def visit_list_comprehension(self, e: ListComprehension) -> None:
method visit_set_comprehension (line 173) | def visit_set_comprehension(self, e: SetComprehension) -> None:
method visit_conditional_expr (line 177) | def visit_conditional_expr(self, e: ConditionalExpr) -> None:
method visit_type_application (line 181) | def visit_type_application(self, e: TypeApplication) -> None:
method visit_lambda_expr (line 185) | def visit_lambda_expr(self, e: LambdaExpr) -> None:
method visit_star_expr (line 189) | def visit_star_expr(self, e: StarExpr) -> None:
method visit_await_expr (line 193) | def visit_await_expr(self, e: AwaitExpr) -> None:
method add (line 197) | def add(self, e: Expression) -> None:
FILE: mypy/server/target.py
function trigger_to_target (line 4) | def trigger_to_target(s: str) -> str:
FILE: mypy/server/trigger.py
function make_trigger (line 13) | def make_trigger(name: str) -> str:
function make_wildcard_trigger (line 17) | def make_wildcard_trigger(module: str) -> str:
FILE: mypy/server/update.py
class FineGrainedBuildManager (line 170) | class FineGrainedBuildManager:
method __init__ (line 171) | def __init__(self, result: BuildResult) -> None:
method update (line 207) | def update(
method trigger (line 306) | def trigger(self, target: str) -> list[str]:
method flush_cache (line 326) | def flush_cache(self) -> None:
method update_one (line 334) | def update_one(
method update_module (line 379) | def update_module(
function find_unloaded_deps (line 472) | def find_unloaded_deps(
function ensure_deps_loaded (line 500) | def ensure_deps_loaded(module: str, deps: dict[str, set[str]], graph: di...
function ensure_trees_loaded (line 519) | def ensure_trees_loaded(
class NormalUpdate (line 542) | class NormalUpdate(NamedTuple):
class BlockedUpdate (line 551) | class BlockedUpdate(NamedTuple):
function update_module_isolated (line 561) | def update_module_isolated(
function find_relative_leaf_module (line 681) | def find_relative_leaf_module(modules: list[tuple[str, str]], graph: Gra...
function delete_module (line 708) | def delete_module(module_id: str, path: str, graph: Graph, manager: Buil...
function dedupe_modules (line 730) | def dedupe_modules(modules: list[tuple[str, str]]) -> list[tuple[str, st...
function get_module_to_path_map (line 740) | def get_module_to_path_map(graph: Graph) -> dict[str, str]:
function get_sources (line 744) | def get_sources(
function calculate_active_triggers (line 757) | def calculate_active_triggers(
function replace_modules_with_new_variants (line 805) | def replace_modules_with_new_variants(
function propagate_changes_using_dependencies (line 829) | def propagate_changes_using_dependencies(
function find_targets_recursive (line 894) | def find_targets_recursive(
function reprocess_nodes (line 956) | def reprocess_nodes(
function find_symbol_tables_recursive (line 1053) | def find_symbol_tables_recursive(prefix: str, symbols: SymbolTable) -> d...
function update_deps (line 1071) | def update_deps(
function lookup_target (line 1092) | def lookup_target(
function is_verbose (line 1170) | def is_verbose(manager: BuildManager) -> bool:
function target_from_node (line 1174) | def target_from_node(module: str, node: FuncDef | MypyFile | OverloadedF...
function refresh_suppressed_submodules (line 1206) | def refresh_suppressed_submodules(
function extract_fnam_from_message (line 1284) | def extract_fnam_from_message(message: str) -> str | None:
function extract_possible_fnam_from_message (line 1291) | def extract_possible_fnam_from_message(message: str) -> str:
function sort_messages_preserving_file_order (line 1296) | def sort_messages_preserving_file_order(
FILE: mypy/sharedparse.py
function special_function_elide_names (line 107) | def special_function_elide_names(name: str) -> bool:
function argument_elide_name (line 111) | def argument_elide_name(name: str | None) -> bool:
FILE: mypy/solve.py
function solve_constraints (line 41) | def solve_constraints(
function solve_with_dependent (line 129) | def solve_with_dependent(
function solve_iteratively (line 190) | def solve_iteratively(
function solve_one (line 250) | def solve_one(lowers: Iterable[Type], uppers: Iterable[Type]) -> Type | ...
function choose_free (line 311) | def choose_free(
function is_trivial_bound (line 362) | def is_trivial_bound(tp: ProperType, allow_tuple: bool = False) -> bool:
function find_linear (line 368) | def find_linear(c: Constraint) -> tuple[bool, TypeVarId | None]:
function transitive_closure (line 385) | def transitive_closure(
function add_secondary_constraints (line 459) | def add_secondary_constraints(cs: set[Constraint], lower: Type, upper: T...
function compute_dependencies (line 473) | def compute_dependencies(
function check_linear (line 497) | def check_linear(scc: set[TypeVarId], lowers: Bounds, uppers: Bounds) ->...
function skip_reverse_union_constraints (line 510) | def skip_reverse_union_constraints(cs: list[Constraint]) -> list[Constra...
function get_vars (line 539) | def get_vars(target: Type, vars: list[TypeVarId]) -> set[TypeVarId]:
function pre_validate_solutions (line 544) | def pre_validate_solutions(
function is_callable_protocol (line 577) | def is_callable_protocol(t: Type) -> bool:
FILE: mypy/split_namespace.py
class SplitNamespace (line 16) | class SplitNamespace(argparse.Namespace):
method __init__ (line 17) | def __init__(self, standard_namespace: object, alt_namespace: object, ...
method _get (line 22) | def _get(self) -> tuple[Any, Any]:
method __setattr__ (line 25) | def __setattr__(self, name: str, value: Any) -> None:
method __getattr__ (line 31) | def __getattr__(self, name: str) -> Any:
FILE: mypy/state.py
class StrictOptionalState (line 11) | class StrictOptionalState:
method __init__ (line 14) | def __init__(self, strict_optional: bool) -> None:
method strict_optional_set (line 19) | def strict_optional_set(self, value: bool) -> Iterator[None]:
FILE: mypy/stats.py
class StatisticsVisitor (line 71) | class StatisticsVisitor(TraverserVisitor):
method __init__ (line 72) | def __init__(
method visit_mypy_file (line 117) | def visit_mypy_file(self, o: MypyFile) -> None:
method visit_import_from (line 122) | def visit_import_from(self, imp: ImportFrom) -> None:
method visit_import_all (line 125) | def visit_import_all(self, imp: ImportAll) -> None:
method process_import (line 128) | def process_import(self, imp: ImportFrom | ImportAll) -> None:
method visit_import (line 138) | def visit_import(self, imp: Import) -> None:
method visit_func_def (line 145) | def visit_func_def(self, o: FuncDef) -> None:
method enter_scope (line 175) | def enter_scope(self, o: FuncDef) -> Iterator[None]:
method is_checked_scope (line 180) | def is_checked_scope(self) -> bool:
method visit_class_def (line 183) | def visit_class_def(self, o: ClassDef) -> None:
method visit_type_application (line 193) | def visit_type_application(self, o: TypeApplication) -> None:
method visit_assignment_stmt (line 199) | def visit_assignment_stmt(self, o: AssignmentStmt) -> None:
method visit_expression_stmt (line 225) | def visit_expression_stmt(self, o: ExpressionStmt) -> None:
method visit_pass_stmt (line 232) | def visit_pass_stmt(self, o: PassStmt) -> None:
method visit_break_stmt (line 235) | def visit_break_stmt(self, o: BreakStmt) -> None:
method visit_continue_stmt (line 238) | def visit_continue_stmt(self, o: ContinueStmt) -> None:
method visit_name_expr (line 241) | def visit_name_expr(self, o: NameExpr) -> None:
method visit_yield_from_expr (line 248) | def visit_yield_from_expr(self, o: YieldFromExpr) -> None:
method visit_call_expr (line 252) | def visit_call_expr(self, o: CallExpr) -> None:
method record_call_target_precision (line 262) | def record_call_target_precision(self, o: CallExpr) -> None:
method record_callable_target_precision (line 273) | def record_callable_target_precision(self, o: CallExpr, callee: Callab...
method visit_member_expr (line 298) | def visit_member_expr(self, o: MemberExpr) -> None:
method visit_op_expr (line 302) | def visit_op_expr(self, o: OpExpr) -> None:
method visit_comparison_expr (line 306) | def visit_comparison_expr(self, o: ComparisonExpr) -> None:
method visit_index_expr (line 310) | def visit_index_expr(self, o: IndexExpr) -> None:
method visit_assignment_expr (line 314) | def visit_assignment_expr(self, o: AssignmentExpr) -> None:
method visit_unary_expr (line 318) | def visit_unary_expr(self, o: UnaryExpr) -> None:
method visit_str_expr (line 322) | def visit_str_expr(self, o: StrExpr) -> None:
method visit_bytes_expr (line 325) | def visit_bytes_expr(self, o: BytesExpr) -> None:
method visit_int_expr (line 328) | def visit_int_expr(self, o: IntExpr) -> None:
method visit_float_expr (line 331) | def visit_float_expr(self, o: FloatExpr) -> None:
method visit_complex_expr (line 334) | def visit_complex_expr(self, o: ComplexExpr) -> None:
method visit_ellipsis (line 337) | def visit_ellipsis(self, o: EllipsisExpr) -> None:
method process_node (line 342) | def process_node(self, node: Expression) -> None:
method record_precise_if_checked_scope (line 348) | def record_precise_if_checked_scope(self, node: Node) -> None:
method type (line 357) | def type(self, t: Type | None) -> None:
method log (line 413) | def log(self, string: str) -> None:
method record_line (line 416) | def record_line(self, line: int, precision: int) -> None:
function dump_type_stats (line 420) | def dump_type_stats(
function is_special_module (line 448) | def is_special_module(path: str) -> bool:
function is_imprecise (line 452) | def is_imprecise(t: Type) -> bool:
class HasAnyQuery (line 456) | class HasAnyQuery(TypeQuery[bool]):
method __init__ (line 457) | def __init__(self) -> None:
method visit_any (line 460) | def visit_any(self, t: AnyType) -> bool:
function is_imprecise2 (line 464) | def is_imprecise2(t: Type) -> bool:
class HasAnyQuery2 (line 468) | class HasAnyQuery2(HasAnyQuery):
method visit_callable_type (line 469) | def visit_callable_type(self, t: CallableType) -> bool:
function is_generic (line 475) | def is_generic(t: Type) -> bool:
function is_complex (line 480) | def is_complex(t: Type) -> bool:
function is_special_form_any (line 485) | def is_special_form_any(t: AnyType) -> bool:
function get_original_any (line 489) | def get_original_any(t: AnyType) -> AnyType:
FILE: mypy/strconv.py
class StrConv (line 20) | class StrConv(NodeVisitor[str]):
method __init__ (line 34) | def __init__(self, *, show_ids: bool = False, options: Options) -> None:
method stringify_type (line 41) | def stringify_type(self, t: mypy.types.Type) -> str:
method get_id (line 46) | def get_id(self, o: object) -> int | None:
method format_id (line 51) | def format_id(self, o: object) -> str:
method dump (line 57) | def dump(self, nodes: Sequence[object], obj: mypy.nodes.Context) -> str:
method func_helper (line 70) | def func_helper(self, o: mypy.nodes.FuncItem) -> list[object]:
method visit_mypy_file (line 105) | def visit_mypy_file(self, o: mypy.nodes.MypyFile) -> str:
method visit_import (line 121) | def visit_import(self, o: mypy.nodes.Import) -> str:
method visit_import_from (line 130) | def visit_import_from(self, o: mypy.nodes.ImportFrom) -> str:
method visit_import_all (line 139) | def visit_import_all(self, o: mypy.nodes.ImportAll) -> str:
method visit_func_def (line 144) | def visit_func_def(self, o: mypy.nodes.FuncDef) -> str:
method visit_overloaded_func_def (line 160) | def visit_overloaded_func_def(self, o: mypy.nodes.OverloadedFuncDef) -...
method visit_class_def (line 172) | def visit_class_def(self, o: mypy.nodes.ClassDef) -> str:
method visit_var (line 199) | def visit_var(self, o: mypy.nodes.Var) -> str:
method visit_global_decl (line 207) | def visit_global_decl(self, o: mypy.nodes.GlobalDecl) -> str:
method visit_nonlocal_decl (line 210) | def visit_nonlocal_decl(self, o: mypy.nodes.NonlocalDecl) -> str:
method visit_decorator (line 213) | def visit_decorator(self, o: mypy.nodes.Decorator) -> str:
method visit_block (line 218) | def visit_block(self, o: mypy.nodes.Block) -> str:
method visit_expression_stmt (line 221) | def visit_expression_stmt(self, o: mypy.nodes.ExpressionStmt) -> str:
method visit_assignment_stmt (line 224) | def visit_assignment_stmt(self, o: mypy.nodes.AssignmentStmt) -> str:
method visit_operator_assignment_stmt (line 235) | def visit_operator_assignment_stmt(self, o: mypy.nodes.OperatorAssignm...
method visit_while_stmt (line 238) | def visit_while_stmt(self, o: mypy.nodes.WhileStmt) -> str:
method visit_for_stmt (line 244) | def visit_for_stmt(self, o: mypy.nodes.ForStmt) -> str:
method visit_return_stmt (line 256) | def visit_return_stmt(self, o: mypy.nodes.ReturnStmt) -> str:
method visit_if_stmt (line 259) | def visit_if_stmt(self, o: mypy.nodes.IfStmt) -> str:
method visit_break_stmt (line 270) | def visit_break_stmt(self, o: mypy.nodes.BreakStmt) -> str:
method visit_continue_stmt (line 273) | def visit_continue_stmt(self, o: mypy.nodes.ContinueStmt) -> str:
method visit_pass_stmt (line 276) | def visit_pass_stmt(self, o: mypy.nodes.PassStmt) -> str:
method visit_raise_stmt (line 279) | def visit_raise_stmt(self, o: mypy.nodes.RaiseStmt) -> str:
method visit_assert_stmt (line 282) | def visit_assert_stmt(self, o: mypy.nodes.AssertStmt) -> str:
method visit_await_expr (line 288) | def visit_await_expr(self, o: mypy.nodes.AwaitExpr) -> str:
method visit_del_stmt (line 291) | def visit_del_stmt(self, o: mypy.nodes.DelStmt) -> str:
method visit_try_stmt (line 294) | def visit_try_stmt(self, o: mypy.nodes.TryStmt) -> str:
method visit_with_stmt (line 312) | def visit_with_stmt(self, o: mypy.nodes.WithStmt) -> str:
method visit_match_stmt (line 324) | def visit_match_stmt(self, o: mypy.nodes.MatchStmt) -> str:
method visit_type_alias_stmt (line 333) | def visit_type_alias_stmt(self, o: mypy.nodes.TypeAliasStmt) -> str:
method type_param (line 340) | def type_param(self, p: mypy.nodes.TypeParam) -> list[Any]:
method visit_int_expr (line 361) | def visit_int_expr(self, o: mypy.nodes.IntExpr) -> str:
method visit_str_expr (line 364) | def visit_str_expr(self, o: mypy.nodes.StrExpr) -> str:
method visit_bytes_expr (line 367) | def visit_bytes_expr(self, o: mypy.nodes.BytesExpr) -> str:
method str_repr (line 370) | def str_repr(self, s: str) -> str:
method visit_float_expr (line 374) | def visit_float_expr(self, o: mypy.nodes.FloatExpr) -> str:
method visit_complex_expr (line 377) | def visit_complex_expr(self, o: mypy.nodes.ComplexExpr) -> str:
method visit_ellipsis (line 380) | def visit_ellipsis(self, o: mypy.nodes.EllipsisExpr) -> str:
method visit_star_expr (line 383) | def visit_star_expr(self, o: mypy.nodes.StarExpr) -> str:
method visit_name_expr (line 386) | def visit_name_expr(self, o: mypy.nodes.NameExpr) -> str:
method pretty_name (line 394) | def pretty_name(
method visit_member_expr (line 424) | def visit_member_expr(self, o: mypy.nodes.MemberExpr) -> str:
method visit_yield_expr (line 428) | def visit_yield_expr(self, o: mypy.nodes.YieldExpr) -> str:
method visit_yield_from_expr (line 431) | def visit_yield_from_expr(self, o: mypy.nodes.YieldFromExpr) -> str:
method visit_call_expr (line 437) | def visit_call_expr(self, o: mypy.nodes.CallExpr) -> str:
method visit_op_expr (line 456) | def visit_op_expr(self, o: mypy.nodes.OpExpr) -> str:
method visit_comparison_expr (line 461) | def visit_comparison_expr(self, o: mypy.nodes.ComparisonExpr) -> str:
method visit_cast_expr (line 464) | def visit_cast_expr(self, o: mypy.nodes.CastExpr) -> str:
method visit_assert_type_expr (line 467) | def visit_assert_type_expr(self, o: mypy.nodes.AssertTypeExpr) -> str:
method visit_reveal_expr (line 470) | def visit_reveal_expr(self, o: mypy.nodes.RevealExpr) -> str:
method visit_assignment_expr (line 477) | def visit_assignment_expr(self, o: mypy.nodes.AssignmentExpr) -> str:
method visit_unary_expr (line 480) | def visit_unary_expr(self, o: mypy.nodes.UnaryExpr) -> str:
method visit_list_expr (line 483) | def visit_list_expr(self, o: mypy.nodes.ListExpr) -> str:
method visit_dict_expr (line 486) | def visit_dict_expr(self, o: mypy.nodes.DictExpr) -> str:
method visit_set_expr (line 489) | def visit_set_expr(self, o: mypy.nodes.SetExpr) -> str:
method visit_tuple_expr (line 492) | def visit_tuple_expr(self, o: mypy.nodes.TupleExpr) -> str:
method visit_index_expr (line 495) | def visit_index_expr(self, o: mypy.nodes.IndexExpr) -> str:
method visit_super_expr (line 500) | def visit_super_expr(self, o: mypy.nodes.SuperExpr) -> str:
method visit_type_application (line 503) | def visit_type_application(self, o: mypy.nodes.TypeApplication) -> str:
method visit_type_var_expr (line 506) | def visit_type_var_expr(self, o: mypy.nodes.TypeVarExpr) -> str:
method visit_paramspec_expr (line 520) | def visit_paramspec_expr(self, o: mypy.nodes.ParamSpecExpr) -> str:
method visit_type_var_tuple_expr (line 532) | def visit_type_var_tuple_expr(self, o: mypy.nodes.TypeVarTupleExpr) ->...
method visit_type_alias_expr (line 544) | def visit_type_alias_expr(self, o: mypy.nodes.TypeAliasExpr) -> str:
method visit_namedtuple_expr (line 547) | def visit_namedtuple_expr(self, o: mypy.nodes.NamedTupleExpr) -> str:
method visit_enum_call_expr (line 550) | def visit_enum_call_expr(self, o: mypy.nodes.EnumCallExpr) -> str:
method visit_typeddict_expr (line 553) | def visit_typeddict_expr(self, o: mypy.nodes.TypedDictExpr) -> str:
method visit__promote_expr (line 556) | def visit__promote_expr(self, o: mypy.nodes.PromoteExpr) -> str:
method visit_newtype_expr (line 559) | def visit_newtype_expr(self, o: mypy.nodes.NewTypeExpr) -> str:
method visit_lambda_expr (line 562) | def visit_lambda_expr(self, o: mypy.nodes.LambdaExpr) -> str:
method visit_generator_expr (line 566) | def visit_generator_expr(self, o: mypy.nodes.GeneratorExpr) -> str:
method visit_list_comprehension (line 570) | def visit_list_comprehension(self, o: mypy.nodes.ListComprehension) ->...
method visit_set_comprehension (line 573) | def visit_set_comprehension(self, o: mypy.nodes.SetComprehension) -> str:
method visit_dictionary_comprehension (line 576) | def visit_dictionary_comprehension(self, o: mypy.nodes.DictionaryCompr...
method visit_conditional_expr (line 580) | def visit_conditional_expr(self, o: mypy.nodes.ConditionalExpr) -> str:
method visit_slice_expr (line 583) | def visit_slice_expr(self, o: mypy.nodes.SliceExpr) -> str:
method visit_temp_node (line 591) | def visit_temp_node(self, o: mypy.nodes.TempNode) -> str:
method visit_as_pattern (line 594) | def visit_as_pattern(self, o: mypy.patterns.AsPattern) -> str:
method visit_or_pattern (line 597) | def visit_or_pattern(self, o: mypy.patterns.OrPattern) -> str:
method visit_value_pattern (line 600) | def visit_value_pattern(self, o: mypy.patterns.ValuePattern) -> str:
method visit_singleton_pattern (line 603) | def visit_singleton_pattern(self, o: mypy.patterns.SingletonPattern) -...
method visit_sequence_pattern (line 606) | def visit_sequence_pattern(self, o: mypy.patterns.SequencePattern) -> ...
method visit_starred_pattern (line 609) | def visit_starred_pattern(self, o: mypy.patterns.StarredPattern) -> str:
method visit_mapping_pattern (line 612) | def visit_mapping_pattern(self, o: mypy.patterns.MappingPattern) -> str:
method visit_class_pattern (line 621) | def visit_class_pattern(self, o: mypy.patterns.ClassPattern) -> str:
function dump_tagged (line 631) | def dump_tagged(nodes: Sequence[object], tag: str | None, str_conv: StrC...
function indent (line 668) | def indent(s: str, n: int) -> str:
FILE: mypy/stubdoc.py
function is_valid_type (line 28) | def is_valid_type(s: str) -> bool:
class ArgSig (line 37) | class ArgSig:
method __init__ (line 40) | def __init__(
method is_star_arg (line 54) | def is_star_arg(self) -> bool:
method is_star_kwarg (line 57) | def is_star_kwarg(self) -> bool:
method __repr__ (line 60) | def __repr__(self) -> str:
method __eq__ (line 65) | def __eq__(self, other: Any) -> bool:
class FunctionSig (line 76) | class FunctionSig(NamedTuple):
method is_special_method (line 82) | def is_special_method(self) -> bool:
method has_catchall_args (line 90) | def has_catchall_args(self) -> bool:
method is_catchall_signature (line 103) | def is_catchall_signature(self) -> bool:
method format_sig (line 107) | def format_sig(
class DocStringParser (line 164) | class DocStringParser:
method __init__ (line 167) | def __init__(self, function_name: str) -> None:
method add_token (line 181) | def add_token(self, token: tokenize.TokenInfo) -> None:
method reset (line 312) | def reset(self) -> None:
method get_signatures (line 318) | def get_signatures(self) -> list[FunctionSig]:
function infer_sig_from_docstring (line 331) | def infer_sig_from_docstring(docstr: str | None, name: str) -> list[Func...
function infer_arg_sig_from_anon_docstring (line 368) | def infer_arg_sig_from_anon_docstring(docstr: str) -> list[ArgSig]:
function infer_ret_type_sig_from_docstring (line 376) | def infer_ret_type_sig_from_docstring(docstr: str, name: str) -> str | N...
function infer_ret_type_sig_from_anon_docstring (line 384) | def infer_ret_type_sig_from_anon_docstring(docstr: str) -> str | None:
function parse_signature (line 390) | def parse_signature(sig: str) -> tuple[str, list[str], list[str]] | None:
function build_signature (line 427) | def build_signature(positional: Sequence[str], optional: Sequence[str]) ...
function parse_all_signatures (line 442) | def parse_all_signatures(lines: Sequence[str]) -> tuple[list[Sig], list[...
function find_unique_signatures (line 465) | def find_unique_signatures(sigs: Sequence[Sig]) -> list[Sig]:
function infer_prop_type_from_docstring (line 478) | def infer_prop_type_from_docstring(docstr: str | None) -> str | None:
FILE: mypy/stubgen.py
class Options (line 184) | class Options:
method __init__ (line 190) | def __init__(
class StubSource (line 233) | class StubSource:
method __init__ (line 240) | def __init__(
method __repr__ (line 247) | def __repr__(self) -> str:
method module (line 251) | def module(self) -> str:
method path (line 255) | def path(self) -> str | None:
class AliasPrinter (line 274) | class AliasPrinter(NodeVisitor[str]):
method __init__ (line 280) | def __init__(self, stubgen: ASTStubGenerator) -> None:
method visit_call_expr (line 284) | def visit_call_expr(self, node: CallExpr) -> str:
method _visit_ref_expr (line 302) | def _visit_ref_expr(self, node: NameExpr | MemberExpr) -> str:
method visit_name_expr (line 310) | def visit_name_expr(self, node: NameExpr) -> str:
method visit_member_expr (line 313) | def visit_member_expr(self, o: MemberExpr) -> str:
method _visit_literal_node (line 316) | def _visit_literal_node(
method visit_str_expr (line 321) | def visit_str_expr(self, node: StrExpr) -> str:
method visit_bytes_expr (line 324) | def visit_bytes_expr(self, node: BytesExpr) -> str:
method visit_int_expr (line 327) | def visit_int_expr(self, node: IntExpr) -> str:
method visit_float_expr (line 330) | def visit_float_expr(self, node: FloatExpr) -> str:
method visit_complex_expr (line 333) | def visit_complex_expr(self, node: ComplexExpr) -> str:
method visit_index_expr (line 336) | def visit_index_expr(self, node: IndexExpr) -> str:
method visit_tuple_expr (line 352) | def visit_tuple_expr(self, node: TupleExpr) -> str:
method visit_list_expr (line 356) | def visit_list_expr(self, node: ListExpr) -> str:
method visit_dict_expr (line 359) | def visit_dict_expr(self, o: DictExpr) -> str:
method visit_ellipsis (line 367) | def visit_ellipsis(self, node: EllipsisExpr) -> str:
method visit_op_expr (line 370) | def visit_op_expr(self, o: OpExpr) -> str:
method visit_star_expr (line 373) | def visit_star_expr(self, o: StarExpr) -> str:
method visit_lambda_expr (line 376) | def visit_lambda_expr(self, o: LambdaExpr) -> str:
function find_defined_names (line 381) | def find_defined_names(file: MypyFile) -> set[str]:
function get_assigned_names (line 387) | def get_assigned_names(lvalues: Iterable[Expression]) -> Iterator[str]:
class DefinitionFinder (line 395) | class DefinitionFinder(mypy.traverser.TraverserVisitor):
method __init__ (line 398) | def __init__(self) -> None:
method visit_class_def (line 402) | def visit_class_def(self, o: ClassDef) -> None:
method visit_func_def (line 406) | def visit_func_def(self, o: FuncDef) -> None:
method visit_assignment_stmt (line 410) | def visit_assignment_stmt(self, o: AssignmentStmt) -> None:
method visit_type_alias_stmt (line 414) | def visit_type_alias_stmt(self, o: TypeAliasStmt) -> None:
function find_referenced_names (line 418) | def find_referenced_names(file: MypyFile) -> set[str]:
function is_none_expr (line 424) | def is_none_expr(expr: Expression) -> bool:
class ReferenceFinder (line 428) | class ReferenceFinder(mypy.mixedtraverser.MixedTraverserVisitor):
method __init__ (line 433) | def __init__(self) -> None:
method visit_block (line 437) | def visit_block(self, block: Block) -> None:
method visit_name_expr (line 441) | def visit_name_expr(self, e: NameExpr) -> None:
method visit_instance (line 444) | def visit_instance(self, t: Instance) -> None:
method visit_unbound_type (line 448) | def visit_unbound_type(self, t: UnboundType) -> None:
method visit_tuple_type (line 452) | def visit_tuple_type(self, t: TupleType) -> None:
method visit_callable_type (line 457) | def visit_callable_type(self, t: CallableType) -> None:
method add_ref (line 463) | def add_ref(self, fullname: str) -> None:
class ASTStubGenerator (line 470) | class ASTStubGenerator(BaseStubGenerator, mypy.traverser.TraverserVisitor):
method __init__ (line 473) | def __init__(
method _current_class (line 498) | def _current_class(self) -> ClassDef | None:
method visit_mypy_file (line 501) | def visit_mypy_file(self, o: MypyFile) -> None:
method visit_overloaded_func_def (line 509) | def visit_overloaded_func_def(self, o: OverloadedFuncDef) -> None:
method get_default_function_sig (line 529) | def get_default_function_sig(self, func_def: FuncDef, ctx: FunctionCon...
method _get_func_args (line 535) | def _get_func_args(self, o: FuncDef, ctx: FunctionContext) -> list[Arg...
method _get_func_return (line 596) | def _get_func_return(self, o: FuncDef, ctx: FunctionContext) -> str | ...
method _get_func_docstring (line 643) | def _get_func_docstring(self, node: FuncDef) -> str | None:
method visit_func_def (line 651) | def visit_func_def(self, o: FuncDef) -> None:
method visit_decorator (line 709) | def visit_decorator(self, o: Decorator) -> None:
method process_decorator (line 715) | def process_decorator(self, o: Decorator) -> None:
method get_fullname (line 767) | def get_fullname(self, expr: Expression) -> str:
method visit_class_def (line 779) | def visit_class_def(self, o: ClassDef) -> None:
method get_base_types (line 833) | def get_base_types(self, cdef: ClassDef) -> list[str]:
method get_class_decorators (line 877) | def get_class_decorators(self, cdef: ClassDef) -> list[str]:
method is_dataclass (line 890) | def is_dataclass(self, expr: Expression) -> bool:
method is_dataclass_transform (line 895) | def is_dataclass_transform(self, expr: Expression) -> bool:
method visit_block (line 906) | def visit_block(self, o: Block) -> None:
method visit_assignment_stmt (line 912) | def visit_assignment_stmt(self, o: AssignmentStmt) -> None:
method is_namedtuple (line 960) | def is_namedtuple(self, expr: CallExpr) -> bool:
method is_typed_namedtuple (line 963) | def is_typed_namedtuple(self, expr: CallExpr) -> bool:
method _get_namedtuple_fields (line 966) | def _get_namedtuple_fields(self, call: CallExpr) -> list[tuple[str, st...
method process_namedtuple (line 1002) | def process_namedtuple(self, lvalue: NameExpr, rvalue: CallExpr) -> None:
method is_typeddict (line 1028) | def is_typeddict(self, expr: CallExpr) -> bool:
method process_typeddict (line 1031) | def process_typeddict(self, lvalue: NameExpr, rvalue: CallExpr) -> None:
method annotate_as_incomplete (line 1086) | def annotate_as_incomplete(self, lvalue: NameExpr) -> None:
method is_alias_expression (line 1091) | def is_alias_expression(self, expr: Expression, top_level: bool = True...
method process_typealias (line 1153) | def process_typealias(self, lvalue: NameExpr, rvalue: Expression) -> N...
method visit_type_alias_stmt (line 1159) | def visit_type_alias_stmt(self, o: TypeAliasStmt) -> None:
method visit_if_stmt (line 1169) | def visit_if_stmt(self, o: IfStmt) -> None:
method visit_import_all (line 1182) | def visit_import_all(self, o: ImportAll) -> None:
method visit_import_from (line 1185) | def visit_import_from(self, o: ImportFrom) -> None:
method visit_import (line 1222) | def visit_import(self, o: Import) -> None:
method get_init (line 1232) | def get_init(
method get_assign_initializer (line 1268) | def get_assign_initializer(self, rvalue: Expression) -> str:
method add_decorator (line 1294) | def add_decorator(self, name: str, require_name: bool = False) -> None:
method clear_decorators (line 1299) | def clear_decorators(self) -> None:
method is_private_member (line 1302) | def is_private_member(self, fullname: str) -> bool:
method get_str_type_of_node (line 1306) | def get_str_type_of_node(
method maybe_unwrap_unary_expr (line 1335) | def maybe_unwrap_unary_expr(self, expr: Expression) -> Expression:
method get_str_default_of_node (line 1369) | def get_str_default_of_node(self, rvalue: Expression) -> tuple[str, bo...
method should_reexport (line 1433) | def should_reexport(self, name: str, full_module: str, name_is_alias: ...
function find_method_names (line 1449) | def find_method_names(defs: list[Statement]) -> set[str]:
class SelfTraverser (line 1463) | class SelfTraverser(mypy.traverser.TraverserVisitor):
method __init__ (line 1464) | def __init__(self) -> None:
method visit_assignment_stmt (line 1467) | def visit_assignment_stmt(self, o: AssignmentStmt) -> None:
function find_self_initializers (line 1477) | def find_self_initializers(fdef: FuncBase) -> list[tuple[str, Expression...
function get_qualified_name (line 1487) | def get_qualified_name(o: Expression) -> str:
function remove_blacklisted_modules (line 1496) | def remove_blacklisted_modules(modules: list[StubSource]) -> list[StubSo...
function split_pyc_from_py (line 1502) | def split_pyc_from_py(modules: list[StubSource]) -> tuple[list[StubSourc...
function is_blacklisted_path (line 1513) | def is_blacklisted_path(path: str) -> bool:
function normalize_path_separators (line 1517) | def normalize_path_separators(path: str) -> str:
function collect_build_targets (line 1523) | def collect_build_targets(
function find_module_paths_using_imports (line 1555) | def find_module_paths_using_imports(
function is_non_library_module (line 1588) | def is_non_library_module(module: str) -> bool:
function translate_module_name (line 1618) | def translate_module_name(module: str, relative: int) -> tuple[str, int]:
function find_module_paths_using_search (line 1629) | def find_module_paths_using_search(
function mypy_options (line 1662) | def mypy_options(stubgen_options: Options) -> MypyOptions:
function parse_source_file (line 1684) | def parse_source_file(mod: StubSource, mypy_options: MypyOptions) -> None:
function generate_asts_for_modules (line 1706) | def generate_asts_for_modules(
function generate_stub_for_py_module (line 1731) | def generate_stub_for_py_module(
function generate_stubs (line 1784) | def generate_stubs(options: Options) -> None:
function parse_options (line 1854) | def parse_options(args: list[str]) -> Options:
function main (line 1995) | def main(args: list[str] | None = None) -> None:
FILE: mypy/stubgenc.py
class ExternalSignatureGenerator (line 43) | class ExternalSignatureGenerator(SignatureGenerator):
method __init__ (line 44) | def __init__(
method from_doc_dir (line 55) | def from_doc_dir(cls, doc_dir: str) -> ExternalSignatureGenerator:
method get_function_sig (line 68) | def get_function_sig(
method get_property_type (line 102) | def get_property_type(self, default_type: str | None, ctx: FunctionCon...
class DocstringSignatureGenerator (line 106) | class DocstringSignatureGenerator(SignatureGenerator):
method get_function_sig (line 107) | def get_function_sig(
method get_property_type (line 127) | def get_property_type(self, default_type: str | None, ctx: FunctionCon...
function is_pybind11_overloaded_function_docstring (line 142) | def is_pybind11_overloaded_function_docstring(docstring: str, name: str)...
function generate_stub_for_c_module (line 146) | def generate_stub_for_c_module(
class CFunctionStub (line 187) | class CFunctionStub:
method __init__ (line 192) | def __init__(self, name: str, doc: str, is_abstract: bool = False) -> ...
method _from_sig (line 198) | def _from_sig(cls, sig: FunctionSig, is_abstract: bool = False) -> CFu...
method _from_sigs (line 202) | def _from_sigs(cls, sigs: list[FunctionSig], is_abstract: bool = False...
method __get__ (line 207) | def __get__(self) -> None: # noqa: PLE0302
class InspectionStubGenerator (line 215) | class InspectionStubGenerator(BaseStubGenerator):
method __init__ (line 223) | def __init__(
method get_default_function_sig (line 267) | def get_default_function_sig(self, func: object, ctx: FunctionContext)...
method get_sig_generators (line 375) | def get_sig_generators(self) -> list[SignatureGenerator]:
method strip_or_import (line 385) | def strip_or_import(self, type_name: str) -> str:
method get_obj_module (line 399) | def get_obj_module(self, obj: object) -> str | None:
method is_defined_in_module (line 403) | def is_defined_in_module(self, obj: object) -> bool:
method generate_module (line 408) | def generate_module(self) -> None:
method is_skipped_attribute (line 486) | def is_skipped_attribute(self, attr: str) -> bool:
method get_members (line 508) | def get_members(self, obj: object) -> list[tuple[str, Any]]:
method get_type_annotation (line 523) | def get_type_annotation(self, obj: object) -> str:
method is_function (line 539) | def is_function(self, obj: object) -> bool:
method is_method (line 545) | def is_method(self, class_info: ClassInfo, name: str, obj: object) -> ...
method is_classmethod (line 556) | def is_classmethod(self, class_info: ClassInfo, name: str, obj: object...
method is_staticmethod (line 565) | def is_staticmethod(self, class_info: ClassInfo | None, name: str, obj...
method is_abstract_method (line 576) | def is_abstract_method(obj: object) -> bool:
method is_property (line 580) | def is_property(class_info: ClassInfo, name: str, obj: object) -> bool:
method is_property_readonly (line 584) | def is_property_readonly(prop: Any) -> bool:
method is_static_property (line 587) | def is_static_property(self, obj: object) -> bool:
method process_inferred_sigs (line 595) | def process_inferred_sigs(self, inferred: list[FunctionSig]) -> None:
method generate_function_stub (line 603) | def generate_function_stub(
method _indent_docstring (line 655) | def _indent_docstring(self, docstring: str) -> str:
method _fix_iter (line 673) | def _fix_iter(
method generate_property_stub (line 697) | def generate_property_stub(
method get_type_fullname (line 764) | def get_type_fullname(self, typ: type) -> str:
method get_base_types (line 776) | def get_base_types(self, obj: type) -> list[str]:
method generate_class_stub (line 794) | def generate_class_stub(
method generate_variable_stub (line 895) | def generate_variable_stub(self, name: str, obj: object, output: list[...
function method_name_sort_key (line 908) | def method_name_sort_key(name: str) -> tuple[int, str]:
function is_pybind_skipped_attribute (line 920) | def is_pybind_skipped_attribute(attr: str) -> bool:
function infer_c_method_args (line 924) | def infer_c_method_args(
FILE: mypy/stubinfo.py
function is_module_from_legacy_bundled_package (line 4) | def is_module_from_legacy_bundled_package(module: str) -> bool:
function stub_distribution_name (line 9) | def stub_distribution_name(module: str) -> str | None:
FILE: mypy/stubtest.py
class Missing (line 48) | class Missing:
method __repr__ (line 51) | def __repr__(self) -> str:
class Unrepresentable (line 61) | class Unrepresentable:
method __repr__ (line 64) | def __repr__(self) -> str:
function _style (line 74) | def _style(message: str, **kwargs: Any) -> str:
function _truncate (line 80) | def _truncate(message: str, length: int) -> str:
class StubtestFailure (line 86) | class StubtestFailure(Exception):
class Error (line 90) | class Error:
method __init__ (line 91) | def __init__(
method is_missing_stub (line 130) | def is_missing_stub(self) -> bool:
method is_positional_only_related (line 134) | def is_positional_only_related(self) -> bool:
method get_description (line 139) | def get_description(self, concise: bool = False) -> str:
function silent_import_module (line 203) | def silent_import_module(module_name: str) -> types.ModuleType:
function test_module (line 215) | def test_module(module_name: str) -> Iterator[Error]:
function verify (line 272) | def verify(
function _verify_exported_names (line 286) | def _verify_exported_names(
function _module_symbol_table (line 316) | def _module_symbol_table(runtime: types.ModuleType) -> symtable.SymbolTa...
function verify_mypyfile (line 334) | def verify_mypyfile(
function _verify_final (line 429) | def _verify_final(
function _verify_metaclass (line 468) | def _verify_metaclass(
function verify_typeinfo (line 507) | def verify_typeinfo(
function _static_lookup_runtime (line 591) | def _static_lookup_runtime(object_path: list[str]) -> MaybeMissing[Any]:
function _verify_static_class_methods (line 604) | def _verify_static_class_methods(
function _verify_arg_name (line 633) | def _verify_arg_name(
function _verify_arg_default_value (line 670) | def _verify_arg_default_value(
function maybe_strip_cls (line 737) | def maybe_strip_cls(name: str, args: list[nodes.Argument]) -> list[nodes...
class Signature (line 746) | class Signature(Generic[T]):
method __init__ (line 747) | def __init__(self) -> None:
method __str__ (line 753) | def __str__(self) -> str:
method from_funcitem (line 795) | def from_funcitem(stub: nodes.FuncItem) -> Signature[nodes.Argument]:
method from_inspect_signature (line 812) | def from_inspect_signature(signature: inspect.Signature) -> Signature[...
method from_overloadedfuncdef (line 831) | def from_overloadedfuncdef(stub: nodes.OverloadedFuncDef) -> Signature...
function _verify_signature (line 914) | def _verify_signature(
function _is_private_parameter (line 1022) | def _is_private_parameter(arg: inspect.Parameter) -> bool:
function verify_funcitem (line 1031) | def verify_funcitem(
function verify_none (line 1093) | def verify_none(
function verify_var (line 1100) | def verify_var(
function verify_overloadedfuncdef (line 1144) | def verify_overloadedfuncdef(
function verify_typevarexpr (line 1208) | def verify_typevarexpr(
function verify_paramspecexpr (line 1224) | def verify_paramspecexpr(
function _verify_readonly_property (line 1240) | def _verify_readonly_property(stub: nodes.Decorator, runtime: Any) -> It...
function _verify_abstract_status (line 1266) | def _verify_abstract_status(stub: nodes.FuncDef, runtime: Any) -> Iterat...
function _verify_final_method (line 1275) | def _verify_final_method(
function _resolve_funcitem_from_decorator (line 1286) | def _resolve_funcitem_from_decorator(dec: nodes.OverloadPart) -> nodes.F...
function verify_decorator (line 1342) | def verify_decorator(
function verify_typealias (line 1374) | def verify_typealias(
function is_probably_private (line 1529) | def is_probably_private(name: str) -> bool:
function is_probably_a_function (line 1533) | def is_probably_a_function(runtime: Any) -> bool:
function is_read_only_property (line 1542) | def is_read_only_property(runtime: object) -> bool:
function safe_inspect_signature (line 1546) | def safe_inspect_signature(runtime: Any) -> inspect.Signature | None:
function describe_runtime_callable (line 1579) | def describe_runtime_callable(signature: inspect.Signature, *, is_async:...
function is_subtype_helper (line 1583) | def is_subtype_helper(left: mypy.types.Type, right: mypy.types.Type) -> ...
function get_mypy_type_of_runtime_value (line 1606) | def get_mypy_type_of_runtime_value(runtime: Any) -> mypy.types.Type | None:
function build_stubs (line 1710) | def build_stubs(modules: list[str], options: Options, find_submodules: b...
function get_stub (line 1771) | def get_stub(module: str) -> nodes.MypyFile | None:
function get_typeshed_stdlib_modules (line 1776) | def get_typeshed_stdlib_modules(
function get_importable_stdlib_modules (line 1810) | def get_importable_stdlib_modules() -> set[str]:
function get_allowlist_entries (line 1887) | def get_allowlist_entries(allowlist_file: str) -> Iterator[str]:
class _Arguments (line 1901) | class _Arguments:
function test_stubs (line 1921) | def test_stubs(args: _Arguments, use_builtins_fixtures: bool = False) ->...
function parse_options (line 2055) | def parse_options(args: list[str]) -> _Arguments:
function main (line 2121) | def main() -> int:
FILE: mypy/stubutil.py
class CantImport (line 57) | class CantImport(Exception):
method __init__ (line 58) | def __init__(self, module: str, message: str) -> None:
function walk_packages (line 63) | def walk_packages(
function find_module_path_using_sys_path (line 96) | def find_module_path_using_sys_path(module: str, sys_path: list[str]) ->...
function find_module_path_and_all_py3 (line 109) | def find_module_path_and_all_py3(
function generate_guarded (line 138) | def generate_guarded(
function report_missing (line 160) | def report_missing(mod: str, message: str | None = "", traceback: str = ...
function fail_missing (line 166) | def fail_missing(mod: str, reason: ModuleNotFoundReason) -> None:
function remove_misplaced_type_comments (line 177) | def remove_misplaced_type_comments(source: bytes) -> bytes: ...
function remove_misplaced_type_comments (line 181) | def remove_misplaced_type_comments(source: str) -> str: ...
function remove_misplaced_type_comments (line 184) | def remove_misplaced_type_comments(source: str | bytes) -> str | bytes:
function common_dir_prefix (line 214) | def common_dir_prefix(paths: list[str]) -> str:
class AnnotationPrinter (line 227) | class AnnotationPrinter(TypeStrVisitor):
method __init__ (line 243) | def __init__(
method visit_any (line 254) | def visit_any(self, t: AnyType) -> str:
method visit_unbound_type (line 259) | def visit_unbound_type(self, t: UnboundType) -> str:
method visit_none_type (line 295) | def visit_none_type(self, t: NoneType) -> str:
method visit_type_list (line 298) | def visit_type_list(self, t: TypeList) -> str:
method visit_union_type (line 301) | def visit_union_type(self, t: UnionType) -> str:
method visit_unpack_type (line 304) | def visit_unpack_type(self, t: UnpackType) -> str:
method args_str (line 309) | def args_str(self, args: Iterable[Type]) -> str:
class ClassInfo (line 326) | class ClassInfo:
method __init__ (line 327) | def __init__(
class FunctionContext (line 342) | class FunctionContext:
method __init__ (line 343) | def __init__(
method fullname (line 359) | def fullname(self) -> str:
function infer_method_ret_type (line 374) | def infer_method_ret_type(name: str) -> str | None:
function infer_method_arg_types (line 392) | def infer_method_arg_types(
class SignatureGenerator (line 421) | class SignatureGenerator:
method remove_self_type (line 424) | def remove_self_type(
method get_function_sig (line 436) | def get_function_sig(
method get_property_type (line 447) | def get_property_type(self, default_type: str | None, ctx: FunctionCon...
class ImportTracker (line 452) | class ImportTracker:
method __init__ (line 455) | def __init__(self) -> None:
method add_import_from (line 481) | def add_import_from(
method add_import (line 497) | def add_import(self, module: str, alias: str | None = None, require: b...
method require_name (line 517) | def require_name(self, name: str) -> None:
method reexport (line 522) | def reexport(self, name: str) -> None:
method import_lines (line 531) | def import_lines(self) -> list[str]:
class BaseStubGenerator (line 581) | class BaseStubGenerator:
method __init__ (line 615) | def __init__(
method get_sig_generators (line 651) | def get_sig_generators(self) -> list[SignatureGenerator]:
method resolve_name (line 654) | def resolve_name(self, name: str) -> str:
method add_name (line 667) | def add_name(self, fullname: str, require: bool = True) -> str:
method add_import_line (line 683) | def add_import_line(self, line: str) -> None:
method get_imports (line 688) | def get_imports(self) -> str:
method output (line 696) | def output(self) -> str:
method get_dunder_all (line 707) | def get_dunder_all(self) -> str:
method add (line 717) | def add(self, string: str) -> None:
method is_top_level (line 721) | def is_top_level(self) -> bool:
method indent (line 725) | def indent(self) -> None:
method dedent (line 729) | def dedent(self) -> None:
method record_name (line 733) | def record_name(self, name: str) -> None:
method is_recorded_name (line 741) | def is_recorded_name(self, name: str) -> bool:
method set_defined_names (line 745) | def set_defined_names(self, defined_names: set[str]) -> None:
method check_undefined_names (line 757) | def check_undefined_names(self) -> None:
method get_signatures (line 766) | def get_signatures(
method get_property_type (line 779) | def get_property_type(
method format_func_def (line 792) | def format_func_def(
method format_type_args (line 817) | def format_type_args(self, o: TypeAliasStmt | FuncDef | ClassDef) -> str:
method print_annotation (line 842) | def print_annotation(
method is_not_in_all (line 851) | def is_not_in_all(self, name: str) -> bool:
method is_private_name (line 858) | def is_private_name(self, name: str, fullname: str | None = None) -> b...
method should_reexport (line 875) | def should_reexport(self, name: str, full_module: str, name_is_alias: ...
FILE: mypy/subtypes.py
class SubtypeContext (line 90) | class SubtypeContext:
method __init__ (line 91) | def __init__(
method check_context (line 117) | def check_context(self, proper_subtype: bool) -> None:
function is_subtype (line 126) | def is_subtype(
function is_proper_subtype (line 194) | def is_proper_subtype(
function is_equivalent (line 231) | def is_equivalent(
function is_same_type (line 257) | def is_same_type(
function _is_subtype (line 290) | def _is_subtype(
function check_type_parameter (line 373) | def check_type_parameter(
class SubtypeVisitor (line 407) | class SubtypeVisitor(TypeVisitor[bool]):
method __init__ (line 408) | def __init__(self, right: Type, subtype_context: SubtypeContext, prope...
method build_subtype_kind (line 417) | def build_subtype_kind(subtype_context: SubtypeContext, proper_subtype...
method _is_subtype (line 430) | def _is_subtype(self, left: Type, right: Type) -> bool:
method visit_unbound_type (line 437) | def visit_unbound_type(self, left: UnboundType) -> bool:
method visit_any (line 443) | def visit_any(self, left: AnyType) -> bool:
method visit_none_type (line 446) | def visit_none_type(self, left: NoneType) -> bool:
method visit_uninhabited_type (line 462) | def visit_uninhabited_type(self, left: UninhabitedType) -> bool:
method visit_erased_type (line 465) | def visit_erased_type(self, left: ErasedType) -> bool:
method visit_deleted_type (line 471) | def visit_deleted_type(self, left: DeletedType) -> bool:
method visit_instance (line 474) | def visit_instance(self, left: Instance) -> bool:
method visit_type_var (line 673) | def visit_type_var(self, left: TypeVarType) -> bool:
method visit_param_spec (line 681) | def visit_param_spec(self, left: ParamSpecType) -> bool:
method visit_type_var_tuple (line 693) | def visit_type_var_tuple(self, left: TypeVarTupleType) -> bool:
method visit_unpack_type (line 699) | def visit_unpack_type(self, left: UnpackType) -> bool:
method visit_parameters (line 708) | def visit_parameters(self, left: Parameters) -> bool:
method visit_callable_type (line 723) | def visit_callable_type(self, left: CallableType) -> bool:
method visit_tuple_type (line 814) | def visit_tuple_type(self, left: TupleType) -> bool:
method variadic_tuple_subtype (line 875) | def variadic_tuple_subtype(self, left: TupleType, right: TupleType) ->...
method visit_typeddict_type (line 948) | def visit_typeddict_type(self, left: TypedDictType) -> bool:
method visit_literal_type (line 1000) | def visit_literal_type(self, left: LiteralType) -> bool:
method visit_overloaded (line 1006) | def visit_overloaded(self, left: Overloaded) -> bool:
method visit_union_type (line 1089) | def visit_union_type(self, left: UnionType) -> bool:
method visit_intersection_type (line 1131) | def visit_intersection_type(self, left: IntersectionType) -> bool:
method visit_partial_type (line 1136) | def visit_partial_type(self, left: PartialType) -> bool:
method visit_type_type (line 1149) | def visit_type_type(self, left: TypeType) -> bool:
method visit_type_alias_type (line 1179) | def visit_type_alias_type(self, left: TypeAliasType) -> bool:
function pop_on_exit (line 1187) | def pop_on_exit(stack: list[tuple[T, T]], left: T, right: T) -> Iterator...
function is_protocol_implementation (line 1193) | def is_protocol_implementation(
function find_member (line 1308) | def find_member(
function get_member_flags (line 1367) | def get_member_flags(name: str, itype: Instance, class_obj: bool = False...
function find_node_type (line 1422) | def find_node_type(
function non_method_protocol_members (line 1467) | def non_method_protocol_members(tp: TypeInfo) -> list[str]:
function is_callable_compatible (line 1482) | def is_callable_compatible(
function are_trivial_parameters (line 1651) | def are_trivial_parameters(param: Parameters | NormalizedCallableType) -...
function is_trivial_suffix (line 1663) | def is_trivial_suffix(param: Parameters | NormalizedCallableType) -> bool:
function are_parameters_compatible (line 1675) | def are_parameters_compatible(
function are_args_compatible (line 1865) | def are_args_compatible(
function flip_compat_check (line 1922) | def flip_compat_check(is_compat: Callable[[Type, Type], bool]) -> Callab...
function unify_generic_callable (line 1929) | def unify_generic_callable(
function try_restrict_literal_union (line 1988) | def try_restrict_literal_union(t: UnionType, s: Type) -> list[Type] | None:
function restrict_subtype_away (line 2009) | def restrict_subtype_away(t: Type, s: Type, *, erase=True) -> Type:
function covers_at_runtime (line 2039) | def covers_at_runtime(item: Type, supertype: Type, *, erase=True) -> bool:
function is_more_precise (line 2073) | def is_more_precise(left: Type, right: Type, *, ignore_promotions: bool ...
function all_non_object_members (line 2087) | def all_non_object_members(info: TypeInfo) -> set[str]:
function infer_variance (line 2094) | def infer_variance(info: TypeInfo, i: int) -> bool:
function has_underscore_prefix (line 2170) | def has_underscore_prefix(name: str) -> bool:
function infer_class_variances (line 2174) | def infer_class_variances(info: TypeInfo) -> bool:
function erase_return_self_types (line 2186) | def erase_return_self_types(typ: Type, self_type: Instance) -> Type:
FILE: mypy/suggestions.py
class PyAnnotateSignature (line 86) | class PyAnnotateSignature(TypedDict):
class Callsite (line 91) | class Callsite(NamedTuple):
class SuggestionPlugin (line 100) | class SuggestionPlugin(Plugin):
method __init__ (line 103) | def __init__(self, target: str) -> None:
method get_function_hook (line 112) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
method get_method_hook (line 118) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
method log (line 124) | def log(self, ctx: FunctionContext | MethodContext) -> Type:
class ReturnFinder (line 140) | class ReturnFinder(TraverserVisitor):
method __init__ (line 143) | def __init__(self, typemap: dict[Expression, Type]) -> None:
method visit_return_stmt (line 147) | def visit_return_stmt(self, o: ReturnStmt) -> None:
method visit_func_def (line 151) | def visit_func_def(self, o: FuncDef) -> None:
function get_return_types (line 156) | def get_return_types(typemap: dict[Expression, Type], func: FuncDef) -> ...
class ArgUseFinder (line 163) | class ArgUseFinder(TraverserVisitor):
method __init__ (line 169) | def __init__(self, func: FuncDef, typemap: dict[Expression, Type]) -> ...
method visit_call_expr (line 173) | def visit_call_expr(self, o: CallExpr) -> None:
function get_arg_uses (line 196) | def get_arg_uses(typemap: dict[Expression, Type], func: FuncDef) -> list...
class SuggestionFailure (line 213) | class SuggestionFailure(Exception):
function is_explicit_any (line 217) | def is_explicit_any(typ: AnyType) -> bool:
function is_implicit_any (line 227) | def is_implicit_any(typ: Type) -> bool:
class SuggestionEngine (line 232) | class SuggestionEngine:
method __init__ (line 235) | def __init__(
method suggest (line 261) | def suggest(self, function: str) -> str:
method suggest_callsites (line 274) | def suggest_callsites(self, function: str) -> str:
method restore_after (line 290) | def restore_after(self, module: str) -> Iterator[None]:
method with_export_types (line 301) | def with_export_types(self) -> Iterator[None]:
method get_trivial_type (line 313) | def get_trivial_type(self, fdef: FuncDef) -> CallableType:
method get_starting_type (line 326) | def get_starting_type(self, fdef: FuncDef) -> CallableType:
method get_args (line 332) | def get_args(
method get_default_arg_types (line 386) | def get_default_arg_types(self, fdef: FuncDef) -> list[Type | None]:
method get_guesses (line 392) | def get_guesses(
method get_callsites (line 410) | def get_callsites(self, func: FuncDef) -> tuple[list[Callsite], list[s...
method filter_options (line 424) | def filter_options(
method find_best (line 437) | def find_best(self, func: FuncDef, guesses: list[CallableType]) -> tup...
method get_guesses_from_parent (line 448) | def get_guesses_from_parent(self, node: FuncDef) -> list[CallableType]:
method get_suggestion (line 465) | def get_suggestion(self, mod: str, node: FuncDef) -> PyAnnotateSignature:
method format_args (line 509) | def format_args(
method find_node (line 529) | def find_node(self, key: str) -> tuple[str, str, FuncDef]:
method find_node_by_module_and_name (line 568) | def find_node_by_module_and_name(self, modname: str, tail: str) -> Sym...
method find_node_by_file_and_line (line 603) | def find_node_by_file_and_line(self, file: str, line: int) -> tuple[st...
method extract_from_decorator (line 638) | def extract_from_decorator(self, node: Decorator) -> FuncDef | None:
method try_type (line 663) | def try_type(self, func: FuncDef, typ: ProperType) -> list[str]:
method reload (line 683) | def reload(self, state: State) -> list[str]:
method ensure_loaded (line 689) | def ensure_loaded(self, state: State, force: bool = False) -> MypyFile:
method named_type (line 696) | def named_type(self, s: str) -> Instance:
method json_suggestion (line 699) | def json_suggestion(
method pyannotate_signature (line 721) | def pyannotate_signature(
method format_signature (line 731) | def format_signature(self, sig: PyAnnotateSignature) -> str:
method format_type (line 735) | def format_type(self, cur_module: str | None, typ: Type) -> str:
method score_type (line 740) | def score_type(self, t: Type, arg_pos: bool) -> int:
method score_callable (line 761) | def score_callable(self, t: CallableType) -> int:
function any_score_type (line 767) | def any_score_type(ut: Type, arg_pos: bool) -> float:
function any_score_callable (line 790) | def any_score_callable(t: CallableType, is_method: bool, ignore_return: ...
function is_tricky_callable (line 803) | def is_tricky_callable(t: CallableType) -> bool:
class TypeFormatter (line 808) | class TypeFormatter(TypeStrVisitor):
method __init__ (line 812) | def __init__(self, module: str | None, graph: Graph, options: Options)...
method visit_any (line 817) | def visit_any(self, t: AnyType) -> str:
method visit_instance (line 823) | def visit_instance(self, t: Instance) -> str:
method visit_tuple_type (line 856) | def visit_tuple_type(self, t: TupleType) -> str:
method visit_uninhabited_type (line 864) | def visit_uninhabited_type(self, t: UninhabitedType) -> str:
method visit_typeddict_type (line 867) | def visit_typeddict_type(self, t: TypedDictType) -> str:
method visit_union_type (line 870) | def visit_union_type(self, t: UnionType) -> str:
method visit_callable_type (line 876) | def visit_callable_type(self, t: CallableType) -> str:
function make_suggestion_anys (line 894) | def make_suggestion_anys(t: TType) -> TType:
class MakeSuggestionAny (line 903) | class MakeSuggestionAny(TypeTranslator):
method visit_any (line 904) | def visit_any(self, t: AnyType) -> Type:
method visit_type_alias_type (line 910) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
function generate_type_combinations (line 914) | def generate_type_combinations(types: list[Type]) -> list[Type]:
function count_errors (line 928) | def count_errors(msgs: list[str]) -> int:
function refine_type (line 932) | def refine_type(ti: Type, si: Type) -> Type:
function refine_union (line 985) | def refine_union(t: UnionType, s: ProperType) -> Type:
function refine_callable (line 1018) | def refine_callable(t: CallableType, s: CallableType) -> CallableType:
function dedup (line 1041) | def dedup(old: list[T]) -> list[T]:
FILE: mypy/test/data.py
class UpdateFile (line 35) | class UpdateFile(NamedTuple):
class DeleteFile (line 42) | class DeleteFile(NamedTuple):
function _file_arg_to_module (line 50) | def _file_arg_to_module(filename: str) -> str:
function parse_test_case (line 58) | def parse_test_case(case: DataDrivenTestCase) -> None:
class DataDrivenTestCase (line 249) | class DataDrivenTestCase(pytest.Item):
method __init__ (line 282) | def __init__(
method runtest (line 316) | def runtest(self) -> None:
method setup (line 341) | def setup(self) -> None:
method teardown (line 377) | def teardown(self) -> None:
method reportinfo (line 385) | def reportinfo(self) -> tuple[str, int, str]:
method repr_failure (line 388) | def repr_failure(
method find_steps (line 406) | def find_steps(self) -> list[list[FileOperation]]:
function module_from_path (line 418) | def module_from_path(path: str) -> str:
class TestItem (line 429) | class TestItem:
method trimmed_newlines (line 447) | def trimmed_newlines(self) -> int: # compensates for strip_list
function parse_test_data (line 451) | def parse_test_data(raw_data: str, name: str) -> list[TestItem]:
function strip_list (line 496) | def strip_list(l: list[str]) -> list[str]:
function collapse_line_continuation (line 514) | def collapse_line_continuation(l: list[str]) -> list[str]:
function expand_variables (line 527) | def expand_variables(s: str) -> str:
function expand_errors (line 531) | def expand_errors(input: list[str], output: list[str], fnam: str) -> None:
function fix_win_path (line 560) | def fix_win_path(line: str) -> str:
function fix_cobertura_filename (line 574) | def fix_cobertura_filename(line: str) -> str:
function pytest_sessionstart (line 594) | def pytest_sessionstart(session: Any) -> None:
function pytest_addoption (line 603) | def pytest_addoption(parser: Any) -> None:
function pytest_cmdline_main (line 635) | def pytest_cmdline_main(config: pytest.Config) -> None:
function pytest_pycollect_makeitem (line 645) | def pytest_pycollect_makeitem(collector: Any, name: str, obj: object) ->...
function split_test_cases (line 672) | def split_test_cases(
class DataSuiteCollector (line 724) | class DataSuiteCollector(pytest.Class):
method collect (line 725) | def collect(self) -> Iterator[DataFileCollector]:
class DataFileFix (line 739) | class DataFileFix(NamedTuple):
class DataFileCollector (line 745) | class DataFileCollector(pytest.Collector):
method from_parent (line 756) | def from_parent(
method collect (line 763) | def collect(self) -> Iterator[DataDrivenTestCase]:
method setup (line 770) | def setup(self) -> None:
method teardown (line 774) | def teardown(self) -> None:
method enqueue_fix (line 778) | def enqueue_fix(self, fix: DataFileFix) -> None:
method _apply_fixes (line 781) | def _apply_fixes(self) -> None:
function add_test_name_suffix (line 792) | def add_test_name_suffix(name: str, suffix: str) -> str:
function is_incremental (line 805) | def is_incremental(testcase: DataDrivenTestCase) -> bool:
function has_stable_flags (line 809) | def has_stable_flags(testcase: DataDrivenTestCase) -> bool:
class DataSuite (line 818) | class DataSuite:
method setup (line 835) | def setup(self) -> None:
method run_case (line 839) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypy/test/helpers.py
function run_mypy (line 39) | def run_mypy(args: list[str]) -> None:
function diff_ranges (line 50) | def diff_ranges(
function render_diff_range (line 75) | def render_diff_range(
function assert_string_arrays_equal (line 110) | def assert_string_arrays_equal(
function assert_module_equivalence (line 147) | def assert_module_equivalence(name: str, expected: Iterable[str], actual...
function assert_target_equivalence (line 159) | def assert_target_equivalence(name: str, expected: list[str], actual: li...
function show_align_message (line 170) | def show_align_message(s1: str, s2: str) -> None:
function clean_up (line 222) | def clean_up(a: list[str]) -> list[str]:
function local_sys_path_set (line 246) | def local_sys_path_set() -> Iterator[None]:
function testfile_pyversion (line 261) | def testfile_pyversion(path: str) -> tuple[int, int]:
function normalize_error_messages (line 269) | def normalize_error_messages(messages: list[str]) -> list[str]:
function retry_on_error (line 278) | def retry_on_error(func: Callable[[], Any], max_wait: float = 1.0) -> None:
function good_repr (line 301) | def good_repr(obj: object) -> str:
function assert_equal (line 313) | def assert_equal(a: object, b: object, fmt: str = "{} != {}") -> None:
function typename (line 319) | def typename(t: type) -> str:
function assert_type (line 326) | def assert_type(typ: type, value: object) -> None:
function parse_options (line 332) | def parse_options(
function split_lines (line 407) | def split_lines(*streams: bytes) -> list[str]:
function write_and_fudge_mtime (line 412) | def write_and_fudge_mtime(content: str, target_path: str) -> None:
function perform_file_operations (line 433) | def perform_file_operations(operations: list[UpdateFile | DeleteFile]) -...
function check_test_output_files (line 450) | def check_test_output_files(
function normalize_file_output (line 492) | def normalize_file_output(content: list[str], current_abs_path: str) -> ...
function find_test_files (line 506) | def find_test_files(pattern: str, exclude: list[str] | None = None) -> l...
FILE: mypy/test/meta/_pytest.py
class PytestResult (line 14) | class PytestResult:
function dedent_docstring (line 21) | def dedent_docstring(s: str) -> str:
function run_pytest_data_suite (line 25) | def run_pytest_data_suite(
FILE: mypy/test/meta/test_diff_helper.py
class DiffHelperSuite (line 6) | class DiffHelperSuite(Suite):
method test_render_diff_range (line 7) | def test_render_diff_range(self) -> None:
method test_diff_ranges (line 32) | def test_diff_ranges(self) -> None:
FILE: mypy/test/meta/test_parse_data.py
function _run_pytest (line 10) | def _run_pytest(data_suite: str) -> PytestResult:
class ParseTestDataSuite (line 14) | class ParseTestDataSuite(Suite):
method test_parse_invalid_case (line 15) | def test_parse_invalid_case(self) -> None:
method test_parse_invalid_section (line 29) | def test_parse_invalid_section(self) -> None:
method test_bad_ge_version_check (line 47) | def test_bad_ge_version_check(self) -> None:
method test_bad_eq_version_check (line 61) | def test_bad_eq_version_check(self) -> None:
FILE: mypy/test/meta/test_update_data.py
function _run_pytest_update_data (line 11) | def _run_pytest_update_data(data_suite: str) -> PytestResult:
class UpdateDataSuite (line 19) | class UpdateDataSuite(Suite):
method test_update_data (line 20) | def test_update_data(self) -> None:
FILE: mypy/test/test_find_sources.py
class FakeFSCache (line 16) | class FakeFSCache(FileSystemCache):
method __init__ (line 17) | def __init__(self, files: set[str]) -> None:
method isfile (line 20) | def isfile(self, path: str) -> bool:
method isdir (line 23) | def isdir(self, path: str) -> bool:
method listdir (line 28) | def listdir(self, path: str) -> list[str]:
method init_under_package_root (line 33) | def init_under_package_root(self, path: str) -> bool:
function normalise_path (line 37) | def normalise_path(path: str) -> str:
function normalise_build_source_list (line 43) | def normalise_build_source_list(sources: list[BuildSource]) -> list[tupl...
function crawl (line 50) | def crawl(finder: SourceFinder, f: str) -> tuple[str, str]:
function find_sources_in_dir (line 55) | def find_sources_in_dir(finder: SourceFinder, f: str) -> list[tuple[str,...
function find_sources (line 59) | def find_sources(
class SourceFinderSuite (line 66) | class SourceFinderSuite(unittest.TestCase):
method setUp (line 67) | def setUp(self) -> None:
method tearDown (line 72) | def tearDown(self) -> None:
method test_crawl_no_namespace (line 76) | def test_crawl_no_namespace(self) -> None:
method test_crawl_namespace (line 103) | def test_crawl_namespace(self) -> None:
method test_crawl_namespace_explicit_base (line 130) | def test_crawl_namespace_explicit_base(self) -> None:
method test_crawl_namespace_multi_dir (line 173) | def test_crawl_namespace_multi_dir(self) -> None:
method test_find_sources_in_dir_no_namespace (line 183) | def test_find_sources_in_dir_no_namespace(self) -> None:
method test_find_sources_in_dir_namespace (line 203) | def test_find_sources_in_dir_namespace(self) -> None:
method test_find_sources_in_dir_namespace_explicit_base (line 223) | def test_find_sources_in_dir_namespace_explicit_base(self) -> None:
method test_find_sources_in_dir_namespace_multi_dir (line 255) | def test_find_sources_in_dir_namespace_multi_dir(self) -> None:
method test_find_sources_exclude (line 264) | def test_find_sources_exclude(self) -> None:
FILE: mypy/test/test_ref_info.py
class RefInfoSuite (line 19) | class RefInfoSuite(DataSuite):
method run_case (line 23) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypy/test/testapi.py
class APISuite (line 10) | class APISuite(Suite):
method setUp (line 11) | def setUp(self) -> None:
method tearDown (line 17) | def tearDown(self) -> None:
method test_capture_bad_opt (line 23) | def test_capture_bad_opt(self) -> None:
method test_capture_empty (line 29) | def test_capture_empty(self) -> None:
method test_capture_help (line 35) | def test_capture_help(self) -> None:
method test_capture_version (line 41) | def test_capture_version(self) -> None:
FILE: mypy/test/testargs.py
class ArgSuite (line 18) | class ArgSuite(Suite):
method test_coherence (line 19) | def test_coherence(self) -> None:
method test_executable_inference (line 29) | def test_executable_inference(self) -> None:
FILE: mypy/test/testcheck.py
class TypeCheckSuite (line 57) | class TypeCheckSuite(DataSuite):
method based (line 60) | def based(self, testcase: DataDrivenTestCase) -> bool:
method run_case (line 63) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method _sort_output_if_needed (line 93) | def _sort_output_if_needed(self, testcase: DataDrivenTestCase, a: list...
method run_case_once (line 106) | def run_case_once(
method verify_cache (line 244) | def verify_cache(
method find_error_message_paths (line 272) | def find_error_message_paths(self, a: list[str]) -> set[str]:
method find_module_files (line 281) | def find_module_files(self, manager: build.BuildManager) -> dict[str, ...
method find_missing_cache_files (line 284) | def find_missing_cache_files(
method parse_module (line 295) | def parse_module(
class BasedTypeCheckSuite (line 341) | class BasedTypeCheckSuite(TypeCheckSuite):
method based (line 344) | def based(self, testcase: DataDrivenTestCase) -> bool:
FILE: mypy/test/testcmdline.py
class PythonCmdlineSuite (line 44) | class PythonCmdlineSuite(DataSuite):
method run_case (line 48) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_python_cmdline (line 55) | def test_python_cmdline(testcase: DataDrivenTestCase, step: int) -> None:
function parse_args (line 149) | def parse_args(line: str) -> list[str]:
function parse_cwd (line 166) | def parse_cwd(line: str) -> str | None:
FILE: mypy/test/testconstraints.py
class ConstraintsSuite (line 9) | class ConstraintsSuite(Suite):
method setUp (line 10) | def setUp(self) -> None:
method test_no_type_variables (line 13) | def test_no_type_variables(self) -> None:
method test_basic_type_variable (line 16) | def test_basic_type_variable(self) -> None:
method test_basic_type_var_tuple_subtype (line 23) | def test_basic_type_var_tuple_subtype(self) -> None:
method test_basic_type_var_tuple (line 31) | def test_basic_type_var_tuple(self) -> None:
method test_type_var_tuple_with_prefix_and_suffix (line 46) | def test_type_var_tuple_with_prefix_and_suffix(self) -> None:
method test_unpack_homogeneous_tuple (line 65) | def test_unpack_homogeneous_tuple(self) -> None:
method test_unpack_homogeneous_tuple_with_prefix_and_suffix (line 80) | def test_unpack_homogeneous_tuple_with_prefix_and_suffix(self) -> None:
method test_unpack_with_prefix_and_suffix (line 97) | def test_unpack_with_prefix_and_suffix(self) -> None:
method test_unpack_tuple_length_non_match (line 114) | def test_unpack_tuple_length_non_match(self) -> None:
method test_var_length_tuple_with_fixed_length_tuple (line 128) | def test_var_length_tuple_with_fixed_length_tuple(self) -> None:
method test_intersection (line 136) | def test_intersection(self):
FILE: mypy/test/testdaemon.py
class DaemonSuite (line 28) | class DaemonSuite(DataSuite):
method run_case (line 31) | def run_case(self, testcase: DataDrivenTestCase) -> None:
class BasedDaemonSuite (line 39) | class BasedDaemonSuite(DaemonSuite):
function test_daemon (line 43) | def test_daemon(testcase: DataDrivenTestCase) -> None:
function parse_script (line 69) | def parse_script(input: list[str]) -> list[list[str]]:
function run_cmd (line 90) | def run_cmd(input: str) -> tuple[int, str]:
class DaemonUtilitySuite (line 109) | class DaemonUtilitySuite(unittest.TestCase):
method test_filter_out_missing_top_level_packages (line 112) | def test_filter_out_missing_top_level_packages(self) -> None:
method make_file (line 139) | def make_file(self, base: str, path: str) -> None:
FILE: mypy/test/testdeps.py
class GetDependenciesSuite (line 27) | class GetDependenciesSuite(DataSuite):
method run_case (line 30) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method build (line 70) | def build(
FILE: mypy/test/testdiff.py
class ASTDiffSuite (line 21) | class ASTDiffSuite(DataSuite):
method run_case (line 24) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method build (line 56) | def build(self, source: str, options: Options) -> tuple[list[str], dic...
FILE: mypy/test/testerrorstream.py
class ErrorStreamSuite (line 13) | class ErrorStreamSuite(DataSuite):
method run_case (line 18) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_error_stream (line 22) | def test_error_stream(testcase: DataDrivenTestCase) -> None:
FILE: mypy/test/testfinegrained.py
class FineGrainedSuite (line 50) | class FineGrainedSuite(DataSuite):
method should_skip (line 59) | def should_skip(self, testcase: DataDrivenTestCase) -> bool:
method run_case (line 75) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method get_options (line 145) | def get_options(self, source: str, testcase: DataDrivenTestCase, build...
method fixup (line 170) | def fixup(self, output: list[str]) -> list[str]:
method run_check (line 174) | def run_check(self, server: Server, sources: list[BuildSource]) -> lis...
method build (line 180) | def build(self, options: Options, sources: list[BuildSource]) -> list[...
method format_triggered (line 187) | def format_triggered(self, triggered: list[list[str]]) -> list[str]:
method get_build_steps (line 195) | def get_build_steps(self, program_text: str) -> int:
method perform_step (line 204) | def perform_step(
method parse_sources (line 261) | def parse_sources(
method maybe_suggest (line 299) | def maybe_suggest(self, step: int, server: Server, src: str, tmp_dir: ...
method maybe_inspect (line 337) | def maybe_inspect(self, step: int, server: Server, src: str) -> list[s...
method get_suggest (line 373) | def get_suggest(self, program_text: str, incremental_step: int) -> lis...
method get_inspect (line 379) | def get_inspect(self, program_text: str, incremental_step: int) -> lis...
function normalize_messages (line 386) | def normalize_messages(messages: list[str]) -> list[str]:
class TestMessageSorting (line 390) | class TestMessageSorting(unittest.TestCase):
method test_simple_sorting (line 391) | def test_simple_sorting(self) -> None:
method test_long_form_sorting (line 399) | def test_long_form_sorting(self) -> None:
method test_mypy_error_prefix (line 416) | def test_mypy_error_prefix(self) -> None:
method test_new_file_at_the_end (line 438) | def test_new_file_at_the_end(self) -> None:
FILE: mypy/test/testfinegrainedcache.py
class FineGrainedCacheSuite (line 13) | class FineGrainedCacheSuite(mypy.test.testfinegrained.FineGrainedSuite):
FILE: mypy/test/testformatter.py
class FancyErrorFormattingTestCases (line 8) | class FancyErrorFormattingTestCases(TestCase):
method test_trim_source (line 9) | def test_trim_source(self) -> None:
method test_split_words (line 53) | def test_split_words(self) -> None:
FILE: mypy/test/testfscache.py
class TestFileSystemCache (line 14) | class TestFileSystemCache(unittest.TestCase):
method setUp (line 15) | def setUp(self) -> None:
method tearDown (line 21) | def tearDown(self) -> None:
method test_isfile_case_1 (line 25) | def test_isfile_case_1(self) -> None:
method test_isfile_case_2 (line 44) | def test_isfile_case_2(self) -> None:
method test_isfile_case_3 (line 62) | def test_isfile_case_3(self) -> None:
method test_isfile_case_other_directory (line 78) | def test_isfile_case_other_directory(self) -> None:
method make_file (line 91) | def make_file(self, path: str, base: str | None = None) -> None:
method isfile_case (line 100) | def isfile_case(self, path: str) -> bool:
FILE: mypy/test/testgraph.py
class GraphSuite (line 20) | class GraphSuite(Suite):
method test_topsort (line 21) | def test_topsort(self) -> None:
method test_scc (line 30) | def test_scc(self) -> None:
method _make_manager (line 36) | def _make_manager(self) -> BuildManager:
method test_sorted_components (line 60) | def test_sorted_components(self) -> None:
method test_order_ascc (line 71) | def test_order_ascc(self) -> None:
FILE: mypy/test/testinfer.py
class MapActualsToFormalsSuite (line 14) | class MapActualsToFormalsSuite(Suite):
method test_basic (line 17) | def test_basic(self) -> None:
method test_positional_only (line 20) | def test_positional_only(self) -> None:
method test_optional (line 24) | def test_optional(self) -> None:
method test_callee_star (line 29) | def test_callee_star(self) -> None:
method test_caller_star (line 34) | def test_caller_star(self) -> None:
method test_too_many_caller_args (line 40) | def test_too_many_caller_args(self) -> None:
method test_tuple_star (line 45) | def test_tuple_star(self) -> None:
method make_tuple (line 58) | def make_tuple(self, *args: Type) -> TupleType:
method test_named_args (line 61) | def test_named_args(self) -> None:
method test_some_named_args (line 65) | def test_some_named_args(self) -> None:
method test_missing_named_arg (line 68) | def test_missing_named_arg(self) -> None:
method test_duplicate_named_arg (line 71) | def test_duplicate_named_arg(self) -> None:
method test_varargs_and_bare_asterisk (line 74) | def test_varargs_and_bare_asterisk(self) -> None:
method test_keyword_varargs (line 78) | def test_keyword_varargs(self) -> None:
method test_both_kinds_of_varargs (line 84) | def test_both_kinds_of_varargs(self) -> None:
method test_special_cases (line 87) | def test_special_cases(self) -> None:
method assert_map (line 93) | def assert_map(
method assert_vararg_map (line 110) | def assert_vararg_map(
function expand_caller_kinds (line 121) | def expand_caller_kinds(
function expand_callee_kinds (line 136) | def expand_callee_kinds(
class OperandDisjointDictSuite (line 151) | class OperandDisjointDictSuite(Suite):
method new (line 154) | def new(self) -> DisjointDict[int, str]:
method test_independent_maps (line 157) | def test_independent_maps(self) -> None:
method test_partial_merging (line 167) | def test_partial_merging(self) -> None:
method test_full_merging (line 184) | def test_full_merging(self) -> None:
method test_merge_with_multiple_overlaps (line 198) | def test_merge_with_multiple_overlaps(self) -> None:
class OperandComparisonGroupingSuite (line 209) | class OperandComparisonGroupingSuite(Suite):
method literal_keymap (line 212) | def literal_keymap(self, assignable_operands: dict[int, NameExpr]) -> ...
method test_basic_cases (line 218) | def test_basic_cases(self) -> None:
method test_multiple_groups (line 250) | def test_multiple_groups(self) -> None:
method test_multiple_groups_coalescing (line 291) | def test_multiple_groups_coalescing(self) -> None:
method test_multiple_groups_different_operators (line 336) | def test_multiple_groups_different_operators(self) -> None:
method test_single_pair (line 350) | def test_single_pair(self) -> None:
method test_empty_pair_list (line 368) | def test_empty_pair_list(self) -> None:
FILE: mypy/test/testipc.py
function server (line 15) | def server(msg: str, q: Queue[str]) -> None:
function server_multi_message_echo (line 26) | def server_multi_message_echo(q: Queue[str]) -> None:
class IPCTests (line 37) | class IPCTests(TestCase):
method setUp (line 38) | def setUp(self) -> None:
method test_transaction_large (line 45) | def test_transaction_large(self) -> None:
method test_connect_twice (line 58) | def test_connect_twice(self) -> None:
method test_multiple_messages (line 76) | def test_multiple_messages(self) -> None:
method test_connect_alot (line 105) | def test_connect_alot(self) -> None:
FILE: mypy/test/testmerge.py
class ASTMergeSuite (line 40) | class ASTMergeSuite(DataSuite):
method setup (line 43) | def setup(self) -> None:
method run_case (line 50) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method build (line 98) | def build(self, source: str, testcase: DataDrivenTestCase) -> BuildRes...
method build_increment (line 124) | def build_increment(
method dump (line 133) | def dump(
method dump_asts (line 149) | def dump_asts(self, modules: dict[str, MypyFile]) -> list[str]:
method dump_symbol_tables (line 156) | def dump_symbol_tables(self, modules: dict[str, MypyFile]) -> list[str]:
method dump_symbol_table (line 162) | def dump_symbol_table(self, module_id: str, symtable: SymbolTable) -> ...
method format_symbol_table_node (line 170) | def format_symbol_table_node(self, node: SymbolTableNode) -> str:
method dump_typeinfos (line 188) | def dump_typeinfos(self, modules: dict[str, MypyFile]) -> list[str]:
method dump_typeinfos_recursive (line 194) | def dump_typeinfos_recursive(self, names: SymbolTable) -> list[str]:
method dump_typeinfo (line 202) | def dump_typeinfo(self, info: TypeInfo) -> list[str]:
method dump_types (line 209) | def dump_types(
method format_type (line 237) | def format_type(self, typ: Type) -> str:
FILE: mypy/test/testmodulefinder.py
class ModuleFinderSuite (line 13) | class ModuleFinderSuite(Suite):
method setUp (line 14) | def setUp(self) -> None:
method test__no_namespace_packages__nsx (line 37) | def test__no_namespace_packages__nsx(self) -> None:
method test__no_namespace_packages__nsx_a (line 44) | def test__no_namespace_packages__nsx_a(self) -> None:
method test__no_namespace_packages__find_a_in_pkg1 (line 51) | def test__no_namespace_packages__find_a_in_pkg1(self) -> None:
method test__no_namespace_packages__find_b_in_pkg2 (line 59) | def test__no_namespace_packages__find_b_in_pkg2(self) -> None:
method test__find_nsx_as_namespace_pkg_in_pkg1 (line 64) | def test__find_nsx_as_namespace_pkg_in_pkg1(self) -> None:
method test__find_nsx_a_init_in_pkg1 (line 73) | def test__find_nsx_a_init_in_pkg1(self) -> None:
method test__find_nsx_b_init_in_pkg2 (line 81) | def test__find_nsx_b_init_in_pkg2(self) -> None:
method test__find_nsx_c_c_in_pkg3 (line 89) | def test__find_nsx_c_c_in_pkg3(self) -> None:
method test__find_nsy_a__init_pyi (line 97) | def test__find_nsy_a__init_pyi(self) -> None:
method test__find_nsy_b__init_py (line 105) | def test__find_nsy_b__init_py(self) -> None:
method test__find_nsy_c_pyi (line 115) | def test__find_nsy_c_pyi(self) -> None:
method test__find_a_in_pkg1 (line 125) | def test__find_a_in_pkg1(self) -> None:
method test__find_b_init_in_pkg2 (line 130) | def test__find_b_init_in_pkg2(self) -> None:
method test__find_d_nowhere (line 135) | def test__find_d_nowhere(self) -> None:
class ModuleFinderSitePackagesSuite (line 140) | class ModuleFinderSitePackagesSuite(Suite):
method setUp (line 141) | def setUp(self) -> None:
method path (line 167) | def path(self, *parts: str) -> str:
method test__packages_with_ns (line 170) | def test__packages_with_ns(self) -> None:
method test__packages_without_ns (line 225) | def test__packages_without_ns(self) -> None:
FILE: mypy/test/testmypyc.py
class MypycTest (line 11) | class MypycTest(TestCase):
method test_using_mypyc (line 12) | def test_using_mypyc(self) -> None:
FILE: mypy/test/testoutput.py
class OutputJSONsuite (line 19) | class OutputJSONsuite(DataSuite):
method run_case (line 22) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_output_json (line 26) | def test_output_json(testcase: DataDrivenTestCase) -> None:
FILE: mypy/test/testparse.py
class ParserSuite (line 20) | class ParserSuite(DataSuite):
method run_case (line 32) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_parser (line 36) | def test_parser(testcase: DataDrivenTestCase) -> None:
class ParseErrorSuite (line 91) | class ParseErrorSuite(DataSuite):
method run_case (line 96) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_parse_error (line 100) | def test_parse_error(testcase: DataDrivenTestCase) -> None:
FILE: mypy/test/testpep561.py
class PEP561Suite (line 22) | class PEP561Suite(DataSuite):
method run_case (line 26) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function virtualenv (line 31) | def virtualenv(python_executable: str = sys.executable) -> Iterator[tupl...
function upgrade_pip (line 49) | def upgrade_pip(python_executable: str) -> None:
function install_package (line 70) | def install_package(
function test_pep561 (line 95) | def test_pep561(testcase: DataDrivenTestCase) -> None:
function parse_pkgs (line 172) | def parse_pkgs(comment: str) -> tuple[list[str], list[str]]:
function parse_mypy_args (line 180) | def parse_mypy_args(line: str) -> list[str]:
function test_mypy_path_is_respected (line 187) | def test_mypy_path_is_respected() -> None:
FILE: mypy/test/testplugins.py
class TestRe (line 7) | class TestRe(TestCase):
method test_parse_groups (line 8) | def test_parse_groups(self):
FILE: mypy/test/testpythoneval.py
class PythonEvaluationSuite (line 33) | class PythonEvaluationSuite(DataSuite):
method run_case (line 37) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_python_evaluation (line 41) | def test_python_evaluation(testcase: DataDrivenTestCase, cache_dir: str)...
function adapt_output (line 120) | def adapt_output(testcase: DataDrivenTestCase) -> list[str]:
FILE: mypy/test/testreports.py
class CoberturaReportSuite (line 18) | class CoberturaReportSuite(Suite):
method test_get_line_rate (line 20) | def test_get_line_rate(self) -> None:
method test_as_xml (line 25) | def test_as_xml(self) -> None:
FILE: mypy/test/testsemanal.py
function get_semanal_options (line 41) | def get_semanal_options(program_text: str, testcase: DataDrivenTestCase)...
class SemAnalSuite (line 51) | class SemAnalSuite(DataSuite):
method run_case (line 55) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_semanal (line 59) | def test_semanal(testcase: DataDrivenTestCase) -> None:
class SemAnalErrorSuite (line 95) | class SemAnalErrorSuite(DataSuite):
method run_case (line 100) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_semanal_error (line 104) | def test_semanal_error(testcase: DataDrivenTestCase) -> None:
class SemAnalSymtableSuite (line 129) | class SemAnalSymtableSuite(DataSuite):
method run_case (line 133) | def run_case(self, testcase: DataDrivenTestCase) -> None:
class SemAnalTypeInfoSuite (line 162) | class SemAnalTypeInfoSuite(DataSuite):
method run_case (line 166) | def run_case(self, testcase: DataDrivenTestCase) -> None:
class TypeInfoMap (line 201) | class TypeInfoMap(dict[str, TypeInfo]):
method __str__ (line 202) | def __str__(self) -> str:
FILE: mypy/test/testsolve.py
class SolveSuite (line 12) | class SolveSuite(Suite):
method setUp (line 13) | def setUp(self) -> None:
method test_empty_input (line 16) | def test_empty_input(self) -> None:
method test_simple_supertype_constraints (line 19) | def test_simple_supertype_constraints(self) -> None:
method test_simple_subtype_constraints (line 27) | def test_simple_subtype_constraints(self) -> None:
method test_both_kinds_of_constraints (line 35) | def test_both_kinds_of_constraints(self) -> None:
method test_unsatisfiable_constraints (line 42) | def test_unsatisfiable_constraints(self) -> None:
method test_exactly_specified_result (line 48) | def test_exactly_specified_result(self) -> None:
method test_multiple_variables (line 55) | def test_multiple_variables(self) -> None:
method test_no_constraints_for_var (line 66) | def test_no_constraints_for_var(self) -> None:
method test_simple_constraints_with_dynamic_type (line 75) | def test_simple_constraints_with_dynamic_type(self) -> None:
method test_both_normal_and_any_types_in_results (line 100) | def test_both_normal_and_any_types_in_results(self) -> None:
method test_poly_no_constraints (line 115) | def test_poly_no_constraints(self) -> None:
method test_poly_trivial_free (line 123) | def test_poly_trivial_free(self) -> None:
method test_poly_free_pair (line 132) | def test_poly_free_pair(self) -> None:
method test_poly_free_pair_with_bounds (line 141) | def test_poly_free_pair_with_bounds(self) -> None:
method test_poly_free_pair_with_bounds_uninhabited (line 151) | def test_poly_free_pair_with_bounds_uninhabited(self) -> None:
method test_poly_bounded_chain (line 160) | def test_poly_bounded_chain(self) -> None:
method test_poly_reverse_overlapping_chain (line 174) | def test_poly_reverse_overlapping_chain(self) -> None:
method test_poly_reverse_split_chain (line 187) | def test_poly_reverse_split_chain(self) -> None:
method test_poly_unsolvable_chain (line 200) | def test_poly_unsolvable_chain(self) -> None:
method test_simple_chain_closure (line 214) | def test_simple_chain_closure(self) -> None:
method test_reverse_chain_closure (line 227) | def test_reverse_chain_closure(self) -> None:
method test_secondary_constraint_closure (line 240) | def test_secondary_constraint_closure(self) -> None:
method assert_solve (line 249) | def assert_solve(
method assert_transitive_closure (line 265) | def assert_transitive_closure(
method supc (line 281) | def supc(self, type_var: TypeVarType, bound: Type) -> Constraint:
method subc (line 284) | def subc(self, type_var: TypeVarType, bound: Type) -> Constraint:
FILE: mypy/test/teststubgen.py
class StubgenCmdLineSuite (line 52) | class StubgenCmdLineSuite(unittest.TestCase):
method test_files_found (line 56) | def test_files_found(self) -> None:
method test_packages_found (line 83) | def test_packages_found(self) -> None:
method test_module_not_found (line 109) | def test_module_not_found(self) -> None:
method make_file (line 124) | def make_file(self, *path: str, content: str = "") -> None:
method run (line 129) | def run(self, result: Any | None = None) -> Any | None:
class StubgenCliParseSuite (line 134) | class StubgenCliParseSuite(unittest.TestCase):
method test_walk_packages (line 135) | def test_walk_packages(self) -> None:
class StubgenUtilSuite (line 152) | class StubgenUtilSuite(unittest.TestCase):
method test_parse_signature (line 155) | def test_parse_signature(self) -> None:
method test_parse_signature_with_args (line 158) | def test_parse_signature_with_args(self) -> None:
method test_parse_signature_with_optional_args (line 162) | def test_parse_signature_with_optional_args(self) -> None:
method test_parse_signature_with_default_arg (line 167) | def test_parse_signature_with_default_arg(self) -> None:
method test_parse_signature_with_qualified_function (line 172) | def test_parse_signature_with_qualified_function(self) -> None:
method test_parse_signature_with_kw_only_arg (line 175) | def test_parse_signature_with_kw_only_arg(self) -> None:
method test_parse_signature_with_star_arg (line 180) | def test_parse_signature_with_star_arg(self) -> None:
method test_parse_signature_with_star_star_arg (line 183) | def test_parse_signature_with_star_star_arg(self) -> None:
method assert_parse_signature (line 186) | def assert_parse_signature(self, sig: str, result: tuple[str, list[str...
method test_build_signature (line 189) | def test_build_signature(self) -> None:
method test_parse_all_signatures (line 196) | def test_parse_all_signatures(self) -> None:
method test_find_unique_signatures (line 209) | def test_find_unique_signatures(self) -> None:
method test_infer_sig_from_docstring (line 223) | def test_infer_sig_from_docstring(self) -> None:
method test_infer_sig_from_docstring_duplicate_args (line 384) | def test_infer_sig_from_docstring_duplicate_args(self) -> None:
method test_infer_sig_from_docstring_bad_indentation (line 390) | def test_infer_sig_from_docstring_bad_indentation(self) -> None:
method test_infer_arg_sig_from_anon_docstring (line 403) | def test_infer_arg_sig_from_anon_docstring(self) -> None:
method test_infer_prop_type_from_docstring (line 419) | def test_infer_prop_type_from_docstring(self) -> None:
method test_infer_sig_from_docstring_square_brackets (line 427) | def test_infer_sig_from_docstring_square_brackets(self) -> None:
method test_remove_misplaced_type_comments_1 (line 433) | def test_remove_misplaced_type_comments_1(self) -> None:
method test_remove_misplaced_type_comments_2 (line 450) | def test_remove_misplaced_type_comments_2(self) -> None:
method test_remove_misplaced_type_comments_3 (line 473) | def test_remove_misplaced_type_comments_3(self) -> None:
method test_remove_misplaced_type_comments_4 (line 500) | def test_remove_misplaced_type_comments_4(self) -> None:
method test_remove_misplaced_type_comments_5 (line 527) | def test_remove_misplaced_type_comments_5(self) -> None:
method test_remove_misplaced_type_comments_bytes (line 550) | def test_remove_misplaced_type_comments_bytes(self) -> None:
method test_common_dir_prefix_unix (line 584) | def test_common_dir_prefix_unix(self) -> None:
method test_common_dir_prefix_win (line 602) | def test_common_dir_prefix_win(self) -> None:
method test_function_context_nested_classes (line 617) | def test_function_context_nested_classes(self) -> None:
class StubgenHelpersSuite (line 628) | class StubgenHelpersSuite(unittest.TestCase):
method test_is_blacklisted_path (line 629) | def test_is_blacklisted_path(self) -> None:
method test_is_non_library_module (line 639) | def test_is_non_library_module(self) -> None:
class StubgenPythonSuite (line 669) | class StubgenPythonSuite(DataSuite):
method run_case (line 695) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method run_case_inner (line 699) | def run_case_inner(self, testcase: DataDrivenTestCase) -> None:
method parse_flags (line 747) | def parse_flags(self, program_text: str, extra: list[str]) -> Options:
method parse_modules (line 771) | def parse_modules(self, program_text: str) -> list[str]:
method add_file (line 778) | def add_file(self, path: str, result: list[str], header: bool) -> None:
class TestBaseClass (line 791) | class TestBaseClass:
class TestClass (line 795) | class TestClass(TestBaseClass):
class StubgencSuite (line 799) | class StubgencSuite(unittest.TestCase):
method test_infer_hash_sig (line 805) | def test_infer_hash_sig(self) -> None:
method test_infer_getitem_sig (line 809) | def test_infer_getitem_sig(self) -> None:
method test_infer_setitem_sig (line 812) | def test_infer_setitem_sig(self) -> None:
method test_infer_eq_op_sig (line 819) | def test_infer_eq_op_sig(self) -> None:
method test_infer_binary_op_sig (line 825) | def test_infer_binary_op_sig(self) -> None:
method test_infer_equality_op_sig (line 829) | def test_infer_equality_op_sig(self) -> None:
method test_infer_unary_op_sig (line 833) | def test_infer_unary_op_sig(self) -> None:
method test_infer_cast_sig (line 837) | def test_infer_cast_sig(self) -> None:
method test_generate_class_stub_no_crash_for_object (line 841) | def test_generate_class_stub_no_crash_for_object(self) -> None:
method test_generate_class_stub_variable_type_annotation (line 852) | def test_generate_class_stub_variable_type_annotation(self) -> None:
method test_non_c_generate_signature_with_kw_only_args (line 866) | def test_non_c_generate_signature_with_kw_only_args(self) -> None:
method test_generate_c_type_inheritance (line 895) | def test_generate_c_type_inheritance(self) -> None:
method test_generate_c_type_inheritance_same_module (line 908) | def test_generate_c_type_inheritance_same_module(self) -> None:
method test_generate_c_type_inheritance_other_module (line 918) | def test_generate_c_type_inheritance_other_module(self) -> None:
method test_generate_c_type_inheritance_builtin_type (line 933) | def test_generate_c_type_inheritance_builtin_type(self) -> None:
method test_generate_c_type_with_docstring (line 946) | def test_generate_c_type_with_docstring(self) -> None:
method test_generate_c_type_with_docstring_no_self_arg (line 967) | def test_generate_c_type_with_docstring_no_self_arg(self) -> None:
method test_generate_c_type_classmethod (line 988) | def test_generate_c_type_classmethod(self) -> None:
method test_generate_c_type_classmethod_with_overloads (line 1008) | def test_generate_c_type_classmethod_with_overloads(self) -> None:
method test_generate_c_type_with_docstring_empty_default (line 1042) | def test_generate_c_type_with_docstring_empty_default(self) -> None:
method test_generate_c_function_other_module_arg (line 1063) | def test_generate_c_function_other_module_arg(self) -> None:
method test_generate_c_function_same_module (line 1082) | def test_generate_c_function_same_module(self) -> None:
method test_generate_c_function_other_module (line 1103) | def test_generate_c_function_other_module(self) -> None:
method test_generate_c_function_same_module_nested (line 1120) | def test_generate_c_function_same_module_nested(self) -> None:
method test_generate_c_function_same_module_compound (line 1141) | def test_generate_c_function_same_module_compound(self) -> None:
method test_generate_c_function_other_module_nested (line 1162) | def test_generate_c_function_other_module_nested(self) -> None:
method test_generate_c_function_no_crash_for_non_str_docstring (line 1180) | def test_generate_c_function_no_crash_for_non_str_docstring(self) -> N...
method test_generate_c_property_with_pybind11 (line 1194) | def test_generate_c_property_with_pybind11(self) -> None:
method test_generate_c_property_with_rw_property (line 1222) | def test_generate_c_property_with_rw_property(self) -> None:
method test_generate_c_type_with_single_arg_generic (line 1252) | def test_generate_c_type_with_single_arg_generic(self) -> None:
method test_generate_c_type_with_double_arg_generic (line 1273) | def test_generate_c_type_with_double_arg_generic(self) -> None:
method test_generate_c_type_with_nested_generic (line 1294) | def test_generate_c_type_with_nested_generic(self) -> None:
method test_generate_c_type_with_generic_using_other_module_first (line 1315) | def test_generate_c_type_with_generic_using_other_module_first(self) -...
method test_generate_c_type_with_generic_using_other_module_last (line 1336) | def test_generate_c_type_with_generic_using_other_module_last(self) ->...
method test_generate_c_type_with_overload_pybind11 (line 1357) | def test_generate_c_type_with_overload_pybind11(self) -> None:
method test_generate_c_type_with_overload_shiboken (line 1393) | def test_generate_c_type_with_overload_shiboken(self) -> None:
class ArgSigSuite (line 1431) | class ArgSigSuite(unittest.TestCase):
method test_repr (line 1432) | def test_repr(self) -> None:
class IsValidTypeSuite (line 1446) | class IsValidTypeSuite(unittest.TestCase):
method test_is_valid_type (line 1447) | def test_is_valid_type(self) -> None:
class ModuleInspectSuite (line 1474) | class ModuleInspectSuite(unittest.TestCase):
method test_python_module (line 1475) | def test_python_module(self) -> None:
method test_python_package (line 1485) | def test_python_package(self) -> None:
method test_c_module (line 1496) | def test_c_module(self) -> None:
method test_non_existent (line 1505) | def test_non_existent(self) -> None:
function module_to_path (line 1512) | def module_to_path(out_dir: str, module: str) -> str:
FILE: mypy/test/teststubinfo.py
class TestStubInfo (line 13) | class TestStubInfo(unittest.TestCase):
method test_is_legacy_bundled_packages (line 14) | def test_is_legacy_bundled_packages(self) -> None:
method test_stub_distribution_name (line 20) | def test_stub_distribution_name(self) -> None:
method test_period_in_top_level (line 31) | def test_period_in_top_level(self) -> None:
FILE: mypy/test/teststubtest.py
function use_tmp_dir (line 22) | def use_tmp_dir(mod_name: str) -> Iterator[str]:
function run_stubtest_with_stderr (line 154) | def run_stubtest_with_stderr(
function run_stubtest (line 193) | def run_stubtest(
class Case (line 199) | class Case:
method __init__ (line 200) | def __init__(self, stub: str, runtime: str, error: str | None) -> None:
function collect_cases (line 206) | def collect_cases(fn: Callable[..., Iterator[Case]]) -> FunctionType[......
class StubtestUnit (line 248) | class StubtestUnit(unittest.TestCase):
method test_basic_good (line 250) | def test_basic_good(self) -> Iterator[Case]:
method test_types (line 269) | def test_types(self) -> Iterator[Case]:
method test_coroutines (line 291) | def test_coroutines(self) -> Iterator[Case]:
method test_arg_name (line 301) | def test_arg_name(self) -> Iterator[Case]:
method test_arg_kind (line 341) | def test_arg_kind(self) -> Iterator[Case]:
method test_private_parameters (line 374) | def test_private_parameters(self) -> Iterator[Case]:
method test_default_presence (line 446) | def test_default_presence(self) -> Iterator[Case]:
method test_default_value (line 481) | def test_default_value(self) -> Iterator[Case]:
method test_static_class_method (line 556) | def test_static_class_method(self) -> Iterator[Case]:
method test_arg_mismatch (line 621) | def test_arg_mismatch(self) -> Iterator[Case]:
method test_varargs_varkwargs (line 639) | def test_varargs_varkwargs(self) -> Iterator[Case]:
method test_overload (line 706) | def test_overload(self) -> Iterator[Case]:
method test_property (line 829) | def test_property(self) -> Iterator[Case]:
method test_cached_property (line 933) | def test_cached_property(self) -> Iterator[Case]:
method test_var (line 1033) | def test_var(self) -> Iterator[Case]:
method test_type_alias (line 1097) | def test_type_alias(self) -> Iterator[Case]:
method test_enum (line 1288) | def test_enum(self) -> Iterator[Case]:
method test_decorator (line 1406) | def test_decorator(self) -> Iterator[Case]:
method test_all_at_runtime_not_stub (line 1423) | def test_all_at_runtime_not_stub(self) -> Iterator[Case]:
method test_all_in_stub_not_at_runtime (line 1433) | def test_all_in_stub_not_at_runtime(self) -> Iterator[Case]:
method test_all_in_stub_different_to_all_at_runtime (line 1437) | def test_all_in_stub_different_to_all_at_runtime(self) -> Iterator[Case]:
method test_missing (line 1454) | def test_missing(self) -> Iterator[Case]:
method test_missing_no_runtime_all (line 1498) | def test_missing_no_runtime_all(self) -> Iterator[Case]:
method test_missing_no_runtime_all_terrible (line 1507) | def test_missing_no_runtime_all_terrible(self) -> Iterator[Case]:
method test_non_public_1 (line 1525) | def test_non_public_1(self) -> Iterator[Case]:
method test_non_public_2 (line 1532) | def test_non_public_2(self) -> Iterator[Case]:
method test_dunders (line 1538) | def test_dunders(self) -> Iterator[Case]:
method test_not_subclassable (line 1566) | def test_not_subclassable(self) -> Iterator[Case]:
method test_has_runtime_final_decorator (line 1577) | def test_has_runtime_final_decorator(self) -> Iterator[Case]:
method test_name_mangling (line 1834) | def test_name_mangling(self) -> Iterator[Case]:
method test_mro (line 1893) | def test_mro(self) -> Iterator[Case]:
method test_good_literal (line 1925) | def test_good_literal(self) -> Iterator[Case]:
method test_bad_literal (line 1959) | def test_bad_literal(self) -> Iterator[Case]:
method test_special_subtype (line 1995) | def test_special_subtype(self) -> Iterator[Case]:
method test_runtime_typing_objects (line 2030) | def test_runtime_typing_objects(self) -> Iterator[Case]:
method test_named_tuple (line 2062) | def test_named_tuple(self) -> Iterator[Case]:
method test_named_tuple_typing_and_collections (line 2098) | def test_named_tuple_typing_and_collections(self) -> Iterator[Case]:
method test_type_var (line 2128) | def test_type_var(self) -> Iterator[Case]:
method test_metaclass_match (line 2143) | def test_metaclass_match(self) -> Iterator[Case]:
method test_metaclass_abcmeta (line 2192) | def test_metaclass_abcmeta(self) -> Iterator[Case]:
method test_abstract_methods (line 2206) | def test_abstract_methods(self) -> Iterator[Case]:
method test_abstract_properties (line 2304) | def test_abstract_properties(self) -> Iterator[Case]:
method test_type_check_only (line 2371) | def test_type_check_only(self) -> Iterator[Case]:
method test_no_param_defaults_bool_eval (line 2437) | def test_no_param_defaults_bool_eval(self) -> Iterator[Case]:
function remove_color_code (line 2454) | def remove_color_code(s: str) -> str:
class StubtestMiscUnit (line 2458) | class StubtestMiscUnit(unittest.TestCase):
method test_output (line 2459) | def test_output(self) -> None:
method test_ignore_flags (line 2486) | def test_ignore_flags(self) -> None:
method test_allowlist (line 2500) | def test_allowlist(self) -> None:
method test_mypy_build (line 2561) | def test_mypy_build(self) -> None:
method test_missing_stubs (line 2574) | def test_missing_stubs(self) -> None:
method test_only_py (line 2584) | def test_only_py(self) -> None:
method test_get_typeshed_stdlib_modules (line 2596) | def test_get_typeshed_stdlib_modules(self) -> None:
method test_signature (line 2612) | def test_signature(self) -> None:
method test_builtin_signature_with_unrepresentable_default (line 2621) | def test_builtin_signature_with_unrepresentable_default(self) -> None:
method test_config_file (line 2629) | def test_config_file(self) -> None:
method test_config_file_error_codes (line 2642) | def test_config_file_error_codes(self) -> None:
method test_config_file_error_codes_invalid (line 2655) | def test_config_file_error_codes_invalid(self) -> None:
method test_config_file_wrong_incomplete_feature (line 2668) | def test_config_file_wrong_incomplete_feature(self) -> None:
method test_no_modules (line 2682) | def test_no_modules(self) -> None:
method test_module_and_typeshed (line 2688) | def test_module_and_typeshed(self) -> None:
FILE: mypy/test/testsubtypes.py
class SubtypingSuite (line 10) | class SubtypingSuite(Suite):
method setUp (line 11) | def setUp(self) -> None:
method test_trivial_cases (line 16) | def test_trivial_cases(self) -> None:
method test_instance_subtyping (line 20) | def test_instance_subtyping(self) -> None:
method test_simple_generic_instance_subtyping_invariant (line 28) | def test_simple_generic_instance_subtyping_invariant(self) -> None:
method test_simple_generic_instance_subtyping_covariant (line 36) | def test_simple_generic_instance_subtyping_covariant(self) -> None:
method test_simple_generic_instance_subtyping_contravariant (line 44) | def test_simple_generic_instance_subtyping_contravariant(self) -> None:
method test_generic_subtyping_with_inheritance_invariant (line 52) | def test_generic_subtyping_with_inheritance_invariant(self) -> None:
method test_generic_subtyping_with_inheritance_covariant (line 57) | def test_generic_subtyping_with_inheritance_covariant(self) -> None:
method test_generic_subtyping_with_inheritance_contravariant (line 62) | def test_generic_subtyping_with_inheritance_contravariant(self) -> None:
method test_interface_subtyping (line 67) | def test_interface_subtyping(self) -> None:
method test_generic_interface_subtyping (line 72) | def test_generic_interface_subtyping(self) -> None:
method test_basic_callable_subtyping (line 81) | def test_basic_callable_subtyping(self) -> None:
method test_default_arg_callable_subtyping (line 98) | def test_default_arg_callable_subtyping(self) -> None:
method test_var_arg_callable_subtyping_1 (line 129) | def test_var_arg_callable_subtyping_1(self) -> None:
method test_var_arg_callable_subtyping_2 (line 135) | def test_var_arg_callable_subtyping_2(self) -> None:
method test_var_arg_callable_subtyping_3 (line 141) | def test_var_arg_callable_subtyping_3(self) -> None:
method test_var_arg_callable_subtyping_4 (line 146) | def test_var_arg_callable_subtyping_4(self) -> None:
method test_var_arg_callable_subtyping_5 (line 152) | def test_var_arg_callable_subtyping_5(self) -> None:
method test_var_arg_callable_subtyping_6 (line 158) | def test_var_arg_callable_subtyping_6(self) -> None:
method test_var_arg_callable_subtyping_7 (line 164) | def test_var_arg_callable_subtyping_7(self) -> None:
method test_var_arg_callable_subtyping_8 (line 170) | def test_var_arg_callable_subtyping_8(self) -> None:
method test_var_arg_callable_subtyping_9 (line 180) | def test_var_arg_callable_subtyping_9(self) -> None:
method test_type_callable_subtyping (line 190) | def test_type_callable_subtyping(self) -> None:
method test_type_var_tuple (line 201) | def test_type_var_tuple(self) -> None:
method test_type_var_tuple_with_prefix_suffix (line 231) | def test_type_var_tuple_with_prefix_suffix(self) -> None:
method test_type_var_tuple_unpacked_variable_length_tuple (line 271) | def test_type_var_tuple_unpacked_variable_length_tuple(self) -> None:
method test_callables (line 277) | def test_callables(self):
method assert_subtype (line 303) | def assert_subtype(self, s: Type, t: Type) -> None:
method assert_not_subtype (line 306) | def assert_not_subtype(self, s: Type, t: Type) -> None:
method assert_strict_subtype (line 309) | def assert_strict_subtype(self, s: Type, t: Type) -> None:
method assert_equivalent (line 313) | def assert_equivalent(self, s: Type, t: Type) -> None:
method assert_unrelated (line 317) | def assert_unrelated(self, s: Type, t: Type) -> None:
FILE: mypy/test/testtransform.py
class TransformSuite (line 14) | class TransformSuite(DataSuite):
method run_case (line 28) | def run_case(self, testcase: DataDrivenTestCase) -> None:
function test_transform (line 32) | def test_transform(testcase: DataDrivenTestCase) -> None:
FILE: mypy/test/testtypegen.py
class TypeExportSuite (line 20) | class TypeExportSuite(DataSuite):
method run_case (line 24) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypy/test/testtypes.py
class TypesSuite (line 60) | class TypesSuite(Suite):
method setUp (line 61) | def setUp(self) -> None:
method test_any (line 68) | def test_any(self) -> None:
method test_simple_unbound_type (line 71) | def test_simple_unbound_type(self) -> None:
method test_generic_unbound_type (line 75) | def test_generic_unbound_type(self) -> None:
method test_callable_type (line 79) | def test_callable_type(self) -> None:
method test_callable_type_with_default_args (line 92) | def test_callable_type_with_default_args(self) -> None:
method test_callable_type_with_var_args (line 111) | def test_callable_type_with_var_args(self) -> None:
method test_tuple_type_upper (line 135) | def test_tuple_type_upper(self) -> None:
method test_type_variable_binding (line 147) | def test_type_variable_binding(self) -> None:
method test_generic_function_type (line 170) | def test_generic_function_type(self) -> None:
method test_type_alias_expand_once (line 202) | def test_type_alias_expand_once(self) -> None:
method test_type_alias_expand_all (line 211) | def test_type_alias_expand_all(self) -> None:
method test_recursive_nested_in_non_recursive (line 223) | def test_recursive_nested_in_non_recursive(self) -> None:
method test_indirection_no_infinite_recursion (line 232) | def test_indirection_no_infinite_recursion(self) -> None:
class TypeOpsSuite (line 246) | class TypeOpsSuite(Suite):
method setUp (line 247) | def setUp(self) -> None:
method test_trivial_expand (line 254) | def test_trivial_expand(self) -> None:
method test_trivial_expand_recursive (line 268) | def test_trivial_expand_recursive(self) -> None:
method test_expand_naked_type_var (line 274) | def test_expand_naked_type_var(self) -> None:
method test_expand_basic_generic_types (line 278) | def test_expand_basic_generic_types(self) -> None:
method assert_expand (line 286) | def assert_expand(
method test_trivial_erase (line 300) | def test_trivial_erase(self) -> None:
method test_erase_with_type_variable (line 304) | def test_erase_with_type_variable(self) -> None:
method test_erase_with_generic_type (line 307) | def test_erase_with_generic_type(self) -> None:
method test_erase_with_generic_type_recursive (line 311) | def test_erase_with_generic_type_recursive(self) -> None:
method test_erase_with_tuple_type (line 318) | def test_erase_with_tuple_type(self) -> None:
method test_erase_with_function_type (line 321) | def test_erase_with_function_type(self) -> None:
method test_erase_with_type_object (line 333) | def test_erase_with_type_object(self) -> None:
method test_erase_with_type_type (line 345) | def test_erase_with_type_type(self) -> None:
method assert_erase (line 349) | def assert_erase(self, orig: Type, result: Type) -> None:
method test_is_more_precise (line 354) | def test_is_more_precise(self) -> None:
method test_is_proper_subtype (line 368) | def test_is_proper_subtype(self) -> None:
method test_is_proper_subtype_covariance (line 409) | def test_is_proper_subtype_covariance(self) -> None:
method test_is_proper_subtype_contravariance (line 418) | def test_is_proper_subtype_contravariance(self) -> None:
method test_is_proper_subtype_invariance (line 427) | def test_is_proper_subtype_invariance(self) -> None:
method test_is_proper_subtype_and_subtype_literal_types (line 436) | def test_is_proper_subtype_and_subtype_literal_types(self) -> None:
method test_subtype_aliases (line 467) | def test_subtype_aliases(self) -> None:
method test_empty_tuple_always_false (line 490) | def test_empty_tuple_always_false(self) -> None:
method test_nonempty_tuple_always_true (line 495) | def test_nonempty_tuple_always_true(self) -> None:
method test_union_can_be_true_if_any_true (line 500) | def test_union_can_be_true_if_any_true(self) -> None:
method test_union_can_not_be_true_if_none_true (line 504) | def test_union_can_not_be_true_if_none_true(self) -> None:
method test_union_can_be_false_if_any_false (line 508) | def test_union_can_be_false_if_any_false(self) -> None:
method test_union_can_not_be_false_if_none_false (line 512) | def test_union_can_not_be_false_if_none_false(self) -> None:
method test_true_only_of_false_type_is_uninhabited (line 518) | def test_true_only_of_false_type_is_uninhabited(self) -> None:
method test_true_only_of_true_type_is_idempotent (line 522) | def test_true_only_of_true_type_is_idempotent(self) -> None:
method test_true_only_of_instance (line 527) | def test_true_only_of_instance(self) -> None:
method test_true_only_of_union (line 536) | def test_true_only_of_union(self) -> None:
method test_false_only_of_true_type_is_uninhabited (line 548) | def test_false_only_of_true_type_is_uninhabited(self) -> None:
method test_false_only_tuple (line 553) | def test_false_only_tuple(self) -> None:
method test_false_only_of_false_type_is_idempotent (line 561) | def test_false_only_of_false_type_is_idempotent(self) -> None:
method test_false_only_of_instance (line 566) | def test_false_only_of_instance(self) -> None:
method test_false_only_of_union (line 575) | def test_false_only_of_union(self) -> None:
method test_simplified_union (line 591) | def test_simplified_union(self) -> None:
method test_simplified_union_with_literals (line 607) | def test_simplified_union_with_literals(self) -> None:
method test_simplified_union_with_str_literals (line 629) | def test_simplified_union_with_str_literals(self) -> None:
method test_simplify_very_large_union (line 642) | def test_simplify_very_large_union(self) -> None:
method test_simplified_union_with_str_instance_literals (line 650) | def test_simplified_union_with_str_instance_literals(self) -> None:
method test_simplified_union_with_mixed_str_literals (line 668) | def test_simplified_union_with_mixed_str_literals(self) -> None:
method assert_simplified_union (line 677) | def assert_simplified_union(self, original: list[Type], union: Type) -...
method test_simplified_intersection (line 681) | def test_simplified_intersection(self):
method assert_simplified_intersection (line 700) | def assert_simplified_intersection(self, original: list[Type], interse...
method tuple (line 706) | def tuple(self, *a: Type) -> TupleType:
method callable (line 709) | def callable(self, vars: list[str], *a: Type) -> CallableType:
class JoinSuite (line 734) | class JoinSuite(Suite):
method setUp (line 735) | def setUp(self) -> None:
method test_trivial_cases (line 741) | def test_trivial_cases(self) -> None:
method test_class_subtyping (line 745) | def test_class_subtyping(self) -> None:
method test_tuples (line 752) | def test_tuples(self) -> None:
method test_var_tuples (line 772) | def test_var_tuples(self) -> None:
method test_function_types (line 781) | def test_function_types(self) -> None:
method test_type_vars (line 805) | def test_type_vars(self) -> None:
method test_none (line 810) | def test_none(self) -> None:
method test_unbound_type (line 825) | def test_unbound_type(self) -> None:
method test_any_type (line 842) | def test_any_type(self) -> None:
method test_mixed_truth_restricted_type_simple (line 859) | def test_mixed_truth_restricted_type_simple(self) -> None:
method test_mixed_truth_restricted_type (line 867) | def test_mixed_truth_restricted_type(self) -> None:
method test_other_mixed_types (line 875) | def test_other_mixed_types(self) -> None:
method test_simple_generics (line 882) | def test_simple_generics(self) -> None:
method test_generics_invariant (line 899) | def test_generics_invariant(self) -> None:
method test_generics_covariant (line 905) | def test_generics_covariant(self) -> None:
method test_generics_contravariant (line 911) | def test_generics_contravariant(self) -> None:
method test_generics_with_multiple_args (line 917) | def test_generics_with_multiple_args(self) -> None:
method test_generics_with_inheritance (line 922) | def test_generics_with_inheritance(self) -> None:
method test_generics_with_inheritance_and_shared_supertype (line 927) | def test_generics_with_inheritance_and_shared_supertype(self) -> None:
method test_generic_types_and_any (line 932) | def test_generic_types_and_any(self) -> None:
method test_callables_with_any (line 937) | def test_callables_with_any(self) -> None:
method test_overloaded (line 944) | def test_overloaded(self) -> None:
method test_overloaded_with_any (line 962) | def test_overloaded_with_any(self) -> None:
method test_join_interface_types (line 973) | def test_join_interface_types(self) -> None:
method test_join_interface_and_class_types (line 978) | def test_join_interface_and_class_types(self) -> None:
method test_join_class_types_with_interface_result (line 985) | def test_join_class_types_with_interface_result(self) -> None:
method test_generic_interfaces (line 993) | def test_generic_interfaces(self) -> None:
method test_simple_type_objects (line 1003) | def test_simple_type_objects(self) -> None:
method test_type_type (line 1017) | def test_type_type(self) -> None:
method test_literal_type (line 1026) | def test_literal_type(self) -> None:
method test_variadic_tuple_joins (line 1059) | def test_variadic_tuple_joins(self) -> None:
method assert_join (line 1111) | def assert_join(self, s: Type, t: Type, join: Type) -> None:
method assert_simple_join (line 1115) | def assert_simple_join(self, s: Type, t: Type, join: Type) -> None:
method tuple (line 1123) | def tuple(self, *a: Type) -> TupleType:
method var_tuple (line 1126) | def var_tuple(self, t: Type) -> Instance:
method callable (line 1130) | def callable(self, *a: Type) -> CallableType:
method type_callable (line 1137) | def type_callable(self, *a: Type) -> CallableType:
class MeetSuite (line 1146) | class MeetSuite(Suite):
method setUp (line 1147) | def setUp(self) -> None:
method test_trivial_cases (line 1150) | def test_trivial_cases(self) -> None:
method test_class_subtyping (line 1154) | def test_class_subtyping(self) -> None:
method test_tuples (line 1161) | def test_tuples(self) -> None:
method test_function_types (line 1177) | def test_function_types(self) -> None:
method test_type_vars (line 1195) | def test_type_vars(self) -> None:
method test_none (line 1200) | def test_none(self) -> None:
method test_unbound_type (line 1228) | def test_unbound_type(self) -> None:
method test_dynamic_type (line 1246) | def test_dynamic_type(self) -> None:
method test_simple_generics (line 1260) | def test_simple_generics(self) -> None:
method test_generics_with_multiple_args (line 1273) | def test_generics_with_multiple_args(self) -> None:
method test_generics_with_inheritance (line 1279) | def test_generics_with_inheritance(self) -> None:
method test_generics_with_inheritance_and_shared_supertype (line 1283) | def test_generics_with_inheritance_and_shared_supertype(self) -> None:
method test_generic_types_and_dynamic (line 1287) | def test_generic_types_and_dynamic(self) -> None:
method test_callables_with_dynamic (line 1290) | def test_callables_with_dynamic(self) -> None:
method test_meet_interface_types (line 1297) | def test_meet_interface_types(self) -> None:
method test_meet_interface_and_class_types (line 1302) | def test_meet_interface_and_class_types(self) -> None:
method test_meet_class_types_with_shared_interfaces (line 1308) | def test_meet_class_types_with_shared_interfaces(self) -> None:
method test_meet_with_generic_interfaces (line 1314) | def test_meet_with_generic_interfaces(self) -> None:
method test_type_type (line 1320) | def test_type_type(self) -> None:
method test_literal_type (line 1329) | def test_literal_type(self) -> None:
method assert_meet_uninhabited (line 1350) | def assert_meet_uninhabited(self, s: Type, t: Type) -> None:
method test_variadic_tuple_meets (line 1356) | def test_variadic_tuple_meets(self) -> None:
method assert_meet (line 1384) | def assert_meet(self, s: Type, t: Type, meet: Type) -> None:
method assert_simple_meet (line 1388) | def assert_simple_meet(self, s: Type, t: Type, meet: Type) -> None:
method tuple (line 1396) | def tuple(self, *a: Type) -> TupleType:
method callable (line 1399) | def callable(self, *a: Type) -> CallableType:
class SameTypeSuite (line 1407) | class SameTypeSuite(Suite):
method setUp (line 1408) | def setUp(self) -> None:
method test_literal_type (line 1411) | def test_literal_type(self) -> None:
method assert_same (line 1430) | def assert_same(self, s: Type, t: Type, strict: bool = True) -> None:
method assert_not_same (line 1434) | def assert_not_same(self, s: Type, t: Type, strict: bool = True) -> None:
method assert_simple_is_same (line 1438) | def assert_simple_is_same(self, s: Type, t: Type, expected: bool, stri...
class RemoveLastKnownValueSuite (line 1450) | class RemoveLastKnownValueSuite(Suite):
method setUp (line 1451) | def setUp(self) -> None:
method test_optional (line 1454) | def test_optional(self) -> None:
method test_two_instances (line 1458) | def test_two_instances(self) -> None:
method test_multiple_same_instances (line 1462) | def test_multiple_same_instances(self) -> None:
method test_single_last_known_value (line 1470) | def test_single_last_known_value(self) -> None:
method test_last_known_values_with_merge (line 1474) | def test_last_known_values_with_merge(self) -> None:
method test_generics (line 1482) | def test_generics(self) -> None:
method assert_union_result (line 1486) | def assert_union_result(self, t: ProperType, expected: list[Type]) -> ...
class ShallowOverloadMatchingSuite (line 1492) | class ShallowOverloadMatchingSuite(Suite):
method setUp (line 1493) | def setUp(self) -> None:
method test_simple (line 1496) | def test_simple(self) -> None:
method test_match_using_types (line 1512) | def test_match_using_types(self) -> None:
method test_none_special_cases (line 1527) | def test_none_special_cases(self) -> None:
method test_optional_arg (line 1554) | def test_optional_arg(self) -> None:
method test_two_args (line 1564) | def test_two_args(self) -> None:
method assert_find_shallow_matching_overload_item (line 1582) | def assert_find_shallow_matching_overload_item(
method make_overload (line 1589) | def make_overload(self, items: list[list[tuple[str, Type, ArgKind]]]) ...
function make_call (line 1607) | def make_call(*items: tuple[str, str | None]) -> CallExpr:
class TestExpandTypeLimitGetProperType (line 1624) | class TestExpandTypeLimitGetProperType(TestCase):
method test_count_get_proper_type (line 1630) | def test_count_get_proper_type(self) -> None:
FILE: mypy/test/testutil.py
class TestGetTerminalSize (line 10) | class TestGetTerminalSize(TestCase):
method test_get_terminal_size_in_pty_defaults_to_80 (line 11) | def test_get_terminal_size_in_pty_defaults_to_80(self) -> None:
method test_parse_location_windows (line 20) | def test_parse_location_windows(self) -> None:
class TestWriteJunitXml (line 25) | class TestWriteJunitXml(TestCase):
method test_junit_pass (line 26) | def test_junit_pass(self) -> None:
method test_junit_fail_escape_xml_chars (line 44) | def test_junit_fail_escape_xml_chars(self) -> None:
method test_junit_fail_two_files (line 66) | def test_junit_fail_two_files(self) -> None:
method test_serious_error (line 93) | def test_serious_error(self) -> None:
FILE: mypy/test/typefixture.py
class TypeFixture (line 42) | class TypeFixture:
method __init__ (line 48) | def __init__(self, variance: int = COVARIANT) -> None:
method _add_bool_dunder (line 252) | def _add_bool_dunder(self, type_info: TypeInfo) -> None:
method callable (line 260) | def callable(self, *a: Type) -> CallableType:
method named_callable (line 268) | def named_callable(self) -> CallableType:
method function_ (line 274) | def function_(self) -> CallableType:
method callable_type (line 280) | def callable_type(self, *a: Type) -> CallableType:
method callable_default (line 289) | def callable_default(self, min_args: int, *a: Type) -> CallableType:
method callable_var_arg (line 303) | def callable_var_arg(self, min_args: int, *a: Type) -> CallableType:
method make_type_info (line 316) | def make_type_info(
method def_alias_1 (line 386) | def def_alias_1(self, base: Instance) -> tuple[TypeAliasType, Type]:
method def_alias_2 (line 395) | def def_alias_2(self, base: Instance) -> tuple[TypeAliasType, Type]:
method non_rec_alias (line 404) | def non_rec_alias(
class InterfaceTypeFixture (line 416) | class InterfaceTypeFixture(TypeFixture):
method __init__ (line 420) | def __init__(self) -> None:
FILE: mypy/test/typetest/functools.py
class A (line 16) | class A:
method m (line 18) | def m(self, a: list[int]): ...
method c (line 22) | def c(cls, a: list[int]): ...
method s (line 26) | def s(a: list[int]): ...
function f (line 30) | def f(a: list[int]): ...
FILE: mypy/test/typetest/operator.py
function check_attrgetter (line 5) | def check_attrgetter():
FILE: mypy/test/update_data.py
function update_testcase_output (line 11) | def update_testcase_output(
function _iter_fixes (line 22) | def _iter_fixes(
FILE: mypy/test/visitors.py
class SkippedNodeSearcher (line 18) | class SkippedNodeSearcher(TraverserVisitor):
method __init__ (line 19) | def __init__(self) -> None:
method visit_assignment_stmt (line 23) | def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
method visit_name_expr (line 30) | def visit_name_expr(self, n: NameExpr) -> None:
method visit_int_expr (line 35) | def visit_int_expr(self, n: IntExpr) -> None:
function ignore_node (line 41) | def ignore_node(node: Expression) -> bool:
class TypeAssertTransformVisitor (line 60) | class TypeAssertTransformVisitor(TransformVisitor):
method type (line 61) | def type(self, type: Type) -> Type:
FILE: mypy/traverser.py
class TraverserVisitor (line 100) | class TraverserVisitor(NodeVisitor[None]):
method __init__ (line 109) | def __init__(self) -> None:
method visit_mypy_file (line 114) | def visit_mypy_file(self, o: MypyFile, /) -> None:
method visit_block (line 118) | def visit_block(self, block: Block, /) -> None:
method visit_func (line 122) | def visit_func(self, o: FuncItem, /) -> None:
method visit_func_def (line 134) | def visit_func_def(self, o: FuncDef, /) -> None:
method visit_overloaded_func_def (line 137) | def visit_overloaded_func_def(self, o: OverloadedFuncDef, /) -> None:
method visit_class_def (line 143) | def visit_class_def(self, o: ClassDef, /) -> None:
method visit_decorator (line 156) | def visit_decorator(self, o: Decorator, /) -> None:
method visit_expression_stmt (line 162) | def visit_expression_stmt(self, o: ExpressionStmt, /) -> None:
method visit_assignment_stmt (line 165) | def visit_assignment_stmt(self, o: AssignmentStmt, /) -> None:
method visit_operator_assignment_stmt (line 170) | def visit_operator_assignment_stmt(self, o: OperatorAssignmentStmt, /)...
method visit_while_stmt (line 174) | def visit_while_stmt(self, o: WhileStmt, /) -> None:
method visit_for_stmt (line 180) | def visit_for_stmt(self, o: ForStmt, /) -> None:
method visit_return_stmt (line 187) | def visit_return_stmt(self, o: ReturnStmt, /) -> None:
method visit_assert_stmt (line 191) | def visit_assert_stmt(self, o: AssertStmt, /) -> None:
method visit_del_stmt (line 197) | def visit_del_stmt(self, o: DelStmt, /) -> None:
method visit_if_stmt (line 201) | def visit_if_stmt(self, o: IfStmt, /) -> None:
method visit_raise_stmt (line 209) | def visit_raise_stmt(self, o: RaiseStmt, /) -> None:
method visit_try_stmt (line 215) | def visit_try_stmt(self, o: TryStmt, /) -> None:
method visit_with_stmt (line 230) | def visit_with_stmt(self, o: WithStmt, /) -> None:
method visit_match_stmt (line 238) | def visit_match_stmt(self, o: MatchStmt, /) -> None:
method visit_type_alias_stmt (line 247) | def visit_type_alias_stmt(self, o: TypeAliasStmt, /) -> None:
method visit_member_expr (line 251) | def visit_member_expr(self, o: MemberExpr, /) -> None:
method visit_yield_from_expr (line 254) | def visit_yield_from_expr(self, o: YieldFromExpr, /) -> None:
method visit_yield_expr (line 257) | def visit_yield_expr(self, o: YieldExpr, /) -> None:
method visit_call_expr (line 261) | def visit_call_expr(self, o: CallExpr, /) -> None:
method visit_op_expr (line 268) | def visit_op_expr(self, o: OpExpr, /) -> None:
method visit_comparison_expr (line 274) | def visit_comparison_expr(self, o: ComparisonExpr, /) -> None:
method visit_slice_expr (line 278) | def visit_slice_expr(self, o: SliceExpr, /) -> None:
method visit_cast_expr (line 286) | def visit_cast_expr(self, o: CastExpr, /) -> None:
method visit_assert_type_expr (line 289) | def visit_assert_type_expr(self, o: AssertTypeExpr, /) -> None:
method visit_reveal_expr (line 292) | def visit_reveal_expr(self, o: RevealExpr, /) -> None:
method visit_assignment_expr (line 300) | def visit_assignment_expr(self, o: AssignmentExpr, /) -> None:
method visit_unary_expr (line 304) | def visit_unary_expr(self, o: UnaryExpr, /) -> None:
method visit_list_expr (line 307) | def visit_list_expr(self, o: ListExpr, /) -> None:
method visit_tuple_expr (line 311) | def visit_tuple_expr(self, o: TupleExpr, /) -> None:
method visit_dict_expr (line 315) | def visit_dict_expr(self, o: DictExpr, /) -> None:
method visit_set_expr (line 321) | def visit_set_expr(self, o: SetExpr, /) -> None:
method visit_index_expr (line 325) | def visit_index_expr(self, o: IndexExpr, /) -> None:
method visit_generator_expr (line 331) | def visit_generator_expr(self, o: GeneratorExpr, /) -> None:
method visit_dictionary_comprehension (line 339) | def visit_dictionary_comprehension(self, o: DictionaryComprehension, /...
method visit_list_comprehension (line 348) | def visit_list_comprehension(self, o: ListComprehension, /) -> None:
method visit_set_comprehension (line 351) | def visit_set_comprehension(self, o: SetComprehension, /) -> None:
method visit_conditional_expr (line 354) | def visit_conditional_expr(self, o: ConditionalExpr, /) -> None:
method visit_type_application (line 359) | def visit_type_application(self, o: TypeApplication, /) -> None:
method visit_lambda_expr (line 362) | def visit_lambda_expr(self, o: LambdaExpr, /) -> None:
method visit_star_expr (line 365) | def visit_star_expr(self, o: StarExpr, /) -> None:
method visit_await_expr (line 368) | def visit_await_expr(self, o: AwaitExpr, /) -> None:
method visit_super_expr (line 371) | def visit_super_expr(self, o: SuperExpr, /) -> None:
method visit_as_pattern (line 374) | def visit_as_pattern(self, o: AsPattern, /) -> None:
method visit_or_pattern (line 380) | def visit_or_pattern(self, o: OrPattern, /) -> None:
method visit_value_pattern (line 384) | def visit_value_pattern(self, o: ValuePattern, /) -> None:
method visit_sequence_pattern (line 387) | def visit_sequence_pattern(self, o: SequencePattern, /) -> None:
method visit_starred_pattern (line 391) | def visit_starred_pattern(self, o: StarredPattern, /) -> None:
method visit_mapping_pattern (line 395) | def visit_mapping_pattern(self, o: MappingPattern, /) -> None:
method visit_class_pattern (line 403) | def visit_class_pattern(self, o: ClassPattern, /) -> None:
method visit_import (line 410) | def visit_import(self, o: Import, /) -> None:
method visit_import_from (line 414) | def visit_import_from(self, o: ImportFrom, /) -> None:
class ExtendedTraverserVisitor (line 419) | class ExtendedTraverserVisitor(TraverserVisitor):
method visit (line 431) | def visit(self, o: Node) -> bool:
method visit_mypy_file (line 435) | def visit_mypy_file(self, o: MypyFile, /) -> None:
method visit_import (line 442) | def visit_import(self, o: Import, /) -> None:
method visit_import_from (line 447) | def visit_import_from(self, o: ImportFrom, /) -> None:
method visit_import_all (line 452) | def visit_import_all(self, o: ImportAll, /) -> None:
method visit_func_def (line 459) | def visit_func_def(self, o: FuncDef, /) -> None:
method visit_overloaded_func_def (line 464) | def visit_overloaded_func_def(self, o: OverloadedFuncDef, /) -> None:
method visit_class_def (line 469) | def visit_class_def(self, o: ClassDef, /) -> None:
method visit_global_decl (line 474) | def visit_global_decl(self, o: GlobalDecl, /) -> None:
method visit_nonlocal_decl (line 479) | def visit_nonlocal_decl(self, o: NonlocalDecl, /) -> None:
method visit_decorator (line 484) | def visit_decorator(self, o: Decorator, /) -> None:
method visit_type_alias (line 489) | def visit_type_alias(self, o: TypeAlias, /) -> None:
method visit_block (line 496) | def visit_block(self, block: Block, /) -> None:
method visit_expression_stmt (line 501) | def visit_expression_stmt(self, o: ExpressionStmt, /) -> None:
method visit_assignment_stmt (line 506) | def visit_assignment_stmt(self, o: AssignmentStmt, /) -> None:
method visit_operator_assignment_stmt (line 511) | def visit_operator_assignment_stmt(self, o: OperatorAssignmentStmt, /)...
method visit_while_stmt (line 516) | def visit_while_stmt(self, o: WhileStmt, /) -> None:
method visit_for_stmt (line 521) | def visit_for_stmt(self, o: ForStmt, /) -> None:
method visit_return_stmt (line 526) | def visit_return_stmt(self, o: ReturnStmt, /) -> None:
method visit_assert_stmt (line 531) | def visit_assert_stmt(self, o: AssertStmt, /) -> None:
method visit_del_stmt (line 536) | def visit_del_stmt(self, o: DelStmt, /) -> None:
method visit_if_stmt (line 541) | def visit_if_stmt(self, o: IfStmt, /) -> None:
method visit_break_stmt (line 546) | def visit_break_stmt(self, o: BreakStmt, /) -> None:
method visit_continue_stmt (line 551) | def visit_continue_stmt(self, o: ContinueStmt, /) -> None:
method visit_pass_stmt (line 556) | def visit_pass_stmt(self, o: PassStmt, /) -> None:
method visit_raise_stmt (line 561) | def visit_raise_stmt(self, o: RaiseStmt, /) -> None:
method visit_try_stmt (line 566) | def visit_try_stmt(self, o: TryStmt, /) -> None:
method visit_with_stmt (line 571) | def visit_with_stmt(self, o: WithStmt, /) -> None:
method visit_match_stmt (line 576) | def visit_match_stmt(self, o: MatchStmt, /) -> None:
method visit_int_expr (line 583) | def visit_int_expr(self, o: IntExpr, /) -> None:
method visit_str_expr (line 588) | def visit_str_expr(self, o: StrExpr, /) -> None:
method visit_bytes_expr (line 593) | def visit_bytes_expr(self, o: BytesExpr, /) -> None:
method visit_float_expr (line 598) | def visit_float_expr(self, o: FloatExpr, /) -> None:
method visit_complex_expr (line 603) | def visit_complex_expr(self, o: ComplexExpr, /) -> None:
method visit_ellipsis (line 608) | def visit_ellipsis(self, o: EllipsisExpr, /) -> None:
method visit_star_expr (line 613) | def visit_star_expr(self, o: StarExpr, /) -> None:
method visit_name_expr (line 618) | def visit_name_expr(self, o: NameExpr, /) -> None:
method visit_member_expr (line 623) | def visit_member_expr(self, o: MemberExpr, /) -> None:
method visit_yield_from_expr (line 628) | def visit_yield_from_expr(self, o: YieldFromExpr, /) -> None:
method visit_yield_expr (line 633) | def visit_yield_expr(self, o: YieldExpr, /) -> None:
method visit_call_expr (line 638) | def visit_call_expr(self, o: CallExpr, /) -> None:
method visit_op_expr (line 643) | def visit_op_expr(self, o: OpExpr, /) -> None:
method visit_comparison_expr (line 648) | def visit_comparison_expr(self, o: ComparisonExpr, /) -> None:
method visit_cast_expr (line 653) | def visit_cast_expr(self, o: CastExpr, /) -> None:
method visit_assert_type_expr (line 658) | def visit_assert_type_expr(self, o: AssertTypeExpr, /) -> None:
method visit_reveal_expr (line 663) | def visit_reveal_expr(self, o: RevealExpr, /) -> None:
method visit_super_expr (line 668) | def visit_super_expr(self, o: SuperExpr, /) -> None:
method visit_assignment_expr (line 673) | def visit_assignment_expr(self, o: AssignmentExpr, /) -> None:
method visit_unary_expr (line 678) | def visit_unary_expr(self, o: UnaryExpr, /) -> None:
method visit_list_expr (line 683) | def visit_list_expr(self, o: ListExpr, /) -> None:
method visit_dict_expr (line 688) | def visit_dict_expr(self, o: DictExpr, /) -> None:
method visit_tuple_expr (line 693) | def visit_tuple_expr(self, o: TupleExpr, /) -> None:
method visit_set_expr (line 698) | def visit_set_expr(self, o: SetExpr, /) -> None:
method visit_index_expr (line 703) | def visit_index_expr(self, o: IndexExpr, /) -> None:
method visit_type_application (line 708) | def visit_type_application(self, o: TypeApplication, /) -> None:
method visit_lambda_expr (line 713) | def visit_lambda_expr(self, o: LambdaExpr, /) -> None:
method visit_list_comprehension (line 718) | def visit_list_comprehension(self, o: ListComprehension, /) -> None:
method visit_set_comprehension (line 723) | def visit_set_comprehension(self, o: SetComprehension, /) -> None:
method visit_dictionary_comprehension (line 728) | def visit_dictionary_comprehension(self, o: DictionaryComprehension, /...
method visit_generator_expr (line 733) | def visit_generator_expr(self, o: GeneratorExpr, /) -> None:
method visit_slice_expr (line 738) | def visit_slice_expr(self, o: SliceExpr, /) -> None:
method visit_conditional_expr (line 743) | def visit_conditional_expr(self, o: ConditionalExpr, /) -> None:
method visit_type_var_expr (line 748) | def visit_type_var_expr(self, o: TypeVarExpr, /) -> None:
method visit_paramspec_expr (line 753) | def visit_paramspec_expr(self, o: ParamSpecExpr, /) -> None:
method visit_type_var_tuple_expr (line 758) | def visit_type_var_tuple_expr(self, o: TypeVarTupleExpr, /) -> None:
method visit_type_alias_expr (line 763) | def visit_type_alias_expr(self, o: TypeAliasExpr, /) -> None:
method visit_namedtuple_expr (line 768) | def visit_namedtuple_expr(self, o: NamedTupleExpr, /) -> None:
method visit_enum_call_expr (line 773) | def visit_enum_call_expr(self, o: EnumCallExpr, /) -> None:
method visit_typeddict_expr (line 778) | def visit_typeddict_expr(self, o: TypedDictExpr, /) -> None:
method visit_newtype_expr (line 783) | def visit_newtype_expr(self, o: NewTypeExpr, /) -> None:
method visit_await_expr (line 788) | def visit_await_expr(self, o: AwaitExpr, /) -> None:
method visit_as_pattern (line 795) | def visit_as_pattern(self, o: AsPattern, /) -> None:
method visit_or_pattern (line 800) | def visit_or_pattern(self, o: OrPattern, /) -> None:
method visit_value_pattern (line 805) | def visit_value_pattern(self, o: ValuePattern, /) -> None:
method visit_singleton_pattern (line 810) | def visit_singleton_pattern(self, o: SingletonPattern, /) -> None:
method visit_sequence_pattern (line 815) | def visit_sequence_pattern(self, o: SequencePattern, /) -> None:
method visit_starred_pattern (line 820) | def visit_starred_pattern(self, o: StarredPattern, /) -> None:
method visit_mapping_pattern (line 825) | def visit_mapping_pattern(self, o: MappingPattern, /) -> None:
method visit_class_pattern (line 830) | def visit_class_pattern(self, o: ClassPattern, /) -> None:
class ReturnSeeker (line 836) | class ReturnSeeker(TraverserVisitor):
method __init__ (line 837) | def __init__(self) -> None:
method visit_return_stmt (line 840) | def visit_return_stmt(self, o: ReturnStmt) -> None:
function has_return_statement (line 846) | def has_return_statement(fdef: FuncBase) -> bool:
class FuncCollectorBase (line 856) | class FuncCollectorBase(TraverserVisitor):
method __init__ (line 857) | def __init__(self) -> None:
method visit_func_def (line 860) | def visit_func_def(self, defn: FuncDef) -> None:
class YieldSeeker (line 867) | class YieldSeeker(FuncCollectorBase):
method __init__ (line 868) | def __init__(self) -> None:
method visit_yield_expr (line 872) | def visit_yield_expr(self, o: YieldExpr) -> None:
function has_yield_expression (line 876) | def has_yield_expression(fdef: FuncBase) -> bool:
class YieldFromSeeker (line 882) | class YieldFromSeeker(FuncCollectorBase):
method __init__ (line 883) | def __init__(self) -> None:
method visit_yield_from_expr (line 887) | def visit_yield_from_expr(self, o: YieldFromExpr) -> None:
function has_yield_from_expression (line 891) | def has_yield_from_expression(fdef: FuncBase) -> bool:
class AwaitSeeker (line 897) | class AwaitSeeker(TraverserVisitor):
method __init__ (line 898) | def __init__(self) -> None:
method visit_await_expr (line 902) | def visit_await_expr(self, o: AwaitExpr) -> None:
function has_await_expression (line 906) | def has_await_expression(expr: Expression) -> bool:
class ReturnCollector (line 912) | class ReturnCollector(FuncCollectorBase):
method __init__ (line 913) | def __init__(self) -> None:
method visit_return_stmt (line 917) | def visit_return_stmt(self, stmt: ReturnStmt) -> None:
function all_return_statements (line 921) | def all_return_statements(node: Node) -> list[ReturnStmt]:
class YieldCollector (line 927) | class YieldCollector(FuncCollectorBase):
method __init__ (line 928) | def __init__(self) -> None:
method visit_assignment_stmt (line 933) | def visit_assignment_stmt(self, stmt: AssignmentStmt) -> None:
method visit_yield_expr (line 938) | def visit_yield_expr(self, expr: YieldExpr) -> None:
function all_yield_expressions (line 942) | def all_yield_expressions(node: Node) -> list[tuple[YieldExpr, bool]]:
class YieldFromCollector (line 948) | class YieldFromCollector(FuncCollectorBase):
method __init__ (line 949) | def __init__(self) -> None:
method visit_assignment_stmt (line 954) | def visit_assignment_stmt(self, stmt: AssignmentStmt) -> None:
method visit_yield_from_expr (line 959) | def visit_yield_from_expr(self, expr: YieldFromExpr) -> None:
FILE: mypy/treetransform.py
class TransformVisitor (line 112) | class TransformVisitor(NodeVisitor[Node]):
method __init__ (line 133) | def __init__(self) -> None:
method visit_mypy_file (line 146) | def visit_mypy_file(self, node: MypyFile) -> MypyFile:
method visit_import (line 156) | def visit_import(self, node: Import) -> Import:
method visit_import_from (line 159) | def visit_import_from(self, node: ImportFrom) -> ImportFrom:
method visit_import_all (line 162) | def visit_import_all(self, node: ImportAll) -> ImportAll:
method copy_argument (line 165) | def copy_argument(self, argument: Argument) -> Argument:
method visit_func_def (line 178) | def visit_func_def(self, node: FuncDef) -> FuncDef:
method visit_lambda_expr (line 222) | def visit_lambda_expr(self, node: LambdaExpr) -> LambdaExpr:
method copy_function_attributes (line 231) | def copy_function_attributes(self, new: FuncItem, original: FuncItem) ...
method visit_overloaded_func_def (line 242) | def visit_overloaded_func_def(self, node: OverloadedFuncDef) -> Overlo...
method visit_class_def (line 260) | def visit_class_def(self, node: ClassDef) -> ClassDef:
method visit_global_decl (line 273) | def visit_global_decl(self, node: GlobalDecl) -> GlobalDecl:
method visit_nonlocal_decl (line 276) | def visit_nonlocal_decl(self, node: NonlocalDecl) -> NonlocalDecl:
method visit_block (line 279) | def visit_block(self, node: Block) -> Block:
method visit_decorator (line 282) | def visit_decorator(self, node: Decorator) -> Decorator:
method visit_var (line 290) | def visit_var(self, node: Var) -> Var:
method visit_expression_stmt (line 312) | def visit_expression_stmt(self, node: ExpressionStmt) -> ExpressionStmt:
method visit_assignment_stmt (line 315) | def visit_assignment_stmt(self, node: AssignmentStmt) -> AssignmentStmt:
method duplicate_assignment (line 318) | def duplicate_assignment(self, node: AssignmentStmt) -> AssignmentStmt:
method visit_operator_assignment_stmt (line 329) | def visit_operator_assignment_stmt(
method visit_while_stmt (line 334) | def visit_while_stmt(self, node: WhileStmt) -> WhileStmt:
method visit_for_stmt (line 339) | def visit_for_stmt(self, node: ForStmt) -> ForStmt:
method visit_return_stmt (line 351) | def visit_return_stmt(self, node: ReturnStmt) -> ReturnStmt:
method visit_assert_stmt (line 354) | def visit_assert_stmt(self, node: AssertStmt) -> AssertStmt:
method visit_del_stmt (line 357) | def visit_del_stmt(self, node: DelStmt) -> DelStmt:
method visit_if_stmt (line 360) | def visit_if_stmt(self, node: IfStmt) -> IfStmt:
method visit_break_stmt (line 367) | def visit_break_stmt(self, node: BreakStmt) -> BreakStmt:
method visit_continue_stmt (line 370) | def visit_continue_stmt(self, node: ContinueStmt) -> ContinueStmt:
method visit_pass_stmt (line 373) | def visit_pass_stmt(self, node: PassStmt) -> PassStmt:
method visit_raise_stmt (line 376) | def visit_raise_stmt(self, node: RaiseStmt) -> RaiseStmt:
method visit_try_stmt (line 379) | def visit_try_stmt(self, node: TryStmt) -> TryStmt:
method visit_with_stmt (line 391) | def visit_with_stmt(self, node: WithStmt) -> WithStmt:
method visit_as_pattern (line 402) | def visit_as_pattern(self, p: AsPattern) -> AsPattern:
method visit_or_pattern (line 408) | def visit_or_pattern(self, p: OrPattern) -> OrPattern:
method visit_value_pattern (line 411) | def visit_value_pattern(self, p: ValuePattern) -> ValuePattern:
method visit_singleton_pattern (line 414) | def visit_singleton_pattern(self, p: SingletonPattern) -> SingletonPat...
method visit_sequence_pattern (line 417) | def visit_sequence_pattern(self, p: SequencePattern) -> SequencePattern:
method visit_starred_pattern (line 420) | def visit_starred_pattern(self, p: StarredPattern) -> StarredPattern:
method visit_mapping_pattern (line 423) | def visit_mapping_pattern(self, p: MappingPattern) -> MappingPattern:
method visit_class_pattern (line 430) | def visit_class_pattern(self, p: ClassPattern) -> ClassPattern:
method visit_match_stmt (line 440) | def visit_match_stmt(self, o: MatchStmt) -> MatchStmt:
method visit_star_expr (line 448) | def visit_star_expr(self, node: StarExpr) -> StarExpr:
method visit_int_expr (line 451) | def visit_int_expr(self, node: IntExpr) -> IntExpr:
method visit_str_expr (line 454) | def visit_str_expr(self, node: StrExpr) -> StrExpr:
method visit_bytes_expr (line 457) | def visit_bytes_expr(self, node: BytesExpr) -> BytesExpr:
method visit_float_expr (line 460) | def visit_float_expr(self, node: FloatExpr) -> FloatExpr:
method visit_complex_expr (line 463) | def visit_complex_expr(self, node: ComplexExpr) -> ComplexExpr:
method visit_ellipsis (line 466) | def visit_ellipsis(self, node: EllipsisExpr) -> EllipsisExpr:
method visit_name_expr (line 469) | def visit_name_expr(self, node: NameExpr) -> NameExpr:
method duplicate_name (line 472) | def duplicate_name(self, node: NameExpr) -> NameExpr:
method visit_member_expr (line 480) | def visit_member_expr(self, node: MemberExpr) -> MemberExpr:
method copy_ref (line 489) | def copy_ref(self, new: RefExpr, original: RefExpr) -> None:
method visit_yield_from_expr (line 507) | def visit_yield_from_expr(self, node: YieldFromExpr) -> YieldFromExpr:
method visit_yield_expr (line 510) | def visit_yield_expr(self, node: YieldExpr) -> YieldExpr:
method visit_await_expr (line 513) | def visit_await_expr(self, node: AwaitExpr) -> AwaitExpr:
method visit_call_expr (line 516) | def visit_call_expr(self, node: CallExpr) -> CallExpr:
method visit_op_expr (line 525) | def visit_op_expr(self, node: OpExpr) -> OpExpr:
method visit_comparison_expr (line 535) | def visit_comparison_expr(self, node: ComparisonExpr) -> ComparisonExpr:
method visit_cast_expr (line 540) | def visit_cast_expr(self, node: CastExpr) -> CastExpr:
method visit_assert_type_expr (line 543) | def visit_assert_type_expr(self, node: AssertTypeExpr) -> AssertTypeExpr:
method visit_reveal_expr (line 546) | def visit_reveal_expr(self, node: RevealExpr) -> RevealExpr:
method visit_super_expr (line 554) | def visit_super_expr(self, node: SuperExpr) -> SuperExpr:
method visit_assignment_expr (line 561) | def visit_assignment_expr(self, node: AssignmentExpr) -> AssignmentExpr:
method visit_unary_expr (line 564) | def visit_unary_expr(self, node: UnaryExpr) -> UnaryExpr:
method visit_list_expr (line 569) | def visit_list_expr(self, node: ListExpr) -> ListExpr:
method visit_dict_expr (line 572) | def visit_dict_expr(self, node: DictExpr) -> DictExpr:
method visit_tuple_expr (line 577) | def visit_tuple_expr(self, node: TupleExpr) -> TupleExpr:
method visit_set_expr (line 580) | def visit_set_expr(self, node: SetExpr) -> SetExpr:
method visit_index_expr (line 583) | def visit_index_expr(self, node: IndexExpr) -> IndexExpr:
method visit_type_application (line 595) | def visit_type_application(self, node: TypeApplication) -> TypeApplica...
method visit_list_comprehension (line 598) | def visit_list_comprehension(self, node: ListComprehension) -> ListCom...
method visit_set_comprehension (line 603) | def visit_set_comprehension(self, node: SetComprehension) -> SetCompre...
method visit_dictionary_comprehension (line 608) | def visit_dictionary_comprehension(
method visit_generator_expr (line 620) | def visit_generator_expr(self, node: GeneratorExpr) -> GeneratorExpr:
method duplicate_generator (line 623) | def duplicate_generator(self, node: GeneratorExpr) -> GeneratorExpr:
method visit_slice_expr (line 632) | def visit_slice_expr(self, node: SliceExpr) -> SliceExpr:
method visit_conditional_expr (line 639) | def visit_conditional_expr(self, node: ConditionalExpr) -> Conditional...
method visit_type_var_expr (line 644) | def visit_type_var_expr(self, node: TypeVarExpr) -> TypeVarExpr:
method visit_paramspec_expr (line 654) | def visit_paramspec_expr(self, node: ParamSpecExpr) -> ParamSpecExpr:
method visit_type_var_tuple_expr (line 663) | def visit_type_var_tuple_expr(self, node: TypeVarTupleExpr) -> TypeVar...
method visit_type_alias_expr (line 673) | def visit_type_alias_expr(self, node: TypeAliasExpr) -> TypeAliasExpr:
method visit_newtype_expr (line 676) | def visit_newtype_expr(self, node: NewTypeExpr) -> NewTypeExpr:
method visit_namedtuple_expr (line 681) | def visit_namedtuple_expr(self, node: NamedTupleExpr) -> NamedTupleExpr:
method visit_enum_call_expr (line 684) | def visit_enum_call_expr(self, node: EnumCallExpr) -> EnumCallExpr:
method visit_typeddict_expr (line 687) | def visit_typeddict_expr(self, node: TypedDictExpr) -> Node:
method visit__promote_expr (line 690) | def visit__promote_expr(self, node: PromoteExpr) -> PromoteExpr:
method visit_temp_node (line 693) | def visit_temp_node(self, node: TempNode) -> TempNode:
method node (line 696) | def node(self, node: Node) -> Node:
method mypyfile (line 701) | def mypyfile(self, node: MypyFile) -> MypyFile:
method expr (line 707) | def expr(self, expr: Expression) -> Expression:
method stmt (line 713) | def stmt(self, stmt: Statement) -> Statement:
method pattern (line 719) | def pattern(self, pattern: Pattern) -> Pattern:
method optional_expr (line 729) | def optional_expr(self, expr: Expression | None) -> Expression | None:
method block (line 735) | def block(self, block: Block) -> Block:
method optional_block (line 740) | def optional_block(self, block: Block | None) -> Block | None:
method statements (line 746) | def statements(self, statements: list[Statement]) -> list[Statement]:
method expressions (line 749) | def expressions(self, expressions: list[Expression]) -> list[Expression]:
method optional_expressions (line 752) | def optional_expressions(
method blocks (line 757) | def blocks(self, blocks: list[Block]) -> list[Block]:
method names (line 760) | def names(self, names: list[NameExpr]) -> list[NameExpr]:
method optional_names (line 763) | def optional_names(self, names: Iterable[NameExpr | None]) -> list[Nam...
method type (line 772) | def type(self, type: Type) -> Type:
method optional_type (line 776) | def optional_type(self, type: Type | None) -> Type | None:
method types (line 782) | def types(self, types: list[Type]) -> list[Type]:
class FuncMapInitializer (line 786) | class FuncMapInitializer(TraverserVisitor):
method __init__ (line 792) | def __init__(self, transformer: TransformVisitor) -> None:
method visit_func_def (line 795) | def visit_func_def(self, node: FuncDef) -> None:
FILE: mypy/tvar_scope.py
class TypeVarLikeNamespaceSetter (line 23) | class TypeVarLikeNamespaceSetter(TypeTraverserVisitor):
method __init__ (line 26) | def __init__(self, namespace: str) -> None:
method visit_type_var (line 29) | def visit_type_var(self, t: TypeVarType) -> None:
method visit_param_spec (line 33) | def visit_param_spec(self, t: ParamSpecType) -> None:
method visit_type_var_tuple (line 37) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> None:
class TypeVarLikeScope (line 42) | class TypeVarLikeScope:
method __init__ (line 48) | def __init__(
method get_function_scope (line 74) | def get_function_scope(self) -> TypeVarLikeScope | None:
method allow_binding (line 81) | def allow_binding(self, fullname: str) -> bool:
method method_frame (line 90) | def method_frame(self, namespace: str) -> TypeVarLikeScope:
method class_frame (line 94) | def class_frame(self, namespace: str) -> TypeVarLikeScope:
method new_unique_func_id (line 98) | def new_unique_func_id(self) -> TypeVarId:
method bind_new (line 103) | def bind_new(
method bind_existing (line 155) | def bind_existing(self, tvar_def: TypeVarLikeType) -> None:
method get_binding (line 158) | def get_binding(self, item: str | SymbolTableNode) -> TypeVarLikeType ...
method __str__ (line 168) | def __str__(self) -> str:
FILE: mypy/type_visitor.py
class TypeVisitor (line 61) | class TypeVisitor(Generic[T]):
method visit_unbound_type (line 68) | def visit_unbound_type(self, t: UnboundType, /) -> T:
method visit_any (line 72) | def visit_any(self, t: AnyType, /) -> T:
method visit_none_type (line 76) | def visit_none_type(self, t: NoneType, /) -> T:
method visit_uninhabited_type (line 80) | def visit_uninhabited_type(self, t: UninhabitedType, /) -> T:
method visit_erased_type (line 84) | def visit_erased_type(self, t: ErasedType, /) -> T:
method visit_deleted_type (line 88) | def visit_deleted_type(self, t: DeletedType, /) -> T:
method visit_type_var (line 92) | def visit_type_var(self, t: TypeVarType, /) -> T:
method visit_param_spec (line 96) | def visit_param_spec(self, t: ParamSpecType, /) -> T:
method visit_parameters (line 100) | def visit_parameters(self, t: Parameters, /) -> T:
method visit_type_var_tuple (line 104) | def visit_type_var_tuple(self, t: TypeVarTupleType, /) -> T:
method visit_instance (line 108) | def visit_instance(self, t: Instance, /) -> T:
method visit_callable_type (line 112) | def visit_callable_type(self, t: CallableType, /) -> T:
method visit_overloaded (line 116) | def visit_overloaded(self, t: Overloaded, /) -> T:
method visit_tuple_type (line 120) | def visit_tuple_type(self, t: TupleType, /) -> T:
method visit_typeddict_type (line 124) | def visit_typeddict_type(self, t: TypedDictType, /) -> T:
method visit_literal_type (line 128) | def visit_literal_type(self, t: LiteralType, /) -> T:
method visit_union_type (line 132) | def visit_union_type(self, t: UnionType, /) -> T:
method visit_intersection_type (line 136) | def visit_intersection_type(self, t: IntersectionType) -> T:
method visit_partial_type (line 140) | def visit_partial_type(self, t: PartialType, /) -> T:
method visit_type_type (line 144) | def visit_type_type(self, t: TypeType, /) -> T:
method visit_type_alias_type (line 148) | def visit_type_alias_type(self, t: TypeAliasType, /) -> T:
method visit_unpack_type (line 152) | def visit_unpack_type(self, t: UnpackType, /) -> T:
method visit_typeguard_type (line 155) | def visit_typeguard_type(self, t: TypeGuardType) -> T:
class SyntheticTypeVisitor (line 161) | class SyntheticTypeVisitor(TypeVisitor[T]):
method visit_type_list (line 168) | def visit_type_list(self, t: TypeList, /) -> T:
method visit_callable_argument (line 172) | def visit_callable_argument(self, t: CallableArgument, /) -> T:
method visit_ellipsis_type (line 176) | def visit_ellipsis_type(self, t: EllipsisType, /) -> T:
method visit_raw_expression_type (line 180) | def visit_raw_expression_type(self, t: RawExpressionType, /) -> T:
method visit_placeholder_type (line 184) | def visit_placeholder_type(self, t: PlaceholderType, /) -> T:
class TypeTranslator (line 189) | class TypeTranslator(TypeVisitor[Type]):
method __init__ (line 199) | def __init__(self, cache: dict[Type, Type] | None = None) -> None:
method get_cached (line 203) | def get_cached(self, t: Type) -> Type | None:
method set_cached (line 208) | def set_cached(self, orig: Type, new: Type) -> None:
method visit_unbound_type (line 214) | def visit_unbound_type(self, t: UnboundType, /) -> Type:
method visit_any (line 217) | def visit_any(self, t: AnyType, /) -> Type:
method visit_none_type (line 220) | def visit_none_type(self, t: NoneType, /) -> Type:
method visit_uninhabited_type (line 223) | def visit_uninhabited_type(self, t: UninhabitedType, /) -> Type:
method visit_erased_type (line 226) | def visit_erased_type(self, t: ErasedType, /) -> Type:
method visit_deleted_type (line 229) | def visit_deleted_type(self, t: DeletedType, /) -> Type:
method visit_instance (line 232) | def visit_instance(self, t: Instance, /) -> Type:
method visit_type_var (line 249) | def visit_type_var(self, t: TypeVarType, /) -> Type:
method visit_param_spec (line 252) | def visit_param_spec(self, t: ParamSpecType, /) -> Type:
method visit_parameters (line 255) | def visit_parameters(self, t: Parameters, /) -> Type:
method visit_type_var_tuple (line 258) | def visit_type_var_tuple(self, t: TypeVarTupleType, /) -> Type:
method visit_partial_type (line 261) | def visit_partial_type(self, t: PartialType, /) -> Type:
method visit_unpack_type (line 264) | def visit_unpack_type(self, t: UnpackType, /) -> Type:
method visit_callable_type (line 267) | def visit_callable_type(self, t: CallableType, /) -> Type:
method visit_tuple_type (line 274) | def visit_tuple_type(self, t: TupleType, /) -> Type:
method visit_typeddict_type (line 283) | def visit_typeddict_type(self, t: TypedDictType, /) -> Type:
method visit_literal_type (line 300) | def visit_literal_type(self, t: LiteralType, /) -> Type:
method visit_union_type (line 305) | def visit_union_type(self, t: UnionType, /) -> Type:
method visit_intersection_type (line 322) | def visit_intersection_type(self, t: IntersectionType) -> Type:
method translate_types (line 325) | def translate_types(self, types: Iterable[Type]) -> list[Type]:
method translate_variables (line 328) | def translate_variables(
method visit_overloaded (line 333) | def visit_overloaded(self, t: Overloaded, /) -> Type:
method visit_type_type (line 341) | def visit_type_type(self, t: TypeType, /) -> Type:
method visit_type_alias_type (line 345) | def visit_type_alias_type(self, t: TypeAliasType, /) -> Type:
class TypeQuery (line 354) | class TypeQuery(SyntheticTypeVisitor[T]):
method __init__ (line 367) | def __init__(self, strategy: Callable[[list[T]], T]) -> None:
method visit_unbound_type (line 377) | def visit_unbound_type(self, t: UnboundType, /) -> T:
method visit_type_list (line 380) | def visit_type_list(self, t: TypeList, /) -> T:
method visit_callable_argument (line 383) | def visit_callable_argument(self, t: CallableArgument, /) -> T:
method visit_any (line 386) | def visit_any(self, t: AnyType, /) -> T:
method visit_uninhabited_type (line 389) | def visit_uninhabited_type(self, t: UninhabitedType, /) -> T:
method visit_none_type (line 392) | def visit_none_type(self, t: NoneType, /) -> T:
method visit_erased_type (line 395) | def visit_erased_type(self, t: ErasedType, /) -> T:
method visit_deleted_type (line 398) | def visit_deleted_type(self, t: DeletedType, /) -> T:
method visit_type_var (line 401) | def visit_type_var(self, t: TypeVarType, /) -> T:
method visit_param_spec (line 404) | def visit_param_spec(self, t: ParamSpecType, /) -> T:
method visit_type_var_tuple (line 407) | def visit_type_var_tuple(self, t: TypeVarTupleType, /) -> T:
method visit_unpack_type (line 410) | def visit_unpack_type(self, t: UnpackType, /) -> T:
method visit_parameters (line 413) | def visit_parameters(self, t: Parameters, /) -> T:
method visit_partial_type (line 416) | def visit_partial_type(self, t: PartialType, /) -> T:
method visit_instance (line 419) | def visit_instance(self, t: Instance, /) -> T:
method visit_callable_type (line 422) | def visit_callable_type(self, t: CallableType, /) -> T:
method visit_tuple_type (line 426) | def visit_tuple_type(self, t: TupleType, /) -> T:
method visit_typeddict_type (line 429) | def visit_typeddict_type(self, t: TypedDictType, /) -> T:
method visit_raw_expression_type (line 432) | def visit_raw_expression_type(self, t: RawExpressionType, /) -> T:
method visit_literal_type (line 435) | def visit_literal_type(self, t: LiteralType, /) -> T:
method visit_union_type (line 438) | def visit_union_type(self, t: UnionType, /) -> T:
method visit_intersection_type (line 441) | def visit_intersection_type(self, t: IntersectionType, /) -> T:
method visit_overloaded (line 444) | def visit_overloaded(self, t: Overloaded, /) -> T:
method visit_type_type (line 447) | def visit_type_type(self, t: TypeType, /) -> T:
method visit_ellipsis_type (line 450) | def visit_ellipsis_type(self, t: EllipsisType, /) -> T:
method visit_placeholder_type (line 453) | def visit_placeholder_type(self, t: PlaceholderType, /) -> T:
method visit_type_alias_type (line 456) | def visit_type_alias_type(self, t: TypeAliasType, /) -> T:
method query_types (line 467) | def query_types(self, types: Iterable[Type]) -> T:
class BoolTypeQuery (line 478) | class BoolTypeQuery(SyntheticTypeVisitor[bool]):
method __init__ (line 491) | def __init__(self, strategy: int) -> None:
method reset (line 507) | def reset(self) -> None:
method visit_unbound_type (line 514) | def visit_unbound_type(self, t: UnboundType, /) -> bool:
method visit_type_list (line 517) | def visit_type_list(self, t: TypeList, /) -> bool:
method visit_callable_argument (line 520) | def visit_callable_argument(self, t: CallableArgument, /) -> bool:
method visit_any (line 523) | def visit_any(self, t: AnyType, /) -> bool:
method visit_uninhabited_type (line 526) | def visit_uninhabited_type(self, t: UninhabitedType, /) -> bool:
method visit_none_type (line 529) | def visit_none_type(self, t: NoneType, /) -> bool:
method visit_erased_type (line 532) | def visit_erased_type(self, t: ErasedType, /) -> bool:
method visit_deleted_type (line 535) | def visit_deleted_type(self, t: DeletedType, /) -> bool:
method visit_type_var (line 538) | def visit_type_var(self, t: TypeVarType, /) -> bool:
method visit_param_spec (line 541) | def visit_param_spec(self, t: ParamSpecType, /) -> bool:
method visit_type_var_tuple (line 544) | def visit_type_var_tuple(self, t: TypeVarTupleType, /) -> bool:
method visit_unpack_type (line 547) | def visit_unpack_type(self, t: UnpackType, /) -> bool:
method visit_parameters (line 550) | def visit_parameters(self, t: Parameters, /) -> bool:
method visit_partial_type (line 553) | def visit_partial_type(self, t: PartialType, /) -> bool:
method visit_instance (line 556) | def visit_instance(self, t: Instance, /) -> bool:
method visit_callable_type (line 559) | def visit_callable_type(self, t: CallableType, /) -> bool:
method visit_tuple_type (line 569) | def visit_tuple_type(self, t: TupleType, /) -> bool:
method visit_typeddict_type (line 572) | def visit_typeddict_type(self, t: TypedDictType, /) -> bool:
method visit_raw_expression_type (line 575) | def visit_raw_expression_type(self, t: RawExpressionType, /) -> bool:
method visit_literal_type (line 578) | def visit_literal_type(self, t: LiteralType, /) -> bool:
method visit_union_type (line 581) | def visit_union_type(self, t: UnionType, /) -> bool:
method visit_intersection_type (line 584) | def visit_intersection_type(self, t: IntersectionType) -> bool:
method visit_overloaded (line 587) | def visit_overloaded(self, t: Overloaded, /) -> bool:
method visit_type_type (line 590) | def visit_type_type(self, t: TypeType, /) -> bool:
method visit_ellipsis_type (line 593) | def visit_ellipsis_type(self, t: EllipsisType, /) -> bool:
method visit_placeholder_type (line 596) | def visit_placeholder_type(self, t: PlaceholderType, /) -> bool:
method visit_type_alias_type (line 599) | def visit_type_alias_type(self, t: TypeAliasType, /) -> bool:
method query_types (line 612) | def query_types(self, types: list[Type] | tuple[Type, ...]) -> bool:
FILE: mypy/typeanal.py
function analyze_type_alias (line 160) | def analyze_type_alias(
function no_subscript_builtin_alias (line 202) | def no_subscript_builtin_alias(name: str, propose_alt: bool = True) -> str:
class TypeAnalyser (line 213) | class TypeAnalyser(SyntheticTypeVisitor[Type], TypeAnalyzerPluginInterfa...
method __init__ (line 228) | def __init__(
method lookup_qualified (line 304) | def lookup_qualified(
method lookup_fully_qualified (line 309) | def lookup_fully_qualified(self, fullname: str) -> SymbolTableNode:
method visit_unbound_type (line 312) | def visit_unbound_type(self, t: UnboundType, defining_literal: bool = ...
method not_declared_in_type_params (line 320) | def not_declared_in_type_params(self, tvar_name: str) -> bool:
method string_type (line 327) | def string_type(self) -> Iterator[None]:
method visit_unbound_type_nonoptional (line 335) | def visit_unbound_type_nonoptional(self, t: UnboundType, defining_lite...
method pack_paramspec_args (line 563) | def pack_paramspec_args(self, an_args: Sequence[Type]) -> list[Type]:
method cannot_resolve_type (line 593) | def cannot_resolve_type(self, t: UnboundType) -> None:
method apply_concatenate_operator (line 601) | def apply_concatenate_operator(self, t: UnboundType) -> Type:
method try_analyze_special_unbound_type (line 637) | def try_analyze_special_unbound_type(self, t: UnboundType, fullname: s...
method get_omitted_any (line 859) | def get_omitted_any(self, typ: Type, fullname: str | None = None) -> A...
method check_and_warn_deprecated (line 863) | def check_and_warn_deprecated(self, info: TypeInfo, ctx: Context) -> N...
method analyze_type_with_type_info (line 878) | def analyze_type_with_type_info(
method analyze_unbound_type_without_type_info (line 977) | def analyze_unbound_type_without_type_info(
method visit_any (line 1108) | def visit_any(self, t: AnyType) -> Type:
method visit_none_type (line 1111) | def visit_none_type(self, t: NoneType) -> Type:
method visit_uninhabited_type (line 1114) | def visit_uninhabited_type(self, t: UninhabitedType) -> Type:
method visit_erased_type (line 1117) | def visit_erased_type(self, t: ErasedType) -> Type:
method visit_deleted_type (line 1121) | def visit_deleted_type(self, t: DeletedType) -> Type:
method visit_type_list (line 1124) | def visit_type_list(self, t: TypeList) -> Type:
method visit_callable_argument (line 1152) | def visit_callable_argument(self, t: CallableArgument) -> Type:
method visit_instance (line 1156) | def visit_instance(self, t: Instance) -> Type:
method visit_type_alias_type (line 1159) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
method visit_type_var (line 1163) | def visit_type_var(self, t: TypeVarType) -> Type:
method visit_param_spec (line 1166) | def visit_param_spec(self, t: ParamSpecType) -> Type:
method visit_type_var_tuple (line 1169) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> Type:
method visit_unpack_type (line 1172) | def visit_unpack_type(self, t: UnpackType) -> Type:
method visit_parameters (line 1181) | def visit_parameters(self, t: Parameters) -> Type:
method visit_callable_type (line 1184) | def visit_callable_type(
method anal_type_guard (line 1287) | def anal_type_guard(self, t: Type, first_arg: str | None = None) -> Ty...
method anal_type_guard_arg (line 1306) | def anal_type_guard_arg(self, t: UnboundType, fullname: str) -> Type |...
method anal_type_is (line 1316) | def anal_type_is(self, t: Type) -> Type | None:
method anal_type_is_arg (line 1324) | def anal_type_is_arg(self, t: UnboundType, fullname: str) -> Type | None:
method anal_star_arg_type (line 1332) | def anal_star_arg_type(self, t: Type, kind: ArgKind, nested: bool) -> ...
method visit_overloaded (line 1369) | def visit_overloaded(self, t: Overloaded) -> Type:
method visit_tuple_type (line 1377) | def visit_tuple_type(self, t: TupleType) -> Type:
method visit_typeddict_type (line 1421) | def visit_typeddict_type(self, t: TypedDictType) -> Type:
method visit_raw_expression_type (line 1469) | def visit_raw_expression_type(self, t: RawExpressionType) -> Type:
method visit_literal_type (line 1516) | def visit_literal_type(self, t: LiteralType) -> Type:
method visit_union_type (line 1531) | def visit_union_type(self, t: UnionType) -> Type:
method visit_intersection_type (line 1543) | def visit_intersection_type(self, t: IntersectionType) -> Type:
method visit_partial_type (line 1557) | def visit_partial_type(self, t: PartialType) -> Type:
method visit_ellipsis_type (line 1560) | def visit_ellipsis_type(self, t: EllipsisType) -> Type:
method visit_type_type (line 1570) | def visit_type_type(self, t: TypeType) -> Type:
method visit_placeholder_type (line 1573) | def visit_placeholder_type(self, t: PlaceholderType) -> Type:
method visit_typeguard_type (line 1589) | def visit_typeguard_type(self, t: TypeGuardType) -> Instance:
method analyze_callable_args_for_paramspec (line 1592) | def analyze_callable_args_for_paramspec(
method analyze_callable_args_for_concatenate (line 1645) | def analyze_callable_args_for_concatenate(
method analyze_callable_type (line 1705) | def analyze_callable_type(self, t: UnboundType, type_name: str = CALLA...
method refers_to_full_names (line 1772) | def refers_to_full_names(self, arg: UnboundType, names: Sequence[str])...
method analyze_callable_args (line 1779) | def analyze_callable_args(
method analyze_literal_type (line 1855) | def analyze_literal_type(self, t: UnboundType) -> Type:
method analyze_literal_param (line 1869) | def analyze_literal_param(self, idx: int, arg: Type, ctx: Context) -> ...
method analyze_type (line 1953) | def analyze_type(self, typ: Type) -> Type:
method fail (line 1956) | def fail(self, msg: str, ctx: Context, *, code: ErrorCode | None = Non...
method note (line 1959) | def note(self, msg: str, ctx: Context, *, code: ErrorCode | None = Non...
method tvar_scope_frame (line 1963) | def tvar_scope_frame(self, namespace: str) -> Iterator[None]:
method find_type_var_likes (line 1969) | def find_type_var_likes(self, t: Type) -> TypeVarLikeList:
method infer_type_variables (line 1974) | def infer_type_variables(
method bind_function_type_variables (line 1996) | def bind_function_type_variables(
method is_defined_type_var (line 2063) | def is_defined_type_var(self, tvar: str, context: Context) -> bool:
method anal_array (line 2069) | def anal_array(
method anal_type (line 2090) | def anal_type(
method anal_var_def (line 2144) | def anal_var_def(self, var_def: TypeVarLikeType) -> TypeVarLikeType:
method anal_var_defs (line 2161) | def anal_var_defs(self, var_defs: Sequence[TypeVarLikeType]) -> list[T...
method named_type (line 2164) | def named_type(
method check_unpacks_in_list (line 2176) | def check_unpacks_in_list(self, items: list[Type]) -> list[Type]:
method tuple_type (line 2197) | def tuple_type(self, items: list[Type], line: int, column: int) -> Tup...
class MsgCallback (line 2207) | class MsgCallback(Protocol):
method __call__ (line 2208) | def __call__(self, __msg: str, __ctx: Context, *, code: ErrorCode | No...
function get_omitted_any (line 2211) | def get_omitted_any(
function fix_type_var_tuple_argument (line 2270) | def fix_type_var_tuple_argument(t: Instance) -> None:
function fix_instance (line 2282) | def fix_instance(
function instantiate_type_alias (line 2334) | def instantiate_type_alias(
function set_any_tvars (line 2479) | def set_any_tvars(
class DivergingAliasDetector (line 2544) | class DivergingAliasDetector(TrivialSyntheticTypeTranslator):
method __init__ (line 2548) | def __init__(
method visit_type_alias_type (line 2560) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
function detect_diverging_alias (line 2581) | def detect_diverging_alias(
function check_for_explicit_any (line 2603) | def check_for_explicit_any(
function has_explicit_any (line 2614) | def has_explicit_any(t: Type) -> bool:
class HasExplicitAny (line 2621) | class HasExplicitAny(TypeQuery[bool]):
method __init__ (line 2622) | def __init__(self) -> None:
method visit_any (line 2625) | def visit_any(self, t: AnyType) -> bool:
method visit_typeddict_type (line 2628) | def visit_typeddict_type(self, t: TypedDictType) -> bool:
function has_any_from_unimported_type (line 2633) | def has_any_from_unimported_type(t: Type) -> bool:
class HasAnyFromUnimportedType (line 2642) | class HasAnyFromUnimportedType(BoolTypeQuery):
method __init__ (line 2643) | def __init__(self) -> None:
method visit_any (line 2646) | def visit_any(self, t: AnyType) -> bool:
method visit_typeddict_type (line 2649) | def visit_typeddict_type(self, t: TypedDictType) -> bool:
function collect_all_inner_types (line 2654) | def collect_all_inner_types(t: Type) -> list[Type]:
class CollectAllInnerTypesQuery (line 2661) | class CollectAllInnerTypesQuery(TypeQuery[list[Type]]):
method __init__ (line 2662) | def __init__(self) -> None:
method query_types (line 2665) | def query_types(self, types: Iterable[Type]) -> list[Type]:
method combine_lists_strategy (line 2669) | def combine_lists_strategy(cls, it: Iterable[list[Type]]) -> list[Type]:
function make_optional_type (line 2673) | def make_optional_type(t: Type) -> Type:
function validate_instance (line 2690) | def validate_instance(t: Instance, fail: MsgCallback, empty_tuple_index:...
function find_self_type (line 2762) | def find_self_type(typ: Type, lookup: Callable[[str], SymbolTableNode | ...
class HasSelfType (line 2766) | class HasSelfType(BoolTypeQuery):
method __init__ (line 2767) | def __init__(self, lookup: Callable[[str], SymbolTableNode | None]) ->...
method visit_unbound_type (line 2771) | def visit_unbound_type(self, t: UnboundType) -> bool:
function unknown_unpack (line 2778) | def unknown_unpack(t: Type) -> bool:
class FindTypeVarVisitor (line 2792) | class FindTypeVarVisitor(SyntheticTypeVisitor[None]):
method __init__ (line 2795) | def __init__(self, api: SemanticAnalyzerCoreInterface, scope: TypeVarL...
method _seems_like_callable (line 2803) | def _seems_like_callable(self, type: UnboundType) -> bool:
method visit_unbound_type (line 2808) | def visit_unbound_type(self, t: UnboundType) -> None:
method visit_type_list (line 2834) | def visit_type_list(self, t: TypeList) -> None:
method visit_callable_argument (line 2837) | def visit_callable_argument(self, t: CallableArgument) -> None:
method visit_any (line 2840) | def visit_any(self, t: AnyType) -> None:
method visit_uninhabited_type (line 2843) | def visit_uninhabited_type(self, t: UninhabitedType) -> None:
method visit_none_type (line 2846) | def visit_none_type(self, t: NoneType) -> None:
method visit_erased_type (line 2849) | def visit_erased_type(self, t: ErasedType) -> None:
method visit_deleted_type (line 2852) | def visit_deleted_type(self, t: DeletedType) -> None:
method visit_type_var (line 2855) | def visit_type_var(self, t: TypeVarType) -> None:
method visit_param_spec (line 2858) | def visit_param_spec(self, t: ParamSpecType) -> None:
method visit_type_var_tuple (line 2861) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> None:
method visit_unpack_type (line 2864) | def visit_unpack_type(self, t: UnpackType) -> None:
method visit_parameters (line 2867) | def visit_parameters(self, t: Parameters) -> None:
method visit_partial_type (line 2870) | def visit_partial_type(self, t: PartialType) -> None:
method visit_instance (line 2873) | def visit_instance(self, t: Instance) -> None:
method visit_callable_type (line 2876) | def visit_callable_type(self, t: CallableType) -> None:
method visit_tuple_type (line 2881) | def visit_tuple_type(self, t: TupleType) -> None:
method visit_typeddict_type (line 2884) | def visit_typeddict_type(self, t: TypedDictType) -> None:
method visit_raw_expression_type (line 2887) | def visit_raw_expression_type(self, t: RawExpressionType) -> None:
method visit_literal_type (line 2890) | def visit_literal_type(self, t: LiteralType) -> None:
method visit_union_type (line 2893) | def visit_union_type(self, t: UnionType) -> None:
method visit_intersection_type (line 2896) | def visit_intersection_type(self, t: IntersectionType) -> None:
method visit_overloaded (line 2899) | def visit_overloaded(self, t: Overloaded) -> None:
method visit_type_type (line 2902) | def visit_type_type(self, t: TypeType) -> None:
method visit_ellipsis_type (line 2905) | def visit_ellipsis_type(self, t: EllipsisType) -> None:
method visit_placeholder_type (line 2908) | def visit_placeholder_type(self, t: PlaceholderType) -> None:
method visit_type_alias_type (line 2911) | def visit_type_alias_type(self, t: TypeAliasType) -> None:
method process_types (line 2920) | def process_types(self, types: list[Type] | tuple[Type, ...]) -> None:
class TypeVarDefaultTranslator (line 2930) | class TypeVarDefaultTranslator(TrivialSyntheticTypeTranslator):
method __init__ (line 2933) | def __init__(
method visit_unbound_type (line 2941) | def visit_unbound_type(self, t: UnboundType) -> Type:
method visit_type_alias_type (line 2955) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
FILE: mypy/typeops.py
function is_recursive_pair (line 71) | def is_recursive_pair(s: Type, t: Type) -> bool:
function tuple_fallback (line 99) | def tuple_fallback(typ: TupleType) -> Instance:
function get_self_type (line 128) | def get_self_type(func: CallableType, default_self: Instance | TupleType...
function type_object_type_from_function (line 137) | def type_object_type_from_function(
function class_callable (line 187) | def class_callable(
function map_type_from_supertype (line 231) | def map_type_from_supertype(typ: Type, sub_info: TypeInfo, super_info: T...
function supported_self_type (line 260) | def supported_self_type(
function bind_self (line 282) | def bind_self(
function is_valid_self_type_best_effort (line 412) | def is_valid_self_type_best_effort(c: CallableType, self_type: Instance)...
function erase_to_bound (line 449) | def erase_to_bound(t: Type) -> Type:
function callable_corresponding_argument (line 460) | def callable_corresponding_argument(
function simple_literal_type (line 490) | def simple_literal_type(t: ProperType | None) -> Instance | None:
function is_simple_literal (line 499) | def is_simple_literal(t: ProperType) -> bool:
function make_simplified_union (line 507) | def make_simplified_union(
function _remove_redundant_union_items (line 583) | def _remove_redundant_union_items(items: list[Type], keep_erased: bool) ...
function make_simplified_intersection (line 662) | def make_simplified_intersection(
function _remove_redundant_intersection_items (line 717) | def _remove_redundant_intersection_items(items: list[Type], keep_erased:...
function _get_type_method_ret_type (line 740) | def _get_type_method_ret_type(t: ProperType, *, name: str) -> Type | None:
function true_only (line 756) | def true_only(t: Type) -> ProperType:
function false_only (line 786) | def false_only(t: Type) -> ProperType:
function true_or_false (line 831) | def true_or_false(t: Type) -> ProperType:
function erase_def_to_union_or_bound (line 847) | def erase_def_to_union_or_bound(tdef: TypeVarLikeType) -> Type:
function erase_to_union_or_bound (line 857) | def erase_to_union_or_bound(typ: TypeVarType) -> ProperType:
function function_type (line 864) | def function_type(func: FuncBase, fallback: Instance) -> FunctionLike:
function callable_type (line 891) | def callable_type(
function try_getting_str_literals (line 918) | def try_getting_str_literals(expr: Expression, typ: Type) -> list[str] |...
function try_getting_str_literals_from_type (line 937) | def try_getting_str_literals_from_type(typ: Type) -> list[str] | None:
function try_getting_int_literals_from_type (line 948) | def try_getting_int_literals_from_type(typ: Type) -> list[int] | None:
function try_getting_literals_from_type (line 962) | def try_getting_literals_from_type(
function is_literal_type_like (line 992) | def is_literal_type_like(t: Type | None) -> bool:
function is_singleton_type (line 1011) | def is_singleton_type(typ: Type) -> bool:
function try_expanding_sum_type_to_union (line 1031) | def try_expanding_sum_type_to_union(typ: Type, target_fullname: str) -> ...
function try_contracting_literals_in_union (line 1072) | def try_contracting_literals_in_union(types: Sequence[Type]) -> list[Pro...
function coerce_to_literal (line 1113) | def coerce_to_literal(typ: Type) -> Type:
function get_type_vars (line 1132) | def get_type_vars(tp: Type) -> list[TypeVarType]:
function get_all_type_vars (line 1136) | def get_all_type_vars(tp: Type) -> list[TypeVarLikeType]:
class TypeVarExtractor (line 1141) | class TypeVarExtractor(TypeQuery[list[TypeVarLikeType]]):
method __init__ (line 1142) | def __init__(self, include_all: bool = False) -> None:
method _merge (line 1146) | def _merge(self, iter: Iterable[list[TypeVarLikeType]]) -> list[TypeVa...
method visit_type_var (line 1152) | def visit_type_var(self, t: TypeVarType) -> list[TypeVarLikeType]:
method visit_param_spec (line 1155) | def visit_param_spec(self, t: ParamSpecType) -> list[TypeVarLikeType]:
method visit_type_var_tuple (line 1158) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> list[TypeVarLik...
function custom_special_method (line 1162) | def custom_special_method(typ: Type, name: str, check_all: bool = False)...
function separate_union_literals (line 1192) | def separate_union_literals(t: UnionType) -> tuple[Sequence[LiteralType]...
function try_getting_instance_fallback (line 1207) | def try_getting_instance_fallback(typ: Type) -> Instance | None:
function fixup_partial_type (line 1227) | def fixup_partial_type(typ: Type) -> Type:
function get_protocol_member (line 1241) | def get_protocol_member(left: Instance, member: str, class_obj: bool) ->...
class _get_type_type_item_Exception (line 1261) | class _get_type_type_item_Exception(Exception): # noqa: N801
function get_type_type_item (line 1265) | def get_type_type_item(t: ProperType) -> Type | None:
function is_callable (line 1282) | def is_callable(t: ProperType) -> t is FunctionLike | Instance if True e...
FILE: mypy/types.py
class TypeOfAny (line 186) | class TypeOfAny:
function deserialize_type (line 217) | def deserialize_type(data: JsonDict | str) -> Type:
class Type (line 227) | class Type(mypy.nodes.Context):
method __init__ (line 241) | def __init__(self, line: int = -1, column: int = -1) -> None:
method can_be_true (line 248) | def can_be_true(self) -> bool:
method can_be_true (line 254) | def can_be_true(self, v: bool) -> None:
method can_be_false (line 258) | def can_be_false(self) -> bool:
method can_be_false (line 264) | def can_be_false(self, v: bool) -> None:
method can_be_true_default (line 267) | def can_be_true_default(self) -> bool:
method can_be_false_default (line 270) | def can_be_false_default(self) -> bool:
method accept (line 273) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __repr__ (line 276) | def __repr__(self) -> str:
method str_with_options (line 279) | def str_with_options(self, options: Options) -> str:
method serialize (line 282) | def serialize(self) -> JsonDict | str:
method deserialize (line 286) | def deserialize(cls, data: JsonDict) -> Type:
method is_singleton_type (line 289) | def is_singleton_type(self) -> bool:
class TypeAliasType (line 293) | class TypeAliasType(Type):
method __init__ (line 310) | def __init__(
method _expand_once (line 322) | def _expand_once(self) -> Type:
method _partial_expansion (line 357) | def _partial_expansion(self, nothing_args: bool = False) -> tuple[Prop...
method expand_all_if_possible (line 368) | def expand_all_if_possible(self, nothing_args: bool = False) -> Proper...
method is_recursive (line 381) | def is_recursive(self) -> bool:
method can_be_true_default (line 398) | def can_be_true_default(self) -> bool:
method can_be_false_default (line 403) | def can_be_false_default(self) -> bool:
method accept (line 408) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 411) | def __hash__(self) -> int:
method __eq__ (line 414) | def __eq__(self, other: object) -> bool:
method serialize (line 420) | def serialize(self) -> JsonDict:
method deserialize (line 430) | def deserialize(cls, data: JsonDict) -> TypeAliasType:
method copy_modified (line 441) | def copy_modified(self, *, args: list[Type] | None = None) -> TypeAlia...
class TypeGuardedType (line 447) | class TypeGuardedType(Type):
method __init__ (line 452) | def __init__(self, type_guard: Type) -> None:
method __repr__ (line 456) | def __repr__(self) -> str:
class RequiredType (line 460) | class RequiredType(Type):
method __init__ (line 463) | def __init__(self, item: Type, *, required: bool) -> None:
method __repr__ (line 468) | def __repr__(self) -> str:
method accept (line 474) | def accept(self, visitor: TypeVisitor[T]) -> T:
class ReadOnlyType (line 478) | class ReadOnlyType(Type):
method __init__ (line 481) | def __init__(self, item: Type) -> None:
method __repr__ (line 485) | def __repr__(self) -> str:
method accept (line 488) | def accept(self, visitor: TypeVisitor[T]) -> T:
class ProperType (line 492) | class ProperType(Type):
class TypeVarId (line 501) | class TypeVarId:
method __init__ (line 527) | def __init__(self, raw_id: int, meta_level: int = 0, *, namespace: str...
method new (line 533) | def new(meta_level: int) -> TypeVarId:
method __repr__ (line 538) | def __repr__(self) -> str:
method __eq__ (line 541) | def __eq__(self, other: object) -> bool:
method __ne__ (line 549) | def __ne__(self, other: object) -> bool:
method __hash__ (line 552) | def __hash__(self) -> int:
method is_meta_var (line 555) | def is_meta_var(self) -> bool:
method is_self (line 558) | def is_self(self) -> bool:
class TypeVarLikeType (line 563) | class TypeVarLikeType(ProperType):
method __init__ (line 572) | def __init__(
method serialize (line 589) | def serialize(self) -> JsonDict:
method deserialize (line 593) | def deserialize(cls, data: JsonDict) -> TypeVarLikeType:
method copy_modified (line 596) | def copy_modified(self, *, id: TypeVarId, **kwargs: Any) -> Self:
method new_unification_variable (line 600) | def new_unification_variable(cls, old: Self) -> Self:
method has_default (line 604) | def has_default(self) -> bool:
class TypeVarType (line 609) | class TypeVarType(TypeVarLikeType):
method __init__ (line 617) | def __init__(
method copy_modified (line 636) | def copy_modified(
method accept (line 661) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 664) | def __hash__(self) -> int:
method __eq__ (line 667) | def __eq__(self, other: object) -> bool:
method serialize (line 676) | def serialize(self) -> JsonDict:
method deserialize (line 692) | def deserialize(cls, data: JsonDict) -> TypeVarType:
class ParamSpecFlavor (line 706) | class ParamSpecFlavor:
class ParamSpecType (line 715) | class ParamSpecType(TypeVarLikeType):
method __init__ (line 738) | def __init__(
method with_flavor (line 755) | def with_flavor(self, flavor: int) -> ParamSpecType:
method copy_modified (line 766) | def copy_modified(
method accept (line 787) | def accept(self, visitor: TypeVisitor[T]) -> T:
method name_with_suffix (line 790) | def name_with_suffix(self) -> str:
method __hash__ (line 798) | def __hash__(self) -> int:
method __eq__ (line 801) | def __eq__(self, other: object) -> bool:
method serialize (line 807) | def serialize(self) -> JsonDict:
method deserialize (line 822) | def deserialize(cls, data: JsonDict) -> ParamSpecType:
class TypeVarTupleType (line 835) | class TypeVarTupleType(TypeVarLikeType):
method __init__ (line 843) | def __init__(
method serialize (line 862) | def serialize(self) -> JsonDict:
method deserialize (line 877) | def deserialize(cls, data: JsonDict) -> TypeVarTupleType:
method accept (line 889) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 892) | def __hash__(self) -> int:
method __eq__ (line 895) | def __eq__(self, other: object) -> bool:
method copy_modified (line 900) | def copy_modified(
class UnboundType (line 922) | class UnboundType(ProperType):
method __init__ (line 935) | def __init__(
method copy_modified (line 975) | def copy_modified(self, args: Bogus[Sequence[Type] | None] = _dummy) -...
method accept (line 989) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 995) | def __hash__(self) -> int:
method __eq__ (line 998) | def __eq__(self, other: object) -> bool:
method serialize (line 1009) | def serialize(self) -> JsonDict:
method deserialize (line 1019) | def deserialize(cls, data: JsonDict) -> UnboundType:
class CallableArgument (line 1029) | class CallableArgument(ProperType):
method __init__ (line 1041) | def __init__(
method accept (line 1054) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 1059) | def serialize(self) -> JsonDict:
class TypeList (line 1063) | class TypeList(ProperType):
method __init__ (line 1076) | def __init__(self, items: list[Type], line: int = -1, column: int = -1...
method accept (line 1080) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 1085) | def serialize(self) -> JsonDict:
method __hash__ (line 1088) | def __hash__(self) -> int:
method __eq__ (line 1091) | def __eq__(self, other: object) -> bool:
class UnpackType (line 1095) | class UnpackType(ProperType):
method __init__ (line 1109) | def __init__(
method accept (line 1116) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 1119) | def serialize(self) -> JsonDict:
method deserialize (line 1123) | def deserialize(cls, data: JsonDict) -> UnpackType:
method __hash__ (line 1128) | def __hash__(self) -> int:
method __eq__ (line 1131) | def __eq__(self, other: object) -> bool:
class AnyType (line 1135) | class AnyType(ProperType):
method __init__ (line 1140) | def __init__(
method is_from_error (line 1172) | def is_from_error(self) -> bool:
method accept (line 1175) | def accept(self, visitor: TypeVisitor[T]) -> T:
method copy_modified (line 1178) | def copy_modified(
method __hash__ (line 1199) | def __hash__(self) -> int:
method __eq__ (line 1202) | def __eq__(self, other: object) -> bool:
method serialize (line 1205) | def serialize(self) -> JsonDict:
method deserialize (line 1214) | def deserialize(cls, data: JsonDict) -> AnyType:
method describe (line 1223) | def describe(self) -> str:
class UntypedType (line 1257) | class UntypedType(AnyType):
method __init__ (line 1258) | def __init__(
method describe (line 1274) | def describe(self) -> str:
class UninhabitedType (line 1280) | class UninhabitedType(ProperType):
method __init__ (line 1298) | def __init__(self, line: int = -1, column: int = -1) -> None:
method can_be_true_default (line 1302) | def can_be_true_default(self) -> bool:
method can_be_false_default (line 1305) | def can_be_false_default(self) -> bool:
method accept (line 1308) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 1311) | def __hash__(self) -> int:
method __eq__ (line 1314) | def __eq__(self, other: object) -> bool:
method serialize (line 1317) | def serialize(self) -> JsonDict:
method deserialize (line 1321) | def deserialize(cls, data: JsonDict) -> UninhabitedType:
class NoneType (line 1326) | class NoneType(ProperType):
method __init__ (line 1334) | def __init__(self, line: int = -1, column: int = -1) -> None:
method can_be_true_default (line 1337) | def can_be_true_default(self) -> bool:
method __hash__ (line 1340) | def __hash__(self) -> int:
method __eq__ (line 1343) | def __eq__(self, other: object) -> bool:
method accept (line 1346) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 1349) | def serialize(self) -> JsonDict:
method deserialize (line 1353) | def deserialize(cls, data: JsonDict) -> NoneType:
method is_singleton_type (line 1357) | def is_singleton_type(self) -> bool:
class ErasedType (line 1366) | class ErasedType(ProperType):
method accept (line 1375) | def accept(self, visitor: TypeVisitor[T]) -> T:
class DeletedType (line 1379) | class DeletedType(ProperType):
method __init__ (line 1389) | def __init__(self, source: str | None = None, line: int = -1, column: ...
method accept (line 1393) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 1396) | def serialize(self) -> JsonDict:
method deserialize (line 1400) | def deserialize(cls, data: JsonDict) -> DeletedType:
class TypeGuardType (line 1405) | class TypeGuardType(ProperType):
method __init__ (line 1417) | def __init__(self, target: str | int, type_guard: Type, is_evaluated=T...
method __repr__ (line 1426) | def __repr__(self) -> str:
method copy_modified (line 1432) | def copy_modified(self, type_guard: Bogus[Type] = _dummy) -> TypeGuard...
method target_desc (line 1441) | def target_desc(self) -> str | int:
method target_value (line 1452) | def target_value(self) -> int | str:
method target_is_class (line 1469) | def target_is_class(self) -> bool:
method target_is_self (line 1473) | def target_is_self(self) -> bool:
method target_is_positional (line 1477) | def target_is_positional(self) -> bool:
method accept (line 1480) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 1486) | def serialize(self) -> JsonDict | str:
method deserialize (line 1495) | def deserialize(cls, data: JsonDict) -> TypeGuardType:
class ExtraAttrs (line 1506) | class ExtraAttrs:
method __init__ (line 1513) | def __init__(
method __hash__ (line 1525) | def __hash__(self) -> int:
method __eq__ (line 1528) | def __eq__(self, other: object) -> bool:
method copy (line 1533) | def copy(self) -> ExtraAttrs:
method __repr__ (line 1536) | def __repr__(self) -> str:
method serialize (line 1539) | def serialize(self) -> JsonDict:
method deserialize (line 1548) | def deserialize(cls, data: JsonDict) -> ExtraAttrs:
class Instance (line 1557) | class Instance(ProperType):
method __init__ (line 1578) | def __init__(
method accept (line 1649) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 1652) | def __hash__(self) -> int:
method __eq__ (line 1657) | def __eq__(self, other: object) -> bool:
method serialize (line 1667) | def serialize(self) -> JsonDict | str:
method deserialize (line 1683) | def deserialize(cls, data: JsonDict | str) -> Instance:
method copy_modified (line 1702) | def copy_modified(
method copy_with_extra_attr (line 1724) | def copy_with_extra_attr(self, name: str, typ: Type) -> Instance:
method is_singleton_type (line 1734) | def is_singleton_type(self) -> bool:
class FunctionLike (line 1744) | class FunctionLike(ProperType):
method __init__ (line 1751) | def __init__(self, line: int = -1, column: int = -1) -> None:
method is_type_obj (line 1756) | def is_type_obj(self) -> bool:
method type_object (line 1760) | def type_object(self) -> mypy.nodes.TypeInfo:
method items (line 1765) | def items(self) -> list[CallableType]:
method with_name (line 1769) | def with_name(self, name: str) -> FunctionLike:
method get_name (line 1773) | def get_name(self) -> str | None:
method prefix (line 1777) | def prefix(self) -> str:
method fallback_name (line 1787) | def fallback_name(self) -> str:
method is_callable (line 1791) | def is_callable(self) -> bool:
method is_function (line 1795) | def is_function(self) -> bool:
method is_method (line 1799) | def is_method(self) -> bool:
method is_named (line 1803) | def is_named(self) -> bool:
class FormalArgument (line 1807) | class FormalArgument(NamedTuple):
class Parameters (line 1814) | class Parameters(ProperType):
method __init__ (line 1834) | def __init__(
method copy_modified (line 1857) | def copy_modified(
method var_arg (line 1883) | def var_arg(self) -> FormalArgument | None:
method kw_arg (line 1890) | def kw_arg(self) -> FormalArgument | None:
method formal_arguments (line 1897) | def formal_arguments(self, include_star_args: bool = False) -> list[Fo...
method argument_by_name (line 1920) | def argument_by_name(self, name: str | None) -> FormalArgument | None:
method argument_by_position (line 1937) | def argument_by_position(self, position: int | None) -> FormalArgument...
method try_synthesizing_arg_from_kwarg (line 1952) | def try_synthesizing_arg_from_kwarg(self, name: str | None) -> FormalA...
method try_synthesizing_arg_from_vararg (line 1959) | def try_synthesizing_arg_from_vararg(self, position: int | None) -> Fo...
method accept (line 1966) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 1969) | def serialize(self) -> JsonDict:
method deserialize (line 1980) | def deserialize(cls, data: JsonDict) -> Parameters:
method __hash__ (line 1990) | def __hash__(self) -> int:
method __eq__ (line 2000) | def __eq__(self, other: object) -> bool:
class CallableType (line 2015) | class CallableType(FunctionLike):
method __init__ (line 2048) | def __init__(
method copy_modified (line 2124) | def copy_modified(
method var_arg (line 2183) | def var_arg(self) -> FormalArgument | None:
method kw_arg (line 2190) | def kw_arg(self) -> FormalArgument | None:
method is_var_arg (line 2198) | def is_var_arg(self) -> bool:
method is_kw_arg (line 2203) | def is_kw_arg(self) -> bool:
method is_type_obj (line 2207) | def is_type_obj(self) -> bool:
method type_object (line 2212) | def type_object(self) -> mypy.nodes.TypeInfo:
method accept (line 2224) | def accept(self, visitor: TypeVisitor[T]) -> T:
method with_name (line 2227) | def with_name(self, name: str) -> CallableType:
method get_name (line 2231) | def get_name(self) -> str | None:
method max_possible_positional_args (line 2234) | def max_possible_positional_args(self) -> int:
method formal_arguments (line 2242) | def formal_arguments(self, include_star_args: bool = False) -> list[Fo...
method argument_by_name (line 2265) | def argument_by_name(self, name: str | None) -> FormalArgument | None:
method argument_by_position (line 2282) | def argument_by_position(self, position: int | None) -> FormalArgument...
method try_synthesizing_arg_from_kwarg (line 2297) | def try_synthesizing_arg_from_kwarg(self, name: str | None) -> FormalA...
method try_synthesizing_arg_from_vararg (line 2304) | def try_synthesizing_arg_from_vararg(self, position: int | None) -> Fo...
method items (line 2312) | def items(self) -> list[CallableType]:
method is_generic (line 2315) | def is_generic(self) -> bool:
method type_var_ids (line 2318) | def type_var_ids(self) -> list[TypeVarId]:
method param_spec (line 2324) | def param_spec(self) -> ParamSpecType | None:
method normalize_trivial_unpack (line 2343) | def normalize_trivial_unpack(self) -> None:
method with_unpacked_kwargs (line 2354) | def with_unpacked_kwargs(self) -> NormalizedCallableType:
method with_normalized_var_args (line 2375) | def with_normalized_var_args(self) -> Self:
method __hash__ (line 2441) | def __hash__(self) -> int:
method __eq__ (line 2460) | def __eq__(self, other: object) -> bool:
method serialize (line 2475) | def serialize(self) -> JsonDict:
method deserialize (line 2500) | def deserialize(cls, data: JsonDict) -> CallableType:
class Overloaded (line 2533) | class Overloaded(FunctionLike):
method __init__ (line 2546) | def __init__(self, items: list[CallableType]) -> None:
method items (line 2552) | def items(self) -> list[CallableType]:
method name (line 2555) | def name(self) -> str | None:
method is_type_obj (line 2558) | def is_type_obj(self) -> bool:
method type_object (line 2563) | def type_object(self) -> mypy.nodes.TypeInfo:
method with_name (line 2568) | def with_name(self, name: str) -> Overloaded:
method get_name (line 2574) | def get_name(self) -> str | None:
method with_unpacked_kwargs (line 2577) | def with_unpacked_kwargs(self) -> Overloaded:
method accept (line 2582) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 2585) | def __hash__(self) -> int:
method __eq__ (line 2588) | def __eq__(self, other: object) -> bool:
method serialize (line 2593) | def serialize(self) -> JsonDict:
method deserialize (line 2597) | def deserialize(cls, data: JsonDict) -> Overloaded:
class NamedOverloaded (line 2602) | class NamedOverloaded(Overloaded):
method __init__ (line 2605) | def __init__(self, items: list[CallableType], name: str):
method get_name (line 2609) | def get_name(self) -> str:
method serialize (line 2612) | def serialize(self) -> JsonDict:
method deserialize (line 2620) | def deserialize(cls, data: JsonDict) -> NamedOverloaded:
class TupleType (line 2625) | class TupleType(ProperType):
method __init__ (line 2644) | def __init__(
method can_be_true_default (line 2657) | def can_be_true_default(self) -> bool:
method can_be_false_default (line 2664) | def can_be_false_default(self) -> bool:
method can_be_any_bool (line 2682) | def can_be_any_bool(self) -> bool:
method length (line 2689) | def length(self) -> int:
method accept (line 2692) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 2695) | def __hash__(self) -> int:
method __eq__ (line 2698) | def __eq__(self, other: object) -> bool:
method serialize (line 2703) | def serialize(self) -> JsonDict:
method deserialize (line 2712) | def deserialize(cls, data: JsonDict) -> TupleType:
method copy_modified (line 2720) | def copy_modified(
method slice (line 2729) | def slice(
class TypedDictType (line 2786) | class TypedDictType(ProperType):
method __init__ (line 2823) | def __init__(
method accept (line 2842) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 2845) | def __hash__(self) -> int:
method __eq__ (line 2855) | def __eq__(self, other: object) -> bool:
method serialize (line 2871) | def serialize(self) -> JsonDict:
method deserialize (line 2881) | def deserialize(cls, data: JsonDict) -> TypedDictType:
method is_final (line 2891) | def is_final(self) -> bool:
method is_anonymous (line 2894) | def is_anonymous(self) -> bool:
method as_anonymous (line 2897) | def as_anonymous(self) -> TypedDictType:
method copy_modified (line 2903) | def copy_modified(
method create_anonymous_fallback (line 2927) | def create_anonymous_fallback(self) -> Instance:
method names_are_wider_than (line 2931) | def names_are_wider_than(self, other: TypedDictType) -> bool:
method zip (line 2934) | def zip(self, right: TypedDictType) -> Iterable[tuple[str, Type, Type]]:
method zipall (line 2941) | def zipall(self, right: TypedDictType) -> Iterable[tuple[str, Type | N...
class RawExpressionType (line 2952) | class RawExpressionType(ProperType):
method __init__ (line 2998) | def __init__(
method simple_name (line 3013) | def simple_name(self) -> str:
method accept (line 3016) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 3022) | def serialize(self) -> JsonDict:
method __hash__ (line 3025) | def __hash__(self) -> int:
method __eq__ (line 3028) | def __eq__(self, other: object) -> bool:
class LiteralType (line 3038) | class LiteralType(ProperType):
method __init__ (line 3056) | def __init__(
method can_be_false_default (line 3084) | def can_be_false_default(self) -> bool:
method can_be_true_default (line 3089) | def can_be_true_default(self) -> bool:
method accept (line 3094) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 3097) | def __hash__(self) -> int:
method __eq__ (line 3102) | def __eq__(self, other: object) -> bool:
method is_enum_literal (line 3108) | def is_enum_literal(self) -> bool:
method value_repr (line 3111) | def value_repr(self) -> str:
method serialize (line 3135) | def serialize(self) -> JsonDict | str:
method deserialize (line 3143) | def deserialize(cls, data: JsonDict) -> LiteralType:
method is_singleton_type (line 3147) | def is_singleton_type(self) -> bool:
class UnionType (line 3151) | class UnionType(ProperType):
method __init__ (line 3162) | def __init__(
method can_be_true_default (line 3185) | def can_be_true_default(self) -> bool:
method can_be_false_default (line 3188) | def can_be_false_default(self) -> bool:
method __hash__ (line 3191) | def __hash__(self) -> int:
method __eq__ (line 3194) | def __eq__(self, other: object) -> bool:
method make_union (line 3201) | def make_union(
method make_union (line 3207) | def make_union(items: Sequence[Type], line: int = -1, column: int = -1...
method make_union (line 3210) | def make_union(items: Sequence[Type], line: int = -1, column: int = -1...
method length (line 3218) | def length(self) -> int:
method accept (line 3221) | def accept(self, visitor: TypeVisitor[T]) -> T:
method relevant_items (line 3224) | def relevant_items(self) -> list[Type]:
method serialize (line 3231) | def serialize(self) -> JsonDict:
method deserialize (line 3239) | def deserialize(cls, data: JsonDict) -> UnionType:
class IntersectionType (line 3247) | class IntersectionType(ProperType):
method __init__ (line 3258) | def __init__(
method __hash__ (line 3278) | def __hash__(self) -> int:
method __eq__ (line 3281) | def __eq__(self, other: object) -> bool:
method make_intersection (line 3288) | def make_intersection(
method make_intersection (line 3294) | def make_intersection(items: Sequence[Type], line: int = ..., column: ...
method make_intersection (line 3297) | def make_intersection(items: Sequence[Type], line: int = -1, column: i...
method accept (line 3305) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 3308) | def serialize(self) -> JsonDict:
method deserialize (line 3312) | def deserialize(cls, data: JsonDict) -> IntersectionType:
class PartialType (line 3317) | class PartialType(ProperType):
method __init__ (line 3341) | def __init__(
method accept (line 3352) | def accept(self, visitor: TypeVisitor[T]) -> T:
class EllipsisType (line 3356) | class EllipsisType(ProperType):
method accept (line 3366) | def accept(self, visitor: TypeVisitor[T]) -> T:
method serialize (line 3371) | def serialize(self) -> JsonDict:
class TypeType (line 3375) | class TypeType(ProperType):
method __init__ (line 3409) | def __init__(
method make_normalized (line 3423) | def make_normalized(item: Type, *, line: int = -1, column: int = -1) -...
method accept (line 3439) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 3442) | def __hash__(self) -> int:
method __eq__ (line 3445) | def __eq__(self, other: object) -> bool:
method serialize (line 3450) | def serialize(self) -> JsonDict:
method deserialize (line 3454) | def deserialize(cls, data: JsonDict) -> Type:
class PlaceholderType (line 3459) | class PlaceholderType(ProperType):
method __init__ (line 3477) | def __init__(self, fullname: str | None, args: list[Type], line: int) ...
method accept (line 3482) | def accept(self, visitor: TypeVisitor[T]) -> T:
method __hash__ (line 3487) | def __hash__(self) -> int:
method __eq__ (line 3490) | def __eq__(self, other: object) -> bool:
method serialize (line 3495) | def serialize(self) -> str:
function get_proper_type (line 3502) | def get_proper_type(typ: None) -> None: ...
function get_proper_type (line 3506) | def get_proper_type(typ: Type) -> ProperType: ...
function get_proper_type (line 3509) | def get_proper_type(typ: Type | None) -> ProperType | None:
function get_proper_types (line 3529) | def get_proper_types(types: list[Type] | tuple[Type, ...]) -> list[Prope...
function get_proper_types (line 3533) | def get_proper_types(
function get_proper_types (line 3538) | def get_proper_types(
class TypeStrVisitor (line 3569) | class TypeStrVisitor(SyntheticTypeVisitor[str]):
method __init__ (line 3581) | def __init__(self, id_mapper: IdMapper | None = None, *, options: Opti...
method visit_unbound_type (line 3587) | def visit_unbound_type(self, t: UnboundType, /) -> str:
method visit_type_list (line 3593) | def visit_type_list(self, t: TypeList, /) -> str:
method visit_callable_argument (line 3596) | def visit_callable_argument(self, t: CallableArgument, /) -> str:
method visit_any (line 3603) | def visit_any(self, t: AnyType, /) -> str:
method visit_none_type (line 3608) | def visit_none_type(self, t: NoneType, /) -> str:
method visit_uninhabited_type (line 3611) | def visit_uninhabited_type(self, t: UninhabitedType, /) -> str:
method visit_erased_type (line 3614) | def visit_erased_type(self, t: ErasedType, /) -> str:
method visit_deleted_type (line 3617) | def visit_deleted_type(self, t: DeletedType, /) -> str:
method visit_instance (line 3623) | def visit_instance(self, t: Instance, /) -> str:
method strip_builtins (line 3648) | def strip_builtins(s: str) -> str:
method own_type_vars (line 3655) | def own_type_vars(
method visit_type_var (line 3666) | def visit_type_var(self, t: TypeVarType, /) -> str:
method visit_param_spec (line 3688) | def visit_param_spec(self, t: ParamSpecType, /) -> str:
method visit_parameters (line 3705) | def visit_parameters(self, t: Parameters, /) -> str:
method visit_type_var_tuple (line 3734) | def visit_type_var_tuple(self, t: TypeVarTupleType, /) -> str:
method visit_callable_type (line 3745) | def visit_callable_type(self, t: CallableType, /) -> str:
method render_callable_type_params (line 3817) | def render_callable_type_params(self, t: CallableType, renderer: Calla...
method visit_overloaded (line 3855) | def visit_overloaded(self, t: Overloaded, /) -> str:
method visit_tuple_type (line 3861) | def visit_tuple_type(self, t: TupleType, /) -> str:
method visit_typeddict_type (line 3872) | def visit_typeddict_type(self, t: TypedDictType, /) -> str:
method visit_raw_expression_type (line 3892) | def visit_raw_expression_type(self, t: RawExpressionType, /) -> str:
method visit_literal_type (line 3895) | def visit_literal_type(self, t: LiteralType, /) -> str:
method visit_union_type (line 3900) | def visit_union_type(self, t: UnionType, /) -> str:
method visit_intersection_type (line 3906) | def visit_intersection_type(self, t: IntersectionType) -> str:
method visit_partial_type (line 3909) | def visit_partial_type(self, t: PartialType, /) -> str:
method visit_ellipsis_type (line 3917) | def visit_ellipsis_type(self, t: EllipsisType, /) -> str:
method visit_type_type (line 3920) | def visit_type_type(self, t: TypeType, /) -> str:
method visit_placeholder_type (line 3927) | def visit_placeholder_type(self, t: PlaceholderType, /) -> str:
method visit_type_alias_type (line 3930) | def visit_type_alias_type(self, t: TypeAliasType, /) -> str:
method visit_unpack_type (line 3939) | def visit_unpack_type(self, t: UnpackType, /) -> str:
method list_str (line 3942) | def list_str(self, a: Iterable[Type]) -> str:
method union_str (line 3951) | def union_str(self, a: Iterable[Type]) -> str:
class TrivialSyntheticTypeTranslator (line 3963) | class TrivialSyntheticTypeTranslator(TypeTranslator, SyntheticTypeVisito...
method visit_placeholder_type (line 3966) | def visit_placeholder_type(self, t: PlaceholderType, /) -> Type:
method visit_callable_argument (line 3969) | def visit_callable_argument(self, t: CallableArgument, /) -> Type:
method visit_ellipsis_type (line 3972) | def visit_ellipsis_type(self, t: EllipsisType, /) -> Type:
method visit_raw_expression_type (line 3975) | def visit_raw_expression_type(self, t: RawExpressionType, /) -> Type:
method visit_type_list (line 3978) | def visit_type_list(self, t: TypeList, /) -> Type:
class UnrollAliasVisitor (line 3982) | class UnrollAliasVisitor(TrivialSyntheticTypeTranslator):
method __init__ (line 3983) | def __init__(
method visit_type_alias_type (line 3991) | def visit_type_alias_type(self, t: TypeAliasType) -> Type:
function is_named_instance (line 4006) | def is_named_instance(
class LocationSetter (line 4016) | class LocationSetter(TypeTraverserVisitor):
method __init__ (line 4018) | def __init__(self, line: int, column: int) -> None:
method visit_instance (line 4022) | def visit_instance(self, typ: Instance) -> None:
method visit_type_alias_type (line 4027) | def visit_type_alias_type(self, typ: TypeAliasType) -> None:
class HasTypeVars (line 4033) | class HasTypeVars(BoolTypeQuery):
method __init__ (line 4036) | def __init__(self) -> None:
method visit_type_var (line 4040) | def visit_type_var(self, t: TypeVarType) -> bool:
method visit_type_var_tuple (line 4043) | def visit_type_var_tuple(self, t: TypeVarTupleType) -> bool:
method visit_param_spec (line 4046) | def visit_param_spec(self, t: ParamSpecType) -> bool:
function has_type_vars (line 4050) | def has_type_vars(typ: Type) -> bool:
class HasRecursiveType (line 4055) | class HasRecursiveType(BoolTypeQuery):
method __init__ (line 4056) | def __init__(self) -> None:
method visit_type_alias_type (line 4059) | def visit_type_alias_type(self, t: TypeAliasType) -> bool:
function has_recursive_types (line 4067) | def has_recursive_types(typ: Type) -> bool:
function split_with_prefix_and_suffix (line 4073) | def split_with_prefix_and_suffix(
function extend_args_for_prefix_and_suffix (line 4084) | def extend_args_for_prefix_and_suffix(
function flatten_nested_unions (line 4112) | def flatten_nested_unions(
function find_unpack_in_list (line 4151) | def find_unpack_in_list(items: Sequence[Type]) -> int | None:
function flatten_nested_tuples (line 4165) | def flatten_nested_tuples(types: Sequence[Type]) -> list[Type]:
function is_literal_type (line 4186) | def is_literal_type(typ: ProperType, fallback_fullname: str, value: Lite...
function callable_with_ellipsis (line 4206) | def callable_with_ellipsis(any_type: AnyType, ret_type: Type, fallback: ...
function is_unannotated_any (line 4218) | def is_unannotated_any(t: Type) -> t is AnyType if True else False:
function remove_dups (line 4224) | def remove_dups(types: list[T]) -> list[T]:
function type_vars_as_args (line 4237) | def type_vars_as_args(type_vars: Sequence[TypeVarLikeType]) -> tuple[Typ...
class InstantiateAliasVisitor (line 4254) | class InstantiateAliasVisitor(ExpandTypeVisitor):
method visit_union_type (line 4255) | def visit_union_type(self, t: UnionType) -> Type:
FILE: mypy/types_utils.py
function flatten_types (line 37) | def flatten_types(types: Iterable[Type]) -> Iterable[Type]:
function strip_type (line 46) | def strip_type(typ: Type) -> Type:
function is_invalid_recursive_alias (line 58) | def is_invalid_recursive_alias(seen_nodes: set[TypeAlias], target: Type)...
function get_bad_type_type_item (line 80) | def get_bad_type_type_item(item: Type) -> str | None:
function is_union_with_any (line 109) | def is_union_with_any(tp: Type) -> bool:
function is_generic_instance (line 119) | def is_generic_instance(tp: Type) -> bool:
function is_overlapping_none (line 124) | def is_overlapping_none(t: Type) -> bool:
function remove_optional (line 131) | def remove_optional(typ: Type) -> Type:
function is_self_type_like (line 141) | def is_self_type_like(typ: Type, *, is_classmethod: bool) -> bool:
function store_argument_type (line 151) | def store_argument_type(
FILE: mypy/typeshed/stdlib/__future__.pyi
class _Feature (line 5) | class _Feature:
method __init__ (line 6) | def __init__(self, optionalRelease: _VersionInfo, mandatoryRelease: _V...
method getOptionalRelease (line 7) | def getOptionalRelease(self) -> _VersionInfo: ...
method getMandatoryRelease (line 8) | def getMandatoryRelease(self) -> _VersionInfo | None: ...
FILE: mypy/typeshed/stdlib/__main__.pyi
function __getattr__ (line 3) | def __getattr__(name: str) -> Any: ...
FILE: mypy/typeshed/stdlib/_asyncio.pyi
class Future (line 16) | class Future(Awaitable[_T], Iterable[_T]):
method _exception (line 19) | def _exception(self) -> BaseException | None: ...
method _log_traceback (line 22) | def _log_traceback(self) -> bool: ...
method _log_traceback (line 24) | def _log_traceback(self, val: Literal[False]) -> None: ...
method __init__ (line 26) | def __init__(self, *, loop: AbstractEventLoop | None = ...) -> None: ...
method __del__ (line 27) | def __del__(self) -> None: ...
method get_loop (line 28) | def get_loop(self) -> AbstractEventLoop: ...
method _callbacks (line 30) | def _callbacks(self) -> list[tuple[Callable[[Self], Any], Context]]: ...
method add_done_callback (line 31) | def add_done_callback(self, fn: Callable[[Self], object], /, *, contex...
method cancel (line 33) | def cancel(self, msg: Any | None = None) -> bool: ...
method cancel (line 35) | def cancel(self) -> bool: ...
method cancelled (line 37) | def cancelled(self) -> bool: ...
method done (line 38) | def done(self) -> bool: ...
method result (line 39) | def result(self) -> _T: ...
method exception (line 40) | def exception(self) -> BaseException | None: ...
method remove_done_callback (line 41) | def remove_done_callback(self, fn: Callable[[Self], object], /) -> int...
method set_result (line 42) | def set_result(self, result: _T, /) -> None: ...
method set_exception (line 43) | def set_exception(self, exception: type | BaseException, /) -> None: ...
method __iter__ (line 44) | def __iter__(self) -> Generator[Any, None, _T]: ...
method __await__ (line 45) | def __await__(self) -> Generator[Any, None, _T]: ...
method _loop (line 47) | def _loop(self) -> AbstractEventLoop: ...
method __class_getitem__ (line 49) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class Task (line 62) | class Task(Future[_T_co]): # type: ignore[type-var] # pyright: ignore[...
method __init__ (line 64) | def __init__(
method __init__ (line 74) | def __init__(
method __init__ (line 83) | def __init__(
method get_coro (line 88) | def get_coro(self) -> _TaskCompatibleCoro[_T_co] | None: ...
method get_coro (line 90) | def get_coro(self) -> _TaskCompatibleCoro[_T_co]: ...
method get_name (line 92) | def get_name(self) -> str: ...
method set_name (line 93) | def set_name(self, value: object, /) -> None: ...
method get_context (line 95) | def get_context(self) -> Context: ...
method get_stack (line 97) | def get_stack(self, *, limit: int | None = None) -> list[FrameType]: ...
method print_stack (line 98) | def print_stack(self, *, limit: int | None = None, file: TextIO | None...
method cancelling (line 100) | def cancelling(self) -> int: ...
method uncancel (line 101) | def uncancel(self) -> int: ...
method current_task (line 104) | def current_task(cls, loop: AbstractEventLoop | None = None) -> Task[A...
method all_tasks (line 106) | def all_tasks(cls, loop: AbstractEventLoop | None = None) -> set[Task[...
method __class_getitem__ (line 108) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function get_event_loop (line 110) | def get_event_loop() -> AbstractEventLoop: ...
function get_running_loop (line 111) | def get_running_loop() -> AbstractEventLoop: ...
function _set_running_loop (line 112) | def _set_running_loop(loop: AbstractEventLoop | None, /) -> None: ...
function _get_running_loop (line 113) | def _get_running_loop() -> AbstractEventLoop: ...
function _register_task (line 114) | def _register_task(task: Task[Any]) -> None: ...
function _unregister_task (line 115) | def _unregister_task(task: Task[Any]) -> None: ...
function _enter_task (line 116) | def _enter_task(loop: AbstractEventLoop, task: Task[Any]) -> None: ...
function _leave_task (line 117) | def _leave_task(loop: AbstractEventLoop, task: Task[Any]) -> None: ...
function current_task (line 120) | def current_task(loop: AbstractEventLoop | None = None) -> Task[Any] | N...
FILE: mypy/typeshed/stdlib/_bisect.pyi
function bisect_left (line 10) | def bisect_left(
function bisect_left (line 19) | def bisect_left(
function bisect_right (line 28) | def bisect_right(
function bisect_right (line 37) | def bisect_right(
function insort_left (line 46) | def insort_left(
function insort_left (line 55) | def insort_left(
function insort_right (line 59) | def insort_right(
function insort_right (line 68) | def insort_right(
function bisect_left (line 73) | def bisect_left(
function bisect_right (line 76) | def bisect_right(
function insort_left (line 79) | def insort_left(
function insort_right (line 82) | def insort_right(
FILE: mypy/typeshed/stdlib/_blake2.pyi
class blake2b (line 16) | class blake2b:
method __new__ (line 25) | def __new__(
method __new__ (line 44) | def __new__(
method copy (line 62) | def copy(self) -> Self: ...
method digest (line 63) | def digest(self) -> bytes: ...
method hexdigest (line 64) | def hexdigest(self) -> str: ...
method update (line 65) | def update(self, data: ReadableBuffer, /) -> None: ...
class blake2s (line 68) | class blake2s:
method __new__ (line 77) | def __new__(
method __new__ (line 96) | def __new__(
method copy (line 114) | def copy(self) -> Self: ...
method digest (line 115) | def digest(self) -> bytes: ...
method hexdigest (line 116) | def hexdigest(self) -> str: ...
method update (line 117) | def update(self, data: ReadableBuffer, /) -> None: ...
FILE: mypy/typeshed/stdlib/_bootlocale.pyi
function getpreferredencoding (line 1) | def getpreferredencoding(do_setlocale: bool = True) -> str: ...
FILE: mypy/typeshed/stdlib/_bz2.pyi
class BZ2Compressor (line 7) | class BZ2Compressor:
method __new__ (line 9) | def __new__(cls, compresslevel: int = 9, /) -> Self: ...
method __init__ (line 11) | def __init__(self, compresslevel: int = 9, /) -> None: ...
method compress (line 13) | def compress(self, data: ReadableBuffer, /) -> bytes: ...
method flush (line 14) | def flush(self) -> bytes: ...
class BZ2Decompressor (line 17) | class BZ2Decompressor:
method decompress (line 18) | def decompress(self, data: ReadableBuffer, max_length: int = -1) -> by...
method eof (line 20) | def eof(self) -> bool: ...
method needs_input (line 22) | def needs_input(self) -> bool: ...
method unused_data (line 24) | def unused_data(self) -> bytes: ...
FILE: mypy/typeshed/stdlib/_codecs.pyi
class _EncodingMap (line 12) | class _EncodingMap:
method size (line 13) | def size(self) -> int: ...
function register (line 19) | def register(search_function: _SearchFunction, /) -> None: ...
function unregister (line 22) | def unregister(search_function: _SearchFunction, /) -> None: ...
function register_error (line 24) | def register_error(errors: str, handler: _Handler, /) -> None: ...
function lookup_error (line 25) | def lookup_error(name: str, /) -> _Handler: ...
function encode (line 51) | def encode(obj: ReadableBuffer, encoding: _BytesToBytesEncoding, errors:...
function encode (line 53) | def encode(obj: str, encoding: _StrToStrEncoding, errors: str = "strict"...
function encode (line 55) | def encode(obj: str, encoding: str = "utf-8", errors: str = "strict") ->...
function decode (line 57) | def decode(obj: ReadableBuffer, encoding: _BytesToBytesEncoding, errors:...
function decode (line 59) | def decode(obj: str, encoding: _StrToStrEncoding, errors: str = "strict"...
function decode (line 63) | def decode(
function decode (line 71) | def decode(obj: str, encoding: Literal["hex", "hex_codec"], errors: str ...
function decode (line 73) | def decode(obj: ReadableBuffer, encoding: str = "utf-8", errors: str = "...
function lookup (line 74) | def lookup(encoding: str, /) -> codecs.CodecInfo: ...
function charmap_build (line 75) | def charmap_build(map: str, /) -> _CharMap: ...
function ascii_decode (line 76) | def ascii_decode(data: ReadableBuffer, errors: str | None = None, /) -> ...
function ascii_encode (line 77) | def ascii_encode(str: str, errors: str | None = None, /) -> tuple[bytes,...
function charmap_decode (line 78) | def charmap_decode(data: ReadableBuffer, errors: str | None = None, mapp...
function charmap_encode (line 79) | def charmap_encode(str: str, errors: str | None = None, mapping: _CharMa...
function escape_decode (line 80) | def escape_decode(data: str | ReadableBuffer, errors: str | None = None,...
function escape_encode (line 81) | def escape_encode(data: bytes, errors: str | None = None, /) -> tuple[by...
function latin_1_decode (line 82) | def latin_1_decode(data: ReadableBuffer, errors: str | None = None, /) -...
function latin_1_encode (line 83) | def latin_1_encode(str: str, errors: str | None = None, /) -> tuple[byte...
function raw_unicode_escape_decode (line 86) | def raw_unicode_escape_decode(
function raw_unicode_escape_decode (line 91) | def raw_unicode_escape_decode(data: str | ReadableBuffer, errors: str | ...
function raw_unicode_escape_encode (line 93) | def raw_unicode_escape_encode(str: str, errors: str | None = None, /) ->...
function readbuffer_encode (line 94) | def readbuffer_encode(data: str | ReadableBuffer, errors: str | None = N...
function unicode_escape_decode (line 97) | def unicode_escape_decode(
function unicode_escape_decode (line 102) | def unicode_escape_decode(data: str | ReadableBuffer, errors: str | None...
function unicode_escape_encode (line 104) | def unicode_escape_encode(str: str, errors: str | None = None, /) -> tup...
function utf_16_be_decode (line 105) | def utf_16_be_decode(data: ReadableBuffer, errors: str | None = None, fi...
function utf_16_be_encode (line 106) | def utf_16_be_encode(str: str, errors: str | None = None, /) -> tuple[by...
function utf_16_decode (line 107) | def utf_16_decode(data: ReadableBuffer, errors: str | None = None, final...
function utf_16_encode (line 108) | def utf_16_encode(str: str, errors: str | None = None, byteorder: int = ...
function utf_16_ex_decode (line 109) | def utf_16_ex_decode(
function utf_16_le_decode (line 112) | def utf_16_le_decode(data: ReadableBuffer, errors: str | None = None, fi...
function utf_16_le_encode (line 113) | def utf_16_le_encode(str: str, errors: str | None = None, /) -> tuple[by...
function utf_32_be_decode (line 114) | def utf_32_be_decode(data: ReadableBuffer, errors: str | None = None, fi...
function utf_32_be_encode (line 115) | def utf_32_be_encode(str: str, errors: str | None = None, /) -> tuple[by...
function utf_32_decode (line 116) | def utf_32_decode(data: ReadableBuffer, errors: str | None = None, final...
function utf_32_encode (line 117) | def utf_32_encode(str: str, errors: str | None = None, byteorder: int = ...
function utf_32_ex_decode (line 118) | def utf_32_ex_decode(
function utf_32_le_decode (line 121) | def utf_32_le_decode(data: ReadableBuffer, errors: str | None = None, fi...
function utf_32_le_encode (line 122) | def utf_32_le_encode(str: str, errors: str | None = None, /) -> tuple[by...
function utf_7_decode (line 123) | def utf_7_decode(data: ReadableBuffer, errors: str | None = None, final:...
function utf_7_encode (line 124) | def utf_7_encode(str: str, errors: str | None = None, /) -> tuple[bytes,...
function utf_8_decode (line 125) | def utf_8_decode(data: ReadableBuffer, errors: str | None = None, final:...
function utf_8_encode (line 126) | def utf_8_encode(str: str, errors: str | None = None, /) -> tuple[bytes,...
function mbcs_decode (line 129) | def mbcs_decode(data: ReadableBuffer, errors: str | None = None, final: ...
function mbcs_encode (line 130) | def mbcs_encode(str: str, errors: str | None = None, /) -> tuple[bytes, ...
function code_page_decode (line 131) | def code_page_decode(
function code_page_encode (line 134) | def code_page_encode(code_page: int, str: str, errors: str | None = None...
function oem_decode (line 135) | def oem_decode(data: ReadableBuffer, errors: str | None = None, final: b...
function oem_encode (line 136) | def oem_encode(str: str, errors: str | None = None, /) -> tuple[bytes, i...
FILE: mypy/typeshed/stdlib/_collections_abc.pyi
class dict_keys (line 75) | class dict_keys(KeysView[_KT_co], Generic[_KT_co, _VT_co]): # undocumented
method __eq__ (line 76) | def __eq__(self, value: object, /) -> bool: ...
method __reversed__ (line 77) | def __reversed__(self) -> Iterator[_KT_co]: ...
method isdisjoint (line 80) | def isdisjoint(self, other: Iterable[_KT_co], /) -> bool: ... # type...
method mapping (line 83) | def mapping(self) -> MappingProxyType[_KT_co, _VT_co]: ...
class dict_values (line 86) | class dict_values(ValuesView[_VT_co], Generic[_KT_co, _VT_co]): # undoc...
method __reversed__ (line 87) | def __reversed__(self) -> Iterator[_VT_co]: ...
method mapping (line 90) | def mapping(self) -> MappingProxyType[_KT_co, _VT_co]: ...
class dict_items (line 93) | class dict_items(ItemsView[_KT_co, _VT_co]): # undocumented
method __eq__ (line 94) | def __eq__(self, value: object, /) -> bool: ...
method __reversed__ (line 95) | def __reversed__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
method isdisjoint (line 98) | def isdisjoint(self, other: Iterable[tuple[_KT_co, _VT_co]], /) -> boo...
method mapping (line 101) | def mapping(self) -> MappingProxyType[_KT_co, _VT_co]: ...
class Buffer (line 105) | class Buffer(Protocol):
method __buffer__ (line 107) | def __buffer__(self, flags: int, /) -> memoryview: ...
FILE: mypy/typeshed/stdlib/_compression.pyi
class _Reader (line 8) | class _Reader(Protocol):
method read (line 9) | def read(self, n: int, /) -> bytes: ...
method seekable (line 10) | def seekable(self) -> bool: ...
method seek (line 11) | def seek(self, n: int, /) -> Any: ...
class BaseStream (line 13) | class BaseStream(BufferedIOBase): ...
class DecompressReader (line 15) | class DecompressReader(RawIOBase):
method __init__ (line 16) | def __init__(
method readinto (line 23) | def readinto(self, b: WriteableBuffer) -> int: ...
method read (line 24) | def read(self, size: int = -1) -> bytes: ...
method seek (line 25) | def seek(self, offset: int, whence: int = 0) -> int: ...
FILE: mypy/typeshed/stdlib/_contextvars.pyi
class ContextVar (line 14) | class ContextVar(Generic[_T]):
method __new__ (line 16) | def __new__(cls, name: str) -> Self: ...
method __new__ (line 18) | def __new__(cls, name: str, *, default: _T) -> Self: ...
method __hash__ (line 19) | def __hash__(self) -> int: ...
method name (line 21) | def name(self) -> str: ...
method get (line 23) | def get(self) -> _T: ...
method get (line 25) | def get(self, default: _T, /) -> _T: ...
method get (line 27) | def get(self, default: _D, /) -> _D | _T: ...
method set (line 28) | def set(self, value: _T, /) -> Token[_T]: ...
method reset (line 29) | def reset(self, token: Token[_T], /) -> None: ...
method __class_getitem__ (line 31) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class Token (line 34) | class Token(Generic[_T]):
method var (line 36) | def var(self) -> ContextVar[_T]: ...
method old_value (line 38) | def old_value(self) -> Any: ... # returns either _T or MISSING, but t...
method __class_getitem__ (line 42) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function copy_context (line 44) | def copy_context() -> Context: ...
class Context (line 49) | class Context(Mapping[ContextVar[Any], Any]):
method __init__ (line 50) | def __init__(self) -> None: ...
method get (line 52) | def get(self, key: ContextVar[_T], default: None = None, /) -> _T | No...
method get (line 54) | def get(self, key: ContextVar[_T], default: _T, /) -> _T: ...
method get (line 56) | def get(self, key: ContextVar[_T], default: _D, /) -> _T | _D: ...
method run (line 57) | def run(self, callable: Callable[_P, _T], *args: _P.args, **kwargs: _P...
method copy (line 58) | def copy(self) -> Context: ...
method __getitem__ (line 60) | def __getitem__(self, key: ContextVar[_T], /) -> _T: ...
method __iter__ (line 61) | def __iter__(self) -> Iterator[ContextVar[Any]]: ...
method __len__ (line 62) | def __len__(self) -> int: ...
method __eq__ (line 63) | def __eq__(self, value: object, /) -> bool: ...
FILE: mypy/typeshed/stdlib/_csv.pyi
class Error (line 22) | class Error(Exception): ...
class Dialect (line 26) | class Dialect:
method __new__ (line 35) | def __new__(
class Reader (line 50) | class Reader:
method dialect (line 52) | def dialect(self) -> Dialect: ...
method __iter__ (line 54) | def __iter__(self) -> Self: ...
method __next__ (line 55) | def __next__(self) -> list[str]: ...
class Writer (line 58) | class Writer:
method dialect (line 60) | def dialect(self) -> Dialect: ...
method writerow (line 62) | def writerow(self, row: Iterable[Any], /) -> Any: ...
method writerows (line 63) | def writerows(self, rows: Iterable[Iterable[Any]], /) -> None: ...
method writerow (line 65) | def writerow(self, row: Iterable[Any]) -> Any: ...
method writerows (line 66) | def writerows(self, rows: Iterable[Iterable[Any]]) -> None: ...
class _reader (line 75) | class _reader:
method dialect (line 77) | def dialect(self) -> Dialect: ...
method __iter__ (line 79) | def __iter__(self) -> Self: ...
method __next__ (line 80) | def __next__(self) -> list[str]: ...
class _writer (line 84) | class _writer:
method dialect (line 86) | def dialect(self) -> Dialect: ...
method writerow (line 87) | def writerow(self, row: Iterable[Any]) -> Any: ...
method writerows (line 88) | def writerows(self, rows: Iterable[Iterable[Any]]) -> None: ...
function writer (line 90) | def writer(
function reader (line 103) | def reader(
function register_dialect (line 116) | def register_dialect(
function unregister_dialect (line 129) | def unregister_dialect(name: str) -> None: ...
function get_dialect (line 130) | def get_dialect(name: str) -> Dialect: ...
function list_dialects (line 131) | def list_dialects() -> list[str]: ...
function field_size_limit (line 132) | def field_size_limit(new_limit: int = ...) -> int: ...
FILE: mypy/typeshed/stdlib/_ctypes.pyi
class COMError (line 33) | class COMError(Exception):
method __init__ (line 38) | def __init__(self, hresult: int, text: str | None, details: _COMError_...
function CopyComPointer (line 40) | def CopyComPointer(src: _PointerLike, dst: _PointerLike | _CArgObject) -...
function FormatError (line 45) | def FormatError(code: int = ...) -> str: ...
function get_last_error (line 46) | def get_last_error() -> int: ...
function set_last_error (line 47) | def set_last_error(value: int) -> int: ...
function LoadLibrary (line 48) | def LoadLibrary(name: str, load_flags: int = 0, /) -> int: ...
function FreeLibrary (line 49) | def FreeLibrary(handle: int, /) -> None: ...
function dlclose (line 52) | def dlclose(handle: int, /) -> None: ...
function dlopen (line 54) | def dlopen(name: StrOrBytesPath, flag: int = ..., /) -> int: ...
function dlsym (line 55) | def dlsym(handle: int, name: str, /) -> int: ...
class _CType_Type (line 60) | class _CType_Type(type):
method __mul__ (line 64) | def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # ty...
method __rmul__ (line 65) | def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # t...
class _CData (line 74) | class _CData:
method __buffer__ (line 78) | def __buffer__(self, flags: int, /) -> memoryview: ...
method __ctypes_from_outparam__ (line 79) | def __ctypes_from_outparam__(self, /) -> Self: ...
class _PyCSimpleType (line 88) | class _PyCSimpleType(_CTypeBaseType):
method from_address (line 89) | def from_address(self: type[_typeshed.Self], value: int, /) -> _typesh...
method from_buffer (line 90) | def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offs...
method from_buffer_copy (line 91) | def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffe...
method from_param (line 92) | def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed...
method in_dll (line 93) | def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _ty...
method __mul__ (line 96) | def __mul__(self: type[_CT], value: int, /) -> type[Array[_CT]]: ... ...
method __rmul__ (line 97) | def __rmul__(self: type[_CT], value: int, /) -> type[Array[_CT]]: ... ...
class _SimpleCData (line 99) | class _SimpleCData(_CData, Generic[_T], metaclass=_PyCSimpleType):
method __init__ (line 103) | def __init__(self, value: _T = ...) -> None: ... # pyright: ignore[re...
method __ctypes_from_outparam__ (line 104) | def __ctypes_from_outparam__(self, /) -> _T: ... # type: ignore[overr...
class _CanCastTo (line 106) | class _CanCastTo(_CData): ...
class _PointerLike (line 107) | class _PointerLike(_CanCastTo): ...
class _PyCPointerType (line 111) | class _PyCPointerType(_CTypeBaseType):
method from_address (line 112) | def from_address(self: type[_typeshed.Self], value: int, /) -> _typesh...
method from_buffer (line 113) | def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offs...
method from_buffer_copy (line 114) | def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffe...
method from_param (line 115) | def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed...
method in_dll (line 116) | def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _ty...
method set_type (line 117) | def set_type(self, type: Any, /) -> None: ...
method __mul__ (line 120) | def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # ty...
method __rmul__ (line 121) | def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # t...
class _Pointer (line 123) | class _Pointer(_PointerLike, _CData, Generic[_CT], metaclass=_PyCPointer...
method __init__ (line 127) | def __init__(self) -> None: ...
method __init__ (line 129) | def __init__(self, arg: _CT) -> None: ...
method __getitem__ (line 131) | def __getitem__(self, key: int, /) -> Any: ...
method __getitem__ (line 133) | def __getitem__(self, key: slice, /) -> list[Any]: ...
method __setitem__ (line 134) | def __setitem__(self, key: int, value: Any, /) -> None: ...
function POINTER (line 137) | def POINTER(type: None, /) -> type[c_void_p]: ...
function POINTER (line 139) | def POINTER(type: type[_CT], /) -> type[_Pointer[_CT]]: ...
function pointer (line 140) | def pointer(obj: _CT, /) -> _Pointer[_CT]: ...
class _CArgObject (line 145) | class _CArgObject: ...
function byref (line 147) | def byref(obj: _CData | _CDataType, offset: int = ...) -> _CArgObject: ...
class _PyCFuncPtrType (line 154) | class _PyCFuncPtrType(_CTypeBaseType):
method from_address (line 155) | def from_address(self: type[_typeshed.Self], value: int, /) -> _typesh...
method from_buffer (line 156) | def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offs...
method from_buffer_copy (line 157) | def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffe...
method from_param (line 158) | def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed...
method in_dll (line 159) | def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _ty...
method __mul__ (line 162) | def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # ty...
method __rmul__ (line 163) | def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # t...
class CFuncPtr (line 165) | class CFuncPtr(_PointerLike, _CData, metaclass=_PyCFuncPtrType):
method __new__ (line 172) | def __new__(cls) -> Self: ...
method __new__ (line 174) | def __new__(cls, address: int, /) -> Self: ...
method __new__ (line 176) | def __new__(cls, callable: Callable[..., Any], /) -> Self: ...
method __new__ (line 178) | def __new__(cls, func_spec: tuple[str | int, CDLL], paramflags: tuple[...
method __new__ (line 181) | def __new__(
method __call__ (line 185) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
class _CField (line 193) | class _CField(Generic[_CT, _GetT, _SetT]):
method __get__ (line 198) | def __get__(self, instance: None, owner: type[Any] | None = None, /) -...
method __get__ (line 200) | def __get__(self, instance: Any, owner: type[Any] | None = None, /) ->...
method __get__ (line 203) | def __get__(self, instance: None, owner: type[Any] | None, /) -> Self:...
method __get__ (line 205) | def __get__(self, instance: Any, owner: type[Any] | None, /) -> _GetT:...
method __set__ (line 207) | def __set__(self, instance: Any, value: _SetT, /) -> None: ...
class _UnionType (line 211) | class _UnionType(_CTypeBaseType):
method from_address (line 212) | def from_address(self: type[_typeshed.Self], value: int, /) -> _typesh...
method from_buffer (line 213) | def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offs...
method from_buffer_copy (line 214) | def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffe...
method from_param (line 215) | def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed...
method in_dll (line 216) | def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _ty...
method __getattr__ (line 220) | def __getattr__(self, name: str) -> _CField[Any, Any, Any]: ...
method __mul__ (line 223) | def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # ty...
method __rmul__ (line 224) | def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # t...
class Union (line 226) | class Union(_CData, metaclass=_UnionType):
method __init__ (line 233) | def __init__(self, *args: Any, **kw: Any) -> None: ...
method __getattr__ (line 234) | def __getattr__(self, name: str) -> Any: ...
method __setattr__ (line 235) | def __setattr__(self, name: str, value: Any) -> None: ...
class _PyCStructType (line 239) | class _PyCStructType(_CTypeBaseType):
method from_address (line 240) | def from_address(self: type[_typeshed.Self], value: int, /) -> _typesh...
method from_buffer (line 241) | def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offs...
method from_buffer_copy (line 242) | def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffe...
method from_param (line 243) | def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed...
method in_dll (line 244) | def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _ty...
method __getattr__ (line 248) | def __getattr__(self, name: str) -> _CField[Any, Any, Any]: ...
method __mul__ (line 251) | def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # ty...
method __rmul__ (line 252) | def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # t...
class Structure (line 254) | class Structure(_CData, metaclass=_PyCStructType):
method __init__ (line 261) | def __init__(self, *args: Any, **kw: Any) -> None: ...
method __getattr__ (line 262) | def __getattr__(self, name: str) -> Any: ...
method __setattr__ (line 263) | def __setattr__(self, name: str, value: Any) -> None: ...
class _PyCArrayType (line 267) | class _PyCArrayType(_CTypeBaseType):
method from_address (line 268) | def from_address(self: type[_typeshed.Self], value: int, /) -> _typesh...
method from_buffer (line 269) | def from_buffer(self: type[_typeshed.Self], obj: WriteableBuffer, offs...
method from_buffer_copy (line 270) | def from_buffer_copy(self: type[_typeshed.Self], buffer: ReadableBuffe...
method from_param (line 271) | def from_param(self: type[_typeshed.Self], value: Any, /) -> _typeshed...
method in_dll (line 272) | def in_dll(self: type[_typeshed.Self], dll: CDLL, name: str, /) -> _ty...
method __mul__ (line 275) | def __mul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # ty...
method __rmul__ (line 276) | def __rmul__(cls: type[_CT], other: int) -> type[Array[_CT]]: ... # t...
class Array (line 278) | class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
method _length_ (line 281) | def _length_(self) -> int: ...
method _length_ (line 283) | def _length_(self, value: int) -> None: ...
method _type_ (line 286) | def _type_(self) -> type[_CT]: ...
method _type_ (line 288) | def _type_(self, value: type[_CT]) -> None: ...
method __init__ (line 303) | def __init__(self, *args: Any) -> None: ...
method __getitem__ (line 305) | def __getitem__(self, key: int, /) -> Any: ...
method __getitem__ (line 307) | def __getitem__(self, key: slice, /) -> list[Any]: ...
method __setitem__ (line 309) | def __setitem__(self, key: int, value: Any, /) -> None: ...
method __setitem__ (line 311) | def __setitem__(self, key: slice, value: Iterable[Any], /) -> None: ...
method __iter__ (line 312) | def __iter__(self) -> Iterator[Any]: ...
method __len__ (line 315) | def __len__(self) -> int: ...
method __class_getitem__ (line 317) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function addressof (line 319) | def addressof(obj: _CData | _CDataType, /) -> int: ...
function alignment (line 320) | def alignment(obj_or_type: _CData | _CDataType | type[_CData | _CDataTyp...
function get_errno (line 321) | def get_errno() -> int: ...
function resize (line 322) | def resize(obj: _CData | _CDataType, size: int, /) -> None: ...
function set_errno (line 323) | def set_errno(value: int, /) -> int: ...
function sizeof (line 324) | def sizeof(obj_or_type: _CData | _CDataType | type[_CData | _CDataType],...
function PyObj_FromPtr (line 325) | def PyObj_FromPtr(address: int, /) -> Any: ...
function Py_DECREF (line 326) | def Py_DECREF(o: _T, /) -> _T: ...
function Py_INCREF (line 327) | def Py_INCREF(o: _T, /) -> _T: ...
function buffer_info (line 328) | def buffer_info(o: _CData | _CDataType | type[_CData | _CDataType], /) -...
function call_cdeclfunction (line 329) | def call_cdeclfunction(address: int, arguments: tuple[Any, ...], /) -> A...
function call_function (line 330) | def call_function(address: int, arguments: tuple[Any, ...], /) -> Any: ...
FILE: mypy/typeshed/stdlib/_curses.pyi
function baudrate (line 278) | def baudrate() -> int: ...
function beep (line 279) | def beep() -> None: ...
function can_change_color (line 280) | def can_change_color() -> bool: ...
function cbreak (line 281) | def cbreak(flag: bool = True, /) -> None: ...
function color_content (line 282) | def color_content(color_number: int, /) -> tuple[int, int, int]: ...
function color_pair (line 283) | def color_pair(pair_number: int, /) -> int: ...
function curs_set (line 284) | def curs_set(visibility: int, /) -> int: ...
function def_prog_mode (line 285) | def def_prog_mode() -> None: ...
function def_shell_mode (line 286) | def def_shell_mode() -> None: ...
function delay_output (line 287) | def delay_output(ms: int, /) -> None: ...
function doupdate (line 288) | def doupdate() -> None: ...
function echo (line 289) | def echo(flag: bool = True, /) -> None: ...
function endwin (line 290) | def endwin() -> None: ...
function erasechar (line 291) | def erasechar() -> bytes: ...
function filter (line 292) | def filter() -> None: ...
function flash (line 293) | def flash() -> None: ...
function flushinp (line 294) | def flushinp() -> None: ...
function get_escdelay (line 297) | def get_escdelay() -> int: ...
function get_tabsize (line 298) | def get_tabsize() -> int: ...
function getmouse (line 300) | def getmouse() -> tuple[int, int, int, int, int]: ...
function getsyx (line 301) | def getsyx() -> tuple[int, int]: ...
function getwin (line 302) | def getwin(file: SupportsRead[bytes], /) -> window: ...
function halfdelay (line 303) | def halfdelay(tenths: int, /) -> None: ...
function has_colors (line 304) | def has_colors() -> bool: ...
function has_extended_color_support (line 307) | def has_extended_color_support() -> bool: ...
function has_ic (line 309) | def has_ic() -> bool: ...
function has_il (line 310) | def has_il() -> bool: ...
function has_key (line 311) | def has_key(key: int, /) -> bool: ...
function init_color (line 312) | def init_color(color_number: int, r: int, g: int, b: int, /) -> None: ...
function init_pair (line 313) | def init_pair(pair_number: int, fg: int, bg: int, /) -> None: ...
function initscr (line 314) | def initscr() -> window: ...
function intrflush (line 315) | def intrflush(flag: bool, /) -> None: ...
function is_term_resized (line 316) | def is_term_resized(nlines: int, ncols: int, /) -> bool: ...
function isendwin (line 317) | def isendwin() -> bool: ...
function keyname (line 318) | def keyname(key: int, /) -> bytes: ...
function killchar (line 319) | def killchar() -> bytes: ...
function longname (line 320) | def longname() -> bytes: ...
function meta (line 321) | def meta(yes: bool, /) -> None: ...
function mouseinterval (line 322) | def mouseinterval(interval: int, /) -> None: ...
function mousemask (line 323) | def mousemask(newmask: int, /) -> tuple[int, int]: ...
function napms (line 324) | def napms(ms: int, /) -> int: ...
function newpad (line 325) | def newpad(nlines: int, ncols: int, /) -> window: ...
function newwin (line 326) | def newwin(nlines: int, ncols: int, begin_y: int = ..., begin_x: int = ....
function nl (line 327) | def nl(flag: bool = True, /) -> None: ...
function nocbreak (line 328) | def nocbreak() -> None: ...
function noecho (line 329) | def noecho() -> None: ...
function nonl (line 330) | def nonl() -> None: ...
function noqiflush (line 331) | def noqiflush() -> None: ...
function noraw (line 332) | def noraw() -> None: ...
function pair_content (line 333) | def pair_content(pair_number: int, /) -> tuple[int, int]: ...
function pair_number (line 334) | def pair_number(attr: int, /) -> int: ...
function putp (line 335) | def putp(string: ReadOnlyBuffer, /) -> None: ...
function qiflush (line 336) | def qiflush(flag: bool = True, /) -> None: ...
function raw (line 337) | def raw(flag: bool = True, /) -> None: ...
function reset_prog_mode (line 338) | def reset_prog_mode() -> None: ...
function reset_shell_mode (line 339) | def reset_shell_mode() -> None: ...
function resetty (line 340) | def resetty() -> None: ...
function resize_term (line 341) | def resize_term(nlines: int, ncols: int, /) -> None: ...
function resizeterm (line 342) | def resizeterm(nlines: int, ncols: int, /) -> None: ...
function savetty (line 343) | def savetty() -> None: ...
function set_escdelay (line 346) | def set_escdelay(ms: int, /) -> None: ...
function set_tabsize (line 347) | def set_tabsize(size: int, /) -> None: ...
function setsyx (line 349) | def setsyx(y: int, x: int, /) -> None: ...
function setupterm (line 350) | def setupterm(term: str | None = None, fd: int = -1) -> None: ...
function start_color (line 351) | def start_color() -> None: ...
function termattrs (line 352) | def termattrs() -> int: ...
function termname (line 353) | def termname() -> bytes: ...
function tigetflag (line 354) | def tigetflag(capname: str, /) -> int: ...
function tigetnum (line 355) | def tigetnum(capname: str, /) -> int: ...
function tigetstr (line 356) | def tigetstr(capname: str, /) -> bytes | None: ...
function tparm (line 357) | def tparm(
function typeahead (line 370) | def typeahead(fd: int, /) -> None: ...
function unctrl (line 371) | def unctrl(ch: _ChType, /) -> bytes: ...
function unget_wch (line 372) | def unget_wch(ch: int | str, /) -> None: ...
function ungetch (line 373) | def ungetch(ch: _ChType, /) -> None: ...
function ungetmouse (line 374) | def ungetmouse(id: int, x: int, y: int, z: int, bstate: int, /) -> None:...
function update_lines_cols (line 375) | def update_lines_cols() -> None: ...
function use_default_colors (line 376) | def use_default_colors() -> None: ...
function use_env (line 377) | def use_env(flag: bool, /) -> None: ...
class error (line 379) | class error(Exception): ...
class window (line 382) | class window: # undocumented
method addch (line 385) | def addch(self, ch: _ChType, attr: int = ...) -> None: ...
method addch (line 387) | def addch(self, y: int, x: int, ch: _ChType, attr: int = ...) -> None:...
method addnstr (line 389) | def addnstr(self, str: str, n: int, attr: int = ...) -> None: ...
method addnstr (line 391) | def addnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -...
method addstr (line 393) | def addstr(self, str: str, attr: int = ...) -> None: ...
method addstr (line 395) | def addstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...
method attroff (line 396) | def attroff(self, attr: int, /) -> None: ...
method attron (line 397) | def attron(self, attr: int, /) -> None: ...
method attrset (line 398) | def attrset(self, attr: int, /) -> None: ...
method bkgd (line 399) | def bkgd(self, ch: _ChType, attr: int = ..., /) -> None: ...
method bkgdset (line 400) | def bkgdset(self, ch: _ChType, attr: int = ..., /) -> None: ...
method border (line 401) | def border(
method box (line 413) | def box(self) -> None: ...
method box (line 415) | def box(self, vertch: _ChType = ..., horch: _ChType = ...) -> None: ...
method chgat (line 417) | def chgat(self, attr: int) -> None: ...
method chgat (line 419) | def chgat(self, num: int, attr: int) -> None: ...
method chgat (line 421) | def chgat(self, y: int, x: int, attr: int) -> None: ...
method chgat (line 423) | def chgat(self, y: int, x: int, num: int, attr: int) -> None: ...
method clear (line 424) | def clear(self) -> None: ...
method clearok (line 425) | def clearok(self, yes: int) -> None: ...
method clrtobot (line 426) | def clrtobot(self) -> None: ...
method clrtoeol (line 427) | def clrtoeol(self) -> None: ...
method cursyncup (line 428) | def cursyncup(self) -> None: ...
method delch (line 430) | def delch(self) -> None: ...
method delch (line 432) | def delch(self, y: int, x: int) -> None: ...
method deleteln (line 433) | def deleteln(self) -> None: ...
method derwin (line 435) | def derwin(self, begin_y: int, begin_x: int) -> window: ...
method derwin (line 437) | def derwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) ...
method echochar (line 438) | def echochar(self, ch: _ChType, attr: int = ..., /) -> None: ...
method enclose (line 439) | def enclose(self, y: int, x: int, /) -> bool: ...
method erase (line 440) | def erase(self) -> None: ...
method getbegyx (line 441) | def getbegyx(self) -> tuple[int, int]: ...
method getbkgd (line 442) | def getbkgd(self) -> tuple[int, int]: ...
method getch (line 444) | def getch(self) -> int: ...
method getch (line 446) | def getch(self, y: int, x: int) -> int: ...
method get_wch (line 448) | def get_wch(self) -> int | str: ...
method get_wch (line 450) | def get_wch(self, y: int, x: int) -> int | str: ...
method getkey (line 452) | def getkey(self) -> str: ...
method getkey (line 454) | def getkey(self, y: int, x: int) -> str: ...
method getmaxyx (line 455) | def getmaxyx(self) -> tuple[int, int]: ...
method getparyx (line 456) | def getparyx(self) -> tuple[int, int]: ...
method getstr (line 458) | def getstr(self) -> bytes: ...
method getstr (line 460) | def getstr(self, n: int) -> bytes: ...
method getstr (line 462) | def getstr(self, y: int, x: int) -> bytes: ...
method getstr (line 464) | def getstr(self, y: int, x: int, n: int) -> bytes: ...
method getyx (line 465) | def getyx(self) -> tuple[int, int]: ...
method hline (line 467) | def hline(self, ch: _ChType, n: int) -> None: ...
method hline (line 469) | def hline(self, y: int, x: int, ch: _ChType, n: int) -> None: ...
method idcok (line 470) | def idcok(self, flag: bool) -> None: ...
method idlok (line 471) | def idlok(self, yes: bool) -> None: ...
method immedok (line 472) | def immedok(self, flag: bool) -> None: ...
method inch (line 474) | def inch(self) -> int: ...
method inch (line 476) | def inch(self, y: int, x: int) -> int: ...
method insch (line 478) | def insch(self, ch: _ChType, attr: int = ...) -> None: ...
method insch (line 480) | def insch(self, y: int, x: int, ch: _ChType, attr: int = ...) -> None:...
method insdelln (line 481) | def insdelln(self, nlines: int) -> None: ...
method insertln (line 482) | def insertln(self) -> None: ...
method insnstr (line 484) | def insnstr(self, str: str, n: int, attr: int = ...) -> None: ...
method insnstr (line 486) | def insnstr(self, y: int, x: int, str: str, n: int, attr: int = ...) -...
method insstr (line 488) | def insstr(self, str: str, attr: int = ...) -> None: ...
method insstr (line 490) | def insstr(self, y: int, x: int, str: str, attr: int = ...) -> None: ...
method instr (line 492) | def instr(self, n: int = ...) -> bytes: ...
method instr (line 494) | def instr(self, y: int, x: int, n: int = ...) -> bytes: ...
method is_linetouched (line 495) | def is_linetouched(self, line: int, /) -> bool: ...
method is_wintouched (line 496) | def is_wintouched(self) -> bool: ...
method keypad (line 497) | def keypad(self, yes: bool, /) -> None: ...
method leaveok (line 498) | def leaveok(self, yes: bool) -> None: ...
method move (line 499) | def move(self, new_y: int, new_x: int) -> None: ...
method mvderwin (line 500) | def mvderwin(self, y: int, x: int) -> None: ...
method mvwin (line 501) | def mvwin(self, new_y: int, new_x: int) -> None: ...
method nodelay (line 502) | def nodelay(self, yes: bool) -> None: ...
method notimeout (line 503) | def notimeout(self, yes: bool) -> None: ...
method noutrefresh (line 505) | def noutrefresh(self) -> None: ...
method noutrefresh (line 507) | def noutrefresh(self, pminrow: int, pmincol: int, sminrow: int, sminco...
method overlay (line 509) | def overlay(self, destwin: window) -> None: ...
method overlay (line 511) | def overlay(
method overwrite (line 515) | def overwrite(self, destwin: window) -> None: ...
method overwrite (line 517) | def overwrite(
method putwin (line 520) | def putwin(self, file: SupportsWrite[bytes], /) -> None: ...
method redrawln (line 521) | def redrawln(self, beg: int, num: int, /) -> None: ...
method redrawwin (line 522) | def redrawwin(self) -> None: ...
method refresh (line 524) | def refresh(self) -> None: ...
method refresh (line 526) | def refresh(self, pminrow: int, pmincol: int, sminrow: int, smincol: i...
method resize (line 527) | def resize(self, nlines: int, ncols: int) -> None: ...
method scroll (line 528) | def scroll(self, lines: int = ...) -> None: ...
method scrollok (line 529) | def scrollok(self, flag: bool) -> None: ...
method setscrreg (line 530) | def setscrreg(self, top: int, bottom: int, /) -> None: ...
method standend (line 531) | def standend(self) -> None: ...
method standout (line 532) | def standout(self) -> None: ...
method subpad (line 534) | def subpad(self, begin_y: int, begin_x: int) -> window: ...
method subpad (line 536) | def subpad(self, nlines: int, ncols: int, begin_y: int, begin_x: int) ...
method subwin (line 538) | def subwin(self, begin_y: int, begin_x: int) -> window: ...
method subwin (line 540) | def subwin(self, nlines: int, ncols: int, begin_y: int, begin_x: int) ...
method syncdown (line 541) | def syncdown(self) -> None: ...
method syncok (line 542) | def syncok(self, flag: bool) -> None: ...
method syncup (line 543) | def syncup(self) -> None: ...
method timeout (line 544) | def timeout(self, delay: int) -> None: ...
method touchline (line 545) | def touchline(self, start: int, count: int, changed: bool = ...) -> No...
method touchwin (line 546) | def touchwin(self) -> None: ...
method untouchwin (line 547) | def untouchwin(self) -> None: ...
method vline (line 549) | def vline(self, ch: _ChType, n: int) -> None: ...
method vline (line 551) | def vline(self, y: int, x: int, ch: _ChType, n: int) -> None: ...
FILE: mypy/typeshed/stdlib/_curses_panel.pyi
class error (line 7) | class error(Exception): ...
class panel (line 10) | class panel:
method above (line 11) | def above(self) -> panel: ...
method below (line 12) | def below(self) -> panel: ...
method bottom (line 13) | def bottom(self) -> None: ...
method hidden (line 14) | def hidden(self) -> bool: ...
method hide (line 15) | def hide(self) -> None: ...
method move (line 16) | def move(self, y: int, x: int, /) -> None: ...
method replace (line 17) | def replace(self, win: window, /) -> None: ...
method set_userptr (line 18) | def set_userptr(self, obj: object, /) -> None: ...
method show (line 19) | def show(self) -> None: ...
method top (line 20) | def top(self) -> None: ...
method userptr (line 21) | def userptr(self) -> object: ...
method window (line 22) | def window(self) -> window: ...
function bottom_panel (line 24) | def bottom_panel() -> panel: ...
function new_panel (line 25) | def new_panel(win: window, /) -> panel: ...
function top_panel (line 26) | def top_panel() -> panel: ...
function update_panels (line 27) | def update_panels() -> panel: ...
FILE: mypy/typeshed/stdlib/_dbm.pyi
class error (line 12) | class error(OSError): ...
class _dbm (line 18) | class _dbm:
method close (line 19) | def close(self) -> None: ...
method clear (line 21) | def clear(self) -> None: ...
method __getitem__ (line 23) | def __getitem__(self, item: _KeyType) -> bytes: ...
method __setitem__ (line 24) | def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...
method __delitem__ (line 25) | def __delitem__(self, key: _KeyType) -> None: ...
method __len__ (line 26) | def __len__(self) -> int: ...
method __enter__ (line 27) | def __enter__(self) -> Self: ...
method __exit__ (line 28) | def __exit__(
method get (line 32) | def get(self, k: _KeyType, /) -> bytes | None: ...
method get (line 34) | def get(self, k: _KeyType, default: _T, /) -> bytes | _T: ...
method keys (line 35) | def keys(self) -> list[bytes]: ...
method setdefault (line 36) | def setdefault(self, k: _KeyType, default: _ValueType = ..., /) -> byt...
function open (line 42) | def open(filename: StrOrBytesPath, flags: str = "r", mode: int = 0o666, ...
function open (line 44) | def open(filename: str, flags: str = "r", mode: int = 0o666, /) -> _dbm:...
FILE: mypy/typeshed/stdlib/_decimal.pyi
function setcontext (line 45) | def setcontext(context: Context, /) -> None: ...
function getcontext (line 46) | def getcontext() -> Context: ...
function localcontext (line 49) | def localcontext(
function localcontext (line 63) | def localcontext(ctx: Context | None = None) -> _ContextManager: ...
FILE: mypy/typeshed/stdlib/_dummy_thread.pyi
function start_new_thread (line 14) | def start_new_thread(function: Callable[[Unpack[_Ts]], object], args: tu...
function start_new_thread (line 16) | def start_new_thread(function: Callable[..., object], args: tuple[Any, ....
function exit (line 17) | def exit() -> NoReturn: ...
function get_ident (line 18) | def get_ident() -> int: ...
function allocate_lock (line 19) | def allocate_lock() -> LockType: ...
function stack_size (line 20) | def stack_size(size: int | None = None) -> int: ...
class LockType (line 22) | class LockType:
method acquire (line 24) | def acquire(self, waitflag: bool | None = None, timeout: int = -1) -> ...
method __enter__ (line 25) | def __enter__(self, waitflag: bool | None = None, timeout: int = -1) -...
method __exit__ (line 26) | def __exit__(self, typ: type[BaseException] | None, val: BaseException...
method release (line 27) | def release(self) -> bool: ...
method locked (line 28) | def locked(self) -> bool: ...
class RLock (line 30) | class RLock(LockType):
method release (line 31) | def release(self) -> None: ... # type: ignore[override]
function interrupt_main (line 33) | def interrupt_main() -> None: ...
FILE: mypy/typeshed/stdlib/_dummy_threading.pyi
function active_count (line 48) | def active_count() -> int: ...
function current_thread (line 49) | def current_thread() -> Thread: ...
function currentThread (line 50) | def currentThread() -> Thread: ...
function get_ident (line 51) | def get_ident() -> int: ...
function enumerate (line 52) | def enumerate() -> list[Thread]: ...
function main_thread (line 53) | def main_thread() -> Thread: ...
function settrace (line 54) | def settrace(func: TraceFunction) -> None: ...
function setprofile (line 55) | def setprofile(func: ProfileFunction | None) -> None: ...
function stack_size (line 56) | def stack_size(size: int | None = None) -> int: ...
FILE: mypy/typeshed/stdlib/_frozen_importlib.pyi
function __import__ (line 11) | def __import__(
function spec_from_loader (line 18) | def spec_from_loader(
function module_from_spec (line 21) | def module_from_spec(spec: importlib.machinery.ModuleSpec) -> types.Modu...
function _init_module_attrs (line 22) | def _init_module_attrs(
class ModuleSpec (line 26) | class ModuleSpec:
method __init__ (line 27) | def __init__(
method parent (line 43) | def parent(self) -> str | None: ...
method __eq__ (line 45) | def __eq__(self, other: object) -> bool: ...
class BuiltinImporter (line 48) | class BuiltinImporter(importlib.abc.MetaPathFinder, importlib.abc.Inspec...
method find_module (line 52) | def find_module(cls, fullname: str, path: Sequence[str] | None = None)...
method find_spec (line 55) | def find_spec(
method is_package (line 60) | def is_package(cls, fullname: str) -> bool: ...
method load_module (line 62) | def load_module(cls, fullname: str) -> types.ModuleType: ...
method get_code (line 64) | def get_code(cls, fullname: str) -> None: ...
method get_source (line 66) | def get_source(cls, fullname: str) -> None: ...
method module_repr (line 70) | def module_repr(module: types.ModuleType) -> str: ...
method create_module (line 73) | def create_module(spec: ModuleSpec) -> types.ModuleType | None: ...
method exec_module (line 75) | def exec_module(module: types.ModuleType) -> None: ...
method create_module (line 78) | def create_module(cls, spec: ModuleSpec) -> types.ModuleType | None: ...
method exec_module (line 80) | def exec_module(cls, module: types.ModuleType) -> None: ...
class FrozenImporter (line 82) | class FrozenImporter(importlib.abc.MetaPathFinder, importlib.abc.Inspect...
method find_module (line 86) | def find_module(cls, fullname: str, path: Sequence[str] | None = None)...
method find_spec (line 89) | def find_spec(
method is_package (line 94) | def is_package(cls, fullname: str) -> bool: ...
method load_module (line 96) | def load_module(cls, fullname: str) -> types.ModuleType: ...
method get_code (line 98) | def get_code(cls, fullname: str) -> None: ...
method get_source (line 100) | def get_source(cls, fullname: str) -> None: ...
method module_repr (line 104) | def module_repr(m: types.ModuleType) -> str: ... # type: ignore[overri...
method create_module (line 107) | def create_module(spec: ModuleSpec) -> types.ModuleType | None: ...
method create_module (line 110) | def create_module(cls, spec: ModuleSpec) -> types.ModuleType | None: ...
method exec_module (line 113) | def exec_module(module: types.ModuleType) -> None: ...
FILE: mypy/typeshed/stdlib/_frozen_importlib_external.pyi
function cache_from_source (line 29) | def cache_from_source(path: str, debug_override: bool | None = None, *, ...
function source_from_cache (line 30) | def source_from_cache(path: str) -> str: ...
function decode_source (line 31) | def decode_source(source_bytes: ReadableBuffer) -> str: ...
function spec_from_file_location (line 32) | def spec_from_file_location(
class WindowsRegistryFinder (line 40) | class WindowsRegistryFinder(importlib.abc.MetaPathFinder):
method find_module (line 43) | def find_module(cls, fullname: str, path: Sequence[str] | None = None)...
method find_spec (line 46) | def find_spec(
class PathFinder (line 50) | class PathFinder(importlib.abc.MetaPathFinder):
method invalidate_caches (line 53) | def invalidate_caches() -> None: ...
method invalidate_caches (line 56) | def invalidate_caches(cls) -> None: ...
method find_distributions (line 59) | def find_distributions(context: DistributionFinder.Context = ...) -> I...
method find_distributions (line 62) | def find_distributions(cls, context: DistributionFinder.Context = ...)...
method find_spec (line 65) | def find_spec(
method find_module (line 70) | def find_module(cls, fullname: str, path: Sequence[str] | None = None)...
class FileFinder (line 78) | class FileFinder(importlib.abc.PathEntryFinder):
method __init__ (line 80) | def __init__(self, path: str, *loader_details: tuple[type[importlib.ab...
method path_hook (line 82) | def path_hook(
class _LoaderBasics (line 86) | class _LoaderBasics:
method is_package (line 87) | def is_package(self, fullname: str) -> bool: ...
method create_module (line 88) | def create_module(self, spec: ModuleSpec) -> types.ModuleType | None: ...
method exec_module (line 89) | def exec_module(self, module: types.ModuleType) -> None: ...
method load_module (line 90) | def load_module(self, fullname: str) -> types.ModuleType: ...
class SourceLoader (line 92) | class SourceLoader(_LoaderBasics):
method path_mtime (line 93) | def path_mtime(self, path: str) -> float: ...
method set_data (line 94) | def set_data(self, path: str, data: bytes) -> None: ...
method get_source (line 95) | def get_source(self, fullname: str) -> str | None: ...
method path_stats (line 96) | def path_stats(self, path: str) -> Mapping[str, Any]: ...
method source_to_code (line 97) | def source_to_code(
method get_code (line 100) | def get_code(self, fullname: str) -> types.CodeType | None: ...
class FileLoader (line 102) | class FileLoader:
method __init__ (line 105) | def __init__(self, fullname: str, path: str) -> None: ...
method get_data (line 106) | def get_data(self, path: str) -> bytes: ...
method get_filename (line 107) | def get_filename(self, name: str | None = None) -> str: ...
method load_module (line 108) | def load_module(self, name: str | None = None) -> types.ModuleType: ...
method get_resource_reader (line 110) | def get_resource_reader(self, name: str | None = None) -> importlib.re...
method get_resource_reader (line 112) | def get_resource_reader(self, name: str | None = None) -> Self | None:...
method open_resource (line 113) | def open_resource(self, resource: str) -> _io.FileIO: ...
method resource_path (line 114) | def resource_path(self, resource: str) -> str: ...
method is_resource (line 115) | def is_resource(self, name: str) -> bool: ...
method contents (line 116) | def contents(self) -> Iterator[str]: ...
class SourceFileLoader (line 118) | class SourceFileLoader(importlib.abc.FileLoader, FileLoader, importlib.a...
method set_data (line 119) | def set_data(self, path: str, data: ReadableBuffer, *, _mode: int = 0o...
method path_stats (line 120) | def path_stats(self, path: str) -> Mapping[str, Any]: ...
class SourcelessFileLoader (line 122) | class SourcelessFileLoader(importlib.abc.FileLoader, FileLoader, _Loader...
method get_code (line 123) | def get_code(self, fullname: str) -> types.CodeType | None: ...
method get_source (line 124) | def get_source(self, fullname: str) -> None: ...
class ExtensionFileLoader (line 126) | class ExtensionFileLoader(FileLoader, _LoaderBasics, importlib.abc.Execu...
method __init__ (line 127) | def __init__(self, name: str, path: str) -> None: ...
method get_filename (line 128) | def get_filename(self, name: str | None = None) -> str: ... # type: i...
method get_source (line 129) | def get_source(self, fullname: str) -> None: ...
method create_module (line 130) | def create_module(self, spec: ModuleSpec) -> types.ModuleType: ...
method exec_module (line 131) | def exec_module(self, module: types.ModuleType) -> None: ...
method get_code (line 132) | def get_code(self, fullname: str) -> None: ...
method __eq__ (line 133) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 134) | def __hash__(self) -> int: ...
class NamespaceLoader (line 137) | class NamespaceLoader(importlib.abc.InspectLoader):
method __init__ (line 138) | def __init__(
method is_package (line 141) | def is_package(self, fullname: str) -> Literal[True]: ...
method get_source (line 142) | def get_source(self, fullname: str) -> Literal[""]: ...
method get_code (line 143) | def get_code(self, fullname: str) -> types.CodeType: ...
method create_module (line 144) | def create_module(self, spec: ModuleSpec) -> None: ...
method exec_module (line 145) | def exec_module(self, module: types.ModuleType) -> None: ...
method load_module (line 147) | def load_module(self, fullname: str) -> types.ModuleType: ...
method get_resource_reader (line 148) | def get_resource_reader(self, module: types.ModuleType) -> importlib.r...
method module_repr (line 152) | def module_repr(module: types.ModuleType) -> str: ...
class _NamespaceLoader (line 156) | class _NamespaceLoader:
method __init__ (line 157) | def __init__(
method is_package (line 160) | def is_package(self, fullname: str) -> Literal[True]: ...
method get_source (line 161) | def get_source(self, fullname: str) -> Literal[""]: ...
method get_code (line 162) | def get_code(self, fullname: str) -> types.CodeType: ...
method create_module (line 163) | def create_module(self, spec: ModuleSpec) -> None: ...
method exec_module (line 164) | def exec_module(self, module: types.ModuleType) -> None: ...
method load_module (line 166) | def load_module(self, fullname: str) -> types.ModuleType: ...
method module_repr (line 170) | def module_repr(module: types.ModuleType) -> str: ...
method get_resource_reader (line 171) | def get_resource_reader(self, module: types.ModuleType) -> importlib.r...
method module_repr (line 175) | def module_repr(cls, module: types.ModuleType) -> str: ...
class AppleFrameworkLoader (line 178) | class AppleFrameworkLoader(ExtensionFileLoader, importlib.abc.ExecutionL...
FILE: mypy/typeshed/stdlib/_gdbm.pyi
class error (line 14) | class error(OSError): ...
class _gdbm (line 16) | class _gdbm:
method firstkey (line 17) | def firstkey(self) -> bytes | None: ...
method nextkey (line 18) | def nextkey(self, key: _KeyType) -> bytes | None: ...
method reorganize (line 19) | def reorganize(self) -> None: ...
method sync (line 20) | def sync(self) -> None: ...
method close (line 21) | def close(self) -> None: ...
method clear (line 23) | def clear(self) -> None: ...
method __getitem__ (line 25) | def __getitem__(self, item: _KeyType) -> bytes: ...
method __setitem__ (line 26) | def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...
method __delitem__ (line 27) | def __delitem__(self, key: _KeyType) -> None: ...
method __contains__ (line 28) | def __contains__(self, key: _KeyType) -> bool: ...
method __len__ (line 29) | def __len__(self) -> int: ...
method __enter__ (line 30) | def __enter__(self) -> Self: ...
method __exit__ (line 31) | def __exit__(
method get (line 35) | def get(self, k: _KeyType) -> bytes | None: ...
method get (line 37) | def get(self, k: _KeyType, default: _T) -> bytes | _T: ...
method keys (line 38) | def keys(self) -> list[bytes]: ...
method setdefault (line 39) | def setdefault(self, k: _KeyType, default: _ValueType = ...) -> bytes:...
function open (line 45) | def open(filename: StrOrBytesPath, flags: str = "r", mode: int = 0o666, ...
function open (line 47) | def open(filename: str, flags: str = "r", mode: int = 0o666, /) -> _gdbm...
FILE: mypy/typeshed/stdlib/_hashlib.pyi
class HASH (line 12) | class HASH:
method digest_size (line 14) | def digest_size(self) -> int: ...
method block_size (line 16) | def block_size(self) -> int: ...
method name (line 18) | def name(self) -> str: ...
method copy (line 19) | def copy(self) -> Self: ...
method digest (line 20) | def digest(self) -> bytes: ...
method hexdigest (line 21) | def hexdigest(self) -> str: ...
method update (line 22) | def update(self, obj: ReadableBuffer, /) -> None: ...
class UnsupportedDigestmodError (line 25) | class UnsupportedDigestmodError(ValueError): ...
class HASHXOF (line 28) | class HASHXOF(HASH):
method digest (line 29) | def digest(self, length: int) -> bytes: ... # type: ignore[override]
method hexdigest (line 30) | def hexdigest(self, length: int) -> str: ... # type: ignore[override]
class HMAC (line 33) | class HMAC:
method digest_size (line 35) | def digest_size(self) -> int: ...
method block_size (line 37) | def block_size(self) -> int: ...
method name (line 39) | def name(self) -> str: ...
method copy (line 40) | def copy(self) -> Self: ...
method digest (line 41) | def digest(self) -> bytes: ...
method hexdigest (line 42) | def hexdigest(self) -> str: ...
method update (line 43) | def update(self, msg: ReadableBuffer) -> None: ...
function compare_digest (line 46) | def compare_digest(a: ReadableBuffer, b: ReadableBuffer, /) -> bool: ...
function compare_digest (line 48) | def compare_digest(a: AnyStr, b: AnyStr, /) -> bool: ...
function get_fips_mode (line 49) | def get_fips_mode() -> int: ...
function hmac_new (line 50) | def hmac_new(key: bytes | bytearray, msg: ReadableBuffer = b"", digestmo...
function new (line 51) | def new(name: str, string: ReadableBuffer = b"", *, usedforsecurity: boo...
function openssl_md5 (line 52) | def openssl_md5(string: ReadableBuffer = b"", *, usedforsecurity: bool =...
function openssl_sha1 (line 53) | def openssl_sha1(string: ReadableBuffer = b"", *, usedforsecurity: bool ...
function openssl_sha224 (line 54) | def openssl_sha224(string: ReadableBuffer = b"", *, usedforsecurity: boo...
function openssl_sha256 (line 55) | def openssl_sha256(string: ReadableBuffer = b"", *, usedforsecurity: boo...
function openssl_sha384 (line 56) | def openssl_sha384(string: ReadableBuffer = b"", *, usedforsecurity: boo...
function openssl_sha512 (line 57) | def openssl_sha512(string: ReadableBuffer = b"", *, usedforsecurity: boo...
function openssl_sha3_224 (line 58) | def openssl_sha3_224(string: ReadableBuffer = b"", *, usedforsecurity: b...
function openssl_sha3_256 (line 59) | def openssl_sha3_256(string: ReadableBuffer = b"", *, usedforsecurity: b...
function openssl_sha3_384 (line 60) | def openssl_sha3_384(string: ReadableBuffer = b"", *, usedforsecurity: b...
function openssl_sha3_512 (line 61) | def openssl_sha3_512(string: ReadableBuffer = b"", *, usedforsecurity: b...
function openssl_shake_128 (line 62) | def openssl_shake_128(string: ReadableBuffer = b"", *, usedforsecurity: ...
function openssl_shake_256 (line 63) | def openssl_shake_256(string: ReadableBuffer = b"", *, usedforsecurity: ...
function new (line 66) | def new(name: str, string: ReadableBuffer = b"") -> HASH: ...
function openssl_md5 (line 67) | def openssl_md5(string: ReadableBuffer = b"") -> HASH: ...
function openssl_sha1 (line 68) | def openssl_sha1(string: ReadableBuffer = b"") -> HASH: ...
function openssl_sha224 (line 69) | def openssl_sha224(string: ReadableBuffer = b"") -> HASH: ...
function openssl_sha256 (line 70) | def openssl_sha256(string: ReadableBuffer = b"") -> HASH: ...
function openssl_sha384 (line 71) | def openssl_sha384(string: ReadableBuffer = b"") -> HASH: ...
function openssl_sha512 (line 72) | def openssl_sha512(string: ReadableBuffer = b"") -> HASH: ...
function hmac_digest (line 74) | def hmac_digest(key: bytes | bytearray, msg: ReadableBuffer, digest: str...
function pbkdf2_hmac (line 75) | def pbkdf2_hmac(
function scrypt (line 78) | def scrypt(
FILE: mypy/typeshed/stdlib/_heapq.pyi
function heapify (line 7) | def heapify(heap: list[Any], /) -> None: ...
function heappop (line 8) | def heappop(heap: list[_T], /) -> _T: ...
function heappush (line 9) | def heappush(heap: list[_T], item: _T, /) -> None: ...
function heappushpop (line 10) | def heappushpop(heap: list[_T], item: _T, /) -> _T: ...
function heapreplace (line 11) | def heapreplace(heap: list[_T], item: _T, /) -> _T: ...
FILE: mypy/typeshed/stdlib/_imp.pyi
function source_hash (line 9) | def source_hash(key: int, source: ReadableBuffer) -> bytes: ...
function create_builtin (line 10) | def create_builtin(spec: ModuleSpec, /) -> types.ModuleType: ...
function create_dynamic (line 11) | def create_dynamic(spec: ModuleSpec, file: Any = None, /) -> types.Modul...
function acquire_lock (line 12) | def acquire_lock() -> None: ...
function exec_builtin (line 13) | def exec_builtin(mod: types.ModuleType, /) -> int: ...
function exec_dynamic (line 14) | def exec_dynamic(mod: types.ModuleType, /) -> int: ...
function extension_suffixes (line 15) | def extension_suffixes() -> list[str]: ...
function init_frozen (line 16) | def init_frozen(name: str, /) -> types.ModuleType: ...
function is_builtin (line 17) | def is_builtin(name: str, /) -> int: ...
function is_frozen (line 18) | def is_frozen(name: str, /) -> bool: ...
function is_frozen_package (line 19) | def is_frozen_package(name: str, /) -> bool: ...
function lock_held (line 20) | def lock_held() -> bool: ...
function release_lock (line 21) | def release_lock() -> None: ...
function find_frozen (line 24) | def find_frozen(name: str, /, *, withdata: bool = False) -> tuple[memory...
function get_frozen_object (line 25) | def get_frozen_object(name: str, data: ReadableBuffer | None = None, /) ...
function get_frozen_object (line 28) | def get_frozen_object(name: str, /) -> types.CodeType: ...
FILE: mypy/typeshed/stdlib/_interpchannels.pyi
class ChannelError (line 5) | class ChannelError(RuntimeError): ...
class ChannelClosedError (line 6) | class ChannelClosedError(ChannelError): ...
class ChannelEmptyError (line 7) | class ChannelEmptyError(ChannelError): ...
class ChannelNotEmptyError (line 8) | class ChannelNotEmptyError(ChannelError): ...
class ChannelNotFoundError (line 9) | class ChannelNotFoundError(ChannelError): ...
class ChannelID (line 13) | class ChannelID:
method end (line 15) | def end(self) -> Literal["send", "recv", "both"]: ...
method send (line 17) | def send(self) -> Self: ...
method recv (line 19) | def recv(self) -> Self: ...
method __eq__ (line 20) | def __eq__(self, other: object) -> bool: ...
method __ge__ (line 21) | def __ge__(self, other: ChannelID) -> bool: ...
method __gt__ (line 22) | def __gt__(self, other: ChannelID) -> bool: ...
method __hash__ (line 23) | def __hash__(self) -> int: ...
method __index__ (line 24) | def __index__(self) -> int: ...
method __int__ (line 25) | def __int__(self) -> int: ...
method __le__ (line 26) | def __le__(self, other: ChannelID) -> bool: ...
method __lt__ (line 27) | def __lt__(self, other: ChannelID) -> bool: ...
method __ne__ (line 28) | def __ne__(self, other: object) -> bool: ...
class ChannelInfo (line 31) | class ChannelInfo(structseq[int], tuple[bool, bool, bool, int, int, int,...
method open (line 43) | def open(self) -> bool: ...
method closing (line 45) | def closing(self) -> bool: ...
method closed (line 47) | def closed(self) -> bool: ...
method count (line 49) | def count(self) -> int: ... # type: ignore[override]
method num_interp_send (line 51) | def num_interp_send(self) -> int: ...
method num_interp_send_released (line 53) | def num_interp_send_released(self) -> int: ...
method num_interp_recv (line 55) | def num_interp_recv(self) -> int: ...
method num_interp_recv_released (line 57) | def num_interp_recv_released(self) -> int: ...
method num_interp_both (line 59) | def num_interp_both(self) -> int: ...
method num_interp_both_recv_released (line 61) | def num_interp_both_recv_released(self) -> int: ...
method num_interp_both_send_released (line 63) | def num_interp_both_send_released(self) -> int: ...
method num_interp_both_released (line 65) | def num_interp_both_released(self) -> int: ...
method recv_associated (line 67) | def recv_associated(self) -> bool: ...
method recv_released (line 69) | def recv_released(self) -> bool: ...
method send_associated (line 71) | def send_associated(self) -> bool: ...
method send_released (line 73) | def send_released(self) -> bool: ...
function create (line 75) | def create(unboundop: Literal[1, 2, 3]) -> ChannelID: ...
function destroy (line 76) | def destroy(cid: SupportsIndex) -> None: ...
function list_all (line 77) | def list_all() -> list[ChannelID]: ...
function list_interpreters (line 78) | def list_interpreters(cid: SupportsIndex, *, send: bool) -> list[int]: ...
function send (line 79) | def send(cid: SupportsIndex, obj: object, *, blocking: bool = True, time...
function send_buffer (line 80) | def send_buffer(cid: SupportsIndex, obj: Buffer, *, blocking: bool = Tru...
function recv (line 81) | def recv(cid: SupportsIndex, default: object = ...) -> tuple[Any, Litera...
function close (line 82) | def close(cid: SupportsIndex, *, send: bool = False, recv: bool = False)...
function get_count (line 83) | def get_count(cid: SupportsIndex) -> int: ...
function get_info (line 84) | def get_info(cid: SupportsIndex) -> ChannelInfo: ...
function get_channel_defaults (line 85) | def get_channel_defaults(cid: SupportsIndex) -> Literal[1, 2, 3]: ...
function release (line 86) | def release(cid: SupportsIndex, *, send: bool = False, recv: bool = Fals...
FILE: mypy/typeshed/stdlib/_interpqueues.pyi
class QueueError (line 6) | class QueueError(RuntimeError): ...
class QueueNotFoundError (line 7) | class QueueNotFoundError(QueueError): ...
function bind (line 9) | def bind(qid: SupportsIndex) -> None: ...
function create (line 10) | def create(maxsize: SupportsIndex, fmt: SupportsIndex, unboundop: _Unbou...
function destroy (line 11) | def destroy(qid: SupportsIndex) -> None: ...
function get (line 12) | def get(qid: SupportsIndex) -> tuple[Any, int, _UnboundOp | None]: ...
function get_count (line 13) | def get_count(qid: SupportsIndex) -> int: ...
function get_maxsize (line 14) | def get_maxsize(qid: SupportsIndex) -> int: ...
function get_queue_defaults (line 15) | def get_queue_defaults(qid: SupportsIndex) -> tuple[int, _UnboundOp]: ...
function is_full (line 16) | def is_full(qid: SupportsIndex) -> bool: ...
function list_all (line 17) | def list_all() -> list[tuple[int, int, _UnboundOp]]: ...
function put (line 18) | def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex, unboundop: _Un...
function release (line 19) | def release(qid: SupportsIndex) -> None: ...
FILE: mypy/typeshed/stdlib/_interpreters.pyi
class InterpreterError (line 8) | class InterpreterError(Exception): ...
class InterpreterNotFoundError (line 9) | class InterpreterNotFoundError(InterpreterError): ...
class NotShareableError (line 10) | class NotShareableError(ValueError): ...
class CrossInterpreterBufferView (line 12) | class CrossInterpreterBufferView:
method __buffer__ (line 13) | def __buffer__(self, flags: int, /) -> memoryview: ...
function new_config (line 15) | def new_config(name: _Configs = "isolated", /, **overides: object) -> ty...
function create (line 16) | def create(config: types.SimpleNamespace | _Configs | None = "isolated",...
function destroy (line 17) | def destroy(id: SupportsIndex, *, restrict: bool = False) -> None: ...
function list_all (line 18) | def list_all(*, require_ready: bool) -> list[tuple[int, int]]: ...
function get_current (line 19) | def get_current() -> tuple[int, int]: ...
function get_main (line 20) | def get_main() -> tuple[int, int]: ...
function is_running (line 21) | def is_running(id: SupportsIndex, *, restrict: bool = False) -> bool: ...
function get_config (line 22) | def get_config(id: SupportsIndex, *, restrict: bool = False) -> types.Si...
function whence (line 23) | def whence(id: SupportsIndex) -> int: ...
function exec (line 24) | def exec(
function call (line 27) | def call(
function run_string (line 35) | def run_string(
function run_func (line 38) | def run_func(
function set___main___attrs (line 41) | def set___main___attrs(id: SupportsIndex, updates: Mapping[str, object],...
function incref (line 42) | def incref(id: SupportsIndex, *, implieslink: bool = False, restrict: bo...
function decref (line 43) | def decref(id: SupportsIndex, *, restrict: bool = False) -> None: ...
function is_shareable (line 44) | def is_shareable(obj: object) -> bool: ...
function capture_exception (line 45) | def capture_exception(exc: BaseException | None = None) -> types.SimpleN...
FILE: mypy/typeshed/stdlib/_io.pyi
function open_code (line 18) | def open_code(path: str) -> IO[bytes]: ...
class _IOBase (line 22) | class _IOBase:
method __iter__ (line 23) | def __iter__(self) -> Iterator[bytes]: ...
method __next__ (line 24) | def __next__(self) -> bytes: ...
method __enter__ (line 25) | def __enter__(self) -> Self: ...
method __exit__ (line 26) | def __exit__(
method close (line 29) | def close(self) -> None: ...
method fileno (line 30) | def fileno(self) -> int: ...
method flush (line 31) | def flush(self) -> None: ...
method isatty (line 32) | def isatty(self) -> bool: ...
method readable (line 33) | def readable(self) -> bool: ...
method readlines (line 35) | def readlines(self, hint: int = -1, /) -> list[bytes]: ...
method seek (line 36) | def seek(self, offset: int, whence: int = 0, /) -> int: ...
method seekable (line 37) | def seekable(self) -> bool: ...
method tell (line 38) | def tell(self) -> int: ...
method truncate (line 39) | def truncate(self, size: int | None = None, /) -> int: ...
method writable (line 40) | def writable(self) -> bool: ...
method writelines (line 42) | def writelines(self, lines: Iterable[ReadableBuffer], /) -> None: ...
method readline (line 43) | def readline(self, size: int | None = -1, /) -> bytes: ...
method __del__ (line 44) | def __del__(self) -> None: ...
method closed (line 46) | def closed(self) -> bool: ...
method _checkClosed (line 47) | def _checkClosed(self) -> None: ... # undocumented
class _RawIOBase (line 49) | class _RawIOBase(_IOBase):
method readall (line 50) | def readall(self) -> bytes: ...
method readinto (line 53) | def readinto(self, buffer: WriteableBuffer, /) -> int | MaybeNone: ...
method write (line 54) | def write(self, b: ReadableBuffer, /) -> int | MaybeNone: ...
method read (line 55) | def read(self, size: int = -1, /) -> bytes | MaybeNone: ...
class _BufferedIOBase (line 57) | class _BufferedIOBase(_IOBase):
method detach (line 58) | def detach(self) -> RawIOBase: ...
method readinto (line 59) | def readinto(self, buffer: WriteableBuffer, /) -> int: ...
method write (line 60) | def write(self, buffer: ReadableBuffer, /) -> int: ...
method readinto1 (line 61) | def readinto1(self, buffer: WriteableBuffer, /) -> int: ...
method read (line 62) | def read(self, size: int | None = -1, /) -> bytes: ...
method read1 (line 63) | def read1(self, size: int = -1, /) -> bytes: ...
class FileIO (line 65) | class FileIO(RawIOBase, _RawIOBase, BinaryIO): # type: ignore[misc] # ...
method __init__ (line 71) | def __init__(
method closefd (line 75) | def closefd(self) -> bool: ...
method seek (line 76) | def seek(self, pos: int, whence: int = 0, /) -> int: ...
method read (line 77) | def read(self, size: int | None = -1, /) -> bytes | MaybeNone: ...
class BytesIO (line 79) | class BytesIO(BufferedIOBase, _BufferedIOBase, BinaryIO): # type: ignor...
method __init__ (line 80) | def __init__(self, initial_bytes: ReadableBuffer = b"") -> None: ...
method getvalue (line 85) | def getvalue(self) -> bytes: ...
method getbuffer (line 86) | def getbuffer(self) -> memoryview: ...
method read1 (line 87) | def read1(self, size: int | None = -1, /) -> bytes: ...
method readlines (line 88) | def readlines(self, size: int | None = None, /) -> list[bytes]: ...
method seek (line 89) | def seek(self, pos: int, whence: int = 0, /) -> int: ...
class BufferedReader (line 91) | class BufferedReader(BufferedIOBase, _BufferedIOBase, BinaryIO): # type...
method __init__ (line 93) | def __init__(self, raw: RawIOBase, buffer_size: int = 8192) -> None: ...
method peek (line 94) | def peek(self, size: int = 0, /) -> bytes: ...
method seek (line 95) | def seek(self, target: int, whence: int = 0, /) -> int: ...
method truncate (line 96) | def truncate(self, pos: int | None = None, /) -> int: ...
class BufferedWriter (line 98) | class BufferedWriter(BufferedIOBase, _BufferedIOBase, BinaryIO): # type...
method __init__ (line 100) | def __init__(self, raw: RawIOBase, buffer_size: int = 8192) -> None: ...
method write (line 101) | def write(self, buffer: ReadableBuffer, /) -> int: ...
method seek (line 102) | def seek(self, target: int, whence: int = 0, /) -> int: ...
method truncate (line 103) | def truncate(self, pos: int | None = None, /) -> int: ...
class BufferedRandom (line 105) | class BufferedRandom(BufferedIOBase, _BufferedIOBase, BinaryIO): # type...
method __init__ (line 109) | def __init__(self, raw: RawIOBase, buffer_size: int = 8192) -> None: ...
method seek (line 110) | def seek(self, target: int, whence: int = 0, /) -> int: ... # stubtes...
method peek (line 111) | def peek(self, size: int = 0, /) -> bytes: ...
method truncate (line 112) | def truncate(self, pos: int | None = None, /) -> int: ...
class BufferedRWPair (line 114) | class BufferedRWPair(BufferedIOBase, _BufferedIOBase):
method __init__ (line 115) | def __init__(self, reader: RawIOBase, writer: RawIOBase, buffer_size: ...
method peek (line 116) | def peek(self, size: int = 0, /) -> bytes: ...
class _TextIOBase (line 118) | class _TextIOBase(_IOBase):
method __iter__ (line 122) | def __iter__(self) -> Iterator[str]: ... # type: ignore[override]
method __next__ (line 123) | def __next__(self) -> str: ... # type: ignore[override]
method detach (line 124) | def detach(self) -> BinaryIO: ...
method write (line 125) | def write(self, s: str, /) -> int: ...
method writelines (line 126) | def writelines(self, lines: Iterable[str], /) -> None: ... # type: ig...
method readline (line 127) | def readline(self, size: int = -1, /) -> str: ... # type: ignore[over...
method readlines (line 128) | def readlines(self, hint: int = -1, /) -> list[str]: ... # type: igno...
method read (line 129) | def read(self, size: int | None = -1, /) -> str: ...
class _WrappedBuffer (line 132) | class _WrappedBuffer(Protocol):
method name (line 137) | def name(self) -> Any: ...
method closed (line 139) | def closed(self) -> bool: ...
method read (line 140) | def read(self, size: int = ..., /) -> ReadableBuffer: ...
method write (line 142) | def write(self, b: bytes, /) -> object: ...
method flush (line 143) | def flush(self) -> object: ...
method close (line 144) | def close(self) -> object: ...
method seekable (line 145) | def seekable(self) -> bool: ...
method readable (line 146) | def readable(self) -> bool: ...
method writable (line 147) | def writable(self) -> bool: ...
method truncate (line 148) | def truncate(self, size: int, /) -> int: ...
method fileno (line 149) | def fileno(self) -> int: ...
method isatty (line 150) | def isatty(self) -> bool: ...
class TextIOWrapper (line 157) | class TextIOWrapper(TextIOBase, _TextIOBase, TextIO, Generic[_BufferT_co...
method __init__ (line 158) | def __init__(
method buffer (line 169) | def buffer(self) -> _BufferT_co: ... # type: ignore[override]
method line_buffering (line 171) | def line_buffering(self) -> bool: ...
method write_through (line 173) | def write_through(self) -> bool: ...
method reconfigure (line 174) | def reconfigure(
method readline (line 183) | def readline(self, size: int = -1, /) -> str: ... # type: ignore[over...
method detach (line 185) | def detach(self) -> _BufferT_co: ... # type: ignore[override]
method seek (line 188) | def seek(self, cookie: int, whence: int = 0, /) -> int: ...
method truncate (line 189) | def truncate(self, pos: int | None = None, /) -> int: ...
class StringIO (line 191) | class StringIO(TextIOBase, _TextIOBase, TextIO): # type: ignore[misc] ...
method __init__ (line 192) | def __init__(self, initial_value: str | None = "", newline: str | None...
method getvalue (line 197) | def getvalue(self) -> str: ...
method line_buffering (line 199) | def line_buffering(self) -> bool: ...
method seek (line 200) | def seek(self, pos: int, whence: int = 0, /) -> int: ...
method truncate (line 201) | def truncate(self, pos: int | None = None, /) -> int: ...
class IncrementalNewlineDecoder (line 203) | class IncrementalNewlineDecoder:
method __init__ (line 204) | def __init__(self, decoder: codecs.IncrementalDecoder | None, translat...
method decode (line 205) | def decode(self, input: ReadableBuffer | str, final: bool = False) -> ...
method newlines (line 207) | def newlines(self) -> str | tuple[str, ...] | None: ...
method getstate (line 208) | def getstate(self) -> tuple[bytes, int]: ...
method reset (line 209) | def reset(self) -> None: ...
method setstate (line 210) | def setstate(self, state: tuple[bytes, int], /) -> None: ...
function text_encoding (line 214) | def text_encoding(encoding: None, stacklevel: int = 2, /) -> Literal["lo...
function text_encoding (line 216) | def text_encoding(encoding: _T, stacklevel: int = 2, /) -> _T: ...
FILE: mypy/typeshed/stdlib/_json.pyi
class make_encoder (line 6) | class make_encoder:
method sort_keys (line 8) | def sort_keys(self) -> bool: ...
method skipkeys (line 10) | def skipkeys(self) -> bool: ...
method key_separator (line 12) | def key_separator(self) -> str: ...
method indent (line 14) | def indent(self) -> int | None: ...
method markers (line 16) | def markers(self) -> dict[int, Any] | None: ...
method default (line 18) | def default(self) -> Callable[[Any], Any]: ...
method encoder (line 20) | def encoder(self) -> Callable[[str], str]: ...
method item_separator (line 22) | def item_separator(self) -> str: ...
method __new__ (line 23) | def __new__(
method __call__ (line 35) | def __call__(self, obj: object, _current_indent_level: int) -> Any: ...
class make_scanner (line 38) | class make_scanner:
method __new__ (line 46) | def __new__(cls, context: make_scanner) -> Self: ...
method __call__ (line 47) | def __call__(self, string: str, index: int) -> tuple[Any, int]: ...
function encode_basestring (line 49) | def encode_basestring(s: str, /) -> str: ...
function encode_basestring_ascii (line 50) | def encode_basestring_ascii(s: str, /) -> str: ...
function scanstring (line 51) | def scanstring(string: str, end: int, strict: bool = ...) -> tuple[str, ...
FILE: mypy/typeshed/stdlib/_locale.pyi
class _LocaleConv (line 6) | class _LocaleConv(TypedDict):
function setlocale (line 34) | def setlocale(category: int, locale: str | None = None, /) -> str: ...
function localeconv (line 35) | def localeconv() -> _LocaleConv: ...
function getencoding (line 38) | def getencoding() -> str: ...
function strcoll (line 40) | def strcoll(os1: str, os2: str, /) -> int: ...
function strxfrm (line 41) | def strxfrm(string: str, /) -> str: ...
function nl_langinfo (line 111) | def nl_langinfo(key: int, /) -> str: ...
function gettext (line 116) | def gettext(msg: str, /) -> str: ...
function dgettext (line 117) | def dgettext(domain: str | None, msg: str, /) -> str: ...
function dcgettext (line 118) | def dcgettext(domain: str | None, msg: str, category: int, /) -> str: ...
function textdomain (line 119) | def textdomain(domain: str | None, /) -> str: ...
function bindtextdomain (line 120) | def bindtextdomain(domain: str, dir: StrPath | None, /) -> str: ...
function bind_textdomain_codeset (line 121) | def bind_textdomain_codeset(domain: str, codeset: str | None, /) -> str ...
FILE: mypy/typeshed/stdlib/_lsprof.pyi
class Profiler (line 7) | class Profiler:
method __init__ (line 8) | def __init__(
method getstats (line 11) | def getstats(self) -> list[profiler_entry]: ...
method enable (line 12) | def enable(self, subcalls: bool = True, builtins: bool = True) -> None...
method disable (line 13) | def disable(self) -> None: ...
method clear (line 14) | def clear(self) -> None: ...
class profiler_entry (line 17) | class profiler_entry(structseq[Any], tuple[CodeType | str, int, int, flo...
class profiler_subentry (line 28) | class profiler_subentry(structseq[Any], tuple[CodeType | str, int, int, ...
FILE: mypy/typeshed/stdlib/_lzma.pyi
class LZMADecompressor (line 39) | class LZMADecompressor:
method __new__ (line 41) | def __new__(cls, format: int | None = ..., memlimit: int | None = ...,...
method __init__ (line 43) | def __init__(self, format: int | None = ..., memlimit: int | None = .....
method decompress (line 45) | def decompress(self, data: ReadableBuffer, max_length: int = -1) -> by...
method check (line 47) | def check(self) -> int: ...
method eof (line 49) | def eof(self) -> bool: ...
method unused_data (line 51) | def unused_data(self) -> bytes: ...
method needs_input (line 53) | def needs_input(self) -> bool: ...
class LZMACompressor (line 56) | class LZMACompressor:
method __new__ (line 58) | def __new__(
method __init__ (line 62) | def __init__(
method compress (line 66) | def compress(self, data: ReadableBuffer, /) -> bytes: ...
method flush (line 67) | def flush(self) -> bytes: ...
class LZMAError (line 69) | class LZMAError(Exception): ...
function is_check_supported (line 71) | def is_check_supported(check_id: int, /) -> bool: ...
FILE: mypy/typeshed/stdlib/_markupbase.pyi
class ParserBase (line 4) | class ParserBase:
method reset (line 5) | def reset(self) -> None: ...
method getpos (line 6) | def getpos(self) -> tuple[int, int]: ...
method unknown_decl (line 7) | def unknown_decl(self, data: str) -> None: ...
method parse_comment (line 8) | def parse_comment(self, i: int, report: int = 1) -> int: ... # undocu...
method parse_declaration (line 9) | def parse_declaration(self, i: int) -> int: ... # undocumented
method parse_marked_section (line 10) | def parse_marked_section(self, i: int, report: int = 1) -> int: ... #...
method updatepos (line 11) | def updatepos(self, i: int, j: int) -> int: ... # undocumented
method error (line 14) | def error(self, message: str) -> Any: ... # undocumented
FILE: mypy/typeshed/stdlib/_msi.pyi
class MSIError (line 4) | class MSIError(Exception): ...
class _View (line 6) | class _View:
method Execute (line 7) | def Execute(self, params: _Record | None = ...) -> None: ...
method GetColumnInfo (line 8) | def GetColumnInfo(self, kind: int) -> _Record: ...
method Fetch (line 9) | def Fetch(self) -> _Record: ...
method Modify (line 10) | def Modify(self, mode: int, record: _Record) -> None: ...
method Close (line 11) | def Close(self) -> None: ...
class _SummaryInformation (line 17) | class _SummaryInformation:
method GetProperty (line 18) | def GetProperty(self, field: int) -> int | bytes | None: ...
method GetPropertyCount (line 19) | def GetPropertyCount(self) -> int: ...
method SetProperty (line 20) | def SetProperty(self, field: int, value: int | str) -> None: ...
method Persist (line 21) | def Persist(self) -> None: ...
class _Database (line 27) | class _Database:
method OpenView (line 28) | def OpenView(self, sql: str) -> _View: ...
method Commit (line 29) | def Commit(self) -> None: ...
method GetSummaryInformation (line 30) | def GetSummaryInformation(self, updateCount: int) -> _SummaryInformati...
method Close (line 31) | def Close(self) -> None: ...
class _Record (line 37) | class _Record:
method GetFieldCount (line 38) | def GetFieldCount(self) -> int: ...
method GetInteger (line 39) | def GetInteger(self, field: int) -> int: ...
method GetString (line 40) | def GetString(self, field: int) -> str: ...
method SetString (line 41) | def SetString(self, field: int, str: str) -> None: ...
method SetStream (line 42) | def SetStream(self, field: int, stream: str) -> None: ...
method SetInteger (line 43) | def SetInteger(self, field: int, int: int) -> None: ...
method ClearData (line 44) | def ClearData(self) -> None: ...
function UuidCreate (line 49) | def UuidCreate() -> str: ...
function FCICreate (line 50) | def FCICreate(cabname: str, files: list[str], /) -> None: ...
function OpenDatabase (line 51) | def OpenDatabase(path: str, persist: int, /) -> _Database: ...
function CreateRecord (line 52) | def CreateRecord(count: int, /) -> _Record: ...
FILE: mypy/typeshed/stdlib/_multibytecodec.pyi
class _MultibyteCodec (line 9) | class _MultibyteCodec:
method decode (line 10) | def decode(self, input: ReadableBuffer, errors: str | None = None) -> ...
method encode (line 11) | def encode(self, input: str, errors: str | None = None) -> bytes: ...
class MultibyteIncrementalDecoder (line 13) | class MultibyteIncrementalDecoder:
method __init__ (line 15) | def __init__(self, errors: str = "strict") -> None: ...
method decode (line 16) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
method getstate (line 17) | def getstate(self) -> tuple[bytes, int]: ...
method reset (line 18) | def reset(self) -> None: ...
method setstate (line 19) | def setstate(self, state: tuple[bytes, int], /) -> None: ...
class MultibyteIncrementalEncoder (line 21) | class MultibyteIncrementalEncoder:
method __init__ (line 23) | def __init__(self, errors: str = "strict") -> None: ...
method encode (line 24) | def encode(self, input: str, final: bool = False) -> bytes: ...
method getstate (line 25) | def getstate(self) -> int: ...
method reset (line 26) | def reset(self) -> None: ...
method setstate (line 27) | def setstate(self, state: int, /) -> None: ...
class MultibyteStreamReader (line 29) | class MultibyteStreamReader:
method __init__ (line 32) | def __init__(self, stream: _ReadableStream, errors: str = "strict") ->...
method read (line 33) | def read(self, sizeobj: int | None = None, /) -> str: ...
method readline (line 34) | def readline(self, sizeobj: int | None = None, /) -> str: ...
method readlines (line 35) | def readlines(self, sizehintobj: int | None = None, /) -> list[str]: ...
method reset (line 36) | def reset(self) -> None: ...
class MultibyteStreamWriter (line 38) | class MultibyteStreamWriter:
method __init__ (line 41) | def __init__(self, stream: _WritableStream, errors: str = "strict") ->...
method reset (line 42) | def reset(self) -> None: ...
method write (line 43) | def write(self, strobj: str, /) -> None: ...
method writelines (line 44) | def writelines(self, lines: Iterable[str], /) -> None: ...
FILE: mypy/typeshed/stdlib/_operator.pyi
class _SupportsDunderLT (line 19) | class _SupportsDunderLT(Protocol):
method __lt__ (line 20) | def __lt__(self, other: Any, /) -> Any: ...
class _SupportsDunderGT (line 22) | class _SupportsDunderGT(Protocol):
method __gt__ (line 23) | def __gt__(self, other: Any, /) -> Any: ...
class _SupportsDunderLE (line 25) | class _SupportsDunderLE(Protocol):
method __le__ (line 26) | def __le__(self, other: Any, /) -> Any: ...
class _SupportsDunderGE (line 28) | class _SupportsDunderGE(Protocol):
method __ge__ (line 29) | def __ge__(self, other: Any, /) -> Any: ...
class _SupportsInversion (line 33) | class _SupportsInversion(Protocol[_T_co]):
method __invert__ (line 34) | def __invert__(self) -> _T_co: ...
class _SupportsNeg (line 36) | class _SupportsNeg(Protocol[_T_co]):
method __neg__ (line 37) | def __neg__(self) -> _T_co: ...
class _SupportsPos (line 39) | class _SupportsPos(Protocol[_T_co]):
method __pos__ (line 40) | def __pos__(self) -> _T_co: ...
function lt (line 43) | def lt(a: _SupportsComparison, b: _SupportsComparison, /) -> Any: ...
function le (line 44) | def le(a: _SupportsComparison, b: _SupportsComparison, /) -> Any: ...
function eq (line 45) | def eq(a: object, b: object, /) -> Any: ...
function ne (line 46) | def ne(a: object, b: object, /) -> Any: ...
function ge (line 47) | def ge(a: _SupportsComparison, b: _SupportsComparison, /) -> Any: ...
function gt (line 48) | def gt(a: _SupportsComparison, b: _SupportsComparison, /) -> Any: ...
function not_ (line 49) | def not_(a: object, /) -> bool: ...
function truth (line 50) | def truth(a: object, /) -> bool: ...
function is_ (line 51) | def is_(a: object, b: object, /) -> bool: ...
function is_not (line 52) | def is_not(a: object, b: object, /) -> bool: ...
function abs (line 53) | def abs(a: SupportsAbs[_T], /) -> _T: ...
function add (line 54) | def add(a: Any, b: Any, /) -> Any: ...
function and_ (line 55) | def and_(a: Any, b: Any, /) -> Any: ...
function floordiv (line 56) | def floordiv(a: Any, b: Any, /) -> Any: ...
function index (line 57) | def index(a: SupportsIndex, /) -> int: ...
function inv (line 58) | def inv(a: _SupportsInversion[_T_co], /) -> _T_co: ...
function invert (line 59) | def invert(a: _SupportsInversion[_T_co], /) -> _T_co: ...
function lshift (line 60) | def lshift(a: Any, b: Any, /) -> Any: ...
function mod (line 61) | def mod(a: Any, b: Any, /) -> Any: ...
function mul (line 62) | def mul(a: Any, b: Any, /) -> Any: ...
function matmul (line 63) | def matmul(a: Any, b: Any, /) -> Any: ...
function neg (line 64) | def neg(a: _SupportsNeg[_T_co], /) -> _T_co: ...
function or_ (line 65) | def or_(a: Any, b: Any, /) -> Any: ...
function pos (line 66) | def pos(a: _SupportsPos[_T_co], /) -> _T_co: ...
function pow (line 67) | def pow(a: Any, b: Any, /) -> Any: ...
function rshift (line 68) | def rshift(a: Any, b: Any, /) -> Any: ...
function sub (line 69) | def sub(a: Any, b: Any, /) -> Any: ...
function truediv (line 70) | def truediv(a: Any, b: Any, /) -> Any: ...
function xor (line 71) | def xor(a: Any, b: Any, /) -> Any: ...
function concat (line 72) | def concat(a: Sequence[_T], b: Sequence[_T], /) -> Sequence[_T]: ...
function contains (line 73) | def contains(a: Container[object], b: object, /) -> bool: ...
function countOf (line 74) | def countOf(a: Iterable[object], b: object, /) -> int: ...
function delitem (line 76) | def delitem(a: MutableSequence[Any], b: SupportsIndex, /) -> None: ...
function delitem (line 78) | def delitem(a: MutableSequence[Any], b: slice, /) -> None: ...
function delitem (line 80) | def delitem(a: MutableMapping[_K, Any], b: _K, /) -> None: ...
function getitem (line 82) | def getitem(a: Sequence[_T], b: slice, /) -> Sequence[_T]: ...
function getitem (line 84) | def getitem(a: SupportsGetItem[_K, _V], b: _K, /) -> _V: ...
function indexOf (line 85) | def indexOf(a: Iterable[_T], b: _T, /) -> int: ...
function setitem (line 87) | def setitem(a: MutableSequence[_T], b: SupportsIndex, c: _T, /) -> None:...
function setitem (line 89) | def setitem(a: MutableSequence[_T], b: slice, c: Sequence[_T], /) -> Non...
function setitem (line 91) | def setitem(a: MutableMapping[_K, _V], b: _K, c: _V, /) -> None: ...
function length_hint (line 92) | def length_hint(obj: object, default: int = 0, /) -> int: ...
function iadd (line 93) | def iadd(a: Any, b: Any, /) -> Any: ...
function iand (line 94) | def iand(a: Any, b: Any, /) -> Any: ...
function iconcat (line 95) | def iconcat(a: Any, b: Any, /) -> Any: ...
function ifloordiv (line 96) | def ifloordiv(a: Any, b: Any, /) -> Any: ...
function ilshift (line 97) | def ilshift(a: Any, b: Any, /) -> Any: ...
function imod (line 98) | def imod(a: Any, b: Any, /) -> Any: ...
function imul (line 99) | def imul(a: Any, b: Any, /) -> Any: ...
function imatmul (line 100) | def imatmul(a: Any, b: Any, /) -> Any: ...
function ior (line 101) | def ior(a: Any, b: Any, /) -> Any: ...
function ipow (line 102) | def ipow(a: Any, b: Any, /) -> Any: ...
function irshift (line 103) | def irshift(a: Any, b: Any, /) -> Any: ...
function isub (line 104) | def isub(a: Any, b: Any, /) -> Any: ...
function itruediv (line 105) | def itruediv(a: Any, b: Any, /) -> Any: ...
function ixor (line 106) | def ixor(a: Any, b: Any, /) -> Any: ...
function call (line 109) | def call(obj: Callable[_P, _R], /, *args: _P.args, **kwargs: _P.kwargs) ...
function _compare_digest (line 111) | def _compare_digest(a: AnyStr, b: AnyStr, /) -> bool: ...
function is_none (line 114) | def is_none(a: object, /) -> TypeIs[None]: ...
function is_not_none (line 115) | def is_not_none(a: _T | None, /) -> TypeIs[_T]: ...
FILE: mypy/typeshed/stdlib/_osx_support.pyi
function _find_executable (line 14) | def _find_executable(executable: str, path: str | None = None) -> str | ...
function _read_output (line 15) | def _read_output(commandstring: str, capture_stderr: bool = False) -> st...
function _find_build_tool (line 16) | def _find_build_tool(toolname: str) -> str: ... # undocumented
function _get_system_version (line 20) | def _get_system_version() -> str: ... # undocumented
function _remove_original_values (line 21) | def _remove_original_values(_config_vars: dict[str, str]) -> None: ... ...
function _save_modified_value (line 22) | def _save_modified_value(_config_vars: dict[str, str], cv: str, newvalue...
function _supports_universal_builds (line 23) | def _supports_universal_builds() -> bool: ... # undocumented
function _find_appropriate_compiler (line 24) | def _find_appropriate_compiler(_config_vars: dict[str, str]) -> dict[str...
function _remove_universal_flags (line 25) | def _remove_universal_flags(_config_vars: dict[str, str]) -> dict[str, s...
function _remove_unsupported_archs (line 26) | def _remove_unsupported_archs(_config_vars: dict[str, str]) -> dict[str,...
function _override_all_archs (line 27) | def _override_all_archs(_config_vars: dict[str, str]) -> dict[str, str]:...
function _check_for_unavailable_sdk (line 28) | def _check_for_unavailable_sdk(_config_vars: dict[str, str]) -> dict[str...
function compiler_fixup (line 29) | def compiler_fixup(compiler_so: Iterable[str], cc_args: Sequence[str]) -...
function customize_config_vars (line 30) | def customize_config_vars(_config_vars: dict[str, str]) -> dict[str, str...
function customize_compiler (line 31) | def customize_compiler(_config_vars: dict[str, str]) -> dict[str, str]: ...
function get_platform_osx (line 32) | def get_platform_osx(
FILE: mypy/typeshed/stdlib/_pickle.pyi
class _ReadableFileobj (line 8) | class _ReadableFileobj(Protocol):
method read (line 9) | def read(self, n: int, /) -> bytes: ...
method readline (line 10) | def readline(self) -> bytes: ...
function dump (line 22) | def dump(
function dumps (line 30) | def dumps(
function load (line 33) | def load(
function loads (line 41) | def loads(
class PickleError (line 51) | class PickleError(Exception): ...
class PicklingError (line 52) | class PicklingError(PickleError): ...
class UnpicklingError (line 53) | class UnpicklingError(PickleError): ...
class PicklerMemoProxy (line 56) | class PicklerMemoProxy:
method clear (line 57) | def clear(self, /) -> None: ...
method copy (line 58) | def copy(self, /) -> dict[int, tuple[int, Any]]: ...
class Pickler (line 60) | class Pickler:
method __init__ (line 65) | def __init__(
method memo (line 73) | def memo(self) -> PicklerMemoProxy: ...
method memo (line 75) | def memo(self, value: PicklerMemoProxy | dict[int, tuple[int, Any]]) -...
method dump (line 76) | def dump(self, obj: Any, /) -> None: ...
method clear_memo (line 77) | def clear_memo(self) -> None: ...
method persistent_id (line 79) | def persistent_id(self, obj: Any, /) -> Any: ...
class UnpicklerMemoProxy (line 84) | class UnpicklerMemoProxy:
method clear (line 85) | def clear(self, /) -> None: ...
method copy (line 86) | def copy(self, /) -> dict[int, tuple[int, Any]]: ...
class Unpickler (line 88) | class Unpickler:
method __init__ (line 89) | def __init__(
method memo (line 99) | def memo(self) -> UnpicklerMemoProxy: ...
method memo (line 101) | def memo(self, value: UnpicklerMemoProxy | dict[int, tuple[int, Any]])...
method load (line 102) | def load(self) -> Any: ...
method find_class (line 103) | def find_class(self, module_name: str, global_name: str, /) -> Any: ...
method persistent_load (line 105) | def persistent_load(self, pid: Any, /) -> Any: ...
FILE: mypy/typeshed/stdlib/_posixsubprocess.pyi
function fork_exec (line 7) | def fork_exec(
FILE: mypy/typeshed/stdlib/_py_abc.pyi
function get_cache_token (line 8) | def get_cache_token() -> _CacheToken: ...
class ABCMeta (line 10) | class ABCMeta(type):
method __new__ (line 11) | def __new__(
method register (line 14) | def register(cls, subclass: type[_T]) -> type[_T]: ...
FILE: mypy/typeshed/stdlib/_queue.pyi
class Empty (line 9) | class Empty(Exception): ...
class SimpleQueue (line 11) | class SimpleQueue(Generic[_T]):
method __init__ (line 12) | def __init__(self) -> None: ...
method empty (line 13) | def empty(self) -> bool: ...
method get (line 14) | def get(self, block: bool = True, timeout: float | None = None) -> _T:...
method get_nowait (line 15) | def get_nowait(self) -> _T: ...
method put (line 16) | def put(self, item: _T, block: bool = True, timeout: float | None = No...
method put_nowait (line 17) | def put_nowait(self, item: _T) -> None: ...
method qsize (line 18) | def qsize(self) -> int: ...
method __class_getitem__ (line 20) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
FILE: mypy/typeshed/stdlib/_random.pyi
class Random (line 6) | class Random:
method __init__ (line 7) | def __init__(self, seed: object = ...) -> None: ...
method seed (line 8) | def seed(self, n: object = None, /) -> None: ...
method getstate (line 9) | def getstate(self) -> _State: ...
method setstate (line 10) | def setstate(self, state: _State, /) -> None: ...
method random (line 11) | def random(self) -> float: ...
method getrandbits (line 12) | def getrandbits(self, k: int, /) -> int: ...
FILE: mypy/typeshed/stdlib/_sitebuiltins.pyi
class Quitter (line 5) | class Quitter:
method __init__ (line 8) | def __init__(self, name: str, eof: str) -> None: ...
method __call__ (line 9) | def __call__(self, code: sys._ExitCode = None) -> NoReturn: ...
class _Printer (line 11) | class _Printer:
method __init__ (line 13) | def __init__(self, name: str, data: str, files: Iterable[str] = (), di...
method __call__ (line 14) | def __call__(self) -> None: ...
class _Helper (line 16) | class _Helper:
method __call__ (line 17) | def __call__(self, request: object = ...) -> None: ...
FILE: mypy/typeshed/stdlib/_socket.pyi
class socket (line 724) | class socket:
method family (line 726) | def family(self) -> int: ...
method type (line 728) | def type(self) -> int: ...
method proto (line 730) | def proto(self) -> int: ...
method timeout (line 733) | def timeout(self) -> float | None: ... # noqa: F811
method __init__ (line 735) | def __init__(
method __init__ (line 739) | def __init__(self, family: int = ..., type: int = ..., proto: int = .....
method bind (line 741) | def bind(self, address: _Address, /) -> None: ...
method close (line 742) | def close(self) -> None: ...
method connect (line 743) | def connect(self, address: _Address, /) -> None: ...
method connect_ex (line 744) | def connect_ex(self, address: _Address, /) -> int: ...
method detach (line 745) | def detach(self) -> int: ...
method fileno (line 746) | def fileno(self) -> int: ...
method getpeername (line 747) | def getpeername(self) -> _RetAddress: ...
method getsockname (line 748) | def getsockname(self) -> _RetAddress: ...
method getsockopt (line 750) | def getsockopt(self, level: int, optname: int, /) -> int: ...
method getsockopt (line 752) | def getsockopt(self, level: int, optname: int, buflen: int, /) -> byte...
method getblocking (line 753) | def getblocking(self) -> bool: ...
method gettimeout (line 754) | def gettimeout(self) -> float | None: ...
method ioctl (line 756) | def ioctl(self, control: int, option: int | tuple[int, int, int] | boo...
method listen (line 758) | def listen(self, backlog: int = ..., /) -> None: ...
method recv (line 759) | def recv(self, bufsize: int, flags: int = ..., /) -> bytes: ...
method recvfrom (line 760) | def recvfrom(self, bufsize: int, flags: int = ..., /) -> tuple[bytes, ...
method recvmsg (line 762) | def recvmsg(self, bufsize: int, ancbufsize: int = ..., flags: int = .....
method recvmsg_into (line 763) | def recvmsg_into(
method recvfrom_into (line 767) | def recvfrom_into(self, buffer: WriteableBuffer, nbytes: int = ..., fl...
method recv_into (line 768) | def recv_into(self, buffer: WriteableBuffer, nbytes: int = ..., flags:...
method send (line 769) | def send(self, data: ReadableBuffer, flags: int = ..., /) -> int: ...
method sendall (line 770) | def sendall(self, data: ReadableBuffer, flags: int = ..., /) -> None: ...
method sendto (line 772) | def sendto(self, data: ReadableBuffer, address: _Address, /) -> int: ...
method sendto (line 774) | def sendto(self, data: ReadableBuffer, flags: int, address: _Address, ...
method sendmsg (line 776) | def sendmsg(
method sendmsg_afalg (line 785) | def sendmsg_afalg(
method setblocking (line 789) | def setblocking(self, flag: bool, /) -> None: ...
method settimeout (line 790) | def settimeout(self, value: float | None, /) -> None: ...
method setsockopt (line 792) | def setsockopt(self, level: int, optname: int, value: int | ReadableBu...
method setsockopt (line 794) | def setsockopt(self, level: int, optname: int, value: None, optlen: in...
method share (line 796) | def share(self, process_id: int, /) -> bytes: ...
method shutdown (line 798) | def shutdown(self, how: int, /) -> None: ...
function close (line 804) | def close(fd: SupportsIndex, /) -> None: ...
function dup (line 805) | def dup(fd: SupportsIndex, /) -> int: ...
function getaddrinfo (line 808) | def getaddrinfo(
function gethostbyname (line 816) | def gethostbyname(hostname: str, /) -> str: ...
function gethostbyname_ex (line 817) | def gethostbyname_ex(hostname: str, /) -> tuple[str, list[str], list[str...
function gethostname (line 818) | def gethostname() -> str: ...
function gethostbyaddr (line 819) | def gethostbyaddr(ip_address: str, /) -> tuple[str, list[str], list[str]...
function getnameinfo (line 820) | def getnameinfo(sockaddr: tuple[str, int] | tuple[str, int, int, int], f...
function getprotobyname (line 821) | def getprotobyname(protocolname: str, /) -> int: ...
function getservbyname (line 822) | def getservbyname(servicename: str, protocolname: str = ..., /) -> int: ...
function getservbyport (line 823) | def getservbyport(port: int, protocolname: str = ..., /) -> str: ...
function ntohl (line 824) | def ntohl(x: int, /) -> int: ... # param & ret val are 32-bit ints
function ntohs (line 825) | def ntohs(x: int, /) -> int: ... # param & ret val are 16-bit ints
function htonl (line 826) | def htonl(x: int, /) -> int: ... # param & ret val are 32-bit ints
function htons (line 827) | def htons(x: int, /) -> int: ... # param & ret val are 16-bit ints
function inet_aton (line 828) | def inet_aton(ip_addr: str, /) -> bytes: ... # ret val 4 bytes in length
function inet_ntoa (line 829) | def inet_ntoa(packed_ip: ReadableBuffer, /) -> str: ...
function inet_pton (line 830) | def inet_pton(address_family: int, ip_string: str, /) -> bytes: ...
function inet_ntop (line 831) | def inet_ntop(address_family: int, packed_ip: ReadableBuffer, /) -> str:...
function getdefaulttimeout (line 832) | def getdefaulttimeout() -> float | None: ...
function setdefaulttimeout (line 835) | def setdefaulttimeout(timeout: float | None, /) -> None: ... # noqa: F811
function sethostname (line 838) | def sethostname(name: str, /) -> None: ...
function CMSG_LEN (line 839) | def CMSG_LEN(length: int, /) -> int: ...
function CMSG_SPACE (line 840) | def CMSG_SPACE(length: int, /) -> int: ...
function socketpair (line 841) | def socketpair(family: int = ..., type: int = ..., proto: int = ..., /) ...
function if_nameindex (line 843) | def if_nameindex() -> list[tuple[int, str]]: ...
function if_nametoindex (line 844) | def if_nametoindex(oname: str, /) -> int: ...
function if_indextoname (line 845) | def if_indextoname(index: int, /) -> str: ...
FILE: mypy/typeshed/stdlib/_sqlite3.pyi
function adapt (line 217) | def adapt(obj: Any, proto: Any, /) -> Any: ...
function adapt (line 219) | def adapt(obj: Any, proto: Any, alt: _T, /) -> Any | _T: ...
function complete_statement (line 220) | def complete_statement(statement: str) -> bool: ...
function connect (line 224) | def connect(
function connect (line 236) | def connect(
function connect (line 249) | def connect(
function connect (line 264) | def connect(
function connect (line 274) | def connect(
function connect (line 285) | def connect(
function enable_callback_tracebacks (line 297) | def enable_callback_tracebacks(enable: bool, /) -> None: ...
function enable_shared_cache (line 301) | def enable_shared_cache(do_enable: int) -> None: ...
function register_adapter (line 304) | def register_adapter(type: type[_T], adapter: _Adapter[_T], /) -> None: ...
function register_converter (line 305) | def register_converter(typename: str, converter: _Converter, /) -> None:...
function register_adapter (line 308) | def register_adapter(type: type[_T], caster: _Adapter[_T], /) -> None: ...
function register_converter (line 309) | def register_converter(name: str, converter: _Converter, /) -> None: ...
FILE: mypy/typeshed/stdlib/_ssl.pyi
class _Cipher (line 23) | class _Cipher(TypedDict):
class _CertInfo (line 36) | class _CertInfo(TypedDict):
function RAND_add (line 48) | def RAND_add(string: str | ReadableBuffer, entropy: float, /) -> None: ...
function RAND_bytes (line 49) | def RAND_bytes(n: int, /) -> bytes: ...
function RAND_pseudo_bytes (line 52) | def RAND_pseudo_bytes(n: int, /) -> tuple[bytes, bool]: ...
function RAND_egd (line 55) | def RAND_egd(path: str) -> None: ...
function RAND_status (line 57) | def RAND_status() -> bool: ...
function get_default_verify_paths (line 58) | def get_default_verify_paths() -> tuple[str, str, str, str]: ...
function enum_certificates (line 62) | def enum_certificates(store_name: str) -> _EnumRetType: ...
function enum_crls (line 63) | def enum_crls(store_name: str) -> _EnumRetType: ...
function txt2obj (line 65) | def txt2obj(txt: str, name: bool = False) -> tuple[int, str, str, str]: ...
function nid2obj (line 66) | def nid2obj(nid: int, /) -> tuple[int, str, str, str]: ...
class _SSLContext (line 68) | class _SSLContext:
method __new__ (line 82) | def __new__(cls, protocol: int, /) -> Self: ...
method cert_store_stats (line 83) | def cert_store_stats(self) -> dict[str, int]: ...
method get_ca_certs (line 85) | def get_ca_certs(self, binary_form: Literal[False] = False) -> list[_P...
method get_ca_certs (line 87) | def get_ca_certs(self, binary_form: Literal[True]) -> list[bytes]: ...
method get_ca_certs (line 89) | def get_ca_certs(self, binary_form: bool = False) -> Any: ...
method get_ciphers (line 90) | def get_ciphers(self) -> list[_Cipher]: ...
method load_cert_chain (line 91) | def load_cert_chain(
method load_dh_params (line 94) | def load_dh_params(self, path: str, /) -> None: ...
method load_verify_locations (line 95) | def load_verify_locations(
method session_stats (line 101) | def session_stats(self) -> dict[str, int]: ...
method set_ciphers (line 102) | def set_ciphers(self, cipherlist: str, /) -> None: ...
method set_default_verify_paths (line 103) | def set_default_verify_paths(self) -> None: ...
method set_ecdh_curve (line 104) | def set_ecdh_curve(self, name: str, /) -> None: ...
method set_psk_client_callback (line 106) | def set_psk_client_callback(self, callback: Callable[[str | None], tup...
method set_psk_server_callback (line 107) | def set_psk_server_callback(
class MemoryBIO (line 112) | class MemoryBIO:
method __new__ (line 115) | def __new__(self) -> Self: ...
method read (line 116) | def read(self, size: int = -1, /) -> bytes: ...
method write (line 117) | def write(self, b: ReadableBuffer, /) -> int: ...
method write_eof (line 118) | def write_eof(self) -> None: ...
class SSLSession (line 121) | class SSLSession:
method has_ticket (line 124) | def has_ticket(self) -> bool: ...
method id (line 126) | def id(self) -> bytes: ...
method ticket_lifetime_hint (line 128) | def ticket_lifetime_hint(self) -> int: ...
method time (line 130) | def time(self) -> int: ...
method timeout (line 132) | def timeout(self) -> int: ...
class Certificate (line 146) | class Certificate:
method get_info (line 147) | def get_info(self) -> _CertInfo: ...
method public_bytes (line 149) | def public_bytes(self) -> str: ...
method public_bytes (line 151) | def public_bytes(self, format: Literal[1] = 1, /) -> str: ... # ENCOD...
method public_bytes (line 153) | def public_bytes(self, format: Literal[2], /) -> bytes: ... # ENCODIN...
method public_bytes (line 155) | def public_bytes(self, format: int, /) -> str | bytes: ...
FILE: mypy/typeshed/stdlib/_stat.pyi
function S_IMODE (line 67) | def S_IMODE(mode: int, /) -> int: ...
function S_IFMT (line 68) | def S_IFMT(mode: int, /) -> int: ...
function S_ISBLK (line 69) | def S_ISBLK(mode: int, /) -> bool: ...
function S_ISCHR (line 70) | def S_ISCHR(mode: int, /) -> bool: ...
function S_ISDIR (line 71) | def S_ISDIR(mode: int, /) -> bool: ...
function S_ISDOOR (line 72) | def S_ISDOOR(mode: int, /) -> bool: ...
function S_ISFIFO (line 73) | def S_ISFIFO(mode: int, /) -> bool: ...
function S_ISLNK (line 74) | def S_ISLNK(mode: int, /) -> bool: ...
function S_ISPORT (line 75) | def S_ISPORT(mode: int, /) -> bool: ...
function S_ISREG (line 76) | def S_ISREG(mode: int, /) -> bool: ...
function S_ISSOCK (line 77) | def S_ISSOCK(mode: int, /) -> bool: ...
function S_ISWHT (line 78) | def S_ISWHT(mode: int, /) -> bool: ...
function filemode (line 79) | def filemode(mode: int, /) -> str: ...
FILE: mypy/typeshed/stdlib/_struct.pyi
function pack (line 5) | def pack(fmt: str | bytes, /, *v: Any) -> bytes: ...
function pack_into (line 6) | def pack_into(fmt: str | bytes, buffer: WriteableBuffer, offset: int, /,...
function unpack (line 7) | def unpack(format: str | bytes, buffer: ReadableBuffer, /) -> tuple[Any,...
function unpack_from (line 8) | def unpack_from(format: str | bytes, /, buffer: ReadableBuffer, offset: ...
function iter_unpack (line 9) | def iter_unpack(format: str | bytes, buffer: ReadableBuffer, /) -> Itera...
function calcsize (line 10) | def calcsize(format: str | bytes, /) -> int: ...
class Struct (line 12) | class Struct:
method format (line 14) | def format(self) -> str: ...
method size (line 16) | def size(self) -> int: ...
method __init__ (line 17) | def __init__(self, format: str | bytes) -> None: ...
method pack (line 18) | def pack(self, *v: Any) -> bytes: ...
method pack_into (line 19) | def pack_into(self, buffer: WriteableBuffer, offset: int, *v: Any) -> ...
method unpack (line 20) | def unpack(self, buffer: ReadableBuffer, /) -> tuple[Any, ...]: ...
method unpack_from (line 21) | def unpack_from(self, buffer: ReadableBuffer, offset: int = 0) -> tupl...
method iter_unpack (line 22) | def iter_unpack(self, buffer: ReadableBuffer, /) -> Iterator[tuple[Any...
FILE: mypy/typeshed/stdlib/_thread.pyi
function _count (line 14) | def _count() -> int: ...
class RLock (line 16) | class RLock:
method acquire (line 17) | def acquire(self, blocking: bool = True, timeout: float = -1) -> bool:...
method release (line 18) | def release(self) -> None: ...
method __exit__ (line 20) | def __exit__(self, t: type[BaseException] | None, v: BaseException | N...
class _ThreadHandle (line 24) | class _ThreadHandle:
method join (line 27) | def join(self, timeout: float | None = None, /) -> None: ...
method is_done (line 28) | def is_done(self) -> bool: ...
method _set_done (line 29) | def _set_done(self) -> None: ...
function start_joinable_thread (line 31) | def start_joinable_thread(
class lock (line 35) | class lock:
method acquire (line 36) | def acquire(self, blocking: bool = True, timeout: float = -1) -> bool:...
method release (line 37) | def release(self) -> None: ...
method locked (line 38) | def locked(self) -> bool: ...
method acquire_lock (line 39) | def acquire_lock(self, blocking: bool = True, timeout: float = -1) -> ...
method release_lock (line 40) | def release_lock(self) -> None: ...
method locked_lock (line 41) | def locked_lock(self) -> bool: ...
method __enter__ (line 42) | def __enter__(self) -> bool: ...
method __exit__ (line 43) | def __exit__(
class LockType (line 50) | class LockType:
method acquire (line 51) | def acquire(self, blocking: bool = True, timeout: float = -1) -> bool:...
method release (line 52) | def release(self) -> None: ...
method locked (line 53) | def locked(self) -> bool: ...
method acquire_lock (line 54) | def acquire_lock(self, blocking: bool = True, timeout: float = -1) -> ...
method release_lock (line 55) | def release_lock(self) -> None: ...
method locked_lock (line 56) | def locked_lock(self) -> bool: ...
method __enter__ (line 57) | def __enter__(self) -> bool: ...
method __exit__ (line 58) | def __exit__(
function start_new_thread (line 63) | def start_new_thread(function: Callable[[Unpack[_Ts]], object], args: tu...
function start_new_thread (line 65) | def start_new_thread(function: Callable[..., object], args: tuple[Any, ....
function start_new (line 69) | def start_new(function: Callable[[Unpack[_Ts]], object], args: tuple[Unp...
function start_new (line 71) | def start_new(function: Callable[..., object], args: tuple[Any, ...], kw...
function interrupt_main (line 74) | def interrupt_main(signum: signal.Signals = ..., /) -> None: ...
function interrupt_main (line 77) | def interrupt_main() -> None: ...
function exit (line 79) | def exit() -> NoReturn: ...
function exit_thread (line 80) | def exit_thread() -> NoReturn: ... # Obsolete synonym for exit()
function allocate_lock (line 81) | def allocate_lock() -> LockType: ...
function allocate (line 82) | def allocate() -> LockType: ... # Obsolete synonym for allocate_lock()
function get_ident (line 83) | def get_ident() -> int: ...
function stack_size (line 84) | def stack_size(size: int = 0, /) -> int: ...
function get_native_id (line 88) | def get_native_id() -> int: ... # only available on some platforms
class _ExceptHookArgs (line 90) | class _ExceptHookArgs(structseq[Any], tuple[type[BaseException], BaseExc...
method exc_type (line 95) | def exc_type(self) -> type[BaseException]: ...
method exc_value (line 97) | def exc_value(self) -> BaseException | None: ...
method exc_traceback (line 99) | def exc_traceback(self) -> TracebackType | None: ...
method thread (line 101) | def thread(self) -> Thread | None: ...
function daemon_threads_allowed (line 106) | def daemon_threads_allowed() -> bool: ...
class _local (line 108) | class _local:
method __getattribute__ (line 109) | def __getattribute__(self, name: str, /) -> Any: ...
method __setattr__ (line 110) | def __setattr__(self, name: str, value: Any, /) -> None: ...
method __delattr__ (line 111) | def __delattr__(self, name: str, /) -> None: ...
FILE: mypy/typeshed/stdlib/_threading_local.pyi
class _localimpl (line 9) | class _localimpl:
method get_dict (line 15) | def get_dict(self) -> _LocalDict: ...
method create_dict (line 16) | def create_dict(self) -> _LocalDict: ...
class local (line 18) | class local:
method __new__ (line 19) | def __new__(cls, /, *args: Any, **kw: Any) -> Self: ...
method __getattribute__ (line 20) | def __getattribute__(self, name: str) -> Any: ...
method __setattr__ (line 21) | def __setattr__(self, name: str, value: Any) -> None: ...
method __delattr__ (line 22) | def __delattr__(self, name: str) -> None: ...
FILE: mypy/typeshed/stdlib/_tkinter.pyi
class Tcl_Obj (line 20) | class Tcl_Obj:
method string (line 22) | def string(self) -> str: ...
method typename (line 24) | def typename(self) -> str: ...
method __eq__ (line 26) | def __eq__(self, value, /): ...
method __ge__ (line 27) | def __ge__(self, value, /): ...
method __gt__ (line 28) | def __gt__(self, value, /): ...
method __le__ (line 29) | def __le__(self, value, /): ...
method __lt__ (line 30) | def __lt__(self, value, /): ...
method __ne__ (line 31) | def __ne__(self, value, /): ...
class TclError (line 33) | class TclError(Exception): ...
class TkappType (line 55) | class TkappType:
method adderrorinfo (line 57) | def adderrorinfo(self, msg, /): ...
method call (line 58) | def call(self, command: Any, /, *args: Any) -> Any: ...
method createcommand (line 59) | def createcommand(self, name, func, /): ...
method createfilehandler (line 61) | def createfilehandler(self, file, mask, func, /): ...
method deletefilehandler (line 62) | def deletefilehandler(self, file, /): ...
method createtimerhandler (line 64) | def createtimerhandler(self, milliseconds, func, /): ...
method deletecommand (line 65) | def deletecommand(self, name, /): ...
method dooneevent (line 66) | def dooneevent(self, flags: int = 0, /): ...
method eval (line 67) | def eval(self, script: str, /) -> str: ...
method evalfile (line 68) | def evalfile(self, fileName, /): ...
method exprboolean (line 69) | def exprboolean(self, s, /): ...
method exprdouble (line 70) | def exprdouble(self, s, /): ...
method exprlong (line 71) | def exprlong(self, s, /): ...
method exprstring (line 72) | def exprstring(self, s, /): ...
method getboolean (line 73) | def getboolean(self, arg, /): ...
method getdouble (line 74) | def getdouble(self, arg, /): ...
method getint (line 75) | def getint(self, arg, /): ...
method getvar (line 76) | def getvar(self, *args, **kwargs): ...
method globalgetvar (line 77) | def globalgetvar(self, *args, **kwargs): ...
method globalsetvar (line 78) | def globalsetvar(self, *args, **kwargs): ...
method globalunsetvar (line 79) | def globalunsetvar(self, *args, **kwargs): ...
method interpaddr (line 80) | def interpaddr(self): ...
method loadtk (line 81) | def loadtk(self) -> None: ...
method mainloop (line 82) | def mainloop(self, threshold: int = 0, /): ...
method quit (line 83) | def quit(self): ...
method record (line 84) | def record(self, script, /): ...
method setvar (line 85) | def setvar(self, *ags, **kwargs): ...
method split (line 87) | def split(self, arg, /): ...
method splitlist (line 89) | def splitlist(self, arg, /): ...
method unsetvar (line 90) | def unsetvar(self, *args, **kwargs): ...
method wantobjects (line 91) | def wantobjects(self, *args, **kwargs): ...
method willdispatch (line 92) | def willdispatch(self): ...
method gettrace (line 94) | def gettrace(self, /) -> _TkinterTraceFunc | None: ...
method settrace (line 95) | def settrace(self, func: _TkinterTraceFunc | None, /) -> None: ...
class TkttType (line 113) | class TkttType:
method deletetimerhandler (line 114) | def deletetimerhandler(self): ...
function create (line 117) | def create(
function create (line 130) | def create(
function getbusywaitinterval (line 142) | def getbusywaitinterval(): ...
function setbusywaitinterval (line 143) | def setbusywaitinterval(new_val, /): ...
FILE: mypy/typeshed/stdlib/_tracemalloc.pyi
function _get_object_traceback (line 5) | def _get_object_traceback(obj: object, /) -> Sequence[_FrameTuple] | Non...
function _get_traces (line 6) | def _get_traces() -> Sequence[_TraceTuple]: ...
function clear_traces (line 7) | def clear_traces() -> None: ...
function get_traceback_limit (line 8) | def get_traceback_limit() -> int: ...
function get_traced_memory (line 9) | def get_traced_memory() -> tuple[int, int]: ...
function get_tracemalloc_memory (line 10) | def get_tracemalloc_memory() -> int: ...
function is_tracing (line 11) | def is_tracing() -> bool: ...
function reset_peak (line 14) | def reset_peak() -> None: ...
function start (line 16) | def start(nframe: int = 1, /) -> None: ...
function stop (line 17) | def stop() -> None: ...
FILE: mypy/typeshed/stdlib/_typeshed/__init__.pyi
class IdentityFunction (line 71) | class IdentityFunction(Protocol):
method __call__ (line 72) | def __call__(self, x: _T, /) -> _T: ...
class SupportsNext (line 75) | class SupportsNext(Protocol[_T_co]):
method __next__ (line 76) | def __next__(self) -> _T_co: ...
class SupportsAnext (line 79) | class SupportsAnext(Protocol[_T_co]):
method __anext__ (line 80) | def __anext__(self) -> Awaitable[_T_co]: ...
class SupportsDunderLT (line 84) | class SupportsDunderLT(Protocol[_T_contra]):
method __lt__ (line 85) | def __lt__(self, other: _T_contra, /) -> bool: ...
class SupportsDunderGT (line 87) | class SupportsDunderGT(Protocol[_T_contra]):
method __gt__ (line 88) | def __gt__(self, other: _T_contra, /) -> bool: ...
class SupportsDunderLE (line 90) | class SupportsDunderLE(Protocol[_T_contra]):
method __le__ (line 91) | def __le__(self, other: _T_contra, /) -> bool: ...
class SupportsDunderGE (line 93) | class SupportsDunderGE(Protocol[_T_contra]):
method __ge__ (line 94) | def __ge__(self, other: _T_contra, /) -> bool: ...
class SupportsAllComparisons (line 96) | class SupportsAllComparisons(
class SupportsAdd (line 105) | class SupportsAdd(Protocol[_T_contra, _T_co]):
method __add__ (line 106) | def __add__(self, x: _T_contra, /) -> _T_co: ...
class SupportsRAdd (line 108) | class SupportsRAdd(Protocol[_T_contra, _T_co]):
method __radd__ (line 109) | def __radd__(self, x: _T_contra, /) -> _T_co: ...
class SupportsSub (line 111) | class SupportsSub(Protocol[_T_contra, _T_co]):
method __sub__ (line 112) | def __sub__(self, x: _T_contra, /) -> _T_co: ...
class SupportsRSub (line 114) | class SupportsRSub(Protocol[_T_contra, _T_co]):
method __rsub__ (line 115) | def __rsub__(self, x: _T_contra, /) -> _T_co: ...
class SupportsDivMod (line 117) | class SupportsDivMod(Protocol[_T_contra, _T_co]):
method __divmod__ (line 118) | def __divmod__(self, other: _T_contra, /) -> _T_co: ...
class SupportsRDivMod (line 120) | class SupportsRDivMod(Protocol[_T_contra, _T_co]):
method __rdivmod__ (line 121) | def __rdivmod__(self, other: _T_contra, /) -> _T_co: ...
class SupportsIter (line 125) | class SupportsIter(Protocol[_T_co]):
method __iter__ (line 126) | def __iter__(self) -> _T_co: ...
class SupportsAiter (line 130) | class SupportsAiter(Protocol[_T_co]):
method __aiter__ (line 131) | def __aiter__(self) -> _T_co: ...
class SupportsLenAndGetItem (line 133) | class SupportsLenAndGetItem(Protocol[_T_co]):
method __len__ (line 134) | def __len__(self) -> int: ...
method __getitem__ (line 135) | def __getitem__(self, k: int, /) -> _T_co: ...
class SupportsTrunc (line 137) | class SupportsTrunc(Protocol):
method __trunc__ (line 138) | def __trunc__(self) -> int: ...
class SupportsItems (line 143) | class SupportsItems(Protocol[_KT_co, _VT_co]):
method items (line 144) | def items(self) -> AbstractSet[tuple[_KT_co, _VT_co]]: ...
class SupportsKeysAndGetItem (line 147) | class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
method keys (line 148) | def keys(self) -> Iterable[_KT]: ...
method __getitem__ (line 149) | def __getitem__(self, key: _KT, /) -> _VT_co: ...
class SupportsGetItem (line 154) | class SupportsGetItem(Protocol[_KT_contra, _VT_co]):
method __contains__ (line 155) | def __contains__(self, x: Any, /) -> bool: ...
method __getitem__ (line 156) | def __getitem__(self, key: _KT_contra, /) -> _VT_co: ...
class SupportsContainsAndGetItem (line 159) | class SupportsContainsAndGetItem(Protocol[_KT_contra, _VT_co]):
method __contains__ (line 160) | def __contains__(self, x: Any, /) -> bool: ...
method __getitem__ (line 161) | def __getitem__(self, key: _KT_contra, /) -> _VT_co: ...
class SupportsItemAccess (line 164) | class SupportsItemAccess(Protocol[_KT_contra, _VT]):
method __contains__ (line 165) | def __contains__(self, x: Any, /) -> bool: ...
method __getitem__ (line 166) | def __getitem__(self, key: _KT_contra, /) -> _VT: ...
method __setitem__ (line 167) | def __setitem__(self, key: _KT_contra, value: _VT, /) -> None: ...
method __delitem__ (line 168) | def __delitem__(self, key: _KT_contra, /) -> None: ...
class HasFileno (line 243) | class HasFileno(Protocol):
method fileno (line 244) | def fileno(self) -> int: ...
class SupportsRead (line 251) | class SupportsRead(Protocol[_T_co]):
method read (line 252) | def read(self, length: int = ..., /) -> _T_co: ...
class SupportsReadline (line 255) | class SupportsReadline(Protocol[_T_co]):
method readline (line 256) | def readline(self, length: int = ..., /) -> _T_co: ...
class SupportsNoArgReadline (line 259) | class SupportsNoArgReadline(Protocol[_T_co]):
method readline (line 260) | def readline(self) -> _T_co: ...
class SupportsWrite (line 263) | class SupportsWrite(Protocol[_T_contra]):
method write (line 264) | def write(self, s: _T_contra, /) -> object: ...
class SupportsFlush (line 267) | class SupportsFlush(Protocol):
method flush (line 268) | def flush(self) -> object: ...
class SliceableBuffer (line 280) | class SliceableBuffer(Buffer, Protocol):
method __getitem__ (line 281) | def __getitem__(self, slice: slice, /) -> Sequence[int]: ...
class IndexableBuffer (line 283) | class IndexableBuffer(Buffer, Protocol):
method __getitem__ (line 284) | def __getitem__(self, i: int, /) -> int: ...
class SupportsGetItemBuffer (line 286) | class SupportsGetItemBuffer(SliceableBuffer, IndexableBuffer, Protocol):
method __contains__ (line 287) | def __contains__(self, x: Any, /) -> bool: ...
method __getitem__ (line 289) | def __getitem__(self, slice: slice, /) -> Sequence[int]: ...
method __getitem__ (line 291) | def __getitem__(self, i: int, /) -> int: ...
class SizedBuffer (line 293) | class SizedBuffer(Sized, Buffer, Protocol): ...
class NoneType (line 307) | class NoneType:
method __bool__ (line 308) | def __bool__(self) -> Literal[False]: ...
class structseq (line 315) | class structseq(Generic[_T_co]):
method __new__ (line 325) | def __new__(cls: type[Self], sequence: Iterable[_T_co], dict: dict[str...
method __replace__ (line 327) | def __replace__(self: Self, **kwargs: Any) -> Self: ...
class DataclassInstance (line 346) | class DataclassInstance(Protocol):
class StrEnum (line 360) | class StrEnum(str, Enum): ...
FILE: mypy/typeshed/stdlib/_typeshed/dbapi.pyi
class DBAPIConnection (line 13) | class DBAPIConnection(Protocol):
method close (line 14) | def close(self) -> object: ...
method commit (line 15) | def commit(self) -> object: ...
method cursor (line 18) | def cursor(self) -> DBAPICursor: ...
class DBAPICursor (line 20) | class DBAPICursor(Protocol):
method description (line 22) | def description(self) -> Sequence[DBAPIColumnDescription] | None: ...
method rowcount (line 24) | def rowcount(self) -> int: ...
method close (line 27) | def close(self) -> object: ...
method execute (line 28) | def execute(self, operation: str, parameters: Sequence[Any] | Mapping[...
method executemany (line 29) | def executemany(self, operation: str, seq_of_parameters: Sequence[Sequ...
method fetchone (line 30) | def fetchone(self) -> Sequence[Any] | None: ...
method fetchmany (line 31) | def fetchmany(self, size: int = ..., /) -> Sequence[Sequence[Any]]: ...
method fetchall (line 32) | def fetchall(self) -> Sequence[Sequence[Any]]: ...
method setinputsizes (line 36) | def setinputsizes(self, sizes: Sequence[DBAPITypeCode | int | None], /...
method setoutputsize (line 37) | def setoutputsize(self, size: int, column: int = ..., /) -> object: ...
FILE: mypy/typeshed/stdlib/_typeshed/importlib.pyi
class LoaderProtocol (line 11) | class LoaderProtocol(Protocol):
method load_module (line 12) | def load_module(self, fullname: str, /) -> ModuleType: ...
class MetaPathFinderProtocol (line 14) | class MetaPathFinderProtocol(Protocol):
method find_spec (line 15) | def find_spec(self, fullname: str, path: Sequence[str] | None, target:...
class PathEntryFinderProtocol (line 17) | class PathEntryFinderProtocol(Protocol):
method find_spec (line 18) | def find_spec(self, fullname: str, target: ModuleType | None = ..., /)...
FILE: mypy/typeshed/stdlib/_typeshed/wsgi.pyi
class _Readable (line 13) | class _Readable(Protocol):
method read (line 14) | def read(self, size: int = ..., /) -> bytes: ...
class StartResponse (line 21) | class StartResponse(Protocol):
method __call__ (line 22) | def __call__(
class InputStream (line 30) | class InputStream(Protocol):
method read (line 31) | def read(self, size: int = ..., /) -> bytes: ...
method readline (line 32) | def readline(self, size: int = ..., /) -> bytes: ...
method readlines (line 33) | def readlines(self, hint: int = ..., /) -> list[bytes]: ...
method __iter__ (line 34) | def __iter__(self) -> Iterator[bytes]: ...
class ErrorStream (line 37) | class ErrorStream(Protocol):
method flush (line 38) | def flush(self) -> object: ...
method write (line 39) | def write(self, s: str, /) -> object: ...
method writelines (line 40) | def writelines(self, seq: list[str], /) -> object: ...
class FileWrapper (line 43) | class FileWrapper(Protocol):
method __call__ (line 44) | def __call__(self, file: _Readable, block_size: int = ..., /) -> Itera...
FILE: mypy/typeshed/stdlib/_typeshed/xml.pyi
class DOMImplementation (line 6) | class DOMImplementation(Protocol):
method hasFeature (line 7) | def hasFeature(self, feature: str, version: str | None, /) -> bool: ...
method createDocument (line 8) | def createDocument(self, namespaceUri: str, qualifiedName: str, doctyp...
method createDocumentType (line 9) | def createDocumentType(self, qualifiedName: str, publicId: str, system...
FILE: mypy/typeshed/stdlib/_warnings.pyi
function warn (line 10) | def warn(
function warn (line 19) | def warn(
function warn (line 30) | def warn(message: str, category: type[Warning] | None = None, stacklevel...
function warn (line 32) | def warn(message: Warning, category: Any = None, stacklevel: int = 1, so...
function warn_explicit (line 35) | def warn_explicit(
function warn_explicit (line 46) | def warn_explicit(
FILE: mypy/typeshed/stdlib/_weakref.pyi
function getweakrefcount (line 8) | def getweakrefcount(object: Any, /) -> int: ...
function getweakrefs (line 9) | def getweakrefs(object: Any, /) -> list[Any]: ...
function proxy (line 13) | def proxy(object: _C, callback: Callable[[_C], Any] | None = None, /) ->...
function proxy (line 15) | def proxy(object: _T, callback: Callable[[_T], Any] | None = None, /) ->...
FILE: mypy/typeshed/stdlib/_weakrefset.pyi
class WeakSet (line 14) | class WeakSet(MutableSet[_T]):
method __init__ (line 16) | def __init__(self, data: None = None) -> None: ...
method __init__ (line 18) | def __init__(self, data: Iterable[_T]) -> None: ...
method add (line 19) | def add(self, item: _T) -> None: ... # type: ignore[override]
method discard (line 20) | def discard(self, item: _T) -> None: ... # type: ignore[override]
method copy (line 21) | def copy(self) -> Self: ...
method remove (line 22) | def remove(self, item: _T) -> None: ... # type: ignore[override]
method update (line 23) | def update(self, other: Iterable[_T]) -> None: ...
method __contains__ (line 25) | def __contains__(self, item: object) -> bool: ...
method __len__ (line 26) | def __len__(self) -> int: ...
method __iter__ (line 27) | def __iter__(self) -> Iterator[_T]: ...
method __ior__ (line 28) | def __ior__(self, other: Iterable[_T]) -> Self: ... # type: ignore[ov...
method difference (line 29) | def difference(self, other: Iterable[_T]) -> Self: ...
method __sub__ (line 30) | def __sub__(self, other: Iterable[Any]) -> Self: ...
method difference_update (line 31) | def difference_update(self, other: Iterable[Any]) -> None: ...
method __isub__ (line 32) | def __isub__(self, other: Iterable[Any]) -> Self: ...
method intersection (line 33) | def intersection(self, other: Iterable[_T]) -> Self: ...
method __and__ (line 34) | def __and__(self, other: Iterable[Any]) -> Self: ...
method intersection_update (line 35) | def intersection_update(self, other: Iterable[Any]) -> None: ...
method __iand__ (line 36) | def __iand__(self, other: Iterable[Any]) -> Self: ...
method issubset (line 37) | def issubset(self, other: Iterable[_T]) -> bool: ...
method __le__ (line 38) | def __le__(self, other: Iterable[_T]) -> bool: ...
method __lt__ (line 39) | def __lt__(self, other: Iterable[_T]) -> bool: ...
method issuperset (line 40) | def issuperset(self, other: Iterable[_T]) -> bool: ...
method __ge__ (line 41) | def __ge__(self, other: Iterable[_T]) -> bool: ...
method __gt__ (line 42) | def __gt__(self, other: Iterable[_T]) -> bool: ...
method __eq__ (line 43) | def __eq__(self, other: object) -> bool: ...
method symmetric_difference (line 44) | def symmetric_difference(self, other: Iterable[_S]) -> WeakSet[_S | _T...
method __xor__ (line 45) | def __xor__(self, other: Iterable[_S]) -> WeakSet[_S | _T]: ...
method symmetric_difference_update (line 46) | def symmetric_difference_update(self, other: Iterable[_T]) -> None: ...
method __ixor__ (line 47) | def __ixor__(self, other: Iterable[_T]) -> Self: ... # type: ignore[o...
method union (line 48) | def union(self, other: Iterable[_S]) -> WeakSet[_S | _T]: ...
method __or__ (line 49) | def __or__(self, other: Iterable[_S]) -> WeakSet[_S | _T]: ...
method isdisjoint (line 50) | def isdisjoint(self, other: Iterable[_T]) -> bool: ...
method __class_getitem__ (line 52) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
FILE: mypy/typeshed/stdlib/_winapi.pyi
function CloseHandle (line 175) | def CloseHandle(handle: int, /) -> None: ...
function ConnectNamedPipe (line 177) | def ConnectNamedPipe(handle: int, overlapped: Literal[True]) -> Overlapp...
function ConnectNamedPipe (line 179) | def ConnectNamedPipe(handle: int, overlapped: Literal[False] = False) ->...
function ConnectNamedPipe (line 181) | def ConnectNamedPipe(handle: int, overlapped: bool) -> Overlapped | None...
function CreateFile (line 182) | def CreateFile(
function CreateJunction (line 192) | def CreateJunction(src_path: str, dst_path: str, /) -> None: ...
function CreateNamedPipe (line 193) | def CreateNamedPipe(
function CreatePipe (line 204) | def CreatePipe(pipe_attrs: Any, size: int, /) -> tuple[int, int]: ...
function CreateProcess (line 205) | def CreateProcess(
function DuplicateHandle (line 217) | def DuplicateHandle(
function ExitProcess (line 226) | def ExitProcess(ExitCode: int, /) -> NoReturn: ...
function GetACP (line 227) | def GetACP() -> int: ...
function GetFileType (line 228) | def GetFileType(handle: int) -> int: ...
function GetCurrentProcess (line 229) | def GetCurrentProcess() -> int: ...
function GetExitCodeProcess (line 230) | def GetExitCodeProcess(process: int, /) -> int: ...
function GetLastError (line 231) | def GetLastError() -> int: ...
function GetModuleFileName (line 232) | def GetModuleFileName(module_handle: int, /) -> str: ...
function GetStdHandle (line 233) | def GetStdHandle(std_handle: int, /) -> int: ...
function GetVersion (line 234) | def GetVersion() -> int: ...
function OpenProcess (line 235) | def OpenProcess(desired_access: int, inherit_handle: bool, process_id: i...
function PeekNamedPipe (line 236) | def PeekNamedPipe(handle: int, size: int = 0, /) -> tuple[int, int] | tu...
function LCMapStringEx (line 238) | def LCMapStringEx(locale: str, flags: int, src: str) -> str: ...
function UnmapViewOfFile (line 239) | def UnmapViewOfFile(address: int, /) -> None: ...
function ReadFile (line 242) | def ReadFile(handle: int, size: int, overlapped: Literal[True]) -> tuple...
function ReadFile (line 244) | def ReadFile(handle: int, size: int, overlapped: Literal[False] = False)...
function ReadFile (line 246) | def ReadFile(handle: int, size: int, overlapped: int | bool) -> tuple[An...
function SetNamedPipeHandleState (line 247) | def SetNamedPipeHandleState(
function TerminateProcess (line 250) | def TerminateProcess(handle: int, exit_code: int, /) -> None: ...
function WaitForMultipleObjects (line 251) | def WaitForMultipleObjects(handle_seq: Sequence[int], wait_flag: bool, m...
function WaitForSingleObject (line 252) | def WaitForSingleObject(handle: int, milliseconds: int, /) -> int: ...
function WaitNamedPipe (line 253) | def WaitNamedPipe(name: str, timeout: int, /) -> None: ...
function WriteFile (line 255) | def WriteFile(handle: int, buffer: ReadableBuffer, overlapped: Literal[T...
function WriteFile (line 257) | def WriteFile(handle: int, buffer: ReadableBuffer, overlapped: Literal[F...
function WriteFile (line 259) | def WriteFile(handle: int, buffer: ReadableBuffer, overlapped: int | boo...
class Overlapped (line 261) | class Overlapped:
method GetOverlappedResult (line 263) | def GetOverlappedResult(self, wait: bool, /) -> tuple[int, int]: ...
method cancel (line 264) | def cancel(self) -> None: ...
method getbuffer (line 265) | def getbuffer(self) -> bytes | None: ...
function BatchedWaitForMultipleObjects (line 268) | def BatchedWaitForMultipleObjects(
function CreateEventW (line 271) | def CreateEventW(security_attributes: int, manual_reset: bool, initial_s...
function CreateMutexW (line 272) | def CreateMutexW(security_attributes: int, initial_owner: bool, name: st...
function GetLongPathName (line 273) | def GetLongPathName(path: str) -> str: ...
function GetShortPathName (line 274) | def GetShortPathName(path: str) -> str: ...
function OpenEventW (line 275) | def OpenEventW(desired_access: int, inherit_handle: bool, name: str) -> ...
function OpenMutexW (line 276) | def OpenMutexW(desired_access: int, inherit_handle: bool, name: str) -> ...
function ReleaseMutex (line 277) | def ReleaseMutex(mutex: int) -> None: ...
function ResetEvent (line 278) | def ResetEvent(event: int) -> None: ...
function SetEvent (line 279) | def SetEvent(event: int) -> None: ...
function CopyFile2 (line 282) | def CopyFile2(existing_file_name: str, new_file_name: str, flags: int, p...
function NeedCurrentDirectoryForExePath (line 283) | def NeedCurrentDirectoryForExePath(exe_name: str, /) -> bool: ...
FILE: mypy/typeshed/stdlib/abc.pyi
class ABCMeta (line 14) | class ABCMeta(type):
method __new__ (line 17) | def __new__(
method __new__ (line 21) | def __new__(
method __instancecheck__ (line 25) | def __instancecheck__(cls: ABCMeta, instance: Any) -> bool: ...
method __subclasscheck__ (line 26) | def __subclasscheck__(cls: ABCMeta, subclass: type) -> bool: ...
method _dump_registry (line 27) | def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = Non...
method register (line 28) | def register(cls: ABCMeta, subclass: type[_T]) -> type[_T]: ...
function abstractmethod (line 30) | def abstractmethod(funcobj: _FuncT) -> _FuncT: ...
class abstractclassmethod (line 32) | class abstractclassmethod(classmethod[_T, _P, _R_co]):
method __init__ (line 34) | def __init__(self, callable: Callable[Concatenate[type[_T], _P], _R_co...
class abstractstaticmethod (line 37) | class abstractstaticmethod(staticmethod[_P, _R_co]):
method __init__ (line 39) | def __init__(self, callable: Callable[_P, _R_co]) -> None: ...
class abstractproperty (line 42) | class abstractproperty(property):
class ABC (line 45) | class ABC(metaclass=ABCMeta):
function get_cache_token (line 48) | def get_cache_token() -> object: ...
function update_abstractmethods (line 51) | def update_abstractmethods(cls: type[_T]) -> type[_T]: ...
FILE: mypy/typeshed/stdlib/aifc.pyi
class Error (line 11) | class Error(Exception): ...
class _aifc_params (line 13) | class _aifc_params(NamedTuple):
class Aifc_read (line 24) | class Aifc_read:
method __init__ (line 25) | def __init__(self, f: _File) -> None: ...
method __enter__ (line 26) | def __enter__(self) -> Self: ...
method __exit__ (line 27) | def __exit__(
method initfp (line 30) | def initfp(self, file: IO[bytes]) -> None: ...
method getfp (line 31) | def getfp(self) -> IO[bytes]: ...
method rewind (line 32) | def rewind(self) -> None: ...
method close (line 33) | def close(self) -> None: ...
method tell (line 34) | def tell(self) -> int: ...
method getnchannels (line 35) | def getnchannels(self) -> int: ...
method getnframes (line 36) | def getnframes(self) -> int: ...
method getsampwidth (line 37) | def getsampwidth(self) -> int: ...
method getframerate (line 38) | def getframerate(self) -> int: ...
method getcomptype (line 39) | def getcomptype(self) -> bytes: ...
method getcompname (line 40) | def getcompname(self) -> bytes: ...
method getparams (line 41) | def getparams(self) -> _aifc_params: ...
method getmarkers (line 42) | def getmarkers(self) -> list[_Marker] | None: ...
method getmark (line 43) | def getmark(self, id: int) -> _Marker: ...
method setpos (line 44) | def setpos(self, pos: int) -> None: ...
method readframes (line 45) | def readframes(self, nframes: int) -> bytes: ...
class Aifc_write (line 47) | class Aifc_write:
method __init__ (line 48) | def __init__(self, f: _File) -> None: ...
method __del__ (line 49) | def __del__(self) -> None: ...
method __enter__ (line 50) | def __enter__(self) -> Self: ...
method __exit__ (line 51) | def __exit__(
method initfp (line 54) | def initfp(self, file: IO[bytes]) -> None: ...
method aiff (line 55) | def aiff(self) -> None: ...
method aifc (line 56) | def aifc(self) -> None: ...
method setnchannels (line 57) | def setnchannels(self, nchannels: int) -> None: ...
method getnchannels (line 58) | def getnchannels(self) -> int: ...
method setsampwidth (line 59) | def setsampwidth(self, sampwidth: int) -> None: ...
method getsampwidth (line 60) | def getsampwidth(self) -> int: ...
method setframerate (line 61) | def setframerate(self, framerate: int) -> None: ...
method getframerate (line 62) | def getframerate(self) -> int: ...
method setnframes (line 63) | def setnframes(self, nframes: int) -> None: ...
method getnframes (line 64) | def getnframes(self) -> int: ...
method setcomptype (line 65) | def setcomptype(self, comptype: bytes, compname: bytes) -> None: ...
method getcomptype (line 66) | def getcomptype(self) -> bytes: ...
method getcompname (line 67) | def getcompname(self) -> bytes: ...
method setparams (line 68) | def setparams(self, params: tuple[int, int, int, int, bytes, bytes]) -...
method getparams (line 69) | def getparams(self) -> _aifc_params: ...
method setmark (line 70) | def setmark(self, id: int, pos: int, name: bytes) -> None: ...
method getmark (line 71) | def getmark(self, id: int) -> _Marker: ...
method getmarkers (line 72) | def getmarkers(self) -> list[_Marker] | None: ...
method tell (line 73) | def tell(self) -> int: ...
method writeframesraw (line 74) | def writeframesraw(self, data: Any) -> None: ... # Actual type for da...
method writeframes (line 75) | def writeframes(self, data: Any) -> None: ...
method close (line 76) | def close(self) -> None: ...
function open (line 79) | def open(f: _File, mode: Literal["r", "rb"]) -> Aifc_read: ...
function open (line 81) | def open(f: _File, mode: Literal["w", "wb"]) -> Aifc_write: ...
function open (line 83) | def open(f: _File, mode: str | None = None) -> Any: ...
function openfp (line 87) | def openfp(f: _File, mode: Literal["r", "rb"]) -> Aifc_read: ...
function openfp (line 89) | def openfp(f: _File, mode: Literal["w", "wb"]) -> Aifc_write: ...
function openfp (line 91) | def openfp(f: _File, mode: str | None = None) -> Any: ...
FILE: mypy/typeshed/stdlib/antigravity.pyi
function geohash (line 3) | def geohash(latitude: float, longitude: float, datedow: ReadableBuffer) ...
FILE: mypy/typeshed/stdlib/argparse.pyi
class ArgumentError (line 56) | class ArgumentError(Exception):
method __init__ (line 59) | def __init__(self, argument: Action | None, message: str) -> None: ...
class _AttributeHolder (line 62) | class _AttributeHolder:
method _get_kwargs (line 63) | def _get_kwargs(self) -> list[tuple[str, Any]]: ...
method _get_args (line 64) | def _get_args(self) -> list[Any]: ...
class _ActionsContainer (line 67) | class _ActionsContainer:
method __init__ (line 81) | def __init__(self, description: str | None, prefix_chars: str, argumen...
method register (line 82) | def register(self, registry_name: str, value: Any, object: Any) -> Non...
method _registry_get (line 83) | def _registry_get(self, registry_name: str, value: Any, default: Any =...
method set_defaults (line 84) | def set_defaults(self, **kwargs: Any) -> None: ...
method get_default (line 85) | def get_default(self, dest: str) -> Any: ...
method add_argument (line 86) | def add_argument(
method add_argument_group (line 102) | def add_argument_group(
method add_mutually_exclusive_group (line 111) | def add_mutually_exclusive_group(self, *, required: bool = False) -> _...
method _add_action (line 112) | def _add_action(self, action: _ActionT) -> _ActionT: ...
method _remove_action (line 113) | def _remove_action(self, action: Action) -> None: ...
method _add_container_actions (line 114) | def _add_container_actions(self, container: _ActionsContainer) -> None...
method _get_positional_kwargs (line 115) | def _get_positional_kwargs(self, dest: str, **kwargs: Any) -> dict[str...
method _get_optional_kwargs (line 116) | def _get_optional_kwargs(self, *args: Any, **kwargs: Any) -> dict[str,...
method _pop_action_class (line 117) | def _pop_action_class(self, kwargs: Any, default: type[Action] | None ...
method _get_handler (line 118) | def _get_handler(self) -> Callable[[Action, Iterable[tuple[str, Action...
method _check_conflict (line 119) | def _check_conflict(self, action: Action) -> None: ...
method _handle_conflict_error (line 120) | def _handle_conflict_error(self, action: Action, conflicting_actions: ...
method _handle_conflict_resolve (line 121) | def _handle_conflict_resolve(self, action: Action, conflicting_actions...
class _FormatterClass (line 123) | class _FormatterClass(Protocol):
method __call__ (line 124) | def __call__(self, *, prog: str) -> HelpFormatter: ...
class ArgumentParser (line 126) | class ArgumentParser(_AttributeHolder, _ActionsContainer):
method __init__ (line 142) | def __init__(
method __init__ (line 159) | def __init__(
method parse_args (line 176) | def parse_args(self, args: Sequence[str] | None = None, namespace: Non...
method parse_args (line 178) | def parse_args(self, args: Sequence[str] | None, namespace: _N) -> _N:...
method parse_args (line 180) | def parse_args(self, *, namespace: _N) -> _N: ...
method add_subparsers (line 182) | def add_subparsers(
method add_subparsers (line 196) | def add_subparsers(
method print_usage (line 210) | def print_usage(self, file: SupportsWrite[str] | None = None) -> None:...
method print_help (line 211) | def print_help(self, file: SupportsWrite[str] | None = None) -> None: ...
method format_usage (line 212) | def format_usage(self) -> str: ...
method format_help (line 213) | def format_help(self) -> str: ...
method parse_known_args (line 215) | def parse_known_args(self, args: Sequence[str] | None = None, namespac...
method parse_known_args (line 217) | def parse_known_args(self, args: Sequence[str] | None, namespace: _N) ...
method parse_known_args (line 219) | def parse_known_args(self, *, namespace: _N) -> tuple[_N, list[str]]: ...
method convert_arg_line_to_args (line 220) | def convert_arg_line_to_args(self, arg_line: str) -> list[str]: ...
method exit (line 221) | def exit(self, status: int = 0, message: str | None = None) -> NoRetur...
method error (line 222) | def error(self, message: str) -> NoReturn: ...
method parse_intermixed_args (line 224) | def parse_intermixed_args(self, args: Sequence[str] | None = None, nam...
method parse_intermixed_args (line 226) | def parse_intermixed_args(self, args: Sequence[str] | None, namespace:...
method parse_intermixed_args (line 228) | def parse_intermixed_args(self, *, namespace: _N) -> _N: ...
method parse_known_intermixed_args (line 230) | def parse_known_intermixed_args(
method parse_known_intermixed_args (line 234) | def parse_known_intermixed_args(self, args: Sequence[str] | None, name...
method parse_known_intermixed_args (line 236) | def parse_known_intermixed_args(self, *, namespace: _N) -> tuple[_N, l...
method _get_optional_actions (line 238) | def _get_optional_actions(self) -> list[Action]: ...
method _get_positional_actions (line 239) | def _get_positional_actions(self) -> list[Action]: ...
method _parse_known_args (line 241) | def _parse_known_args(
method _parse_known_args (line 245) | def _parse_known_args(self, arg_strings: list[str], namespace: Namespa...
method _read_args_from_files (line 247) | def _read_args_from_files(self, arg_strings: list[str]) -> list[str]: ...
method _match_argument (line 248) | def _match_argument(self, action: Action, arg_strings_pattern: str) ->...
method _match_arguments_partial (line 249) | def _match_arguments_partial(self, actions: Sequence[Action], arg_stri...
method _parse_optional (line 250) | def _parse_optional(self, arg_string: str) -> tuple[Action | None, str...
method _get_option_tuples (line 251) | def _get_option_tuples(self, option_string: str) -> list[tuple[Action,...
method _get_nargs_pattern (line 252) | def _get_nargs_pattern(self, action: Action) -> str: ...
method _get_values (line 253) | def _get_values(self, action: Action, arg_strings: list[str]) -> Any: ...
method _get_value (line 254) | def _get_value(self, action: Action, arg_string: str) -> Any: ...
method _check_value (line 255) | def _check_value(self, action: Action, value: Any) -> None: ...
method _get_formatter (line 256) | def _get_formatter(self) -> HelpFormatter: ...
method _print_message (line 257) | def _print_message(self, message: str, file: SupportsWrite[str] | None...
class HelpFormatter (line 259) | class HelpFormatter:
class _Section (line 273) | class _Section:
method __init__ (line 278) | def __init__(self, formatter: HelpFormatter, parent: Self | None, he...
method format_help (line 279) | def format_help(self) -> str: ...
method __init__ (line 281) | def __init__(self, prog: str, indent_increment: int = 2, max_help_posi...
method _indent (line 282) | def _indent(self) -> None: ...
method _dedent (line 283) | def _dedent(self) -> None: ...
method _add_item (line 284) | def _add_item(self, func: Callable[..., str], args: Iterable[Any]) -> ...
method start_section (line 285) | def start_section(self, heading: str | None) -> None: ...
method end_section (line 286) | def end_section(self) -> None: ...
method add_text (line 287) | def add_text(self, text: str | None) -> None: ...
method add_usage (line 288) | def add_usage(
method add_argument (line 291) | def add_argument(self, action: Action) -> None: ...
method add_arguments (line 292) | def add_arguments(self, actions: Iterable[Action]) -> None: ...
method format_help (line 293) | def format_help(self) -> str: ...
method _join_parts (line 294) | def _join_parts(self, part_strings: Iterable[str]) -> str: ...
method _format_usage (line 295) | def _format_usage(
method _format_actions_usage (line 298) | def _format_actions_usage(self, actions: Iterable[Action], groups: Ite...
method _format_text (line 299) | def _format_text(self, text: str) -> str: ...
method _format_action (line 300) | def _format_action(self, action: Action) -> str: ...
method _format_action_invocation (line 301) | def _format_action_invocation(self, action: Action) -> str: ...
method _metavar_formatter (line 302) | def _metavar_formatter(self, action: Action, default_metavar: str) -> ...
method _format_args (line 303) | def _format_args(self, action: Action, default_metavar: str) -> str: ...
method _expand_help (line 304) | def _expand_help(self, action: Action) -> str: ...
method _iter_indented_subactions (line 305) | def _iter_indented_subactions(self, action: Action) -> Generator[Actio...
method _split_lines (line 306) | def _split_lines(self, text: str, width: int) -> list[str]: ...
method _fill_text (line 307) | def _fill_text(self, text: str, width: int, indent: str) -> str: ...
method _get_help_string (line 308) | def _get_help_string(self, action: Action) -> str | None: ...
method _get_default_metavar_for_optional (line 309) | def _get_default_metavar_for_optional(self, action: Action) -> str: ...
method _get_default_metavar_for_positional (line 310) | def _get_default_metavar_for_positional(self, action: Action) -> str: ...
class RawDescriptionHelpFormatter (line 312) | class RawDescriptionHelpFormatter(HelpFormatter): ...
class RawTextHelpFormatter (line 313) | class RawTextHelpFormatter(RawDescriptionHelpFormatter): ...
class ArgumentDefaultsHelpFormatter (line 314) | class ArgumentDefaultsHelpFormatter(HelpFormatter): ...
class MetavarTypeHelpFormatter (line 315) | class MetavarTypeHelpFormatter(HelpFormatter): ...
class Action (line 317) | class Action(_AttributeHolder):
method __init__ (line 329) | def __init__(
method __init__ (line 344) | def __init__(
method __call__ (line 358) | def __call__(
method format_usage (line 362) | def format_usage(self) -> str: ...
class BooleanOptionalAction (line 365) | class BooleanOptionalAction(Action):
method __init__ (line 367) | def __init__(
method __init__ (line 378) | def __init__(
method __init__ (line 390) | def __init__(
method __init__ (line 404) | def __init__(
method __init__ (line 415) | def __init__(
method __init__ (line 430) | def __init__(
method __init__ (line 441) | def __init__(
class BooleanOptionalAction (line 428) | class BooleanOptionalAction(Action):
method __init__ (line 367) | def __init__(
method __init__ (line 378) | def __init__(
method __init__ (line 390) | def __init__(
method __init__ (line 404) | def __init__(
method __init__ (line 415) | def __init__(
method __init__ (line 430) | def __init__(
method __init__ (line 441) | def __init__(
class Namespace (line 453) | class Namespace(_AttributeHolder):
method __init__ (line 454) | def __init__(self, **kwargs: Any) -> None: ...
method __getattr__ (line 455) | def __getattr__(self, name: str) -> Any: ...
method __setattr__ (line 456) | def __setattr__(self, name: str, value: Any, /) -> None: ...
method __contains__ (line 457) | def __contains__(self, key: str) -> bool: ...
method __eq__ (line 458) | def __eq__(self, other: object) -> bool: ...
class FileType (line 461) | class FileType:
method __init__ (line 467) | def __init__(self, mode: str = "r", bufsize: int = -1, encoding: str |...
method __call__ (line 468) | def __call__(self, string: str) -> IO[Any]: ...
class _ArgumentGroup (line 471) | class _ArgumentGroup(_ActionsContainer):
method __init__ (line 474) | def __init__(
class _MutuallyExclusiveGroup (line 486) | class _MutuallyExclusiveGroup(_ArgumentGroup):
method __init__ (line 489) | def __init__(self, container: _ActionsContainer, required: bool = Fals...
class _StoreAction (line 492) | class _StoreAction(Action): ...
class _StoreConstAction (line 495) | class _StoreConstAction(Action):
method __init__ (line 497) | def __init__(
method __init__ (line 509) | def __init__(
method __init__ (line 520) | def __init__(
class _StoreTrueAction (line 532) | class _StoreTrueAction(_StoreConstAction):
method __init__ (line 534) | def __init__(
method __init__ (line 544) | def __init__(
class _StoreFalseAction (line 549) | class _StoreFalseAction(_StoreConstAction):
method __init__ (line 551) | def __init__(
method __init__ (line 561) | def __init__(
class _AppendAction (line 566) | class _AppendAction(Action): ...
class _ExtendAction (line 569) | class _ExtendAction(_AppendAction): ...
class _AppendConstAction (line 572) | class _AppendConstAction(Action):
method __init__ (line 574) | def __init__(
method __init__ (line 586) | def __init__(
method __init__ (line 597) | def __init__(
class _CountAction (line 609) | class _CountAction(Action):
method __init__ (line 611) | def __init__(
method __init__ (line 621) | def __init__(
class _HelpAction (line 626) | class _HelpAction(Action):
method __init__ (line 628) | def __init__(
method __init__ (line 637) | def __init__(
class _VersionAction (line 646) | class _VersionAction(Action):
method __init__ (line 649) | def __init__(
method __init__ (line 659) | def __init__(
method __init__ (line 668) | def __init__(
class _SubParsersAction (line 678) | class _SubParsersAction(Action, Generic[_ArgumentParserT]):
method __init__ (line 685) | def __init__(
method add_parser (line 699) | def add_parser(
method add_parser (line 723) | def add_parser(
method add_parser (line 746) | def add_parser(
method _get_subactions (line 768) | def _get_subactions(self) -> list[Action]: ...
class ArgumentTypeError (line 771) | class ArgumentTypeError(Exception): ...
function _get_action_name (line 774) | def _get_action_name(argument: Action | None) -> str | None: ...
FILE: mypy/typeshed/stdlib/array.pyi
class array (line 21) | class array(MutableSequence[_T]):
method typecode (line 23) | def typecode(self) -> _TypeCode: ...
method itemsize (line 25) | def itemsize(self) -> int: ...
method __new__ (line 27) | def __new__(
method __new__ (line 31) | def __new__(
method __new__ (line 35) | def __new__(
method __new__ (line 39) | def __new__(cls, typecode: str, initializer: Iterable[_T], /) -> Self:...
method __new__ (line 41) | def __new__(cls, typecode: str, initializer: bytes | bytearray = ..., ...
method append (line 42) | def append(self, v: _T, /) -> None: ...
method buffer_info (line 43) | def buffer_info(self) -> tuple[int, int]: ...
method byteswap (line 44) | def byteswap(self) -> None: ...
method count (line 45) | def count(self, v: _T, /) -> int: ...
method extend (line 46) | def extend(self, bb: Iterable[_T], /) -> None: ...
method frombytes (line 47) | def frombytes(self, buffer: ReadableBuffer, /) -> None: ...
method fromfile (line 48) | def fromfile(self, f: SupportsRead[bytes], n: int, /) -> None: ...
method fromlist (line 49) | def fromlist(self, list: list[_T], /) -> None: ...
method fromunicode (line 50) | def fromunicode(self, ustr: str, /) -> None: ...
method index (line 52) | def index(self, v: _T, start: int = 0, stop: int = sys.maxsize, /) -> ...
method index (line 54) | def index(self, v: _T, /) -> int: ... # type: ignore[override]
method insert (line 56) | def insert(self, i: int, v: _T, /) -> None: ...
method pop (line 57) | def pop(self, i: int = -1, /) -> _T: ...
method remove (line 58) | def remove(self, v: _T, /) -> None: ...
method tobytes (line 59) | def tobytes(self) -> bytes: ...
method tofile (line 60) | def tofile(self, f: SupportsWrite[bytes], /) -> None: ...
method tolist (line 61) | def tolist(self) -> list[_T]: ...
method tounicode (line 62) | def tounicode(self) -> str: ...
method fromstring (line 64) | def fromstring(self, buffer: str | ReadableBuffer, /) -> None: ...
method tostring (line 65) | def tostring(self) -> bytes: ...
method __len__ (line 68) | def __len__(self) -> int: ...
method __getitem__ (line 70) | def __getitem__(self, key: SupportsIndex, /) -> _T: ...
method __getitem__ (line 72) | def __getitem__(self, key: slice, /) -> array[_T]: ...
method __setitem__ (line 74) | def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ...
method __setitem__ (line 76) | def __setitem__(self, key: slice, value: array[_T], /) -> None: ...
method __delitem__ (line 77) | def __delitem__(self, key: SupportsIndex | slice, /) -> None: ...
method __add__ (line 78) | def __add__(self, value: array[_T], /) -> array[_T]: ...
method __eq__ (line 79) | def __eq__(self, value: object, /) -> bool: ...
method __ge__ (line 80) | def __ge__(self, value: array[_T], /) -> bool: ...
method __gt__ (line 81) | def __gt__(self, value: array[_T], /) -> bool: ...
method __iadd__ (line 82) | def __iadd__(self, value: array[_T], /) -> Self: ... # type: ignore[o...
method __imul__ (line 83) | def __imul__(self, value: int, /) -> Self: ...
method __le__ (line 84) | def __le__(self, value: array[_T], /) -> bool: ...
method __lt__ (line 85) | def __lt__(self, value: array[_T], /) -> bool: ...
method __mul__ (line 86) | def __mul__(self, value: int, /) -> array[_T]: ...
method __rmul__ (line 87) | def __rmul__(self, value: int, /) -> array[_T]: ...
method __copy__ (line 88) | def __copy__(self) -> array[_T]: ...
method __deepcopy__ (line 89) | def __deepcopy__(self, unused: Any, /) -> array[_T]: ...
method __buffer__ (line 90) | def __buffer__(self, flags: int, /) -> memoryview: ...
method __release_buffer__ (line 91) | def __release_buffer__(self, buffer: memoryview, /) -> None: ...
method __class_getitem__ (line 93) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
FILE: mypy/typeshed/stdlib/ast.pyi
class _Attributes (line 27) | class _Attributes(TypedDict, Generic[_EndPositionT], total=False):
class AST (line 36) | class AST:
method __replace__ (line 45) | def __replace__(self) -> Self: ...
class mod (line 47) | class mod(AST): ...
class Module (line 49) | class Module(mod):
method __init__ (line 55) | def __init__(self, body: list[stmt] = ..., type_ignores: list[TypeIgno...
method __init__ (line 57) | def __init__(self, body: list[stmt], type_ignores: list[TypeIgnore]) -...
method __replace__ (line 60) | def __replace__(self, *, body: list[stmt] = ..., type_ignores: list[Ty...
class Interactive (line 62) | class Interactive(mod):
method __init__ (line 67) | def __init__(self, body: list[stmt] = ...) -> None: ...
method __init__ (line 69) | def __init__(self, body: list[stmt]) -> None: ...
method __replace__ (line 72) | def __replace__(self, *, body: list[stmt] = ...) -> Self: ...
class Expression (line 74) | class Expression(mod):
method __init__ (line 78) | def __init__(self, body: expr) -> None: ...
method __replace__ (line 81) | def __replace__(self, *, body: expr = ...) -> Self: ...
class FunctionType (line 83) | class FunctionType(mod):
method __init__ (line 90) | def __init__(self, argtypes: list[expr], returns: expr) -> None: ...
method __init__ (line 92) | def __init__(self, argtypes: list[expr] = ..., *, returns: expr) -> No...
method __init__ (line 94) | def __init__(self, argtypes: list[expr], returns: expr) -> None: ...
method __replace__ (line 97) | def __replace__(self, *, argtypes: list[expr] = ..., returns: expr = ....
class stmt (line 99) | class stmt(AST):
method __init__ (line 104) | def __init__(self, **kwargs: Unpack[_Attributes]) -> None: ...
method __replace__ (line 107) | def __replace__(self, **kwargs: Unpack[_Attributes]) -> Self: ...
class FunctionDef (line 109) | class FunctionDef(stmt):
method __init__ (line 123) | def __init__(
method __init__ (line 136) | def __init__(
method __init__ (line 148) | def __init__(
method __init__ (line 161) | def __init__(
method __replace__ (line 173) | def __replace__(
class AsyncFunctionDef (line 185) | class AsyncFunctionDef(stmt):
method __init__ (line 199) | def __init__(
method __init__ (line 212) | def __init__(
method __init__ (line 224) | def __init__(
method __init__ (line 237) | def __init__(
method __replace__ (line 249) | def __replace__(
class ClassDef (line 261) | class ClassDef(stmt):
method __init__ (line 274) | def __init__(
method __init__ (line 285) | def __init__(
method __init__ (line 296) | def __init__(
method __replace__ (line 307) | def __replace__(
class Return (line 319) | class Return(stmt):
method __init__ (line 323) | def __init__(self, value: expr | None = None, **kwargs: Unpack[_Attrib...
method __replace__ (line 326) | def __replace__(self, *, value: expr | None = ..., **kwargs: Unpack[_A...
class Delete (line 328) | class Delete(stmt):
method __init__ (line 333) | def __init__(self, targets: list[expr] = ..., **kwargs: Unpack[_Attrib...
method __init__ (line 335) | def __init__(self, targets: list[expr], **kwargs: Unpack[_Attributes])...
method __replace__ (line 338) | def __replace__(self, *, targets: list[expr] = ..., **kwargs: Unpack[_...
class Assign (line 340) | class Assign(stmt):
method __init__ (line 348) | def __init__(
method __init__ (line 352) | def __init__(
method __init__ (line 356) | def __init__(
method __replace__ (line 361) | def __replace__(
class TypeAlias (line 366) | class TypeAlias(stmt):
method __init__ (line 373) | def __init__(
method __init__ (line 377) | def __init__(
method __init__ (line 381) | def __init__(
method __replace__ (line 386) | def __replace__(
class AugAssign (line 395) | class AugAssign(stmt):
method __init__ (line 401) | def __init__(
method __replace__ (line 406) | def __replace__(
class AnnAssign (line 415) | class AnnAssign(stmt):
method __init__ (line 423) | def __init__(
method __init__ (line 432) | def __init__(
method __replace__ (line 443) | def __replace__(
class For (line 453) | class For(stmt):
method __init__ (line 462) | def __init__(
method __init__ (line 472) | def __init__(
method __replace__ (line 483) | def __replace__(
class AsyncFor (line 494) | class AsyncFor(stmt):
method __init__ (line 503) | def __init__(
method __init__ (line 513) | def __init__(
method __replace__ (line 524) | def __replace__(
class While (line 535) | class While(stmt):
method __init__ (line 542) | def __init__(
method __init__ (line 546) | def __init__(self, test: expr, body: list[stmt], orelse: list[stmt], *...
method __replace__ (line 549) | def __replace__(self, *, test: expr, body: list[stmt], orelse: list[st...
class If (line 551) | class If(stmt):
method __init__ (line 558) | def __init__(
method __init__ (line 562) | def __init__(self, test: expr, body: list[stmt], orelse: list[stmt], *...
method __replace__ (line 565) | def __replace__(
class With (line 569) | class With(stmt):
method __init__ (line 576) | def __init__(
method __init__ (line 584) | def __init__(
method __replace__ (line 589) | def __replace__(
class AsyncWith (line 598) | class AsyncWith(stmt):
method __init__ (line 605) | def __init__(
method __init__ (line 613) | def __init__(
method __replace__ (line 618) | def __replace__(
class Match (line 628) | class Match(stmt):
method __init__ (line 633) | def __init__(self, subject: expr, cases: list[match_case] = ..., **kwa...
method __init__ (line 635) | def __init__(self, subject: expr, cases: list[match_case], **kwargs: U...
method __replace__ (line 638) | def __replace__(
class Raise (line 642) | class Raise(stmt):
method __init__ (line 647) | def __init__(self, exc: expr | None = None, cause: expr | None = None,...
method __replace__ (line 650) | def __replace__(self, *, exc: expr | None = ..., cause: expr | None = ...
class Try (line 652) | class Try(stmt):
method __init__ (line 660) | def __init__(
method __init__ (line 669) | def __init__(
method __replace__ (line 679) | def __replace__(
class TryStar (line 690) | class TryStar(stmt):
method __init__ (line 697) | def __init__(
method __init__ (line 706) | def __init__(
method __replace__ (line 716) | def __replace__(
class Assert (line 726) | class Assert(stmt):
method __init__ (line 731) | def __init__(self, test: expr, msg: expr | None = None, **kwargs: Unpa...
method __replace__ (line 734) | def __replace__(self, *, test: expr, msg: expr | None, **kwargs: Unpac...
class Import (line 736) | class Import(stmt):
method __init__ (line 741) | def __init__(self, names: list[alias] = ..., **kwargs: Unpack[_Attribu...
method __init__ (line 743) | def __init__(self, names: list[alias], **kwargs: Unpack[_Attributes]) ...
method __replace__ (line 746) | def __replace__(self, *, names: list[alias] = ..., **kwargs: Unpack[_A...
class ImportFrom (line 748) | class ImportFrom(stmt):
method __init__ (line 756) | def __init__(self, module: str | None, names: list[alias], level: int,...
method __init__ (line 758) | def __init__(
method __init__ (line 763) | def __init__(self, module: str | None, names: list[alias], level: int,...
method __init__ (line 765) | def __init__(
method __replace__ (line 770) | def __replace__(
class Global (line 774) | class Global(stmt):
method __init__ (line 779) | def __init__(self, names: list[_Identifier] = ..., **kwargs: Unpack[_A...
method __init__ (line 781) | def __init__(self, names: list[_Identifier], **kwargs: Unpack[_Attribu...
method __replace__ (line 784) | def __replace__(self, *, names: list[_Identifier], **kwargs: Unpack[_A...
class Nonlocal (line 786) | class Nonlocal(stmt):
method __init__ (line 791) | def __init__(self, names: list[_Identifier] = ..., **kwargs: Unpack[_A...
method __init__ (line 793) | def __init__(self, names: list[_Identifier], **kwargs: Unpack[_Attribu...
method __replace__ (line 796) | def __replace__(self, *, names: list[_Identifier] = ..., **kwargs: Unp...
class Expr (line 798) | class Expr(stmt):
method __init__ (line 802) | def __init__(self, value: expr, **kwargs: Unpack[_Attributes]) -> None...
method __replace__ (line 805) | def __replace__(self, *, value: expr = ..., **kwargs: Unpack[_Attribut...
class Pass (line 807) | class Pass(stmt): ...
class Break (line 808) | class Break(stmt): ...
class Continue (line 809) | class Continue(stmt): ...
class expr (line 811) | class expr(AST):
method __init__ (line 816) | def __init__(self, **kwargs: Unpack[_Attributes]) -> None: ...
method __replace__ (line 819) | def __replace__(self, **kwargs: Unpack[_Attributes]) -> Self: ...
class BoolOp (line 821) | class BoolOp(expr):
method __init__ (line 827) | def __init__(self, op: boolop, values: list[expr] = ..., **kwargs: Unp...
method __init__ (line 829) | def __init__(self, op: boolop, values: list[expr], **kwargs: Unpack[_A...
method __replace__ (line 832) | def __replace__(self, *, op: boolop = ..., values: list[expr] = ..., *...
class NamedExpr (line 834) | class NamedExpr(expr):
method __init__ (line 839) | def __init__(self, target: Name, value: expr, **kwargs: Unpack[_Attrib...
method __replace__ (line 842) | def __replace__(self, *, target: Name = ..., value: expr = ..., **kwar...
class BinOp (line 844) | class BinOp(expr):
method __init__ (line 850) | def __init__(self, left: expr, op: operator, right: expr, **kwargs: Un...
method __replace__ (line 853) | def __replace__(
class UnaryOp (line 857) | class UnaryOp(expr):
method __init__ (line 862) | def __init__(self, op: unaryop, operand: expr, **kwargs: Unpack[_Attri...
method __replace__ (line 865) | def __replace__(self, *, op: unaryop = ..., operand: expr = ..., **kwa...
class Lambda (line 867) | class Lambda(expr):
method __init__ (line 872) | def __init__(self, args: arguments, body: expr, **kwargs: Unpack[_Attr...
method __replace__ (line 875) | def __replace__(self, *, args: arguments = ..., body: expr = ..., **kw...
class IfExp (line 877) | class IfExp(expr):
method __init__ (line 883) | def __init__(self, test: expr, body: expr, orelse: expr, **kwargs: Unp...
method __replace__ (line 886) | def __replace__(
class Dict (line 890) | class Dict(expr):
method __init__ (line 896) | def __init__(self, keys: list[expr | None] = ..., values: list[expr] =...
method __init__ (line 898) | def __init__(self, keys: list[expr | None], values: list[expr], **kwar...
method __replace__ (line 901) | def __replace__(
class Set (line 905) | class Set(expr):
method __init__ (line 910) | def __init__(self, elts: list[expr] = ..., **kwargs: Unpack[_Attribute...
method __init__ (line 912) | def __init__(self, elts: list[expr], **kwargs: Unpack[_Attributes]) ->...
method __replace__ (line 915) | def __replace__(self, *, elts: list[expr] = ..., **kwargs: Unpack[_Att...
class ListComp (line 917) | class ListComp(expr):
method __init__ (line 923) | def __init__(self, elt: expr, generators: list[comprehension] = ..., *...
method __init__ (line 925) | def __init__(self, elt: expr, generators: list[comprehension], **kwarg...
method __replace__ (line 928) | def __replace__(
class SetComp (line 932) | class SetComp(expr):
method __init__ (line 938) | def __init__(self, elt: expr, generators: list[comprehension] = ..., *...
method __init__ (line 940) | def __init__(self, elt: expr, generators: list[comprehension], **kwarg...
method __replace__ (line 943) | def __replace__(
class DictComp (line 947) | class DictComp(expr):
method __init__ (line 954) | def __init__(
method __init__ (line 958) | def __init__(self, key: expr, value: expr, generators: list[comprehens...
method __replace__ (line 961) | def __replace__(
class GeneratorExp (line 965) | class GeneratorExp(expr):
method __init__ (line 971) | def __init__(self, elt: expr, generators: list[comprehension] = ..., *...
method __init__ (line 973) | def __init__(self, elt: expr, generators: list[comprehension], **kwarg...
method __replace__ (line 976) | def __replace__(
class Await (line 980) | class Await(expr):
method __init__ (line 984) | def __init__(self, value: expr, **kwargs: Unpack[_Attributes]) -> None...
method __replace__ (line 987) | def __replace__(self, *, value: expr = ..., **kwargs: Unpack[_Attribut...
class Yield (line 989) | class Yield(expr):
method __init__ (line 993) | def __init__(self, value: expr | None = None, **kwargs: Unpack[_Attrib...
method __replace__ (line 996) | def __replace__(self, *, value: expr | None = ..., **kwargs: Unpack[_A...
class YieldFrom (line 998) | class YieldFrom(expr):
method __init__ (line 1002) | def __init__(self, value: expr, **kwargs: Unpack[_Attributes]) -> None...
method __replace__ (line 1005) | def __replace__(self, *, value: expr = ..., **kwargs: Unpack[_Attribut...
class Compare (line 1007) | class Compare(expr):
method __init__ (line 1014) | def __init__(
method __init__ (line 1018) | def __init__(self, left: expr, ops: list[cmpop], comparators: list[exp...
method __replace__ (line 1021) | def __replace__(
class Call (line 1025) | class Call(expr):
method __init__ (line 1032) | def __init__(
method __init__ (line 1036) | def __init__(self, func: expr, args: list[expr], keywords: list[keywor...
method __replace__ (line 1039) | def __replace__(
class FormattedValue (line 1043) | class FormattedValue(expr):
method __init__ (line 1049) | def __init__(self, value: expr, conversion: int, format_spec: expr | N...
method __replace__ (line 1052) | def __replace__(
class JoinedStr (line 1056) | class JoinedStr(expr):
method __init__ (line 1061) | def __init__(self, values: list[expr] = ..., **kwargs: Unpack[_Attribu...
method __init__ (line 1063) | def __init__(self, values: list[expr], **kwargs: Unpack[_Attributes]) ...
method __replace__ (line 1066) | def __replace__(self, *, values: list[expr] = ..., **kwargs: Unpack[_A...
class Constant (line 1068) | class Constant(expr):
method __init__ (line 1078) | def __init__(self, value: Any, kind: str | None = None, **kwargs: Unpa...
method __replace__ (line 1081) | def __replace__(self, *, value: Any = ..., kind: str | None = ..., **k...
class Attribute (line 1083) | class Attribute(expr):
method __init__ (line 1089) | def __init__(self, value: expr, attr: _Identifier, ctx: expr_context =...
method __replace__ (line 1092) | def __replace__(
class Subscript (line 1096) | class Subscript(expr):
method __init__ (line 1102) | def __init__(self, value: expr, slice: _Slice, ctx: expr_context = ......
method __replace__ (line 1105) | def __replace__(
class Starred (line 1109) | class Starred(expr):
method __init__ (line 1114) | def __init__(self, value: expr, ctx: expr_context = ..., **kwargs: Unp...
method __replace__ (line 1117) | def __replace__(self, *, value: expr = ..., ctx: expr_context = ..., *...
class Name (line 1119) | class Name(expr):
method __init__ (line 1124) | def __init__(self, id: _Identifier, ctx: expr_context = ..., **kwargs:...
method __replace__ (line 1127) | def __replace__(self, *, id: _Identifier = ..., ctx: expr_context = .....
class List (line 1129) | class List(expr):
method __init__ (line 1135) | def __init__(self, elts: list[expr] = ..., ctx: expr_context = ..., **...
method __init__ (line 1137) | def __init__(self, elts: list[expr], ctx: expr_context = ..., **kwargs...
method __replace__ (line 1140) | def __replace__(self, *, elts: list[expr] = ..., ctx: expr_context = ....
class Tuple (line 1142) | class Tuple(expr):
method __init__ (line 1150) | def __init__(self, elts: list[expr] = ..., ctx: expr_context = ..., **...
method __init__ (line 1152) | def __init__(self, elts: list[expr], ctx: expr_context = ..., **kwargs...
method __replace__ (line 1155) | def __replace__(self, *, elts: list[expr] = ..., ctx: expr_context = ....
class slice (line 1158) | class slice(AST): ... # deprecated and moved to ast.py for >= (3, 9)
class _SliceAttributes (line 1167) | class _SliceAttributes(TypedDict): ...
class Slice (line 1169) | class Slice(_Slice):
method __init__ (line 1175) | def __init__(
method __replace__ (line 1180) | def __replace__(
class ExtSlice (line 1190) | class ExtSlice(slice): # deprecated and moved to ast.py if sys.version_...
method __new__ (line 1192) | def __new__(cls, dims: Iterable[slice] = (), **kwargs: Unpack[_SliceAt...
method __init__ (line 1195) | def __init__(self, dims: list[slice], **kwargs: Unpack[_SliceAttribute...
class Index (line 1198) | class Index(slice): # deprecated and moved to ast.py if sys.version_inf...
method __new__ (line 1200) | def __new__(cls, value: expr, **kwargs: Unpack[_SliceAttributes]) -> e...
method __init__ (line 1203) | def __init__(self, value: expr, **kwargs: Unpack[_SliceAttributes]) ->...
class expr_context (line 1205) | class expr_context(AST): ...
class AugLoad (line 1208) | class AugLoad(expr_context): ... # deprecated and moved to ast.py if sy...
class AugStore (line 1211) | class AugStore(expr_context): ... # deprecated and moved to ast.py if s...
class Param (line 1214) | class Param(expr_context): ... # deprecated and moved to ast.py if sys....
class Suite (line 1217) | class Suite(mod): # deprecated and moved to ast.py if sys.version_info ...
method __init__ (line 1220) | def __init__(self, body: list[stmt]) -> None: ...
class Load (line 1222) | class Load(expr_context): ...
class Store (line 1223) | class Store(expr_context): ...
class Del (line 1224) | class Del(expr_context): ...
class boolop (line 1225) | class boolop(AST): ...
class And (line 1226) | class And(boolop): ...
class Or (line 1227) | class Or(boolop): ...
class operator (line 1228) | class operator(AST): ...
class Add (line 1229) | class Add(operator): ...
class Sub (line 1230) | class Sub(operator): ...
class Mult (line 1231) | class Mult(operator): ...
class MatMult (line 1232) | class MatMult(operator): ...
class Div (line 1233) | class Div(operator): ...
class Mod (line 1234) | class Mod(operator): ...
class Pow (line 1235) | class Pow(operator): ...
class LShift (line 1236) | class LShift(operator): ...
class RShift (line 1237) | class RShift(operator): ...
class BitOr (line 1238) | class BitOr(operator): ...
class BitXor (line 1239) | class BitXor(operator): ...
class BitAnd (line 1240) | class BitAnd(operator): ...
class FloorDiv (line 1241) | class FloorDiv(operator): ...
class unaryop (line 1242) | class unaryop(AST): ...
class Invert (line 1243) | class Invert(unaryop): ...
class Not (line 1244) | class Not(unaryop): ...
class UAdd (line 1245) | class UAdd(unaryop): ...
class USub (line 1246) | class USub(unaryop): ...
class cmpop (line 1247) | class cmpop(AST): ...
class Eq (line 1248) | class Eq(cmpop): ...
class NotEq (line 1249) | class NotEq(cmpop): ...
class Lt (line 1250) | class Lt(cmpop): ...
class LtE (line 1251) | class LtE(cmpop): ...
class Gt (line 1252) | class Gt(cmpop): ...
class GtE (line 1253) | class GtE(cmpop): ...
class Is (line 1254) | class Is(cmpop): ...
class IsNot (line 1255) | class IsNot(cmpop): ...
class In (line 1256) | class In(cmpop): ...
class NotIn (line 1257) | class NotIn(cmpop): ...
class comprehension (line 1259) | class comprehension(AST):
method __init__ (line 1268) | def __init__(self, target: expr, iter: expr, ifs: list[expr], is_async...
method __init__ (line 1270) | def __init__(self, target: expr, iter: expr, ifs: list[expr] = ..., *,...
method __init__ (line 1272) | def __init__(self, target: expr, iter: expr, ifs: list[expr], is_async...
method __replace__ (line 1275) | def __replace__(self, *, target: expr = ..., iter: expr = ..., ifs: li...
class excepthandler (line 1277) | class excepthandler(AST):
method __init__ (line 1282) | def __init__(self, **kwargs: Unpack[_Attributes]) -> None: ...
method __replace__ (line 1285) | def __replace__(
class ExceptHandler (line 1289) | class ExceptHandler(excepthandler):
method __init__ (line 1296) | def __init__(
method __init__ (line 1301) | def __init__(
method __init__ (line 1305) | def __init__(
method __replace__ (line 1310) | def __replace__(
class arguments (line 1319) | class arguments(AST):
method __init__ (line 1330) | def __init__(
method __init__ (line 1342) | def __init__(
method __init__ (line 1353) | def __init__(
method __init__ (line 1365) | def __init__(
method __replace__ (line 1378) | def __replace__(
class arg (line 1390) | class arg(AST):
method __init__ (line 1400) | def __init__(
method __replace__ (line 1405) | def __replace__(
class keyword (line 1414) | class keyword(AST):
method __init__ (line 1424) | def __init__(self, arg: _Identifier | None, value: expr, **kwargs: Unp...
method __init__ (line 1426) | def __init__(self, arg: _Identifier | None = None, *, value: expr, **k...
method __replace__ (line 1429) | def __replace__(self, *, arg: _Identifier | None = ..., value: expr = ...
class alias (line 1431) | class alias(AST):
method __init__ (line 1440) | def __init__(self, name: str, asname: _Identifier | None = None, **kwa...
method __replace__ (line 1443) | def __replace__(self, *, name: str = ..., asname: _Identifier | None =...
class withitem (line 1445) | class withitem(AST):
method __init__ (line 1450) | def __init__(self, context_expr: expr, optional_vars: expr | None = No...
method __replace__ (line 1453) | def __replace__(self, *, context_expr: expr = ..., optional_vars: expr...
class match_case (line 1456) | class match_case(AST):
method __init__ (line 1462) | def __init__(self, pattern: _Pattern, guard: expr | None = None, body:...
method __init__ (line 1465) | def __init__(self, pattern: _Pattern, guard: expr | None, body: list[s...
method __init__ (line 1467) | def __init__(self, pattern: _Pattern, guard: expr | None = None, *, bo...
method __replace__ (line 1470) | def __replace__(self, *, pattern: _Pattern = ..., guard: expr | None =...
class pattern (line 1472) | class pattern(AST):
method __init__ (line 1477) | def __init__(self, **kwargs: Unpack[_Attributes[int]]) -> None: ...
method __replace__ (line 1480) | def __replace__(
class MatchValue (line 1487) | class MatchValue(pattern):
method __init__ (line 1490) | def __init__(self, value: expr, **kwargs: Unpack[_Attributes[int]]) ->...
method __replace__ (line 1493) | def __replace__(self, *, value: expr = ..., **kwargs: Unpack[_Attribut...
class MatchSingleton (line 1495) | class MatchSingleton(pattern):
method __init__ (line 1498) | def __init__(self, value: Literal[True, False] | None, **kwargs: Unpac...
method __replace__ (line 1501) | def __replace__(self, *, value: Literal[True, False] | None = ..., **k...
class MatchSequence (line 1503) | class MatchSequence(pattern):
method __init__ (line 1507) | def __init__(self, patterns: list[pattern] = ..., **kwargs: Unpack[_At...
method __init__ (line 1509) | def __init__(self, patterns: list[pattern], **kwargs: Unpack[_Attribut...
method __replace__ (line 1512) | def __replace__(self, *, patterns: list[pattern] = ..., **kwargs: Unpa...
class MatchMapping (line 1514) | class MatchMapping(pattern):
method __init__ (line 1520) | def __init__(
method __init__ (line 1528) | def __init__(
method __replace__ (line 1537) | def __replace__(
class MatchClass (line 1546) | class MatchClass(pattern):
method __init__ (line 1553) | def __init__(
method __init__ (line 1562) | def __init__(
method __replace__ (line 1572) | def __replace__(
class MatchStar (line 1582) | class MatchStar(pattern):
method __init__ (line 1585) | def __init__(self, name: _Identifier | None, **kwargs: Unpack[_Attribu...
method __replace__ (line 1588) | def __replace__(self, *, name: _Identifier | None = ..., **kwargs: Unp...
class MatchAs (line 1590) | class MatchAs(pattern):
method __init__ (line 1594) | def __init__(
method __replace__ (line 1599) | def __replace__(
class MatchOr (line 1603) | class MatchOr(pattern):
method __init__ (line 1607) | def __init__(self, patterns: list[pattern] = ..., **kwargs: Unpack[_At...
method __init__ (line 1609) | def __init__(self, patterns: list[pattern], **kwargs: Unpack[_Attribut...
method __replace__ (line 1612) | def __replace__(self, *, patterns: list[pattern] = ..., **kwargs: Unpa...
class type_ignore (line 1614) | class type_ignore(AST): ...
class TypeIgnore (line 1616) | class TypeIgnore(type_ignore):
method __init__ (line 1621) | def __init__(self, lineno: int, tag: str) -> None: ...
method __replace__ (line 1624) | def __replace__(self, *, lineno: int = ..., tag: str = ...) -> Self: ...
class type_param (line 1627) | class type_param(AST):
method __init__ (line 1632) | def __init__(self, **kwargs: Unpack[_Attributes[int]]) -> None: ...
method __replace__ (line 1635) | def __replace__(self, **kwargs: Unpack[_Attributes[int]]) -> Self: ...
class TypeVar (line 1637) | class TypeVar(type_param):
method __init__ (line 1646) | def __init__(
method __init__ (line 1654) | def __init__(self, name: _Identifier, bound: expr | None = None, **kwa...
method __replace__ (line 1657) | def __replace__(
class ParamSpec (line 1666) | class ParamSpec(type_param):
method __init__ (line 1674) | def __init__(
method __init__ (line 1678) | def __init__(self, name: _Identifier, **kwargs: Unpack[_Attributes[int...
method __replace__ (line 1681) | def __replace__(
class TypeVarTuple (line 1685) | class TypeVarTuple(type_param):
method __init__ (line 1693) | def __init__(
method __init__ (line 1697) | def __init__(self, name: _Identifier, **kwargs: Unpack[_Attributes[int...
method __replace__ (line 1700) | def __replace__(
class _ABC (line 1704) | class _ABC(type):
method __init__ (line 1706) | def __init__(cls, *args: Unused) -> None: ...
class Num (line 1710) | class Num(Constant, metaclass=_ABC):
class Str (line 1714) | class Str(Constant, metaclass=_ABC):
class Bytes (line 1720) | class Bytes(Constant, metaclass=_ABC):
class NameConstant (line 1726) | class NameConstant(Constant, metaclass=_ABC): ...
class Ellipsis (line 1729) | class Ellipsis(Constant, metaclass=_ABC): ...
function parse (line 1737) | def parse(
function parse (line 1747) | def parse(
function parse (line 1757) | def parse(
function parse (line 1767) | def parse(
function parse (line 1777) | def parse(
function parse (line 1786) | def parse(
function parse (line 1795) | def parse(
function parse (line 1804) | def parse(
function parse (line 1816) | def parse(
function parse (line 1825) | def parse(
function parse (line 1834) | def parse(
function parse (line 1843) | def parse(
function parse (line 1852) | def parse(
function parse (line 1860) | def parse(
function parse (line 1868) | def parse(
function parse (line 1876) | def parse(
function literal_eval (line 1885) | def literal_eval(node_or_string: str | AST) -> Any: ...
function dump (line 1888) | def dump(
function dump (line 1898) | def dump(
function dump (line 1903) | def dump(node: AST, annotate_fields: bool = True, include_attributes: bo...
function copy_location (line 1905) | def copy_location(new_node: _T, old_node: AST) -> _T: ...
function fix_missing_locations (line 1906) | def fix_missing_locations(node: _T) -> _T: ...
function increment_lineno (line 1907) | def increment_lineno(node: _T, n: int = 1) -> _T: ...
function iter_fields (line 1908) | def iter_fields(node: AST) -> Iterator[tuple[str, Any]]: ...
function iter_child_nodes (line 1909) | def iter_child_nodes(node: AST) -> Iterator[AST]: ...
function get_docstring (line 1910) | def get_docstring(node: AsyncFunctionDef | FunctionDef | ClassDef | Modu...
function get_source_segment (line 1911) | def get_source_segment(source: str, node: AST, *, padded: bool = False) ...
function walk (line 1912) | def walk(node: AST) -> Iterator[AST]: ...
function compare (line 1915) | def compare(left: AST, right: AST, /, *, compare_attributes: bool = Fals...
class NodeVisitor (line 1917) | class NodeVisitor:
method visit (line 1918) | def visit(self, node: AST) -> Any: ...
method generic_visit (line 1919) | def generic_visit(self, node: AST) -> Any: ...
method visit_Module (line 1920) | def visit_Module(self, node: Module) -> Any: ...
method visit_Interactive (line 1921) | def visit_Interactive(self, node: Interactive) -> Any: ...
method visit_Expression (line 1922) | def visit_Expression(self, node: Expression) -> Any: ...
method visit_FunctionDef (line 1923) | def visit_FunctionDef(self, node: FunctionDef) -> Any: ...
method visit_AsyncFunctionDef (line 1924) | def visit_AsyncFunctionDef(self, node: AsyncFunctionDef) -> Any: ...
method visit_ClassDef (line 1925) | def visit_ClassDef(self, node: ClassDef) -> Any: ...
method visit_Return (line 1926) | def visit_Return(self, node: Return) -> Any: ...
method visit_Delete (line 1927) | def visit_Delete(self, node: Delete) -> Any: ...
method visit_Assign (line 1928) | def visit_Assign(self, node: Assign) -> Any: ...
method visit_AugAssign (line 1929) | def visit_AugAssign(self, node: AugAssign) -> Any: ...
method visit_AnnAssign (line 1930) | def visit_AnnAssign(self, node: AnnAssign) -> Any: ...
method visit_For (line 1931) | def visit_For(self, node: For) -> Any: ...
method visit_AsyncFor (line 1932) | def visit_AsyncFor(self, node: AsyncFor) -> Any: ...
method visit_While (line 1933) | def visit_While(self, node: While) -> Any: ...
method visit_If (line 1934) | def visit_If(self, node: If) -> Any: ...
method visit_With (line 1935) | def visit_With(self, node: With) -> Any: ...
method visit_AsyncWith (line 1936) | def visit_AsyncWith(self, node: AsyncWith) -> Any: ...
method visit_Raise (line 1937) | def visit_Raise(self, node: Raise) -> Any: ...
method visit_Try (line 1938) | def visit_Try(self, node: Try) -> Any: ...
method visit_Assert (line 1939) | def visit_Assert(self, node: Assert) -> Any: ...
method visit_Import (line 1940) | def visit_Import(self, node: Import) -> Any: ...
method visit_ImportFrom (line 1941) | def visit_ImportFrom(self, node: ImportFrom) -> Any: ...
method visit_Global (line 1942) | def visit_Global(self, node: Global) -> Any: ...
method visit_Nonlocal (line 1943) | def visit_Nonlocal(self, node: Nonlocal) -> Any: ...
method visit_Expr (line 1944) | def visit_Expr(self, node: Expr) -> Any: ...
method visit_Pass (line 1945) | def visit_Pass(self, node: Pass) -> Any: ...
method visit_Break (line 1946) | def visit_Break(self, node: Break) -> Any: ...
method visit_Continue (line 1947) | def visit_Continue(self, node: Continue) -> Any: ...
method visit_Slice (line 1948) | def visit_Slice(self, node: Slice) -> Any: ...
method visit_BoolOp (line 1949) | def visit_BoolOp(self, node: BoolOp) -> Any: ...
method visit_BinOp (line 1950) | def visit_BinOp(self, node: BinOp) -> Any: ...
method visit_UnaryOp (line 1951) | def visit_UnaryOp(self, node: UnaryOp) -> Any: ...
method visit_Lambda (line 1952) | def visit_Lambda(self, node: Lambda) -> Any: ...
method visit_IfExp (line 1953) | def visit_IfExp(self, node: IfExp) -> Any: ...
method visit_Dict (line 1954) | def visit_Dict(self, node: Dict) -> Any: ...
method visit_Set (line 1955) | def visit_Set(self, node: Set) -> Any: ...
method visit_ListComp (line 1956) | def visit_ListComp(self, node: ListComp) -> Any: ...
method visit_SetComp (line 1957) | def visit_SetComp(self, node: SetComp) -> Any: ...
method visit_DictComp (line 1958) | def visit_DictComp(self, node: DictComp) -> Any: ...
method visit_GeneratorExp (line 1959) | def visit_GeneratorExp(self, node: GeneratorExp) -> Any: ...
method visit_Await (line 1960) | def visit_Await(self, node: Await) -> Any: ...
method visit_Yield (line 1961) | def visit_Yield(self, node: Yield) -> Any: ...
method visit_YieldFrom (line 1962) | def visit_YieldFrom(self, node: YieldFrom) -> Any: ...
method visit_Compare (line 1963) | def visit_Compare(self, node: Compare) -> Any: ...
method visit_Call (line 1964) | def visit_Call(self, node: Call) -> Any: ...
method visit_FormattedValue (line 1965) | def visit_FormattedValue(self, node: FormattedValue) -> Any: ...
method visit_JoinedStr (line 1966) | def visit_JoinedStr(self, node: JoinedStr) -> Any: ...
method visit_Constant (line 1967) | def visit_Constant(self, node: Constant) -> Any: ...
method visit_NamedExpr (line 1968) | def visit_NamedExpr(self, node: NamedExpr) -> Any: ...
method visit_TypeIgnore (line 1969) | def visit_TypeIgnore(self, node: TypeIgnore) -> Any: ...
method visit_Attribute (line 1970) | def visit_Attribute(self, node: Attribute) -> Any: ...
method visit_Subscript (line 1971) | def visit_Subscript(self, node: Subscript) -> Any: ...
method visit_Starred (line 1972) | def visit_Starred(self, node: Starred) -> Any: ...
method visit_Name (line 1973) | def visit_Name(self, node: Name) -> Any: ...
method visit_List (line 1974) | def visit_List(self, node: List) -> Any: ...
method visit_Tuple (line 1975) | def visit_Tuple(self, node: Tuple) -> Any: ...
method visit_Del (line 1976) | def visit_Del(self, node: Del) -> Any: ...
method visit_Load (line 1977) | def visit_Load(self, node: Load) -> Any: ...
method visit_Store (line 1978) | def visit_Store(self, node: Store) -> Any: ...
method visit_And (line 1979) | def visit_And(self, node: And) -> Any: ...
method visit_Or (line 1980) | def visit_Or(self, node: Or) -> Any: ...
method visit_Add (line 1981) | def visit_Add(self, node: Add) -> Any: ...
method visit_BitAnd (line 1982) | def visit_BitAnd(self, node: BitAnd) -> Any: ...
method visit_BitOr (line 1983) | def visit_BitOr(self, node: BitOr) -> Any: ...
method visit_BitXor (line 1984) | def visit_BitXor(self, node: BitXor) -> Any: ...
method visit_Div (line 1985) | def visit_Div(self, node: Div) -> Any: ...
method visit_FloorDiv (line 1986) | def visit_FloorDiv(self, node: FloorDiv) -> Any: ...
method visit_LShift (line 1987) | def visit_LShift(self, node: LShift) -> Any: ...
method visit_Mod (line 1988) | def visit_Mod(self, node: Mod) -> Any: ...
method visit_Mult (line 1989) | def visit_Mult(self, node: Mult) -> Any: ...
method visit_MatMult (line 1990) | def visit_MatMult(self, node: MatMult) -> Any: ...
method visit_Pow (line 1991) | def visit_Pow(self, node: Pow) -> Any: ...
method visit_RShift (line 1992) | def visit_RShift(self, node: RShift) -> Any: ...
method visit_Sub (line 1993) | def visit_Sub(self, node: Sub) -> Any: ...
method visit_Invert (line 1994) | def visit_Invert(self, node: Invert) -> Any: ...
method visit_Not (line 1995) | def visit_Not(self, node: Not) -> Any: ...
method visit_UAdd (line 1996) | def visit_UAdd(self, node: UAdd) -> Any: ...
method visit_USub (line 1997) | def visit_USub(self, node: USub) -> Any: ...
method visit_Eq (line 1998) | def visit_Eq(self, node: Eq) -> Any: ...
method visit_Gt (line 1999) | def visit_Gt(self, node: Gt) -> Any: ...
method visit_GtE (line 2000) | def visit_GtE(self, node: GtE) -> Any: ...
method visit_In (line 2001) | def visit_In(self, node: In) -> Any: ...
method visit_Is (line 2002) | def visit_Is(self, node: Is) -> Any: ...
method visit_IsNot (line 2003) | def visit_IsNot(self, node: IsNot) -> Any: ...
method visit_Lt (line 2004) | def visit_Lt(self, node: Lt) -> Any: ...
method visit_LtE (line 2005) | def visit_LtE(self, node: LtE) -> Any: ...
method visit_NotEq (line 2006) | def visit_NotEq(self, node: NotEq) -> Any: ...
method visit_NotIn (line 2007) | def visit_NotIn(self, node: NotIn) -> Any: ...
method visit_comprehension (line 2008) | def visit_comprehension(self, node: comprehension) -> Any: ...
method visit_ExceptHandler (line 2009) | def visit_ExceptHandler(self, node: ExceptHandler) -> Any: ...
method visit_arguments (line 2010) | def visit_arguments(self, node: arguments) -> Any: ...
method visit_arg (line 2011) | def visit_arg(self, node: arg) -> Any: ...
method visit_keyword (line 2012) | def visit_keyword(self, node: keyword) -> Any: ...
method visit_alias (line 2013) | def visit_alias(self, node: alias) -> Any: ...
method visit_withitem (line 2014) | def visit_withitem(self, node: withitem) -> Any: ...
method visit_Match (line 2016) | def visit_Match(self, node: Match) -> Any: ...
method visit_match_case (line 2017) | def visit_match_case(self, node: match_case) -> Any: ...
method visit_MatchValue (line 2018) | def visit_MatchValue(self, node: MatchValue) -> Any: ...
method visit_MatchSequence (line 2019) | def visit_MatchSequence(self, node: MatchSequence) -> Any: ...
method visit_MatchSingleton (line 2020) | def visit_MatchSingleton(self, node: MatchSingleton) -> Any: ...
method visit_MatchStar (line 2021) | def visit_MatchStar(self, node: MatchStar) -> Any: ...
method visit_MatchMapping (line 2022) | def visit_MatchMapping(self, node: MatchMapping) -> Any: ...
method visit_MatchClass (line 2023) | def visit_MatchClass(self, node: MatchClass) -> Any: ...
method visit_MatchAs (line 2024) | def visit_MatchAs(self, node: MatchAs) -> Any: ...
method visit_MatchOr (line 2025) | def visit_MatchOr(self, node: MatchOr) -> Any: ...
method visit_TryStar (line 2028) | def visit_TryStar(self, node: TryStar) -> Any: ...
method visit_TypeVar (line 2031) | def visit_TypeVar(self, node: TypeVar) -> Any: ...
method visit_ParamSpec (line 2032) | def visit_ParamSpec(self, node: ParamSpec) -> Any: ...
method visit_TypeVarTuple (line 2033) | def visit_TypeVarTuple(self, node: TypeVarTuple) -> Any: ...
method visit_TypeAlias (line 2034) | def visit_TypeAlias(self, node: TypeAlias) -> Any: ...
method visit_ExtSlice (line 2037) | def visit_ExtSlice(self, node: ExtSlice) -> Any: ...
method visit_Index (line 2038) | def visit_Index(self, node: Index) -> Any: ...
method visit_Suite (line 2039) | def visit_Suite(self, node: Suite) -> Any: ...
method visit_AugLoad (line 2040) | def visit_AugLoad(self, node: AugLoad) -> Any: ...
method visit_AugStore (line 2041) | def visit_AugStore(self, node: AugStore) -> Any: ...
method visit_Param (line 2042) | def visit_Param(self, node: Param) -> Any: ...
method visit_Num (line 2046) | def visit_Num(self, node: Num) -> Any: ... # type: ignore[deprecated]
method visit_Str (line 2048) | def visit_Str(self, node: Str) -> Any: ... # type: ignore[deprecated]
method visit_Bytes (line 2050) | def visit_Bytes(self, node: Bytes) -> Any: ... # type: ignore[depreca...
method visit_NameConstant (line 2052) | def visit_NameConstant(self, node: NameConstant) -> Any: ... # type: ...
method visit_Ellipsis (line 2054) | def visit_Ellipsis(self, node: Ellipsis) -> Any: ... # type: ignore[d...
class NodeTransformer (line 2056) | class NodeTransformer(NodeVisitor):
method generic_visit (line 2057) | def generic_visit(self, node: AST) -> AST: ...
function unparse (line 2063) | def unparse(ast_obj: AST) -> str: ...
function main (line 2066) | def main() -> None: ...
FILE: mypy/typeshed/stdlib/asynchat.pyi
class simple_producer (line 4) | class simple_producer:
method __init__ (line 5) | def __init__(self, data: bytes, buffer_size: int = 512) -> None: ...
method more (line 6) | def more(self) -> bytes: ...
class async_chat (line 8) | class async_chat(asyncore.dispatcher):
method collect_incoming_data (line 12) | def collect_incoming_data(self, data: bytes) -> None: ...
method found_terminator (line 14) | def found_terminator(self) -> None: ...
method set_terminator (line 15) | def set_terminator(self, term: bytes | int | None) -> None: ...
method get_terminator (line 16) | def get_terminator(self) -> bytes | int | None: ...
method push (line 17) | def push(self, data: bytes) -> None: ...
method push_with_producer (line 18) | def push_with_producer(self, producer: simple_producer) -> None: ...
method close_when_done (line 19) | def close_when_done(self) -> None: ...
method initiate_send (line 20) | def initiate_send(self) -> None: ...
method discard_buffers (line 21) | def discard_buffers(self) -> None: ...
FILE: mypy/typeshed/stdlib/asyncio/base_events.pyi
class Server (line 30) | class Server(AbstractServer):
method __init__ (line 32) | def __init__(
method __init__ (line 43) | def __init__(
method close_clients (line 54) | def close_clients(self) -> None: ...
method abort_clients (line 55) | def abort_clients(self) -> None: ...
method get_loop (line 57) | def get_loop(self) -> AbstractEventLoop: ...
method is_serving (line 58) | def is_serving(self) -> bool: ...
method start_serving (line 59) | async def start_serving(self) -> None: ...
method serve_forever (line 60) | async def serve_forever(self) -> None: ...
method sockets (line 62) | def sockets(self) -> tuple[socket, ...]: ...
method close (line 63) | def close(self) -> None: ...
method wait_closed (line 64) | async def wait_closed(self) -> None: ...
class BaseEventLoop (line 66) | class BaseEventLoop(AbstractEventLoop):
method run_forever (line 67) | def run_forever(self) -> None: ...
method run_until_complete (line 68) | def run_until_complete(self, future: _AwaitableLike[_T]) -> _T: ...
method stop (line 69) | def stop(self) -> None: ...
method is_running (line 70) | def is_running(self) -> bool: ...
method is_closed (line 71) | def is_closed(self) -> bool: ...
method close (line 72) | def close(self) -> None: ...
method shutdown_asyncgens (line 73) | async def shutdown_asyncgens(self) -> None: ...
method call_soon (line 75) | def call_soon(
method call_later (line 78) | def call_later(
method call_at (line 81) | def call_at(
method time (line 84) | def time(self) -> float: ...
method create_future (line 86) | def create_future(self) -> Future[Any]: ...
method create_task (line 89) | def create_task(self, coro: _CoroutineLike[_T], *, name: object = None...
method create_task (line 91) | def create_task(self, coro: _CoroutineLike[_T], *, name: object = None...
method set_task_factory (line 93) | def set_task_factory(self, factory: _TaskFactory | None) -> None: ...
method get_task_factory (line 94) | def get_task_factory(self) -> _TaskFactory | None: ...
method call_soon_threadsafe (line 96) | def call_soon_threadsafe(
method run_in_executor (line 99) | def run_in_executor(self, executor: Any, func: Callable[[Unpack[_Ts]],...
method set_default_executor (line 100) | def set_default_executor(self, executor: Any) -> None: ...
method getaddrinfo (line 102) | async def getaddrinfo(
method getnameinfo (line 112) | async def getnameinfo(self, sockaddr: tuple[str, int] | tuple[str, int...
method create_connection (line 115) | async def create_connection(
method create_connection (line 135) | async def create_connection(
method create_connection (line 156) | async def create_connection(
method create_connection (line 175) | async def create_connection(
method create_connection (line 195) | async def create_connection(
method create_connection (line 213) | async def create_connection(
method create_server (line 234) | async def create_server(
method create_server (line 253) | async def create_server(
method create_server (line 273) | async def create_server(
method create_server (line 291) | async def create_server(
method create_server (line 310) | async def create_server(
method create_server (line 327) | async def create_server(
method start_tls (line 345) | async def start_tls(
method connect_accepted_socket (line 356) | async def connect_accepted_socket(
method start_tls (line 366) | async def start_tls(
method connect_accepted_socket (line 376) | async def connect_accepted_socket(
method sock_sendfile (line 385) | async def sock_sendfile(
method sendfile (line 388) | async def sendfile(
method create_datagram_endpoint (line 392) | async def create_datagram_endpoint( # type: ignore[override]
method create_datagram_endpoint (line 406) | async def create_datagram_endpoint(
method connect_read_pipe (line 421) | async def connect_read_pipe(
method connect_write_pipe (line 424) | async def connect_write_pipe(
method subprocess_shell (line 427) | async def subprocess_shell(
method subprocess_exec (line 443) | async def subprocess_exec(
method add_reader (line 459) | def add_reader(self, fd: FileDescriptorLike, callback: Callable[[Unpac...
method remove_reader (line 460) | def remove_reader(self, fd: FileDescriptorLike) -> bool: ...
method add_writer (line 461) | def add_writer(self, fd: FileDescriptorLike, callback: Callable[[Unpac...
method remove_writer (line 462) | def remove_writer(self, fd: FileDescriptorLike) -> bool: ...
method sock_recv (line 465) | async def sock_recv(self, sock: socket, nbytes: int) -> bytes: ...
method sock_recv_into (line 466) | async def sock_recv_into(self, sock: socket, buf: WriteableBuffer) -> ...
method sock_sendall (line 467) | async def sock_sendall(self, sock: socket, data: ReadableBuffer) -> No...
method sock_connect (line 468) | async def sock_connect(self, sock: socket, address: _Address) -> None:...
method sock_accept (line 469) | async def sock_accept(self, sock: socket) -> tuple[socket, _RetAddress...
method sock_recvfrom (line 471) | async def sock_recvfrom(self, sock: socket, bufsize: int) -> tuple[byt...
method sock_recvfrom_into (line 472) | async def sock_recvfrom_into(self, sock: socket, buf: WriteableBuffer,...
method sock_sendto (line 473) | async def sock_sendto(self, sock: socket, data: ReadableBuffer, addres...
method add_signal_handler (line 475) | def add_signal_handler(self, sig: int, callback: Callable[[Unpack[_Ts]...
method remove_signal_handler (line 476) | def remove_signal_handler(self, sig: int) -> bool: ...
method set_exception_handler (line 478) | def set_exception_handler(self, handler: _ExceptionHandler | None) -> ...
method get_exception_handler (line 479) | def get_exception_handler(self) -> _ExceptionHandler | None: ...
method default_exception_handler (line 480) | def default_exception_handler(self, context: _Context) -> None: ...
method call_exception_handler (line 481) | def call_exception_handler(self, context: _Context) -> None: ...
method get_debug (line 483) | def get_debug(self) -> bool: ...
method set_debug (line 484) | def set_debug(self, enabled: bool) -> None: ...
method shutdown_default_executor (line 486) | async def shutdown_default_executor(self, timeout: float | None = None...
method shutdown_default_executor (line 488) | async def shutdown_default_executor(self) -> None: ...
method __del__ (line 490) | def __del__(self) -> None: ...
FILE: mypy/typeshed/stdlib/asyncio/base_futures.pyi
function _format_callbacks (line 18) | def _format_callbacks(cb: Sequence[tuple[Callable[[futures.Future[Any]],...
function _future_repr_info (line 19) | def _future_repr_info(future: futures.Future[Any]) -> list[str]: ... # ...
FILE: mypy/typeshed/stdlib/asyncio/base_subprocess.pyi
class BaseSubprocessTransport (line 11) | class BaseSubprocessTransport(transports.SubprocessTransport):
method __init__ (line 22) | def __init__(
method _start (line 36) | def _start(
method get_pid (line 46) | def get_pid(self) -> int | None: ... # type: ignore[override]
method get_pipe_transport (line 47) | def get_pipe_transport(self, fd: int) -> _File: ... # type: ignore[ov...
method _check_proc (line 48) | def _check_proc(self) -> None: ... # undocumented
method send_signal (line 49) | def send_signal(self, signal: int) -> None: ...
method _connect_pipes (line 50) | async def _connect_pipes(self, waiter: futures.Future[Any] | None) -> ...
method _call (line 51) | def _call(self, cb: Callable[..., object], *data: Any) -> None: ... #...
method _pipe_connection_lost (line 52) | def _pipe_connection_lost(self, fd: int, exc: BaseException | None) ->...
method _pipe_data_received (line 53) | def _pipe_data_received(self, fd: int, data: bytes) -> None: ... # un...
method _process_exited (line 54) | def _process_exited(self, returncode: int) -> None: ... # undocumented
method _wait (line 55) | async def _wait(self) -> int: ... # undocumented
method _try_finish (line 56) | def _try_finish(self) -> None: ... # undocumented
method _call_connection_lost (line 57) | def _call_connection_lost(self, exc: BaseException | None) -> None: .....
method __del__ (line 58) | def __del__(self) -> None: ...
class WriteSubprocessPipeProto (line 60) | class WriteSubprocessPipeProto(protocols.BaseProtocol): # undocumented
method __init__ (line 61) | def __init__(self, proc: BaseSubprocessTransport, fd: int) -> None: ...
class ReadSubprocessPipeProto (line 63) | class ReadSubprocessPipeProto(WriteSubprocessPipeProto, protocols.Protoc...
FILE: mypy/typeshed/stdlib/asyncio/base_tasks.pyi
function _task_repr_info (line 7) | def _task_repr_info(task: tasks.Task[Any]) -> list[str]: ... # undocume...
function _task_get_stack (line 8) | def _task_get_stack(task: tasks.Task[Any], limit: int | None) -> list[Fr...
function _task_print_stack (line 9) | def _task_print_stack(task: tasks.Task[Any], limit: int | None, file: St...
FILE: mypy/typeshed/stdlib/asyncio/constants.pyi
class _SendfileMode (line 17) | class _SendfileMode(enum.Enum):
FILE: mypy/typeshed/stdlib/asyncio/coroutines.pyi
function coroutine (line 17) | def coroutine(func: _FunctionT) -> _FunctionT: ...
function iscoroutinefunction (line 20) | def iscoroutinefunction(func: Callable[..., Coroutine[Any, Any, Any]]) -...
function iscoroutinefunction (line 22) | def iscoroutinefunction(func: Callable[_P, Awaitable[_T]]) -> TypeGuard[...
function iscoroutinefunction (line 24) | def iscoroutinefunction(func: Callable[_P, object]) -> TypeGuard[Callabl...
function iscoroutinefunction (line 26) | def iscoroutinefunction(func: object) -> TypeGuard[Callable[..., Corouti...
function iscoroutine (line 27) | def iscoroutine(obj: object) -> TypeIs[Coroutine[Any, Any, Any]]: ...
FILE: mypy/typeshed/stdlib/asyncio/events.pyi
class _TaskFactory (line 69) | class _TaskFactory(Protocol):
method __call__ (line 70) | def __call__(self, loop: AbstractEventLoop, factory: _CoroutineLike[_T...
class Handle (line 72) | class Handle:
method __init__ (line 75) | def __init__(
method cancel (line 78) | def cancel(self) -> None: ...
method _run (line 79) | def _run(self) -> None: ...
method cancelled (line 80) | def cancelled(self) -> bool: ...
method get_context (line 82) | def get_context(self) -> Context: ...
class TimerHandle (line 84) | class TimerHandle(Handle):
method __init__ (line 85) | def __init__(
method __hash__ (line 93) | def __hash__(self) -> int: ...
method when (line 94) | def when(self) -> float: ...
method __lt__ (line 95) | def __lt__(self, other: TimerHandle) -> bool: ...
method __le__ (line 96) | def __le__(self, other: TimerHandle) -> bool: ...
method __gt__ (line 97) | def __gt__(self, other: TimerHandle) -> bool: ...
method __ge__ (line 98) | def __ge__(self, other: TimerHandle) -> bool: ...
method __eq__ (line 99) | def __eq__(self, other: object) -> bool: ...
class AbstractServer (line 101) | class AbstractServer:
method close (line 103) | def close(self) -> None: ...
method close_clients (line 106) | def close_clients(self) -> None: ...
method abort_clients (line 108) | def abort_clients(self) -> None: ...
method __aenter__ (line 110) | async def __aenter__(self) -> Self: ...
method __aexit__ (line 111) | async def __aexit__(self, *exc: Unused) -> None: ...
method get_loop (line 113) | def get_loop(self) -> AbstractEventLoop: ...
method is_serving (line 115) | def is_serving(self) -> bool: ...
method start_serving (line 117) | async def start_serving(self) -> None: ...
method serve_forever (line 119) | async def serve_forever(self) -> None: ...
method wait_closed (line 121) | async def wait_closed(self) -> None: ...
class AbstractEventLoop (line 123) | class AbstractEventLoop:
method run_forever (line 126) | def run_forever(self) -> None: ...
method run_until_complete (line 128) | def run_until_complete(self, future: _AwaitableLike[_T]) -> _T: ...
method stop (line 130) | def stop(self) -> None: ...
method is_running (line 132) | def is_running(self) -> bool: ...
method is_closed (line 134) | def is_closed(self) -> bool: ...
method close (line 136) | def close(self) -> None: ...
method shutdown_asyncgens (line 138) | async def shutdown_asyncgens(self) -> None: ...
method call_soon (line 142) | def call_soon(
method call_later (line 146) | def call_later(
method call_at (line 150) | def call_at(
method call_soon (line 155) | def call_soon(self, callback: Callable[[Unpack[_Ts]], object], *args: ...
method call_later (line 157) | def call_later(self, delay: float, callback: Callable[[Unpack[_Ts]], o...
method call_at (line 159) | def call_at(self, when: float, callback: Callable[[Unpack[_Ts]], objec...
method time (line 162) | def time(self) -> float: ...
method create_future (line 165) | def create_future(self) -> Future[Any]: ...
method create_task (line 169) | def create_task(
method create_task (line 174) | def create_task(self, coro: _CoroutineLike[_T], *, name: str | None = ...
method set_task_factory (line 177) | def set_task_factory(self, factory: _TaskFactory | None) -> None: ...
method get_task_factory (line 179) | def get_task_factory(self) -> _TaskFactory | None: ...
method call_soon_threadsafe (line 183) | def call_soon_threadsafe(
method call_soon_threadsafe (line 188) | def call_soon_threadsafe(self, callback: Callable[[Unpack[_Ts]], objec...
method run_in_executor (line 191) | def run_in_executor(self, executor: Any, func: Callable[[Unpack[_Ts]],...
method set_default_executor (line 193) | def set_default_executor(self, executor: Any) -> None: ...
method getaddrinfo (line 196) | async def getaddrinfo(
method getnameinfo (line 207) | async def getnameinfo(self, sockaddr: tuple[str, int] | tuple[str, int...
method create_connection (line 211) | async def create_connection(
method create_connection (line 231) | async def create_connection(
method create_connection (line 252) | async def create_connection(
method create_connection (line 271) | async def create_connection(
method create_server (line 293) | async def create_server(
method create_server (line 313) | async def create_server(
method create_server (line 334) | async def create_server(
method create_server (line 353) | async def create_server(
method create_server (line 373) | async def create_server(
method create_server (line 391) | async def create_server(
method start_tls (line 410) | async def start_tls(
method create_unix_server (line 421) | async def create_unix_server(
method start_tls (line 435) | async def start_tls(
method create_unix_server (line 445) | async def create_unix_server(
method connect_accepted_socket (line 458) | async def connect_accepted_socket(
method connect_accepted_socket (line 468) | async def connect_accepted_socket(
method create_unix_connection (line 477) | async def create_unix_connection(
method create_unix_connection (line 489) | async def create_unix_connection(
method sock_sendfile (line 501) | async def sock_sendfile(
method sendfile (line 505) | async def sendfile(
method create_datagram_endpoint (line 509) | async def create_datagram_endpoint(
method connect_read_pipe (line 525) | async def connect_read_pipe(
method connect_write_pipe (line 529) | async def connect_write_pipe(
method subprocess_shell (line 533) | async def subprocess_shell(
method subprocess_exec (line 550) | async def subprocess_exec(
method add_reader (line 566) | def add_reader(self, fd: FileDescriptorLike, callback: Callable[[Unpac...
method remove_reader (line 568) | def remove_reader(self, fd: FileDescriptorLike) -> bool: ...
method add_writer (line 570) | def add_writer(self, fd: FileDescriptorLike, callback: Callable[[Unpac...
method remove_writer (line 572) | def remove_writer(self, fd: FileDescriptorLike) -> bool: ...
method sock_recv (line 574) | async def sock_recv(self, sock: socket, nbytes: int) -> bytes: ...
method sock_recv_into (line 576) | async def sock_recv_into(self, sock: socket, buf: WriteableBuffer) -> ...
method sock_sendall (line 578) | async def sock_sendall(self, sock: socket, data: ReadableBuffer) -> No...
method sock_connect (line 580) | async def sock_connect(self, sock: socket, address: _Address) -> None:...
method sock_accept (line 582) | async def sock_accept(self, sock: socket) -> tuple[socket, _RetAddress...
method sock_recvfrom (line 585) | async def sock_recvfrom(self, sock: socket, bufsize: int) -> tuple[byt...
method sock_recvfrom_into (line 587) | async def sock_recvfrom_into(self, sock: socket, buf: WriteableBuffer,...
method sock_sendto (line 589) | async def sock_sendto(self, sock: socket, data: ReadableBuffer, addres...
method add_signal_handler (line 592) | def add_signal_handler(self, sig: int, callback: Callable[[Unpack[_Ts]...
method remove_signal_handler (line 594) | def remove_signal_handler(self, sig: int) -> bool: ...
method set_exception_handler (line 597) | def set_exception_handler(self, handler: _ExceptionHandler | None) -> ...
method get_exception_handler (line 599) | def get_exception_handler(self) -> _ExceptionHandler | None: ...
method default_exception_handler (line 601) | def default_exception_handler(self, context: _Context) -> None: ...
method call_exception_handler (line 603) | def call_exception_handler(self, context: _Context) -> None: ...
method get_debug (line 606) | def get_debug(self) -> bool: ...
method set_debug (line 608) | def set_debug(self, enabled: bool) -> None: ...
method shutdown_default_executor (line 611) | async def shutdown_default_executor(self) -> None: ...
class AbstractEventLoopPolicy (line 613) | class AbstractEventLoopPolicy:
method get_event_loop (line 615) | def get_event_loop(self) -> AbstractEventLoop: ...
method set_event_loop (line 617) | def set_event_loop(self, loop: AbstractEventLoop | None) -> None: ...
method new_event_loop (line 619) | def new_event_loop(self) -> AbstractEventLoop: ...
method get_child_watcher (line 625) | def get_child_watcher(self) -> AbstractChildWatcher: ...
method set_child_watcher (line 628) | def set_child_watcher(self, watcher: AbstractChildWatcher) -> None: ...
method get_child_watcher (line 631) | def get_child_watcher(self) -> AbstractChildWatcher: ...
method set_child_watcher (line 633) | def set_child_watcher(self, watcher: AbstractChildWatcher) -> None: ...
class BaseDefaultEventLoopPolicy (line 635) | class BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy, metaclass=ABCM...
method get_event_loop (line 636) | def get_event_loop(self) -> AbstractEventLoop: ...
method set_event_loop (line 637) | def set_event_loop(self, loop: AbstractEventLoop | None) -> None: ...
method new_event_loop (line 638) | def new_event_loop(self) -> AbstractEventLoop: ...
function get_event_loop_policy (line 640) | def get_event_loop_policy() -> AbstractEventLoopPolicy: ...
function set_event_loop_policy (line 641) | def set_event_loop_policy(policy: AbstractEventLoopPolicy | None) -> Non...
function set_event_loop (line 642) | def set_event_loop(loop: AbstractEventLoop | None) -> None: ...
function new_event_loop (line 643) | def new_event_loop() -> AbstractEventLoop: ...
function get_child_watcher (line 648) | def get_child_watcher() -> AbstractChildWatcher: ...
function set_child_watcher (line 650) | def set_child_watcher(watcher: AbstractChildWatcher) -> None: ...
function get_child_watcher (line 653) | def get_child_watcher() -> AbstractChildWatcher: ...
function set_child_watcher (line 654) | def set_child_watcher(watcher: AbstractChildWatcher) -> None: ...
FILE: mypy/typeshed/stdlib/asyncio/exceptions.pyi
class CancelledError (line 24) | class CancelledError(BaseException): ...
class TimeoutError (line 29) | class TimeoutError(Exception): ...
class InvalidStateError (line 31) | class InvalidStateError(Exception): ...
class SendfileNotAvailableError (line 32) | class SendfileNotAvailableError(RuntimeError): ...
class IncompleteReadError (line 34) | class IncompleteReadError(EOFError):
method __init__ (line 37) | def __init__(self, partial: bytes, expected: int | None) -> None: ...
class LimitOverrunError (line 39) | class LimitOverrunError(Exception):
method __init__ (line 41) | def __init__(self, message: str, consumed: int) -> None: ...
class BrokenBarrierError (line 44) | class BrokenBarrierError(RuntimeError): ...
FILE: mypy/typeshed/stdlib/asyncio/format_helpers.pyi
class _HasWrapper (line 9) | class _HasWrapper:
function _get_function_source (line 15) | def _get_function_source(func: _FuncType) -> tuple[str, int]: ...
function _get_function_source (line 17) | def _get_function_source(func: object) -> tuple[str, int] | None: ...
function _format_callback_source (line 20) | def _format_callback_source(func: object, args: Iterable[Any], *, debug:...
function _format_args_and_kwargs (line 21) | def _format_args_and_kwargs(args: Iterable[Any], kwargs: dict[str, Any],...
function _format_callback (line 22) | def _format_callback(
function _format_callback_source (line 27) | def _format_callback_source(func: object, args: Iterable[Any]) -> str: ...
function _format_args_and_kwargs (line 28) | def _format_args_and_kwargs(args: Iterable[Any], kwargs: dict[str, Any])...
function _format_callback (line 29) | def _format_callback(func: object, args: Iterable[Any], kwargs: dict[str...
function extract_stack (line 31) | def extract_stack(f: FrameType | None = None, limit: int | None = None) ...
FILE: mypy/typeshed/stdlib/asyncio/futures.pyi
function isfuture (line 16) | def isfuture(obj: object) -> TypeIs[Future[Any]]: ...
function wrap_future (line 17) | def wrap_future(future: _ConcurrentFuture[_T] | Future[_T], *, loop: Abs...
FILE: mypy/typeshed/stdlib/asyncio/locks.pyi
class _ContextManagerMixin (line 27) | class _ContextManagerMixin:
method __aenter__ (line 28) | async def __aenter__(self) -> None: ...
method __aexit__ (line 29) | async def __aexit__(
method __iter__ (line 43) | def __iter__(self) -> Generator[Any, None, _ContextManager]: ...
method __await__ (line 44) | def __await__(self) -> Generator[Any, None, _ContextManager]: ...
method __aenter__ (line 45) | async def __aenter__(self) -> None: ...
method __aexit__ (line 46) | async def __aexit__(
class _ContextManager (line 34) | class _ContextManager:
method __init__ (line 35) | def __init__(self, lock: Lock | Semaphore) -> None: ...
method __enter__ (line 36) | def __enter__(self) -> None: ...
method __exit__ (line 37) | def __exit__(self, *args: Unused) -> None: ...
class _ContextManagerMixin (line 39) | class _ContextManagerMixin:
method __aenter__ (line 28) | async def __aenter__(self) -> None: ...
method __aexit__ (line 29) | async def __aexit__(
method __iter__ (line 43) | def __iter__(self) -> Generator[Any, None, _ContextManager]: ...
method __await__ (line 44) | def __await__(self) -> Generator[Any, None, _ContextManager]: ...
method __aenter__ (line 45) | async def __aenter__(self) -> None: ...
method __aexit__ (line 46) | async def __aexit__(
class Lock (line 50) | class Lock(_ContextManagerMixin, _LoopBoundMixin):
method __init__ (line 53) | def __init__(self) -> None: ...
method __init__ (line 55) | def __init__(self, *, loop: AbstractEventLoop | None = None) -> None: ...
method locked (line 57) | def locked(self) -> bool: ...
method acquire (line 58) | async def acquire(self) -> Literal[True]: ...
method release (line 59) | def release(self) -> None: ...
class Event (line 61) | class Event(_LoopBoundMixin):
method __init__ (line 64) | def __init__(self) -> None: ...
method __init__ (line 66) | def __init__(self, *, loop: AbstractEventLoop | None = None) -> None: ...
method is_set (line 68) | def is_set(self) -> bool: ...
method set (line 69) | def set(self) -> None: ...
method clear (line 70) | def clear(self) -> None: ...
method wait (line 71) | async def wait(self) -> Literal[True]: ...
class Condition (line 73) | class Condition(_ContextManagerMixin, _LoopBoundMixin):
method __init__ (line 76) | def __init__(self, lock: Lock | None = None) -> None: ...
method __init__ (line 78) | def __init__(self, lock: Lock | None = None, *, loop: AbstractEventLoo...
method locked (line 80) | def locked(self) -> bool: ...
method acquire (line 81) | async def acquire(self) -> Literal[True]: ...
method release (line 82) | def release(self) -> None: ...
method wait (line 83) | async def wait(self) -> Literal[True]: ...
method wait_for (line 84) | async def wait_for(self, predicate: Callable[[], _T]) -> _T: ...
method notify (line 85) | def notify(self, n: int = 1) -> None: ...
method notify_all (line 86) | def notify_all(self) -> None: ...
class Semaphore (line 88) | class Semaphore(_ContextManagerMixin, _LoopBoundMixin):
method __init__ (line 92) | def __init__(self, value: int = 1) -> None: ...
method __init__ (line 94) | def __init__(self, value: int = 1, *, loop: AbstractEventLoop | None =...
method locked (line 96) | def locked(self) -> bool: ...
method acquire (line 97) | async def acquire(self) -> Literal[True]: ...
method release (line 98) | def release(self) -> None: ...
method _wake_up_next (line 99) | def _wake_up_next(self) -> None: ...
class BoundedSemaphore (line 101) | class BoundedSemaphore(Semaphore): ...
class _BarrierState (line 104) | class _BarrierState(enum.Enum): # undocumented
class Barrier (line 110) | class Barrier(_LoopBoundMixin):
method __init__ (line 111) | def __init__(self, parties: int) -> None: ...
method __aenter__ (line 112) | async def __aenter__(self) -> Self: ...
method __aexit__ (line 113) | async def __aexit__(self, *args: Unused) -> None: ...
method wait (line 114) | async def wait(self) -> int: ...
method abort (line 115) | async def abort(self) -> None: ...
method reset (line 116) | async def reset(self) -> None: ...
method parties (line 118) | def parties(self) -> int: ...
method n_waiting (line 120) | def n_waiting(self) -> int: ...
method broken (line 122) | def broken(self) -> bool: ...
FILE: mypy/typeshed/stdlib/asyncio/mixins.pyi
class _LoopBoundMixin (line 7) | class _LoopBoundMixin:
method __init__ (line 9) | def __init__(self, *, loop: Never = ...) -> None: ...
FILE: mypy/typeshed/stdlib/asyncio/proactor_events.pyi
class _ProactorBasePipeTransport (line 10) | class _ProactorBasePipeTransport(transports._FlowControlMixin, transport...
method __init__ (line 11) | def __init__(
method __del__ (line 20) | def __del__(self) -> None: ...
class _ProactorReadPipeTransport (line 22) | class _ProactorReadPipeTransport(_ProactorBasePipeTransport, transports....
method __init__ (line 24) | def __init__(
method __init__ (line 35) | def __init__(
class _ProactorBaseWritePipeTransport (line 45) | class _ProactorBaseWritePipeTransport(_ProactorBasePipeTransport, transp...
class _ProactorWritePipeTransport (line 46) | class _ProactorWritePipeTransport(_ProactorBaseWritePipeTransport): ...
class _ProactorDuplexPipeTransport (line 47) | class _ProactorDuplexPipeTransport(_ProactorReadPipeTransport, _Proactor...
class _ProactorSocketTransport (line 49) | class _ProactorSocketTransport(_ProactorReadPipeTransport, _ProactorBase...
method __init__ (line 51) | def __init__(
method _set_extra (line 60) | def _set_extra(self, sock: socket) -> None: ...
method can_write_eof (line 61) | def can_write_eof(self) -> Literal[True]: ...
class BaseProactorEventLoop (line 63) | class BaseProactorEventLoop(base_events.BaseEventLoop):
method __init__ (line 64) | def __init__(self, proactor: Any) -> None: ...
method sock_recv (line 65) | async def sock_recv(self, sock: socket, n: int) -> bytes: ... # type: ...
FILE: mypy/typeshed/stdlib/asyncio/protocols.pyi
class BaseProtocol (line 8) | class BaseProtocol:
method connection_made (line 9) | def connection_made(self, transport: transports.BaseTransport) -> None...
method connection_lost (line 10) | def connection_lost(self, exc: Exception | None) -> None: ...
method pause_writing (line 11) | def pause_writing(self) -> None: ...
method resume_writing (line 12) | def resume_writing(self) -> None: ...
class Protocol (line 14) | class Protocol(BaseProtocol):
method data_received (line 15) | def data_received(self, data: bytes) -> None: ...
method eof_received (line 16) | def eof_received(self) -> bool | None: ...
class BufferedProtocol (line 18) | class BufferedProtocol(BaseProtocol):
method get_buffer (line 19) | def get_buffer(self, sizehint: int) -> ReadableBuffer: ...
method buffer_updated (line 20) | def buffer_updated(self, nbytes: int) -> None: ...
method eof_received (line 21) | def eof_received(self) -> bool | None: ...
class DatagramProtocol (line 23) | class DatagramProtocol(BaseProtocol):
method connection_made (line 24) | def connection_made(self, transport: transports.DatagramTransport) -> ...
method datagram_received (line 29) | def datagram_received(self, data: bytes, addr: tuple[str | Any, int]) ...
method error_received (line 30) | def error_received(self, exc: Exception) -> None: ...
class SubprocessProtocol (line 32) | class SubprocessProtocol(BaseProtocol):
method pipe_data_received (line 33) | def pipe_data_received(self, fd: int, data: bytes) -> None: ...
method pipe_connection_lost (line 34) | def pipe_connection_lost(self, fd: int, exc: Exception | None) -> None...
method process_exited (line 35) | def process_exited(self) -> None: ...
FILE: mypy/typeshed/stdlib/asyncio/queues.pyi
class QueueEmpty (line 13) | class QueueEmpty(Exception): ...
class QueueFull (line 14) | class QueueFull(Exception): ...
class QueueShutDown (line 26) | class QueueShutDown(Exception): ...
class Queue (line 30) | class Queue(Generic[_T], _LoopBoundMixin): # noqa: Y059
method __init__ (line 32) | def __init__(self, maxsize: int = 0) -> None: ...
method __init__ (line 34) | def __init__(self, maxsize: int = 0, *, loop: AbstractEventLoop | None...
method _init (line 36) | def _init(self, maxsize: int) -> None: ...
method _get (line 37) | def _get(self) -> _T: ...
method _put (line 38) | def _put(self, item: _T) -> None: ...
method _format (line 39) | def _format(self) -> str: ...
method qsize (line 40) | def qsize(self) -> int: ...
method maxsize (line 42) | def maxsize(self) -> int: ...
method empty (line 43) | def empty(self) -> bool: ...
method full (line 44) | def full(self) -> bool: ...
method put (line 45) | async def put(self, item: _T) -> None: ...
method put_nowait (line 46) | def put_nowait(self, item: _T) -> None: ...
method get (line 47) | async def get(self) -> _T: ...
method get_nowait (line 48) | def get_nowait(self) -> _T: ...
method join (line 49) | async def join(self) -> None: ...
method task_done (line 50) | def task_done(self) -> None: ...
method __class_getitem__ (line 52) | def __class_getitem__(cls, type: Any, /) -> GenericAlias: ...
method shutdown (line 54) | def shutdown(self, immediate: bool = False) -> None: ...
class PriorityQueue (line 56) | class PriorityQueue(Queue[_T]): ...
class LifoQueue (line 57) | class LifoQueue(Queue[_T]): ...
FILE: mypy/typeshed/stdlib/asyncio/runners.pyi
class Runner (line 19) | class Runner:
method __init__ (line 20) | def __init__(self, *, debug: bool | None = None, loop_factory: Callabl...
method __enter__ (line 21) | def __enter__(self) -> Self: ...
method __exit__ (line 22) | def __exit__(self, exc_type: Unused, exc_val: Unused, exc_tb: Unused) ...
method close (line 23) | def close(self) -> None: ...
method get_loop (line 24) | def get_loop(self) -> AbstractEventLoop: ...
method run (line 25) | def run(self, coro: Coroutine[Any, Any, _T], *, context: Context | Non...
function run (line 28) | def run(
function run (line 33) | def run(main: Coroutine[Any, Any, _T], *, debug: bool | None = None) -> ...
FILE: mypy/typeshed/stdlib/asyncio/selector_events.pyi
class BaseSelectorEventLoop (line 8) | class BaseSelectorEventLoop(base_events.BaseEventLoop):
method __init__ (line 9) | def __init__(self, selector: selectors.BaseSelector | None = None) -> ...
method sock_recv (line 10) | async def sock_recv(self, sock: socket, n: int) -> bytes: ... # type:...
FILE: mypy/typeshed/stdlib/asyncio/sslproto.pyi
function _create_transport_context (line 11) | def _create_transport_context(server_side: bool, server_hostname: str | ...
class SSLProtocolState (line 16) | class SSLProtocolState(Enum):
class AppProtocolState (line 23) | class AppProtocolState(Enum):
function add_flowcontrol_defaults (line 29) | def add_flowcontrol_defaults(high: int | None, low: int | None, kb: int)...
class _SSLPipe (line 38) | class _SSLPipe:
method __init__ (line 51) | def __init__(self, context: ssl.SSLContext, server_side: bool, server_...
method context (line 53) | def context(self) -> ssl.SSLContext: ...
method ssl_object (line 55) | def ssl_object(self) -> ssl.SSLObject | None: ...
method need_ssldata (line 57) | def need_ssldata(self) -> bool: ...
method wrapped (line 59) | def wrapped(self) -> bool: ...
method do_handshake (line 60) | def do_handshake(self, callback: Callable[[BaseException | None], obje...
method shutdown (line 61) | def shutdown(self, callback: Callable[[], object] | None = None) -> li...
method feed_eof (line 62) | def feed_eof(self) -> None: ...
method feed_ssldata (line 63) | def feed_ssldata(self, data: bytes, only_handshake: bool = False) -> t...
method feed_appdata (line 64) | def feed_appdata(self, data: bytes, offset: int = 0) -> tuple[list[byt...
class _SSLProtocolTransport (line 66) | class _SSLProtocolTransport(transports._FlowControlMixin, transports.Tra...
method __init__ (line 75) | def __init__(self, loop: events.AbstractEventLoop, ssl_protocol: SSLPr...
method get_extra_info (line 76) | def get_extra_info(self, name: str, default: Any | None = None) -> dic...
method _protocol_paused (line 78) | def _protocol_paused(self) -> bool: ...
method write (line 79) | def write(self, data: bytes | bytearray | memoryview) -> None: ...
method can_write_eof (line 80) | def can_write_eof(self) -> Literal[False]: ...
method get_write_buffer_limits (line 82) | def get_write_buffer_limits(self) -> tuple[int, int]: ...
method get_read_buffer_limits (line 83) | def get_read_buffer_limits(self) -> tuple[int, int]: ...
method set_read_buffer_limits (line 84) | def set_read_buffer_limits(self, high: int | None = None, low: int | N...
method get_read_buffer_size (line 85) | def get_read_buffer_size(self) -> int: ...
method __del__ (line 87) | def __del__(self) -> None: ...
class SSLProtocol (line 94) | class SSLProtocol(_SSLProtocolBase):
method __init__ (line 119) | def __init__(
method __init__ (line 132) | def __init__(
method _set_app_protocol (line 144) | def _set_app_protocol(self, app_protocol: protocols.BaseProtocol) -> N...
method _wakeup_waiter (line 145) | def _wakeup_waiter(self, exc: BaseException | None = None) -> None: ...
method connection_lost (line 146) | def connection_lost(self, exc: BaseException | None) -> None: ...
method eof_received (line 147) | def eof_received(self) -> None: ...
method _get_extra_info (line 148) | def _get_extra_info(self, name: str, default: Any | None = None) -> An...
method _start_shutdown (line 149) | def _start_shutdown(self) -> None: ...
method _write_appdata (line 151) | def _write_appdata(self, list_of_data: list[bytes]) -> None: ...
method _write_appdata (line 153) | def _write_appdata(self, data: bytes) -> None: ...
method _start_handshake (line 155) | def _start_handshake(self) -> None: ...
method _check_handshake_timeout (line 156) | def _check_handshake_timeout(self) -> None: ...
method _on_handshake_complete (line 157) | def _on_handshake_complete(self, handshake_exc: BaseException | None) ...
method _fatal_error (line 158) | def _fatal_error(self, exc: BaseException, message: str = "Fatal error...
method _abort (line 160) | def _abort(self, exc: BaseException | None) -> None: ...
method get_buffer (line 161) | def get_buffer(self, n: int) -> memoryview: ...
method _abort (line 163) | def _abort(self) -> None: ...
method _finalize (line 164) | def _finalize(self) -> None: ...
method _process_write_backlog (line 165) | def _process_write_backlog(self) -> None: ...
FILE: mypy/typeshed/stdlib/asyncio/staggered.pyi
function staggered_race (line 8) | async def staggered_race(
FILE: mypy/typeshed/stdlib/asyncio/streams.pyi
class _ReaduntilBuffer (line 28) | class _ReaduntilBuffer(ReadableBuffer, Sized, Protocol): ...
function open_connection (line 31) | async def open_connection(
function start_server (line 39) | async def start_server(
function open_connection (line 50) | async def open_connection(
function start_server (line 59) | async def start_server(
function open_unix_connection (line 72) | async def open_unix_connection(
function start_unix_server (line 75) | async def start_unix_server(
function open_unix_connection (line 79) | async def open_unix_connection(
function start_unix_server (line 82) | async def start_unix_server(
class FlowControlMixin (line 91) | class FlowControlMixin(protocols.Protocol):
method __init__ (line 92) | def __init__(self, loop: events.AbstractEventLoop | None = None) -> No...
class StreamReaderProtocol (line 94) | class StreamReaderProtocol(FlowControlMixin, protocols.Protocol):
method __init__ (line 95) | def __init__(
method __del__ (line 101) | def __del__(self) -> None: ...
class StreamWriter (line 103) | class StreamWriter:
method __init__ (line 104) | def __init__(
method transport (line 112) | def transport(self) -> transports.WriteTransport: ...
method write (line 113) | def write(self, data: bytes | bytearray | memoryview) -> None: ...
method writelines (line 114) | def writelines(self, data: Iterable[bytes | bytearray | memoryview]) -...
method write_eof (line 115) | def write_eof(self) -> None: ...
method can_write_eof (line 116) | def can_write_eof(self) -> bool: ...
method close (line 117) | def close(self) -> None: ...
method is_closing (line 118) | def is_closing(self) -> bool: ...
method wait_closed (line 119) | async def wait_closed(self) -> None: ...
method get_extra_info (line 120) | def get_extra_info(self, name: str, default: Any = None) -> Any: ...
method drain (line 121) | async def drain(self) -> None: ...
method start_tls (line 123) | async def start_tls(
method start_tls (line 132) | async def start_tls(
method __del__ (line 137) | def __del__(self, warnings: ModuleType = ...) -> None: ...
method __del__ (line 139) | def __del__(self) -> None: ...
class StreamReader (line 141) | class StreamReader:
method __init__ (line 142) | def __init__(self, limit: int = 65536, loop: events.AbstractEventLoop ...
method exception (line 143) | def exception(self) -> Exception: ...
method set_exception (line 144) | def set_exception(self, exc: Exception) -> None: ...
method set_transport (line 145) | def set_transport(self, transport: transports.BaseTransport) -> None: ...
method feed_eof (line 146) | def feed_eof(self) -> None: ...
method at_eof (line 147) | def at_eof(self) -> bool: ...
method feed_data (line 148) | def feed_data(self, data: Iterable[SupportsIndex]) -> None: ...
method readline (line 149) | async def readline(self) -> bytes: ...
method readuntil (line 151) | async def readuntil(self, separator: _ReaduntilBuffer | tuple[_Readunt...
method readuntil (line 153) | async def readuntil(self, separator: _ReaduntilBuffer = b"\n") -> byte...
method read (line 155) | async def read(self, n: int = -1) -> bytes: ...
method readexactly (line 156) | async def readexactly(self, n: int) -> bytes: ...
method __aiter__ (line 157) | def __aiter__(self) -> Self: ...
method __anext__ (line 158) | async def __anext__(self) -> bytes: ...
FILE: mypy/typeshed/stdlib/asyncio/subprocess.pyi
class SubprocessStreamProtocol (line 15) | class SubprocessStreamProtocol(streams.FlowControlMixin, protocols.Subpr...
method __init__ (line 19) | def __init__(self, limit: int, loop: events.AbstractEventLoop) -> None...
method pipe_data_received (line 20) | def pipe_data_received(self, fd: int, data: bytes | str) -> None: ...
class Process (line 22) | class Process:
method __init__ (line 27) | def __init__(
method returncode (line 31) | def returncode(self) -> int | None: ...
method wait (line 32) | async def wait(self) -> int: ...
method send_signal (line 33) | def send_signal(self, signal: int) -> None: ...
method terminate (line 34) | def terminate(self) -> None: ...
method kill (line 35) | def kill(self) -> None: ...
method communicate (line 36) | async def communicate(self, input: bytes | bytearray | memoryview | No...
function create_subprocess_shell (line 39) | async def create_subprocess_shell(
function create_subprocess_exec (line 71) | async def create_subprocess_exec(
function create_subprocess_shell (line 105) | async def create_subprocess_shell(
function create_subprocess_exec (line 136) | async def create_subprocess_exec(
function create_subprocess_shell (line 169) | async def create_subprocess_shell(
function create_subprocess_exec (line 200) | async def create_subprocess_exec(
FILE: mypy/typeshed/stdlib/asyncio/taskgroups.pyi
class TaskGroup (line 19) | class TaskGroup:
method __aenter__ (line 23) | async def __aenter__(self) -> Self: ...
method __aexit__ (line 24) | async def __aexit__(self, et: type[BaseException] | None, exc: BaseExc...
method create_task (line 25) | def create_task(self, coro: _CoroutineLike[_T], *, name: str | None = ...
method _on_task_done (line 26) | def _on_task_done(self, task: Task[object]) -> None: ...
FILE: mypy/typeshed/stdlib/asyncio/tasks.pyi
class _SyncAndAsyncIterator (line 89) | class _SyncAndAsyncIterator(Iterator[_T_co], AsyncIterator[_T_co], Proto...
function as_completed (line 91) | def as_completed(fs: Iterable[_FutureLike[_T]], *, timeout: float | None...
function as_completed (line 94) | def as_completed(fs: Iterable[_FutureLike[_T]], *, timeout: float | None...
function as_completed (line 97) | def as_completed(
function ensure_future (line 102) | def ensure_future(coro_or_future: _FT, *, loop: AbstractEventLoop | None...
function ensure_future (line 104) | def ensure_future(coro_or_future: Awaitable[_T], *, loop: AbstractEventL...
function gather (line 114) | def gather(coro_or_future1: _FutureLike[_T1], /, *, return_exceptions: L...
function gather (line 116) | def gather( # type: ignore[overload-overlap]
function gather (line 120) | def gather( # type: ignore[overload-overlap]
function gather (line 129) | def gather( # type: ignore[overload-overlap]
function gather (line 139) | def gather( # type: ignore[overload-overlap]
function gather (line 150) | def gather( # type: ignore[overload-overlap]
function gather (line 162) | def gather(*coros_or_futures: _FutureLike[_T], return_exceptions: Litera...
function gather (line 164) | def gather(coro_or_future1: _FutureLike[_T1], /, *, return_exceptions: b...
function gather (line 166) | def gather(
function gather (line 170) | def gather(
function gather (line 179) | def gather(
function gather (line 189) | def gather(
function gather (line 202) | def gather(
function gather (line 223) | def gather(*coros_or_futures: _FutureLike[_T], return_exceptions: bool) ...
function gather (line 227) | def gather( # type: ignore[overload-overlap]
function gather (line 231) | def gather( # type: ignore[overload-overlap]
function gather (line 240) | def gather( # type: ignore[overload-overlap]
function gather (line 250) | def gather( # type: ignore[overload-overlap]
function gather (line 261) | def gather( # type: ignore[overload-overlap]
function gather (line 273) | def gather( # type: ignore[overload-overlap]
function gather (line 286) | def gather( # type: ignore[overload-overlap]
function gather (line 290) | def gather( # type: ignore[overload-overlap]
function gather (line 294) | def gather( # type: ignore[overload-overlap]
function gather (line 303) | def gather( # type: ignore[overload-overlap]
function gather (line 313) | def gather( # type: ignore[overload-overlap]
function gather (line 324) | def gather( # type: ignore[overload-overlap]
function gather (line 346) | def gather(
function run_coroutine_threadsafe (line 350) | def run_coroutine_threadsafe(coro: _FutureLike[_T], loop: AbstractEventL...
function shield (line 353) | def shield(arg: _FutureLike[_T]) -> Future[_T]: ...
function sleep (line 355) | async def sleep(delay: float) -> None: ...
function sleep (line 357) | async def sleep(delay: float, result: _T) -> _T: ...
function wait_for (line 358) | async def wait_for(fut: _FutureLike[_T], timeout: float | None) -> _T: ...
function shield (line 361) | def shield(arg: _FutureLike[_T], *, loop: AbstractEventLoop | None = Non...
function sleep (line 363) | async def sleep(delay: float, *, loop: AbstractEventLoop | None = None) ...
function sleep (line 365) | async def sleep(delay: float, result: _T, *, loop: AbstractEventLoop | N...
function wait_for (line 366) | async def wait_for(fut: _FutureLike[_T], timeout: float | None, *, loop:...
function wait (line 370) | async def wait(
function wait (line 374) | async def wait(
function wait (line 380) | async def wait( # type: ignore[overload-overlap]
function wait (line 384) | async def wait(
function wait (line 390) | async def wait( # type: ignore[overload-overlap]
function wait (line 398) | async def wait(
function all_tasks (line 413) | def all_tasks(loop: AbstractEventLoop | None = None) -> set[Task[Any]]: ...
function create_task (line 416) | def create_task(coro: _CoroutineLike[_T], *, name: str | None = None, co...
function create_task (line 419) | def create_task(coro: _CoroutineLike[_T], *, name: str | None = None) ->...
function current_task (line 424) | def current_task(loop: AbstractEventLoop | None = None) -> Task[Any] | N...
class _CustomTaskConstructor (line 429) | class _CustomTaskConstructor(Protocol[_TaskT_co]):
method __call__ (line 430) | def __call__(
class _EagerTaskFactoryType (line 441) | class _EagerTaskFactoryType(Protocol[_TaskT_co]):
method __call__ (line 442) | def __call__(
function create_eager_task_factory (line 451) | def create_eager_task_factory(
function eager_task_factory (line 454) | def eager_task_factory(
FILE: mypy/typeshed/stdlib/asyncio/threads.pyi
function to_thread (line 10) | async def to_thread(func: Callable[_P, _R], /, *args: _P.args, **kwargs:...
FILE: mypy/typeshed/stdlib/asyncio/timeouts.pyi
class Timeout (line 9) | class Timeout:
method __init__ (line 10) | def __init__(self, when: float | None) -> None: ...
method when (line 11) | def when(self) -> float | None: ...
method reschedule (line 12) | def reschedule(self, when: float | None) -> None: ...
method expired (line 13) | def expired(self) -> bool: ...
method __aenter__ (line 14) | async def __aenter__(self) -> Self: ...
method __aexit__ (line 15) | async def __aexit__(
function timeout (line 19) | def timeout(delay: float | None) -> Timeout: ...
function timeout_at (line 20) | def timeout_at(when: float | None) -> Timeout: ...
FILE: mypy/typeshed/stdlib/asyncio/transports.pyi
class BaseTransport (line 10) | class BaseTransport:
method __init__ (line 11) | def __init__(self, extra: Mapping[str, Any] | None = None) -> None: ...
method get_extra_info (line 12) | def get_extra_info(self, name: str, default: Any = None) -> Any: ...
method is_closing (line 13) | def is_closing(self) -> bool: ...
method close (line 14) | def close(self) -> None: ...
method set_protocol (line 15) | def set_protocol(self, protocol: BaseProtocol) -> None: ...
method get_protocol (line 16) | def get_protocol(self) -> BaseProtocol: ...
class ReadTransport (line 18) | class ReadTransport(BaseTransport):
method is_reading (line 19) | def is_reading(self) -> bool: ...
method pause_reading (line 20) | def pause_reading(self) -> None: ...
method resume_reading (line 21) | def resume_reading(self) -> None: ...
class WriteTransport (line 23) | class WriteTransport(BaseTransport):
method set_write_buffer_limits (line 24) | def set_write_buffer_limits(self, high: int | None = None, low: int | ...
method get_write_buffer_size (line 25) | def get_write_buffer_size(self) -> int: ...
method get_write_buffer_limits (line 26) | def get_write_buffer_limits(self) -> tuple[int, int]: ...
method write (line 27) | def write(self, data: bytes | bytearray | memoryview) -> None: ...
method writelines (line 28) | def writelines(self, list_of_data: Iterable[bytes | bytearray | memory...
method write_eof (line 29) | def write_eof(self) -> None: ...
method can_write_eof (line 30) | def can_write_eof(self) -> bool: ...
method abort (line 31) | def abort(self) -> None: ...
class Transport (line 33) | class Transport(ReadTransport, WriteTransport): ...
class DatagramTransport (line 35) | class DatagramTransport(BaseTransport):
method sendto (line 36) | def sendto(self, data: bytes | bytearray | memoryview, addr: _Address ...
method abort (line 37) | def abort(self) -> None: ...
class SubprocessTransport (line 39) | class SubprocessTransport(BaseTransport):
method get_pid (line 40) | def get_pid(self) -> int: ...
method get_returncode (line 41) | def get_returncode(self) -> int | None: ...
method get_pipe_transport (line 42) | def get_pipe_transport(self, fd: int) -> BaseTransport | None: ...
method send_signal (line 43) | def send_signal(self, signal: int) -> None: ...
method terminate (line 44) | def terminate(self) -> None: ...
method kill (line 45) | def kill(self) -> None: ...
class _FlowControlMixin (line 47) | class _FlowControlMixin(Transport):
method __init__ (line 48) | def __init__(self, extra: Mapping[str, Any] | None = None, loop: Abstr...
FILE: mypy/typeshed/stdlib/asyncio/trsock.pyi
class TransportSocket (line 16) | class TransportSocket:
method __init__ (line 17) | def __init__(self, sock: socket.socket) -> None: ...
method family (line 19) | def family(self) -> int: ...
method type (line 21) | def type(self) -> int: ...
method proto (line 23) | def proto(self) -> int: ...
method __getstate__ (line 24) | def __getstate__(self) -> NoReturn: ...
method fileno (line 25) | def fileno(self) -> int: ...
method dup (line 26) | def dup(self) -> socket.socket: ...
method get_inheritable (line 27) | def get_inheritable(self) -> bool: ...
method shutdown (line 28) | def shutdown(self, how: int) -> None: ...
method getsockopt (line 30) | def getsockopt(self, level: int, optname: int) -> int: ...
method getsockopt (line 32) | def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...
method setsockopt (line 34) | def setsockopt(self, level: int, optname: int, value: int | ReadableBu...
method setsockopt (line 36) | def setsockopt(self, level: int, optname: int, value: None, optlen: in...
method getpeername (line 37) | def getpeername(self) -> _RetAddress: ...
method getsockname (line 38) | def getsockname(self) -> _RetAddress: ...
method getsockbyname (line 39) | def getsockbyname(self) -> NoReturn: ... # This method doesn't exist ...
method settimeout (line 40) | def settimeout(self, value: float | None) -> None: ...
method gettimeout (line 41) | def gettimeout(self) -> float | None: ...
method setblocking (line 42) | def setblocking(self, flag: bool) -> None: ...
method _na (line 44) | def _na(self, what: str) -> None: ...
method accept (line 45) | def accept(self) -> tuple[socket.socket, _RetAddress]: ...
method connect (line 46) | def connect(self, address: _Address) -> None: ...
method connect_ex (line 47) | def connect_ex(self, address: _Address) -> int: ...
method bind (line 48) | def bind(self, address: _Address) -> None: ...
method ioctl (line 50) | def ioctl(self, control: int, option: int | tuple[int, int, int] | boo...
method ioctl (line 52) | def ioctl(self, control: int, option: int | tuple[int, int, int] | boo...
method listen (line 54) | def listen(self, backlog: int = ..., /) -> None: ...
method makefile (line 55) | def makefile(self) -> BinaryIO: ...
method sendfile (line 56) | def sendfile(self, file: BinaryIO, offset: int = ..., count: int | Non...
method close (line 57) | def close(self) -> None: ...
method detach (line 58) | def detach(self) -> int: ...
method sendmsg_afalg (line 60) | def sendmsg_afalg(
method sendmsg_afalg (line 64) | def sendmsg_afalg(
method sendmsg (line 68) | def sendmsg(
method sendto (line 72) | def sendto(self, data: ReadableBuffer, address: _Address) -> int: ...
method sendto (line 74) | def sendto(self, data: ReadableBuffer, flags: int, address: _Address) ...
method send (line 75) | def send(self, data: ReadableBuffer, flags: int = ...) -> int: ...
method sendall (line 76) | def sendall(self, data: ReadableBuffer, flags: int = ...) -> None: ...
method set_inheritable (line 77) | def set_inheritable(self, inheritable: bool) -> None: ...
method share (line 79) | def share(self, process_id: int) -> bytes: ...
method share (line 81) | def share(self, process_id: int) -> NoReturn: ...
method recv_into (line 83) | def recv_into(self, buffer: _WriteBuffer, nbytes: int = ..., flags: in...
method recvfrom_into (line 84) | def recvfrom_into(self, buffer: _WriteBuffer, nbytes: int = ..., flags...
method recvmsg_into (line 85) | def recvmsg_into(
method recvmsg (line 88) | def recvmsg(self, bufsize: int, ancbufsize: int = ..., flags: int = .....
method recvfrom (line 89) | def recvfrom(self, bufsize: int, flags: int = ...) -> tuple[bytes, _Re...
method recv (line 90) | def recv(self, bufsize: int, flags: int = ...) -> bytes: ...
method __enter__ (line 91) | def __enter__(self) -> socket.socket: ...
method __exit__ (line 92) | def __exit__(
FILE: mypy/typeshed/stdlib/asyncio/unix_events.pyi
class AbstractChildWatcher (line 62) | class AbstractChildWatcher:
method add_child_handler (line 64) | def add_child_handler(
method remove_child_handler (line 68) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 70) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method close (line 72) | def close(self) -> None: ...
method __enter__ (line 74) | def __enter__(self) -> Self: ...
method __exit__ (line 76) | def __exit__(
method is_active (line 80) | def is_active(self) -> bool: ...
method add_child_handler (line 85) | def add_child_handler(
method remove_child_handler (line 89) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 91) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method close (line 93) | def close(self) -> None: ...
method __enter__ (line 95) | def __enter__(self) -> Self: ...
method __exit__ (line 97) | def __exit__(
method is_active (line 101) | def is_active(self) -> bool: ...
class AbstractChildWatcher (line 83) | class AbstractChildWatcher:
method add_child_handler (line 64) | def add_child_handler(
method remove_child_handler (line 68) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 70) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method close (line 72) | def close(self) -> None: ...
method __enter__ (line 74) | def __enter__(self) -> Self: ...
method __exit__ (line 76) | def __exit__(
method is_active (line 80) | def is_active(self) -> bool: ...
method add_child_handler (line 85) | def add_child_handler(
method remove_child_handler (line 89) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 91) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method close (line 93) | def close(self) -> None: ...
method __enter__ (line 95) | def __enter__(self) -> Self: ...
method __exit__ (line 97) | def __exit__(
method is_active (line 101) | def is_active(self) -> bool: ...
class BaseChildWatcher (line 108) | class BaseChildWatcher(AbstractChildWatcher, metaclass=ABCMeta):
method close (line 109) | def close(self) -> None: ...
method is_active (line 110) | def is_active(self) -> bool: ...
method attach_loop (line 111) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method close (line 139) | def close(self) -> None: ...
method is_active (line 140) | def is_active(self) -> bool: ...
method attach_loop (line 141) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
class SafeChildWatcher (line 114) | class SafeChildWatcher(BaseChildWatcher):
method __enter__ (line 115) | def __enter__(self) -> Self: ...
method __exit__ (line 116) | def __exit__(
method add_child_handler (line 119) | def add_child_handler(
method remove_child_handler (line 122) | def remove_child_handler(self, pid: int) -> bool: ...
method __enter__ (line 144) | def __enter__(self) -> Self: ...
method __exit__ (line 145) | def __exit__(
method add_child_handler (line 148) | def add_child_handler(
method remove_child_handler (line 151) | def remove_child_handler(self, pid: int) -> bool: ...
class FastChildWatcher (line 125) | class FastChildWatcher(BaseChildWatcher):
method __enter__ (line 126) | def __enter__(self) -> Self: ...
method __exit__ (line 127) | def __exit__(
method add_child_handler (line 130) | def add_child_handler(
method remove_child_handler (line 133) | def remove_child_handler(self, pid: int) -> bool: ...
method __enter__ (line 154) | def __enter__(self) -> Self: ...
method __exit__ (line 155) | def __exit__(
method add_child_handler (line 158) | def add_child_handler(
method remove_child_handler (line 161) | def remove_child_handler(self, pid: int) -> bool: ...
class BaseChildWatcher (line 138) | class BaseChildWatcher(AbstractChildWatcher, metaclass=ABCMeta):
method close (line 109) | def close(self) -> None: ...
method is_active (line 110) | def is_active(self) -> bool: ...
method attach_loop (line 111) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method close (line 139) | def close(self) -> None: ...
method is_active (line 140) | def is_active(self) -> bool: ...
method attach_loop (line 141) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
class SafeChildWatcher (line 143) | class SafeChildWatcher(BaseChildWatcher):
method __enter__ (line 115) | def __enter__(self) -> Self: ...
method __exit__ (line 116) | def __exit__(
method add_child_handler (line 119) | def add_child_handler(
method remove_child_handler (line 122) | def remove_child_handler(self, pid: int) -> bool: ...
method __enter__ (line 144) | def __enter__(self) -> Self: ...
method __exit__ (line 145) | def __exit__(
method add_child_handler (line 148) | def add_child_handler(
method remove_child_handler (line 151) | def remove_child_handler(self, pid: int) -> bool: ...
class FastChildWatcher (line 153) | class FastChildWatcher(BaseChildWatcher):
method __enter__ (line 126) | def __enter__(self) -> Self: ...
method __exit__ (line 127) | def __exit__(
method add_child_handler (line 130) | def add_child_handler(
method remove_child_handler (line 133) | def remove_child_handler(self, pid: int) -> bool: ...
method __enter__ (line 154) | def __enter__(self) -> Self: ...
method __exit__ (line 155) | def __exit__(
method add_child_handler (line 158) | def add_child_handler(
method remove_child_handler (line 161) | def remove_child_handler(self, pid: int) -> bool: ...
class _UnixSelectorEventLoop (line 163) | class _UnixSelectorEventLoop(BaseSelectorEventLoop):
method create_unix_server (line 165) | async def create_unix_server(
class _UnixDefaultEventLoopPolicy (line 179) | class _UnixDefaultEventLoopPolicy(BaseDefaultEventLoopPolicy):
method get_child_watcher (line 183) | def get_child_watcher(self) -> AbstractChildWatcher: ...
method set_child_watcher (line 185) | def set_child_watcher(self, watcher: AbstractChildWatcher | None) -> N...
method get_child_watcher (line 187) | def get_child_watcher(self) -> AbstractChildWatcher: ...
method set_child_watcher (line 188) | def set_child_watcher(self, watcher: AbstractChildWatcher | None) -> N...
class MultiLoopChildWatcher (line 200) | class MultiLoopChildWatcher(AbstractChildWatcher):
method is_active (line 201) | def is_active(self) -> bool: ...
method close (line 202) | def close(self) -> None: ...
method __enter__ (line 203) | def __enter__(self) -> Self: ...
method __exit__ (line 204) | def __exit__(
method add_child_handler (line 207) | def add_child_handler(
method remove_child_handler (line 210) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 211) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method is_active (line 215) | def is_active(self) -> bool: ...
method close (line 216) | def close(self) -> None: ...
method __enter__ (line 217) | def __enter__(self) -> Self: ...
method __exit__ (line 218) | def __exit__(
method add_child_handler (line 221) | def add_child_handler(
method remove_child_handler (line 224) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 225) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
class MultiLoopChildWatcher (line 214) | class MultiLoopChildWatcher(AbstractChildWatcher):
method is_active (line 201) | def is_active(self) -> bool: ...
method close (line 202) | def close(self) -> None: ...
method __enter__ (line 203) | def __enter__(self) -> Self: ...
method __exit__ (line 204) | def __exit__(
method add_child_handler (line 207) | def add_child_handler(
method remove_child_handler (line 210) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 211) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method is_active (line 215) | def is_active(self) -> bool: ...
method close (line 216) | def close(self) -> None: ...
method __enter__ (line 217) | def __enter__(self) -> Self: ...
method __exit__ (line 218) | def __exit__(
method add_child_handler (line 221) | def add_child_handler(
method remove_child_handler (line 224) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 225) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
class ThreadedChildWatcher (line 228) | class ThreadedChildWatcher(AbstractChildWatcher):
method is_active (line 229) | def is_active(self) -> Literal[True]: ...
method close (line 230) | def close(self) -> None: ...
method __enter__ (line 231) | def __enter__(self) -> Self: ...
method __exit__ (line 232) | def __exit__(
method __del__ (line 235) | def __del__(self) -> None: ...
method add_child_handler (line 236) | def add_child_handler(
method remove_child_handler (line 239) | def remove_child_handler(self, pid: int) -> bool: ...
method attach_loop (line 240) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
class PidfdChildWatcher (line 243) | class PidfdChildWatcher(AbstractChildWatcher):
method __enter__ (line 244) | def __enter__(self) -> Self: ...
method __exit__ (line 245) | def __exit__(
method is_active (line 248) | def is_active(self) -> bool: ...
method close (line 249) | def close(self) -> None: ...
method attach_loop (line 250) | def attach_loop(self, loop: AbstractEventLoop | None) -> None: ...
method add_child_handler (line 251) | def add_child_handler(
method remove_child_handler (line 254) | def remove_child_handler(self, pid: int) -> bool: ...
FILE: mypy/typeshed/stdlib/asyncio/windows_events.pyi
class PipeServer (line 39) | class PipeServer:
method __init__ (line 40) | def __init__(self, address: str) -> None: ...
method __del__ (line 41) | def __del__(self) -> None: ...
method closed (line 42) | def closed(self) -> bool: ...
method close (line 43) | def close(self) -> None: ...
class _WindowsSelectorEventLoop (line 45) | class _WindowsSelectorEventLoop(selector_events.BaseSelectorEventLoop): ...
class ProactorEventLoop (line 47) | class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
method __init__ (line 48) | def __init__(self, proactor: IocpProactor | None = None) -> None: ...
method create_pipe_connection (line 49) | async def create_pipe_connection(
method start_serving_pipe (line 52) | async def start_serving_pipe(
class IocpProactor (line 56) | class IocpProactor:
method __init__ (line 57) | def __init__(self, concurrency: int = 0xFFFFFFFF) -> None: ...
method __del__ (line 58) | def __del__(self) -> None: ...
method set_loop (line 59) | def set_loop(self, loop: events.AbstractEventLoop) -> None: ...
method select (line 60) | def select(self, timeout: int | None = None) -> list[futures.Future[An...
method recv (line 61) | def recv(self, conn: socket.socket, nbytes: int, flags: int = 0) -> fu...
method recv_into (line 62) | def recv_into(self, conn: socket.socket, buf: WriteableBuffer, flags: ...
method recvfrom (line 63) | def recvfrom(
method sendto (line 66) | def sendto(
method send (line 69) | def send(self, conn: socket.socket, buf: WriteableBuffer, flags: int =...
method accept (line 70) | def accept(self, listener: socket.socket) -> futures.Future[Any]: ...
method connect (line 71) | def connect(
method sendfile (line 76) | def sendfile(self, sock: socket.socket, file: IO[bytes], offset: int, ...
method accept_pipe (line 77) | def accept_pipe(self, pipe: socket.socket) -> futures.Future[Any]: ...
method connect_pipe (line 78) | async def connect_pipe(self, address: str) -> windows_utils.PipeHandle...
method wait_for_handle (line 79) | def wait_for_handle(self, handle: windows_utils.PipeHandle, timeout: i...
method close (line 80) | def close(self) -> None: ...
method recvfrom_into (line 82) | def recvfrom_into(
class WindowsSelectorEventLoopPolicy (line 88) | class WindowsSelectorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
method get_child_watcher (line 91) | def get_child_watcher(self) -> NoReturn: ...
method set_child_watcher (line 92) | def set_child_watcher(self, watcher: Any) -> NoReturn: ...
class WindowsProactorEventLoopPolicy (line 94) | class WindowsProactorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
method get_child_watcher (line 96) | def get_child_watcher(self) -> NoReturn: ...
method set_child_watcher (line 97) | def set_child_watcher(self, watcher: Any) -> NoReturn: ...
FILE: mypy/typeshed/stdlib/asyncio/windows_utils.pyi
function pipe (line 14) | def pipe(*, duplex: bool = False, overlapped: tuple[bool, bool] = (True,...
class PipeHandle (line 16) | class PipeHandle:
method __init__ (line 17) | def __init__(self, handle: int) -> None: ...
method __del__ (line 18) | def __del__(self) -> None: ...
method __enter__ (line 19) | def __enter__(self) -> Self: ...
method __exit__ (line 20) | def __exit__(self, t: type[BaseException] | None, v: BaseException | N...
method handle (line 22) | def handle(self) -> int: ...
method fileno (line 23) | def fileno(self) -> int: ...
method close (line 24) | def close(self, *, CloseHandle: Callable[[int], object] = ...) -> None...
class Popen (line 26) | class Popen(subprocess.Popen[AnyStr]):
method __new__ (line 34) | def __new__(
method __init__ (line 42) | def __init__(
FILE: mypy/typeshed/stdlib/asyncore.pyi
class ExitNow (line 13) | class ExitNow(Exception): ...
function read (line 15) | def read(obj: Any) -> None: ...
function write (line 16) | def write(obj: Any) -> None: ...
function readwrite (line 17) | def readwrite(obj: Any, flags: int) -> None: ...
function poll (line 18) | def poll(timeout: float = 0.0, map: _MapType | None = None) -> None: ...
function poll2 (line 19) | def poll2(timeout: float = 0.0, map: _MapType | None = None) -> None: ...
function loop (line 23) | def loop(timeout: float = 30.0, use_poll: bool = False, map: _MapType | ...
class dispatcher (line 27) | class dispatcher:
method __init__ (line 35) | def __init__(self, sock: _Socket | None = None, map: _MapType | None =...
method add_channel (line 36) | def add_channel(self, map: _MapType | None = None) -> None: ...
method del_channel (line 37) | def del_channel(self, map: _MapType | None = None) -> None: ...
method create_socket (line 38) | def create_socket(self, family: int = ..., type: int = ...) -> None: ...
method set_socket (line 39) | def set_socket(self, sock: _Socket, map: _MapType | None = None) -> No...
method set_reuse_addr (line 40) | def set_reuse_addr(self) -> None: ...
method readable (line 41) | def readable(self) -> bool: ...
method writable (line 42) | def writable(self) -> bool: ...
method listen (line 43) | def listen(self, num: int) -> None: ...
method bind (line 44) | def bind(self, addr: tuple[Any, ...] | str) -> None: ...
method connect (line 45) | def connect(self, address: tuple[Any, ...] | str) -> None: ...
method accept (line 46) | def accept(self) -> tuple[_Socket, Any] | None: ...
method send (line 47) | def send(self, data: ReadableBuffer) -> int: ...
method recv (line 48) | def recv(self, buffer_size: int) -> bytes: ...
method close (line 49) | def close(self) -> None: ...
method log (line 50) | def log(self, message: Any) -> None: ...
method log_info (line 51) | def log_info(self, message: Any, type: str = "info") -> None: ...
method handle_read_event (line 52) | def handle_read_event(self) -> None: ...
method handle_connect_event (line 53) | def handle_connect_event(self) -> None: ...
method handle_write_event (line 54) | def handle_write_event(self) -> None: ...
method handle_expt_event (line 55) | def handle_expt_event(self) -> None: ...
method handle_error (line 56) | def handle_error(self) -> None: ...
method handle_expt (line 57) | def handle_expt(self) -> None: ...
method handle_read (line 58) | def handle_read(self) -> None: ...
method handle_write (line 59) | def handle_write(self) -> None: ...
method handle_connect (line 60) | def handle_connect(self) -> None: ...
method handle_accept (line 61) | def handle_accept(self) -> None: ...
method handle_close (line 62) | def handle_close(self) -> None: ...
class dispatcher_with_send (line 64) | class dispatcher_with_send(dispatcher):
method initiate_send (line 65) | def initiate_send(self) -> None: ...
function compact_traceback (line 69) | def compact_traceback() -> tuple[tuple[str, str, str], type, type, str]:...
function close_all (line 70) | def close_all(map: _MapType | None = None, ignore_all: bool = False) -> ...
class file_wrapper (line 73) | class file_wrapper:
method __init__ (line 75) | def __init__(self, fd: int) -> None: ...
method recv (line 76) | def recv(self, bufsize: int, flags: int = ...) -> bytes: ...
method send (line 77) | def send(self, data: bytes, flags: int = ...) -> int: ...
method getsockopt (line 79) | def getsockopt(self, level: int, optname: int, buflen: None = None) ->...
method getsockopt (line 81) | def getsockopt(self, level: int, optname: int, buflen: int) -> bytes: ...
method read (line 82) | def read(self, bufsize: int, flags: int = ...) -> bytes: ...
method write (line 83) | def write(self, data: bytes, flags: int = ...) -> int: ...
method close (line 84) | def close(self) -> None: ...
method fileno (line 85) | def fileno(self) -> int: ...
method __del__ (line 86) | def __del__(self) -> None: ...
class file_dispatcher (line 88) | class file_dispatcher(dispatcher):
method __init__ (line 89) | def __init__(self, fd: FileDescriptorLike, map: _MapType | None = None...
method set_file (line 90) | def set_file(self, fd: int) -> None: ...
FILE: mypy/typeshed/stdlib/atexit.pyi
function _clear (line 8) | def _clear() -> None: ...
function _ncallbacks (line 9) | def _ncallbacks() -> int: ...
function _run_exitfuncs (line 10) | def _run_exitfuncs() -> None: ...
function register (line 11) | def register(func: Callable[_P, _T], /, *args: _P.args, **kwargs: _P.kwa...
function unregister (line 12) | def unregister(func: Callable[..., object], /) -> None: ...
FILE: mypy/typeshed/stdlib/audioop.pyi
class error (line 6) | class error(Exception): ...
function add (line 8) | def add(fragment1: Buffer, fragment2: Buffer, width: int, /) -> bytes: ...
function adpcm2lin (line 9) | def adpcm2lin(fragment: Buffer, width: int, state: _AdpcmState | None, /...
function alaw2lin (line 10) | def alaw2lin(fragment: Buffer, width: int, /) -> bytes: ...
function avg (line 11) | def avg(fragment: Buffer, width: int, /) -> int: ...
function avgpp (line 12) | def avgpp(fragment: Buffer, width: int, /) -> int: ...
function bias (line 13) | def bias(fragment: Buffer, width: int, bias: int, /) -> bytes: ...
function byteswap (line 14) | def byteswap(fragment: Buffer, width: int, /) -> bytes: ...
function cross (line 15) | def cross(fragment: Buffer, width: int, /) -> int: ...
function findfactor (line 16) | def findfactor(fragment: Buffer, reference: Buffer, /) -> float: ...
function findfit (line 17) | def findfit(fragment: Buffer, reference: Buffer, /) -> tuple[int, float]...
function findmax (line 18) | def findmax(fragment: Buffer, length: int, /) -> int: ...
function getsample (line 19) | def getsample(fragment: Buffer, width: int, index: int, /) -> int: ...
function lin2adpcm (line 20) | def lin2adpcm(fragment: Buffer, width: int, state: _AdpcmState | None, /...
function lin2alaw (line 21) | def lin2alaw(fragment: Buffer, width: int, /) -> bytes: ...
function lin2lin (line 22) | def lin2lin(fragment: Buffer, width: int, newwidth: int, /) -> bytes: ...
function lin2ulaw (line 23) | def lin2ulaw(fragment: Buffer, width: int, /) -> bytes: ...
function max (line 24) | def max(fragment: Buffer, width: int, /) -> int: ...
function maxpp (line 25) | def maxpp(fragment: Buffer, width: int, /) -> int: ...
function minmax (line 26) | def minmax(fragment: Buffer, width: int, /) -> tuple[int, int]: ...
function mul (line 27) | def mul(fragment: Buffer, width: int, factor: float, /) -> bytes: ...
function ratecv (line 28) | def ratecv(
function reverse (line 39) | def reverse(fragment: Buffer, width: int, /) -> bytes: ...
function rms (line 40) | def rms(fragment: Buffer, width: int, /) -> int: ...
function tomono (line 41) | def tomono(fragment: Buffer, width: int, lfactor: float, rfactor: float,...
function tostereo (line 42) | def tostereo(fragment: Buffer, width: int, lfactor: float, rfactor: floa...
function ulaw2lin (line 43) | def ulaw2lin(fragment: Buffer, width: int, /) -> bytes: ...
FILE: mypy/typeshed/stdlib/base64.pyi
function b64encode (line 31) | def b64encode(s: ReadableBuffer, altchars: ReadableBuffer | None = None)...
function b64decode (line 32) | def b64decode(s: str | ReadableBuffer, altchars: str | ReadableBuffer | ...
function standard_b64encode (line 33) | def standard_b64encode(s: ReadableBuffer) -> bytes: ...
function standard_b64decode (line 34) | def standard_b64decode(s: str | ReadableBuffer) -> bytes: ...
function urlsafe_b64encode (line 35) | def urlsafe_b64encode(s: ReadableBuffer) -> bytes: ...
function urlsafe_b64decode (line 36) | def urlsafe_b64decode(s: str | ReadableBuffer) -> bytes: ...
function b32encode (line 37) | def b32encode(s: ReadableBuffer) -> bytes: ...
function b32decode (line 38) | def b32decode(s: str | ReadableBuffer, casefold: bool = False, map01: st...
function b16encode (line 39) | def b16encode(s: ReadableBuffer) -> bytes: ...
function b16decode (line 40) | def b16decode(s: str | ReadableBuffer, casefold: bool = False) -> bytes:...
function b32hexencode (line 43) | def b32hexencode(s: ReadableBuffer) -> bytes: ...
function b32hexdecode (line 44) | def b32hexdecode(s: str | ReadableBuffer, casefold: bool = False) -> byt...
function a85encode (line 46) | def a85encode(
function a85decode (line 49) | def a85decode(
function b85encode (line 52) | def b85encode(b: ReadableBuffer, pad: bool = False) -> bytes: ...
function b85decode (line 53) | def b85decode(b: str | ReadableBuffer) -> bytes: ...
function decode (line 54) | def decode(input: IO[bytes], output: IO[bytes]) -> None: ...
function encode (line 55) | def encode(input: IO[bytes], output: IO[bytes]) -> None: ...
function encodebytes (line 56) | def encodebytes(s: ReadableBuffer) -> bytes: ...
function decodebytes (line 57) | def decodebytes(s: ReadableBuffer) -> bytes: ...
function encodestring (line 60) | def encodestring(s: ReadableBuffer) -> bytes: ...
function decodestring (line 61) | def decodestring(s: ReadableBuffer) -> bytes: ...
function z85encode (line 64) | def z85encode(s: ReadableBuffer) -> bytes: ...
function z85decode (line 65) | def z85decode(s: str | ReadableBuffer) -> bytes: ...
FILE: mypy/typeshed/stdlib/bdb.pyi
class BdbQuit (line 18) | class BdbQuit(Exception): ...
class Bdb (line 20) | class Bdb:
method __init__ (line 30) | def __init__(self, skip: Iterable[str] | None = None) -> None: ...
method canonic (line 31) | def canonic(self, filename: str) -> str: ...
method reset (line 32) | def reset(self) -> None: ...
method trace_dispatch (line 33) | def trace_dispatch(self, frame: FrameType, event: str, arg: Any) -> Tr...
method dispatch_line (line 34) | def dispatch_line(self, frame: FrameType) -> TraceFunction: ...
method dispatch_call (line 35) | def dispatch_call(self, frame: FrameType, arg: None) -> TraceFunction:...
method dispatch_return (line 36) | def dispatch_return(self, frame: FrameType, arg: Any) -> TraceFunction...
method dispatch_exception (line 37) | def dispatch_exception(self, frame: FrameType, arg: ExcInfo) -> TraceF...
method dispatch_opcode (line 39) | def dispatch_opcode(self, frame: FrameType, arg: Unused) -> Callable[[...
method is_skipped_module (line 41) | def is_skipped_module(self, module_name: str) -> bool: ...
method stop_here (line 42) | def stop_here(self, frame: FrameType) -> bool: ...
method break_here (line 43) | def break_here(self, frame: FrameType) -> bool: ...
method do_clear (line 44) | def do_clear(self, arg: Any) -> bool | None: ...
method break_anywhere (line 45) | def break_anywhere(self, frame: FrameType) -> bool: ...
method user_call (line 46) | def user_call(self, frame: FrameType, argument_list: None) -> None: ...
method user_line (line 47) | def user_line(self, frame: FrameType) -> None: ...
method user_return (line 48) | def user_return(self, frame: FrameType, return_value: Any) -> None: ...
method user_exception (line 49) | def user_exception(self, frame: FrameType, exc_info: ExcInfo) -> None:...
method set_until (line 50) | def set_until(self, frame: FrameType, lineno: int | None = None) -> No...
method user_opcode (line 52) | def user_opcode(self, frame: FrameType) -> None: ... # undocumented
method set_step (line 54) | def set_step(self) -> None: ...
method set_stepinstr (line 56) | def set_stepinstr(self) -> None: ... # undocumented
method set_next (line 58) | def set_next(self, frame: FrameType) -> None: ...
method set_return (line 59) | def set_return(self, frame: FrameType) -> None: ...
method set_trace (line 60) | def set_trace(self, frame: FrameType | None = None) -> None: ...
method set_continue (line 61) | def set_continue(self) -> None: ...
method set_quit (line 62) | def set_quit(self) -> None: ...
method set_break (line 63) | def set_break(
method clear_break (line 66) | def clear_break(self, filename: str, lineno: int) -> str | None: ...
method clear_bpbynumber (line 67) | def clear_bpbynumber(self, arg: SupportsInt) -> str | None: ...
method clear_all_file_breaks (line 68) | def clear_all_file_breaks(self, filename: str) -> str | None: ...
method clear_all_breaks (line 69) | def clear_all_breaks(self) -> str | None: ...
method get_bpbynumber (line 70) | def get_bpbynumber(self, arg: SupportsInt) -> Breakpoint: ...
method get_break (line 71) | def get_break(self, filename: str, lineno: int) -> bool: ...
method get_breaks (line 72) | def get_breaks(self, filename: str, lineno: int) -> list[Breakpoint]: ...
method get_file_breaks (line 73) | def get_file_breaks(self, filename: str) -> list[Breakpoint]: ...
method get_all_breaks (line 74) | def get_all_breaks(self) -> list[Breakpoint]: ...
method get_stack (line 75) | def get_stack(self, f: FrameType | None, t: TracebackType | None) -> t...
method format_stack_entry (line 76) | def format_stack_entry(self, frame_lineno: int, lprefix: str = ": ") -...
method run (line 77) | def run(
method runeval (line 80) | def runeval(self, expr: str, globals: dict[str, Any] | None = None, lo...
method runctx (line 81) | def runctx(self, cmd: str | CodeType, globals: dict[str, Any] | None, ...
method runcall (line 82) | def runcall(self, func: Callable[_P, _T], /, *args: _P.args, **kwds: _...
class Breakpoint (line 84) | class Breakpoint:
method __init__ (line 99) | def __init__(
method clearBreakpoints (line 104) | def clearBreakpoints() -> None: ...
method deleteMe (line 106) | def deleteMe(self) -> None: ...
method enable (line 107) | def enable(self) -> None: ...
method disable (line 108) | def disable(self) -> None: ...
method bpprint (line 109) | def bpprint(self, out: IO[str] | None = None) -> None: ...
method bpformat (line 110) | def bpformat(self) -> str: ...
function checkfuncname (line 112) | def checkfuncname(b: Breakpoint, frame: FrameType) -> bool: ...
function effective (line 113) | def effective(file: str, line: int, frame: FrameType) -> tuple[Breakpoin...
function set_trace (line 114) | def set_trace() -> None: ...
FILE: mypy/typeshed/stdlib/binascii.pyi
function a2b_uu (line 9) | def a2b_uu(data: _AsciiBuffer, /) -> bytes: ...
function b2a_uu (line 10) | def b2a_uu(data: ReadableBuffer, /, *, backtick: bool = False) -> bytes:...
function a2b_base64 (line 13) | def a2b_base64(data: _AsciiBuffer, /, *, strict_mode: bool = False) -> b...
function a2b_base64 (line 16) | def a2b_base64(data: _AsciiBuffer, /) -> bytes: ...
function b2a_base64 (line 18) | def b2a_base64(data: ReadableBuffer, /, *, newline: bool = True) -> byte...
function a2b_qp (line 19) | def a2b_qp(data: _AsciiBuffer, header: bool = False) -> bytes: ...
function b2a_qp (line 20) | def b2a_qp(data: ReadableBuffer, quotetabs: bool = False, istext: bool =...
function a2b_hqx (line 23) | def a2b_hqx(data: _AsciiBuffer, /) -> bytes: ...
function rledecode_hqx (line 24) | def rledecode_hqx(data: ReadableBuffer, /) -> bytes: ...
function rlecode_hqx (line 25) | def rlecode_hqx(data: ReadableBuffer, /) -> bytes: ...
function b2a_hqx (line 26) | def b2a_hqx(data: ReadableBuffer, /) -> bytes: ...
function crc_hqx (line 28) | def crc_hqx(data: ReadableBuffer, crc: int, /) -> int: ...
function crc32 (line 29) | def crc32(data: ReadableBuffer, crc: int = 0, /) -> int: ...
function b2a_hex (line 30) | def b2a_hex(data: ReadableBuffer, sep: str | bytes = ..., bytes_per_sep:...
function hexlify (line 31) | def hexlify(data: ReadableBuffer, sep: str | bytes = ..., bytes_per_sep:...
function a2b_hex (line 32) | def a2b_hex(hexstr: _AsciiBuffer, /) -> bytes: ...
function unhexlify (line 33) | def unhexlify(hexstr: _AsciiBuffer, /) -> bytes: ...
class Error (line 35) | class Error(ValueError): ...
class Incomplete (line 36) | class Incomplete(Exception): ...
FILE: mypy/typeshed/stdlib/binhex.pyi
class Error (line 7) | class Error(Exception): ...
class FInfo (line 13) | class FInfo:
function getfileinfo (line 21) | def getfileinfo(name: str) -> _FileInfoTuple: ...
class openrsrc (line 23) | class openrsrc:
method __init__ (line 24) | def __init__(self, *args: Any) -> None: ...
method read (line 25) | def read(self, *args: Any) -> bytes: ...
method write (line 26) | def write(self, *args: Any) -> None: ...
method close (line 27) | def close(self) -> None: ...
class BinHex (line 29) | class BinHex:
method __init__ (line 30) | def __init__(self, name_finfo_dlen_rlen: _FileInfoTuple, ofp: _FileHan...
method write (line 31) | def write(self, data: SizedBuffer) -> None: ...
method close_data (line 32) | def close_data(self) -> None: ...
method write_rsrc (line 33) | def write_rsrc(self, data: SizedBuffer) -> None: ...
method close (line 34) | def close(self) -> None: ...
function binhex (line 36) | def binhex(inp: str, out: str) -> None: ...
class HexBin (line 38) | class HexBin:
method __init__ (line 39) | def __init__(self, ifp: _FileHandleUnion) -> None: ...
method read (line 40) | def read(self, *n: int) -> bytes: ...
method close_data (line 41) | def close_data(self) -> None: ...
method read_rsrc (line 42) | def read_rsrc(self, *n: int) -> bytes: ...
method close (line 43) | def close(self) -> None: ...
function hexbin (line 45) | def hexbin(inp: str, out: str) -> None: ...
FILE: mypy/typeshed/stdlib/builtins.pyi
class object (line 102) | class object:
method __class__ (line 108) | def __class__(self) -> type[Self]: ...
method __class__ (line 110) | def __class__(self, type: type[Self], /) -> None: ...
method __init__ (line 111) | def __init__(self) -> None: ...
method __new__ (line 112) | def __new__(cls) -> Self: ...
method __setattr__ (line 115) | def __setattr__(self, name: str, value: Any, /) -> None: ...
method __delattr__ (line 116) | def __delattr__(self, name: str, /) -> None: ...
method __eq__ (line 117) | def __eq__(self, value: object, /) -> bool: ...
method __ne__ (line 118) | def __ne__(self, value: object, /) -> bool: ...
method __str__ (line 119) | def __str__(self) -> str: ... # noqa: Y029
method __repr__ (line 120) | def __repr__(self) -> str: ... # noqa: Y029
method __hash__ (line 121) | def __hash__(self) -> int: ...
method __format__ (line 122) | def __format__(self, format_spec: str, /) -> str: ...
method __getattribute__ (line 123) | def __getattribute__(self, name: str, /) -> object: ...
method __sizeof__ (line 124) | def __sizeof__(self) -> int: ...
method __reduce__ (line 127) | def __reduce__(self) -> str | tuple[Any, ...]: ...
method __reduce_ex__ (line 128) | def __reduce_ex__(self, protocol: SupportsIndex, /) -> str | tuple[Any...
method __getstate__ (line 130) | def __getstate__(self) -> object: ...
method __dir__ (line 132) | def __dir__(self) -> Iterable[str]: ...
method __init_subclass__ (line 133) | def __init_subclass__(cls) -> None: ...
method __subclasshook__ (line 135) | def __subclasshook__(cls, subclass: type, /) -> bool: ...
class staticmethod (line 137) | class staticmethod(Generic[_P, _R_co]):
method __func__ (line 139) | def __func__(self) -> Callable[_P, _R_co]: ...
method __isabstractmethod__ (line 141) | def __isabstractmethod__(self) -> bool: ...
method __init__ (line 142) | def __init__(self, f: Callable[_P, _R_co], /) -> None: ...
method __get__ (line 145) | def __get__(self, instance: None, owner: type, /) -> _NamedCallable[_P...
method __get__ (line 147) | def __get__(self, instance: _T, owner: type[_T] | None = None, /) -> _...
method __wrapped__ (line 152) | def __wrapped__(self) -> Callable[_P, _R_co]: ...
method __call__ (line 153) | def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _R_co: ...
class classmethod (line 155) | class classmethod(Generic[_T, _P, _R_co]):
method __func__ (line 157) | def __func__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
method __isabstractmethod__ (line 159) | def __isabstractmethod__(self) -> bool: ...
method __init__ (line 160) | def __init__(self, f: Callable[Concatenate[type[_T], _P], _R_co], /) -...
method __get__ (line 162) | def __get__(self, instance: _T, owner: type[_T] | None = None, /) -> C...
method __get__ (line 164) | def __get__(self, instance: None, owner: type[_T], /) -> Callable[_P, ...
method __wrapped__ (line 169) | def __wrapped__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
class type (line 171) | class type:
method __base__ (line 174) | def __base__(self) -> type | None: ...
method __basicsize__ (line 177) | def __basicsize__(self) -> int: ...
method __dict__ (line 179) | def __dict__(self) -> types.MappingProxyType[str, object]: ... # type...
method __dictoffset__ (line 181) | def __dictoffset__(self) -> int: ...
method __flags__ (line 183) | def __flags__(self) -> int: ...
method __itemsize__ (line 185) | def __itemsize__(self) -> int: ...
method __mro__ (line 188) | def __mro__(self) -> tuple[type, ...]: ...
method __text_signature__ (line 192) | def __text_signature__(self) -> str | None: ...
method __weakrefoffset__ (line 194) | def __weakrefoffset__(self) -> int: ...
method __init__ (line 196) | def __init__(self, o: object, /) -> None: ...
method __init__ (line 199) | def __init__(self, name: str, bases: tuple[type, ...], dict: dict[str,...
method __new__ (line 201) | def __new__(cls, o: object, /) -> type: ...
method __new__ (line 203) | def __new__(
method __call__ (line 206) | def __call__(self, *args: Any, **kwds: Any) -> Any: ...
method __subclasses__ (line 207) | def __subclasses__(self: _typeshed.Self) -> list[_typeshed.Self]: ...
method mro (line 210) | def mro(self) -> list[type]: ...
method __instancecheck__ (line 211) | def __instancecheck__(self, instance: object, /) -> bool: ...
method __subclasscheck__ (line 212) | def __subclasscheck__(self, subclass: type, /) -> bool: ...
method __prepare__ (line 214) | def __prepare__(metacls, name: str, bases: tuple[type, ...], /, **kwds...
method __or__ (line 216) | def __or__(self, value: Any, /) -> types.UnionType: ...
method __ror__ (line 217) | def __ror__(self, value: Any, /) -> types.UnionType: ...
class super (line 221) | class super:
method __init__ (line 223) | def __init__(self, t: Any, obj: Any, /) -> None: ...
method __init__ (line 225) | def __init__(self, t: Any, /) -> None: ...
method __init__ (line 227) | def __init__(self) -> None: ...
class int (line 233) | class int:
method __new__ (line 235) | def __new__(cls, x: ConvertibleToInt = ..., /) -> Self: ...
method __new__ (line 237) | def __new__(cls, x: str | bytes | bytearray, /, base: SupportsIndex) -...
method as_integer_ratio (line 238) | def as_integer_ratio(self) -> tuple[int, Literal[1]]: ...
method real (line 240) | def real(self) -> int: ...
method imag (line 242) | def imag(self) -> Literal[0]: ...
method numerator (line 244) | def numerator(self) -> int: ...
method denominator (line 246) | def denominator(self) -> Literal[1]: ...
method conjugate (line 247) | def conjugate(self) -> int: ...
method bit_length (line 248) | def bit_length(self) -> int: ...
method bit_count (line 250) | def bit_count(self) -> int: ...
method to_bytes (line 253) | def to_bytes(
method from_bytes (line 257) | def from_bytes(
method to_bytes (line 265) | def to_bytes(self, length: SupportsIndex, byteorder: Literal["little",...
method from_bytes (line 267) | def from_bytes(
method is_integer (line 276) | def is_integer(self) -> Literal[True]: ...
method __add__ (line 278) | def __add__(self, value: int, /) -> int: ...
method __sub__ (line 279) | def __sub__(self, value: int, /) -> int: ...
method __mul__ (line 280) | def __mul__(self, value: int, /) -> int: ...
method __floordiv__ (line 281) | def __floordiv__(self, value: int, /) -> int: ...
method __truediv__ (line 282) | def __truediv__(self, value: int, /) -> float: ...
method __mod__ (line 283) | def __mod__(self, value: int, /) -> int: ...
method __divmod__ (line 284) | def __divmod__(self, value: int, /) -> tuple[int, int]: ...
method __radd__ (line 285) | def __radd__(self, value: int, /) -> int: ...
method __rsub__ (line 286) | def __rsub__(self, value: int, /) -> int: ...
method __rmul__ (line 287) | def __rmul__(self, value: int, /) -> int: ...
method __rfloordiv__ (line 288) | def __rfloordiv__(self, value: int, /) -> int: ...
method __rtruediv__ (line 289) | def __rtruediv__(self, value: int, /) -> float: ...
method __rmod__ (line 290) | def __rmod__(self, value: int, /) -> int: ...
method __rdivmod__ (line 291) | def __rdivmod__(self, value: int, /) -> tuple[int, int]: ...
method __pow__ (line 293) | def __pow__(self, x: Literal[0], /) -> Literal[1]: ...
method __pow__ (line 295) | def __pow__(self, value: Literal[0], mod: None, /) -> Literal[1]: ...
method __pow__ (line 297) | def __pow__(self, value: _PositiveInteger, mod: None = None, /) -> int...
method __pow__ (line 299) | def __pow__(self, value: _NegativeInteger, mod: None = None, /) -> flo...
method __pow__ (line 303) | def __pow__(self, value: int, mod: None = None, /) -> Any: ...
method __pow__ (line 305) | def __pow__(self, value: int, mod: int, /) -> int: ...
method __rpow__ (line 306) | def __rpow__(self, value: int, mod: int | None = None, /) -> Any: ...
method __and__ (line 307) | def __and__(self, value: int, /) -> int: ...
method __or__ (line 308) | def __or__(self, value: int, /) -> int: ...
method __xor__ (line 309) | def __xor__(self, value: int, /) -> int: ...
method __lshift__ (line 310) | def __lshift__(self, value: int, /) -> int: ...
method __rshift__ (line 311) | def __rshift__(self, value: int, /) -> int: ...
method __rand__ (line 312) | def __rand__(self, value: int, /) -> int: ...
method __ror__ (line 313) | def __ror__(self, value: int, /) -> int: ...
method __rxor__ (line 314) | def __rxor__(self, value: int, /) -> int: ...
method __rlshift__ (line 315) | def __rlshift__(self, value: int, /) -> int: ...
method __rrshift__ (line 316) | def __rrshift__(self, value: int, /) -> int: ...
method __neg__ (line 317) | def __neg__(self) -> int: ...
method __pos__ (line 318) | def __pos__(self) -> int: ...
method __invert__ (line 319) | def __invert__(self) -> int: ...
method __trunc__ (line 320) | def __trunc__(self) -> int: ...
method __ceil__ (line 321) | def __ceil__(self) -> int: ...
method __floor__ (line 322) | def __floor__(self) -> int: ...
method __round__ (line 323) | def __round__(self, ndigits: SupportsIndex = ..., /) -> int: ...
method __getnewargs__ (line 324) | def __getnewargs__(self) -> tuple[int]: ...
method __eq__ (line 325) | def __eq__(self, value: object, /) -> bool: ...
method __ne__ (line 326) | def __ne__(self, value: object, /) -> bool: ...
method __lt__ (line 327) | def __lt__(self, value: int, /) -> bool: ...
method __le__ (line 328) | def __le__(self, value: int, /) -> bool: ...
method __gt__ (line 329) | def __gt__(self, value: int, /) -> bool: ...
method __ge__ (line 330) | def __ge__(self, value: int, /) -> bool: ...
method __float__ (line 331) | def __float__(self) -> float: ...
method __int__ (line 332) | def __int__(self) -> int: ...
method __abs__ (line 333) | def __abs__(self) -> int: ...
method __hash__ (line 334) | def __hash__(self) -> int: ...
method __bool__ (line 335) | def __bool__(self) -> bool: ...
method __index__ (line 336) | def __index__(self) -> int: ...
class float (line 338) | class float:
method __new__ (line 339) | def __new__(cls, x: ConvertibleToFloat = ..., /) -> Self: ...
method as_integer_ratio (line 340) | def as_integer_ratio(self) -> tuple[int, int]: ...
method hex (line 341) | def hex(self) -> str: ...
method is_integer (line 342) | def is_integer(self) -> bool: ...
method fromhex (line 344) | def fromhex(cls, string: str, /) -> Self: ...
method real (line 346) | def real(self) -> float: ...
method imag (line 348) | def imag(self) -> float: ...
method conjugate (line 349) | def conjugate(self) -> float: ...
method __add__ (line 350) | def __add__(self, value: float, /) -> float: ...
method __sub__ (line 351) | def __sub__(self, value: float, /) -> float: ...
method __mul__ (line 352) | def __mul__(self, value: float, /) -> float: ...
method __floordiv__ (line 353) | def __floordiv__(self, value: float, /) -> float: ...
method __truediv__ (line 354) | def __truediv__(self, value: float, /) -> float: ...
method __mod__ (line 355) | def __mod__(self, value: float, /) -> float: ...
method __divmod__ (line 356) | def __divmod__(self, value: float, /) -> tuple[float, float]: ...
method __pow__ (line 358) | def __pow__(self, value: int, mod: None = None, /) -> float: ...
method __pow__ (line 362) | def __pow__(self, value: float, mod: None = None, /) -> Any: ...
method __radd__ (line 363) | def __radd__(self, value: float, /) -> float: ...
method __rsub__ (line 364) | def __rsub__(self, value: float, /) -> float: ...
method __rmul__ (line 365) | def __rmul__(self, value: float, /) -> float: ...
method __rfloordiv__ (line 366) | def __rfloordiv__(self, value: float, /) -> float: ...
method __rtruediv__ (line 367) | def __rtruediv__(self, value: float, /) -> float: ...
method __rmod__ (line 368) | def __rmod__(self, value: float, /) -> float: ...
method __rdivmod__ (line 369) | def __rdivmod__(self, value: float, /) -> tuple[float, float]: ...
method __rpow__ (line 371) | def __rpow__(self, value: _PositiveInteger, mod: None = None, /) -> fl...
method __rpow__ (line 373) | def __rpow__(self, value: _NegativeInteger, mod: None = None, /) -> co...
method __rpow__ (line 376) | def __rpow__(self, value: float, mod: None = None, /) -> Any: ...
method __getnewargs__ (line 377) | def __getnewargs__(self) -> tuple[float]: ...
method __trunc__ (line 378) | def __trunc__(self) -> int: ...
method __ceil__ (line 380) | def __ceil__(self) -> int: ...
method __floor__ (line 381) | def __floor__(self) -> int: ...
method __round__ (line 384) | def __round__(self, ndigits: None = None, /) -> int: ...
method __round__ (line 386) | def __round__(self, ndigits: SupportsIndex, /) -> float: ...
method __eq__ (line 387) | def __eq__(self, value: object, /) -> bool: ...
method __ne__ (line 388) | def __ne__(self, value: object, /) -> bool: ...
method __lt__ (line 389) | def __lt__(self, value: float, /) -> bool: ...
method __le__ (line 390) | def __le__(self, value: float, /) -> bool: ...
method __gt__ (line 391) | def __gt__(self, value: float, /) -> bool: ...
method __ge__ (line 392) | def __ge__(self, value: float, /) -> bool: ...
method __neg__ (line 393) | def __neg__(self) -> float: ...
method __pos__ (line 394) | def __pos__(self) -> float: ...
method __int__ (line 395) | def __int__(self) -> int: ...
method __float__ (line 396) | def __float__(self) -> float: ...
method __abs__ (line 397) | def __abs__(self) -> float: ...
method __hash__ (line 398) | def __hash__(self) -> int: ...
method __bool__ (line 399) | def __bool__(self) -> bool: ...
class complex (line 401) | class complex:
method __new__ (line 404) | def __new__(
method __new__ (line 410) | def __new__(cls, real: str | SupportsComplex | SupportsFloat | Support...
method real (line 412) | def real(self) -> float: ...
method imag (line 414) | def imag(self) -> float: ...
method conjugate (line 415) | def conjugate(self) -> complex: ...
method __add__ (line 416) | def __add__(self, value: complex, /) -> complex: ...
method __sub__ (line 417) | def __sub__(self, value: complex, /) -> complex: ...
method __mul__ (line 418) | def __mul__(self, value: complex, /) -> complex: ...
method __pow__ (line 419) | def __pow__(self, value: complex, mod: None = None, /) -> complex: ...
method __truediv__ (line 420) | def __truediv__(self, value: complex, /) -> complex: ...
method __radd__ (line 421) | def __radd__(self, value: complex, /) -> complex: ...
method __rsub__ (line 422) | def __rsub__(self, value: complex, /) -> complex: ...
method __rmul__ (line 423) | def __rmul__(self, value: complex, /) -> complex: ...
method __rpow__ (line 424) | def __rpow__(self, value: complex, mod: None = None, /) -> complex: ...
method __rtruediv__ (line 425) | def __rtruediv__(self, value: complex, /) -> complex: ...
method __eq__ (line 426) | def __eq__(self, value: object, /) -> bool: ...
method __ne__ (line 427) | def __ne__(self, value: object, /) -> bool: ...
method __neg__ (line 428) | def __neg__(self) -> complex: ...
method __pos__ (line 429) | def __pos__(self) -> complex: ...
method __abs__ (line 430) | def __abs__(self) -> float: ...
method __hash__ (line 431) | def __hash__(self) -> int: ...
method __bool__ (line 432) | def __bool__(self) -> bool: ...
method __complex__ (line 434) | def __complex__(self) -> complex: ...
class _FormatMapMapping (line 436) | class _FormatMapMapping(Protocol):
method __getitem__ (line 437) | def __getitem__(self, key: str, /) -> Any: ...
class _TranslateTable (line 439) | class _TranslateTable(Protocol):
method __getitem__ (line 440) | def __getitem__(self, key: int, /) -> str | int | None: ...
class str (line 442) | class str(Sequence[str]):
method __new__ (line 444) | def __new__(cls, object: object = ...) -> Self: ...
method __new__ (line 446) | def __new__(cls, object: ReadableBuffer, encoding: str = ..., errors: ...
method capitalize (line 447) | def capitalize(self) -> str: ... # type: ignore[misc]
method casefold (line 448) | def casefold(self) -> str: ... # type: ignore[misc]
method center (line 449) | def center(self, width: SupportsIndex, fillchar: str = " ", /) -> str:...
method count (line 450) | def count(self, sub: str, start: SupportsIndex | None = ..., end: Supp...
method encode (line 451) | def encode(self, encoding: str = "utf-8", errors: str = "strict") -> b...
method endswith (line 452) | def endswith(
method expandtabs (line 455) | def expandtabs(self, tabsize: SupportsIndex = 8) -> str: ... # type: ...
method find (line 456) | def find(self, sub: str, start: SupportsIndex | None = ..., end: Suppo...
method format (line 457) | def format(self, *args: object, **kwargs: object) -> str: ...
method format_map (line 458) | def format_map(self, mapping: _FormatMapMapping, /) -> str: ...
method index (line 459) | def index(self, sub: str, start: SupportsIndex | None = ..., end: Supp...
method isalnum (line 460) | def isalnum(self) -> bool: ...
method isalpha (line 461) | def isalpha(self) -> bool: ...
method isascii (line 462) | def isascii(self) -> bool: ...
method isdecimal (line 463) | def isdecimal(self) -> bool: ...
method isdigit (line 464) | def isdigit(self) -> bool: ...
method isidentifier (line 465) | def isidentifier(self) -> bool: ...
method islower (line 466) | def islower(self) -> bool: ...
method isnumeric (line 467) | def isnumeric(self) -> bool: ...
method isprintable (line 468) | def isprintable(self) -> bool: ...
method isspace (line 469) | def isspace(self) -> bool: ...
method istitle (line 470) | def istitle(self) -> bool: ...
method isupper (line 471) | def isupper(self) -> bool: ...
method join (line 472) | def join(self, iterable: Iterable[str], /) -> str: ... # type: ignore...
method ljust (line 473) | def ljust(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ...
method lower (line 474) | def lower(self) -> str: ... # type: ignore[misc]
method lstrip (line 475) | def lstrip(self, chars: str | None = None, /) -> str: ... # type: ign...
method partition (line 476) | def partition(self, sep: str, /) -> tuple[str, str, str]: ... # type:...
method replace (line 478) | def replace(self, old: str, new: str, /, count: SupportsIndex = -1) ->...
method replace (line 480) | def replace(self, old: str, new: str, count: SupportsIndex = -1, /) ->...
method removeprefix (line 482) | def removeprefix(self, prefix: str, /) -> str: ... # type: ignore[misc]
method removesuffix (line 483) | def removesuffix(self, suffix: str, /) -> str: ... # type: ignore[misc]
method rfind (line 485) | def rfind(self, sub: str, start: SupportsIndex | None = ..., end: Supp...
method rindex (line 486) | def rindex(self, sub: str, start: SupportsIndex | None = ..., end: Sup...
method rjust (line 487) | def rjust(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ...
method rpartition (line 488) | def rpartition(self, sep: str, /) -> tuple[str, str, str]: ... # type...
method rsplit (line 489) | def rsplit(self, sep: str | None = None, maxsplit: SupportsIndex = -1)...
method rstrip (line 490) | def rstrip(self, chars: str | None = None, /) -> str: ... # type: ign...
method split (line 491) | def split(self, sep: str | None = None, maxsplit: SupportsIndex = -1) ...
method splitlines (line 492) | def splitlines(self, keepends: bool = False) -> list[str]: ... # type...
method startswith (line 493) | def startswith(
method strip (line 496) | def strip(self, chars: str | None = None, /) -> str: ... # type: igno...
method swapcase (line 497) | def swapcase(self) -> str: ... # type: ignore[misc]
method title (line 498) | def title(self) -> str: ... # type: ignore[misc]
method translate (line 499) | def translate(self, table: _TranslateTable, /) -> str: ...
method upper (line 500) | def upper(self) -> str: ... # type: ignore[misc]
method zfill (line 501) | def zfill(self, width: SupportsIndex, /) -> str: ... # type: ignore[m...
method maketrans (line 504) | def maketrans(x: dict[int, _T] | dict[str, _T] | dict[str | int, _T], ...
method maketrans (line 507) | def maketrans(x: str, y: str, /) -> dict[int, int]: ...
method maketrans (line 510) | def maketrans(x: str, y: str, z: str, /) -> dict[int, int | None]: ...
method __add__ (line 511) | def __add__(self, value: str, /) -> str: ... # type: ignore[misc]
method __contains__ (line 513) | def __contains__(self, key: str, /) -> bool: ... # type: ignore[overr...
method __eq__ (line 514) | def __eq__(self, value: object, /) -> bool: ...
method __ge__ (line 515) | def __ge__(self, value: str, /) -> bool: ...
method __getitem__ (line 516) | def __getitem__(self, key: SupportsIndex | slice, /) -> str: ...
method __gt__ (line 517) | def __gt__(self, value: str, /) -> bool: ...
method __hash__ (line 518) | def __hash__(self) -> int: ...
method __iter__ (line 519) | def __iter__(self) -> Iterator[str]: ... # type: ignore[misc]
method __le__ (line 520) | def __le__(self, value: str, /) -> bool: ...
method __len__ (line 521) | def __len__(self) -> int: ...
method __lt__ (line 522) | def __lt__(self, value: str, /) -> bool: ...
method __mod__ (line 523) | def __mod__(self, value: Any, /) -> str: ...
method __mul__ (line 524) | def __mul__(self, value: SupportsIndex, /) -> str: ... # type: ignore...
method __ne__ (line 525) | def __ne__(self, value: object, /) -> bool: ...
method __rmul__ (line 526) | def __rmul__(self, value: SupportsIndex, /) -> str: ... # type: ignor...
method __getnewargs__ (line 527) | def __getnewargs__(self) -> tuple[str]: ...
class bytes (line 529) | class bytes(Sequence[int]):
method __new__ (line 531) | def __new__(cls, o: Iterable[SupportsIndex] | SupportsIndex | Supports...
method __new__ (line 533) | def __new__(cls, string: str, /, encoding: str, errors: str = ...) -> ...
method __new__ (line 535) | def __new__(cls) -> Self: ...
method capitalize (line 536) | def capitalize(self) -> bytes: ...
method center (line 537) | def center(self, width: SupportsIndex, fillchar: bytes = b" ", /) -> b...
method count (line 538) | def count( # type: ignore[override]
method decode (line 541) | def decode(self, encoding: str = "utf-8", errors: str = "strict") -> s...
method endswith (line 542) | def endswith(
method expandtabs (line 549) | def expandtabs(self, tabsize: SupportsIndex = 8) -> bytes: ...
method find (line 550) | def find(
method hex (line 553) | def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = ....
method index (line 554) | def index( # type: ignore[override]
method isalnum (line 557) | def isalnum(self) -> bool: ...
method isalpha (line 558) | def isalpha(self) -> bool: ...
method isascii (line 559) | def isascii(self) -> bool: ...
method isdigit (line 560) | def isdigit(self) -> bool: ...
method islower (line 561) | def islower(self) -> bool: ...
method isspace (line 562) | def isspace(self) -> bool: ...
method istitle (line 563) | def istitle(self) -> bool: ...
method isupper (line 564) | def isupper(self) -> bool: ...
method join (line 565) | def join(self, iterable_of_bytes: Iterable[ReadableBuffer], /) -> byte...
method ljust (line 566) | def ljust(self, width: SupportsIndex, fillchar: bytes | bytearray = b"...
method lower (line 567) | def lower(self) -> bytes: ...
method lstrip (line 568) | def lstrip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
method partition (line 569) | def partition(self, sep: ReadableBuffer, /) -> tuple[bytes, bytes, byt...
method replace (line 570) | def replace(self, old: ReadableBuffer, new: ReadableBuffer, count: Sup...
method removeprefix (line 572) | def removeprefix(self, prefix: ReadableBuffer, /) -> bytes: ...
method removesuffix (line 573) | def removesuffix(self, suffix: ReadableBuffer, /) -> bytes: ...
method rfind (line 575) | def rfind(
method rindex (line 578) | def rindex(
method rjust (line 581) | def rjust(self, width: SupportsIndex, fillchar: bytes | bytearray = b"...
method rpartition (line 582) | def rpartition(self, sep: ReadableBuffer, /) -> tuple[bytes, bytes, by...
method rsplit (line 583) | def rsplit(self, sep: ReadableBuffer | None = None, maxsplit: Supports...
method rstrip (line 584) | def rstrip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
method split (line 585) | def split(self, sep: ReadableBuffer | None = None, maxsplit: SupportsI...
method splitlines (line 586) | def splitlines(self, keepends: bool = False) -> list[bytes]: ...
method startswith (line 587) | def startswith(
method strip (line 594) | def strip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
method swapcase (line 595) | def swapcase(self) -> bytes: ...
method title (line 596) | def title(self) -> bytes: ...
method translate (line 597) | def translate(self, table: ReadableBuffer | None, /, delete: bytes = b...
method upper (line 598) | def upper(self) -> bytes: ...
method zfill (line 599) | def zfill(self, width: SupportsIndex, /) -> bytes: ...
method fromhex (line 601) | def fromhex(cls, string: str, /) -> Self: ...
method maketrans (line 603) | def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
method __len__ (line 604) | def __len__(self) -> int: ...
method __iter__ (line 605) | def __iter__(self) -> Iterator[int]: ...
method __hash__ (line 606) | def __hash__(self) -> int: ...
method __getitem__ (line 608) | def __getitem__(self, key: SupportsIndex, /) -> int: ...
method __getitem__ (line 610) | def __getitem__(self, key: slice, /) -> bytes: ...
method __add__ (line 611) | def __add__(self, value: ReadableBuffer, /) -> bytes: ...
method __mul__ (line 612) | def __mul__(self, value: SupportsIndex, /) -> bytes: ...
method __rmul__ (line 613) | def __rmul__(self, value: SupportsIndex, /) -> bytes: ...
method __mod__ (line 614) | def __mod__(self, value: Any, /) -> bytes: ...
method __contains__ (line 616) | def __contains__(self, key: SupportsIndex | ReadableBuffer, /) -> bool...
method __eq__ (line 617) | def __eq__(self, value: object, /) -> bool: ...
method __ne__ (line 618) | def __ne__(self, value: object, /) -> bool: ...
method __lt__ (line 619) | def __lt__(self, value: bytes, /) -> bool: ...
method __le__ (line 620) | def __le__(self, value: bytes, /) -> bool: ...
method __gt__ (line 621) | def __gt__(self, value: bytes, /) -> bool: ...
method __ge__ (line 622) | def __ge__(self, value: bytes, /) -> bool: ...
method __getnewargs__ (line 623) | def __getnewargs__(self) -> tuple[bytes]: ...
method __bytes__ (line 625) | def __bytes__(self) -> bytes: ...
method __buffer__ (line 627) | def __buffer__(self, flags: int, /) -> memoryview: ...
class bytearray (line 629) | class bytearray(MutableSequence[int]):
method __init__ (line 631) | def __init__(self) -> None: ...
method __init__ (line 633) | def __init__(self, ints: Iterable[SupportsIndex] | SupportsIndex | Rea...
method __init__ (line 635) | def __init__(self, string: str, /, encoding: str, errors: str = ...) -...
method append (line 636) | def append(self, item: SupportsIndex, /) -> None: ... # type: ignore[...
method capitalize (line 637) | def capitalize(self) -> bytearray: ...
method center (line 638) | def center(self, width: SupportsIndex, fillchar: bytes = b" ", /) -> b...
method count (line 639) | def count( # type: ignore[override]
method copy (line 642) | def copy(self) -> bytearray: ...
method decode (line 643) | def decode(self, encoding: str = "utf-8", errors: str = "strict") -> s...
method endswith (line 644) | def endswith(
method expandtabs (line 651) | def expandtabs(self, tabsize: SupportsIndex = 8) -> bytearray: ...
method extend (line 652) | def extend(self, iterable_of_ints: Iterable[SupportsIndex], /) -> None...
method find (line 653) | def find(
method hex (line 656) | def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = ....
method index (line 657) | def index( # type: ignore[override]
method insert (line 660) | def insert(self, index: SupportsIndex, item: SupportsIndex, /) -> None...
method isalnum (line 661) | def isalnum(self) -> bool: ...
method isalpha (line 662) | def isalpha(self) -> bool: ...
method isascii (line 663) | def isascii(self) -> bool: ...
method isdigit (line 664) | def isdigit(self) -> bool: ...
method islower (line 665) | def islower(self) -> bool: ...
method isspace (line 666) | def isspace(self) -> bool: ...
method istitle (line 667) | def istitle(self) -> bool: ...
method isupper (line 668) | def isupper(self) -> bool: ...
method join (line 669) | def join(self, iterable_of_bytes: Iterable[ReadableBuffer], /) -> byte...
method ljust (line 670) | def ljust(self, width: SupportsIndex, fillchar: bytes | bytearray = b"...
method lower (line 671) | def lower(self) -> bytearray: ...
method lstrip (line 672) | def lstrip(self, bytes: ReadableBuffer | None = None, /) -> bytearray:...
method partition (line 673) | def partition(self, sep: ReadableBuffer, /) -> tuple[bytearray, bytear...
method pop (line 674) | def pop(self, index: int = -1, /) -> int: ... # type: ignore[override]
method remove (line 675) | def remove(self, value: int, /) -> None: ... # type: ignore[override]
method removeprefix (line 677) | def removeprefix(self, prefix: ReadableBuffer, /) -> bytearray: ...
method removesuffix (line 678) | def removesuffix(self, suffix: ReadableBuffer, /) -> bytearray: ...
method replace (line 680) | def replace(self, old: ReadableBuffer, new: ReadableBuffer, count: Sup...
method rfind (line 681) | def rfind(
method rindex (line 684) | def rindex(
method rjust (line 687) | def rjust(self, width: SupportsIndex, fillchar: bytes | bytearray = b"...
method rpartition (line 688) | def rpartition(self, sep: ReadableBuffer, /) -> tuple[bytearray, bytea...
method rsplit (line 689) | def rsplit(self, sep: ReadableBuffer | None = None, maxsplit: Supports...
method rstrip (line 690) | def rstrip(self, bytes: ReadableBuffer | None = None, /) -> bytearray:...
method split (line 691) | def split(self, sep: ReadableBuffer | None = None, maxsplit: SupportsI...
method splitlines (line 692) | def splitlines(self, keepends: bool = False) -> list[bytearray]: ...
method startswith (line 693) | def startswith(
method strip (line 700) | def strip(self, bytes: ReadableBuffer | None = None, /) -> bytearray: ...
method swapcase (line 701) | def swapcase(self) -> bytearray: ...
method title (line 702) | def title(self) -> bytearray: ...
method translate (line 703) | def translate(self, table: ReadableBuffer | None, /, delete: bytes = b...
method upper (line 704) | def upper(self) -> bytearray: ...
method zfill (line 705) | def zfill(self, width: SupportsIndex, /) -> bytearray: ...
method fromhex (line 707) | def fromhex(cls, string: str, /) -> Self: ...
method maketrans (line 709) | def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
method __len__ (line 710) | def __len__(self) -> int: ...
method __iter__ (line 711) | def __iter__(self) -> Iterator[int]: ...
method __getitem__ (line 714) | def __getitem__(self, key: SupportsIndex, /) -> int: ...
method __getitem__ (line 716) | def __getitem__(self, key: slice, /) -> bytearray: ...
method __setitem__ (line 718) | def __setitem__(self, key: SupportsIndex, value: SupportsIndex, /) -> ...
method __setitem__ (line 720) | def __setitem__(self, key: slice, value: Iterable[SupportsIndex] | byt...
method __delitem__ (line 721) | def __delitem__(self, key: SupportsIndex | slice, /) -> None: ...
method __add__ (line 722) | def __add__(self, value: ReadableBuffer, /) -> bytearray: ...
method __iadd__ (line 724) | def __iadd__(self, value: ReadableBuffer, /) -> Self: ... # type: ign...
method __mul__ (line 725) | def __mul__(self, value: SupportsIndex, /) -> bytearray: ...
method __rmul__ (line 726) | def __rmul__(self, value: SupportsIndex, /) -> bytearray: ...
method __imul__ (line 727) | def __imul__(self, value: SupportsIndex, /) -> Self: ...
method __mod__ (line 728) | def __mod__(self, value: Any, /) -> bytes: ...
method __contains__ (line 730) | def __contains__(self, key: SupportsIndex | ReadableBuffer, /) -> bool...
method __eq__ (line 731) | def __eq__(self, value: object, /) -> bool: ...
method __ne__ (line 732) | def __ne__(self, value: object, /) -> bool: ...
method __lt__ (line 733) | def __lt__(self, value: ReadableBuffer, /) -> bool: ...
method __le__ (line 734) | def __le__(self, value: ReadableBuffer, /) -> bool: ...
method __gt__ (line 735) | def __gt__(self, value: ReadableBuffer, /) -> bool: ...
method __ge__ (line 736) | def __ge__(self, value: ReadableBuffer, /) -> bool: ...
method __alloc__ (line 737) | def __alloc__(self) -> int: ...
method __buffer__ (line 738) | def __buffer__(self, flags: int, /) -> memoryview: ...
method __release_buffer__ (line 739) | def __release_buffer__(self, buffer: memoryview, /) -> None: ...
class memoryview (line 746) | class memoryview(Sequence[_I]):
method format (line 748) | def format(self) -> str: ...
method itemsize (line 750) | def itemsize(self) -> int: ...
method shape (line 752) | def shape(self) -> tuple[int, ...] | None: ...
method strides (line 754) | def strides(self) -> tuple[int, ...] | None: ...
method suboffsets (line 756) | def suboffsets(self) -> tuple[int, ...] | None: ...
method readonly (line 758) | def readonly(self) -> bool: ...
method ndim (line 760) | def ndim(self) -> int: ...
method obj (line 762) | def obj(self) -> ReadableBuffer: ...
method c_contiguous (line 764) | def c_contiguous(self) -> bool: ...
method f_contiguous (line 766) | def f_contiguous(self) -> bool: ...
method contiguous (line 768) | def contiguous(self) -> bool: ...
method nbytes (line 770) | def nbytes(self) -> int: ...
method __new__ (line 771) | def __new__(cls, obj: ReadableBuffer) -> Self: ...
method __enter__ (line 772) | def __enter__(self) -> Self: ...
method __exit__ (line 773) | def __exit__(
method cast (line 777) | def cast(self, format: Literal["c", "@c"], shape: list[int] | tuple[in...
method cast (line 779) | def cast(self, format: Literal["f", "@f", "d", "@d"], shape: list[int]...
method cast (line 781) | def cast(self, format: Literal["?"], shape: list[int] | tuple[int, ......
method cast (line 783) | def cast(self, format: _IntegerFormats, shape: list[int] | tuple[int, ...
method __getitem__ (line 785) | def __getitem__(self, key: SupportsIndex | tuple[SupportsIndex, ...], ...
method __getitem__ (line 787) | def __getitem__(self, key: slice, /) -> memoryview[_I]: ...
method __contains__ (line 788) | def __contains__(self, x: object, /) -> bool: ...
method __iter__ (line 789) | def __iter__(self) -> Iterator[_I]: ...
method __len__ (line 790) | def __len__(self) -> int: ...
method __eq__ (line 791) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 792) | def __hash__(self) -> int: ...
method __setitem__ (line 794) | def __setitem__(self, key: slice, value: ReadableBuffer, /) -> None: ...
method __setitem__ (line 796) | def __setitem__(self, key: SupportsIndex | tuple[SupportsIndex, ...], ...
method tobytes (line 798) | def tobytes(self, order: Literal["C", "F", "A"] | None = "C") -> bytes...
method tobytes (line 800) | def tobytes(self, order: Literal["C", "F", "A"] | None = None) -> byte...
method tolist (line 802) | def tolist(self) -> list[int]: ...
method toreadonly (line 803) | def toreadonly(self) -> memoryview: ...
method release (line 804) | def release(self) -> None: ...
method hex (line 805) | def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = ....
method __buffer__ (line 806) | def __buffer__(self, flags: int, /) -> memoryview: ...
method __release_buffer__ (line 807) | def __release_buffer__(self, buffer: memoryview, /) -> None: ...
class bool (line 815) | class bool(int):
method __new__ (line 816) | def __new__(cls, o: object = ..., /) -> Self: ...
method __and__ (line 820) | def __and__(self, value: bool, /) -> bool: ...
method __and__ (line 822) | def __and__(self, value: int, /) -> int: ...
method __or__ (line 824) | def __or__(self, value: bool, /) -> bool: ...
method __or__ (line 826) | def __or__(self, value: int, /) -> int: ...
method __xor__ (line 828) | def __xor__(self, value: bool, /) -> bool: ...
method __xor__ (line 830) | def __xor__(self, value: int, /) -> int: ...
method __rand__ (line 832) | def __rand__(self, value: bool, /) -> bool: ...
method __rand__ (line 834) | def __rand__(self, value: int, /) -> int: ...
method __ror__ (line 836) | def __ror__(self, value: bool, /) -> bool: ...
method __ror__ (line 838) | def __ror__(self, value: int, /) -> int: ...
method __rxor__ (line 840) | def __rxor__(self, value: bool, /) -> bool: ...
method __rxor__ (line 842) | def __rxor__(self, value: int, /) -> int: ...
method __getnewargs__ (line 843) | def __getnewargs__(self) -> tuple[int]: ...
method __invert__ (line 845) | def __invert__(self) -> int: ...
class slice (line 848) | class slice(Generic[_StartT, _StopT, _StepT]):
method start (line 850) | def start(self) -> _StartT: ...
method step (line 852) | def step(self) -> _StepT: ...
method stop (line 854) | def stop(self) -> _StopT: ...
method __new__ (line 856) | def __new__(cls, stop: int | None, /) -> slice[int | MaybeNone, int | ...
method __new__ (line 858) | def __new__(
method __new__ (line 862) | def __new__(cls, stop: _T2, /) -> slice[Any, _T2, Any]: ...
method __new__ (line 864) | def __new__(cls, start: _T1, stop: _T2, /) -> slice[_T1, _T2, Any]: ...
method __new__ (line 866) | def __new__(cls, start: _T1, stop: _T2, step: _T3, /) -> slice[_T1, _T...
method __eq__ (line 867) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 869) | def __hash__(self) -> int: ...
method indices (line 873) | def indices(self, len: SupportsIndex, /) -> tuple[int, int, int]: ...
class tuple (line 875) | class tuple(Sequence[_T_co]):
method __new__ (line 876) | def __new__(cls, iterable: Iterable[_T_co] = ..., /) -> Self: ...
method __len__ (line 877) | def __len__(self) -> int: ...
method __contains__ (line 878) | def __contains__(self, key: object, /) -> bool: ...
method __getitem__ (line 880) | def __getitem__(self, key: SupportsIndex, /) -> _T_co: ...
method __getitem__ (line 882) | def __getitem__(self, key: slice, /) -> tuple[_T_co, ...]: ...
method __iter__ (line 883) | def __iter__(self) -> Iterator[_T_co]: ...
method __lt__ (line 884) | def __lt__(self, value: tuple[_T_co, ...], /) -> bool: ...
method __le__ (line 885) | def __le__(self, value: tuple[_T_co, ...], /) -> bool: ...
method __gt__ (line 886) | def __gt__(self, value: tuple[_T_co, ...], /) -> bool: ...
method __ge__ (line 887) | def __ge__(self, value: tuple[_T_co, ...], /) -> bool: ...
method __eq__ (line 888) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 889) | def __hash__(self) -> int: ...
method __add__ (line 891) | def __add__(self, value: tuple[_T_co, ...], /) -> tuple[_T_co, ...]: ...
method __add__ (line 893) | def __add__(self, value: tuple[_T, ...], /) -> tuple[_T_co | _T, ...]:...
method __mul__ (line 894) | def __mul__(self, value: SupportsIndex, /) -> tuple[_T_co, ...]: ...
method __rmul__ (line 895) | def __rmul__(self, value: SupportsIndex, /) -> tuple[_T_co, ...]: ...
method count (line 896) | def count(self, value: Any, /) -> int: ... # type: ignore[override]
method index (line 897) | def index(self, value: Any, start: SupportsIndex = 0, stop: SupportsIn...
method __class_getitem__ (line 899) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class function (line 906) | class function:
method __closure__ (line 909) | def __closure__(self) -> tuple[CellType, ...] | None: ...
method __globals__ (line 914) | def __globals__(self) -> dict[str, object]: ...
method __builtins__ (line 921) | def __builtins__(self) -> dict[str, object]: ...
method __get__ (line 927) | def __get__(self, instance: object, owner: type | None = None, /) -> A...
class list (line 929) | class list(MutableSequence[_T]):
method __init__ (line 931) | def __init__(self) -> None: ...
method __init__ (line 933) | def __init__(self, iterable: Iterable[_T], /) -> None: ...
method copy (line 934) | def copy(self) -> list[_T]: ...
method append (line 935) | def append(self, object: _T, /) -> None: ... # type: ignore[override]
method extend (line 936) | def extend(self, iterable: Iterable[_T], /) -> None: ... # type: igno...
method pop (line 937) | def pop(self, index: SupportsIndex = -1, /) -> _T: ... # type: ignore...
method index (line 940) | def index(self, value: _T, start: SupportsIndex = 0, stop: SupportsInd...
method count (line 941) | def count(self, value: _T, /) -> int: ... # type: ignore[override]
method insert (line 942) | def insert(self, index: SupportsIndex, object: _T, /) -> None: ... # ...
method remove (line 943) | def remove(self, value: _T, /) -> None: ... # type: ignore[override]
method sort (line 950) | def sort(self: list[SupportsRichComparisonT], *, key: None = None, rev...
method sort (line 952) | def sort(self, *, key: Callable[[_T], SupportsRichComparison], reverse...
method __len__ (line 953) | def __len__(self) -> int: ...
method __iter__ (line 954) | def __iter__(self) -> Iterator[_T]: ...
method __getitem__ (line 957) | def __getitem__(self, i: SupportsIndex, /) -> _T: ...
method __getitem__ (line 959) | def __getitem__(self, s: slice, /) -> list[_T]: ...
method __setitem__ (line 961) | def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ...
method __setitem__ (line 963) | def __setitem__(self, key: slice, value: Iterable[_T], /) -> None: ...
method __delitem__ (line 964) | def __delitem__(self, key: SupportsIndex | slice, /) -> None: ...
method __add__ (line 967) | def __add__(self, value: list[_T], /) -> list[_T]: ...
method __add__ (line 969) | def __add__(self, value: list[_S], /) -> list[_S | _T]: ...
method __iadd__ (line 970) | def __iadd__(self, value: Iterable[_T], /) -> Self: ... # type: ignor...
method __mul__ (line 971) | def __mul__(self, value: SupportsIndex, /) -> list[_T]: ...
method __rmul__ (line 972) | def __rmul__(self, value: SupportsIndex, /) -> list[_T]: ...
method __imul__ (line 973) | def __imul__(self, value: SupportsIndex, /) -> Self: ...
method __contains__ (line 974) | def __contains__(self, key: object, /) -> bool: ...
method __reversed__ (line 975) | def __reversed__(self) -> Iterator[_T]: ...
method __gt__ (line 976) | def __gt__(self, value: list[_T], /) -> bool: ...
method __ge__ (line 977) | def __ge__(self, value: list[_T], /) -> bool: ...
method __lt__ (line 978) | def __lt__(self, value: list[_T], /) -> bool: ...
method __le__ (line 979) | def __le__(self, value: list[_T], /) -> bool: ...
method __eq__ (line 980) | def __eq__(self, value: object, /) -> bool: ...
method __class_getitem__ (line 982) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class dict (line 984) | class dict(MutableMapping[_KT, _VT]):
method __init__ (line 988) | def __init__(self) -> None: ...
method __init__ (line 990) | def __init__(self: dict[str, _VT], **kwargs: _VT) -> None: ... # pyri...
method __init__ (line 992) | def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT], /) -> None: ...
method __init__ (line 994) | def __init__(
method __init__ (line 1001) | def __init__(self, iterable: Iterable[tuple[_KT, _VT]], /) -> None: ...
method __init__ (line 1003) | def __init__(
method __init__ (line 1012) | def __init__(self: dict[str, str], iterable: Iterable[list[str]], /) -...
method __init__ (line 1014) | def __init__(self: dict[bytes, bytes], iterable: Iterable[list[bytes]]...
method __new__ (line 1015) | def __new__(cls, *args: Any, **kwargs: Any) -> Self: ...
method copy (line 1016) | def copy(self) -> dict[_KT, _VT]: ...
method keys (line 1017) | def keys(self) -> dict_keys[_KT, _VT]: ...
method values (line 1018) | def values(self) -> dict_values[_KT, _VT]: ...
method items (line 1019) | def items(self) -> dict_items[_KT, _VT]: ...
method fromkeys (line 1026) | def fromkeys(cls, iterable: Iterable[_T], value: None = None, /) -> di...
method fromkeys (line 1029) | def fromkeys(cls, iterable: Iterable[_T], value: _S, /) -> dict[_T, _S...
method get (line 1032) | def get(self, key: _KT, /) -> _VT | None: ...
method get (line 1034) | def get(self, key: _KT, default: _VT, /) -> _VT: ...
method get (line 1036) | def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
method pop (line 1038) | def pop(self, key: _KT, /) -> _VT: ...
method pop (line 1040) | def pop(self, key: _KT, default: _VT, /) -> _VT: ...
method pop (line 1042) | def pop(self, key: _KT, default: _T, /) -> _VT | _T: ...
method __len__ (line 1043) | def __len__(self) -> int: ...
method __getitem__ (line 1044) | def __getitem__(self, key: _KT, /) -> _VT: ...
method __setitem__ (line 1045) | def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
method __delitem__ (line 1046) | def __delitem__(self, key: _KT, /) -> None: ...
method __iter__ (line 1047) | def __iter__(self) -> Iterator[_KT]: ...
method __eq__ (line 1048) | def __eq__(self, value: object, /) -> bool: ...
method __reversed__ (line 1049) | def __reversed__(self) -> Iterator[_KT]: ...
method __class_getitem__ (line 1052) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
method __or__ (line 1054) | def __or__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
method __or__ (line 1056) | def __or__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T...
method __ror__ (line 1058) | def __ror__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
method __ror__ (line 1060) | def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _...
method __ior__ (line 1063) | def __ior__(self, value: SupportsKeysAndGetItem[_KT, _VT], /) -> Self:...
method __ior__ (line 1065) | def __ior__(self, value: Iterable[tuple[_KT, _VT]], /) -> Self: ...
class set (line 1067) | class set(MutableSet[_T]):
method __init__ (line 1069) | def __init__(self) -> None: ...
method __init__ (line 1071) | def __init__(self, iterable: Iterable[_T], /) -> None: ...
method add (line 1072) | def add(self, element: _T, /) -> None: ... # type: ignore[override]
method copy (line 1073) | def copy(self) -> set[_T]: ...
method difference (line 1074) | def difference(self, /, *s: Iterable[object]) -> set[_T]: ...
method difference_update (line 1075) | def difference_update(self, /, *s: Iterable[object]) -> None: ...
method discard (line 1076) | def discard(self, element: _T, /) -> None: ... # type: ignore[override]
method intersection (line 1077) | def intersection(self, /, *s: Iterable[object]) -> set[_T]: ...
method intersection_update (line 1078) | def intersection_update(self, /, *s: Iterable[object]) -> None: ...
method isdisjoint (line 1079) | def isdisjoint(self, s: Iterable[object], /) -> bool: ... # type: ign...
method issubset (line 1080) | def issubset(self, s: Iterable[object], /) -> bool: ...
method issuperset (line 1081) | def issuperset(self, s: Iterable[object], /) -> bool: ...
method remove (line 1082) | def remove(self, element: _T, /) -> None: ... # type: ignore[override]
method symmetric_difference (line 1083) | def symmetric_difference(self, s: Iterable[_T], /) -> set[_T]: ...
method symmetric_difference_update (line 1084) | def symmetric_difference_update(self, s: Iterable[_T], /) -> None: ...
method union (line 1085) | def union(self, *s: Iterable[_S]) -> set[_T | _S]: ...
method update (line 1086) | def update(self, *s: Iterable[_T]) -> None: ...
method __len__ (line 1087) | def __len__(self) -> int: ...
method __contains__ (line 1088) | def __contains__(self, o: object, /) -> bool: ...
method __iter__ (line 1089) | def __iter__(self) -> Iterator[_T]: ...
method __and__ (line 1090) | def __and__(self, value: AbstractSet[object], /) -> set[_T]: ...
method __iand__ (line 1091) | def __iand__(self, value: AbstractSet[object], /) -> Self: ...
method __or__ (line 1092) | def __or__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ...
method __ior__ (line 1093) | def __ior__(self, value: AbstractSet[_T], /) -> Self: ... # type: ign...
method __sub__ (line 1094) | def __sub__(self, value: AbstractSet[_T | None], /) -> set[_T]: ...
method __isub__ (line 1095) | def __isub__(self, value: AbstractSet[object], /) -> Self: ...
method __xor__ (line 1096) | def __xor__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ...
method __ixor__ (line 1097) | def __ixor__(self, value: AbstractSet[_T], /) -> Self: ... # type: ig...
method __le__ (line 1098) | def __le__(self, value: AbstractSet[object], /) -> bool: ...
method __lt__ (line 1099) | def __lt__(self, value: AbstractSet[object], /) -> bool: ...
method __ge__ (line 1100) | def __ge__(self, value: AbstractSet[object], /) -> bool: ...
method __gt__ (line 1101) | def __gt__(self, value: AbstractSet[object], /) -> bool: ...
method __eq__ (line 1102) | def __eq__(self, value: object, /) -> bool: ...
method __class_getitem__ (line 1105) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class frozenset (line 1107) | class frozenset(AbstractSet[_T_co]):
method __new__ (line 1109) | def __new__(cls) -> Self: ...
method __new__ (line 1111) | def __new__(cls, iterable: Iterable[_T_co], /) -> Self: ...
method copy (line 1112) | def copy(self) -> frozenset[_T_co]: ...
method difference (line 1113) | def difference(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
method intersection (line 1114) | def intersection(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
method isdisjoint (line 1115) | def isdisjoint(self, s: Iterable[_T_co], /) -> bool: ... # type: igno...
method issubset (line 1116) | def issubset(self, s: Iterable[object], /) -> bool: ...
method issuperset (line 1117) | def issuperset(self, s: Iterable[object], /) -> bool: ...
method symmetric_difference (line 1118) | def symmetric_difference(self, s: Iterable[_T_co], /) -> frozenset[_T_...
method union (line 1119) | def union(self, *s: Iterable[_S]) -> frozenset[_T_co | _S]: ...
method __len__ (line 1120) | def __len__(self) -> int: ...
method __contains__ (line 1121) | def __contains__(self, o: object, /) -> bool: ...
method __iter__ (line 1122) | def __iter__(self) -> Iterator[_T_co]: ...
method __and__ (line 1123) | def __and__(self, value: AbstractSet[_T_co], /) -> frozenset[_T_co]: ...
method __or__ (line 1124) | def __or__(self, value: AbstractSet[_S], /) -> frozenset[_T_co | _S]: ...
method __sub__ (line 1125) | def __sub__(self, value: AbstractSet[_T_co], /) -> frozenset[_T_co]: ...
method __xor__ (line 1126) | def __xor__(self, value: AbstractSet[_S], /) -> frozenset[_T_co | _S]:...
method __le__ (line 1127) | def __le__(self, value: AbstractSet[object], /) -> bool: ...
method __lt__ (line 1128) | def __lt__(self, value: AbstractSet[object], /) -> bool: ...
method __ge__ (line 1129) | def __ge__(self, value: AbstractSet[object], /) -> bool: ...
method __gt__ (line 1130) | def __gt__(self, value: AbstractSet[object], /) -> bool: ...
method __eq__ (line 1131) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 1132) | def __hash__(self) -> int: ...
method __class_getitem__ (line 1134) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class enumerate (line 1136) | class enumerate(Iterator[tuple[int, _T]]):
method __new__ (line 1137) | def __new__(cls, iterable: Iterable[_T], start: int = 0) -> Self: ...
method __iter__ (line 1138) | def __iter__(self) -> Self: ...
method __next__ (line 1139) | def __next__(self) -> tuple[int, _T]: ...
method __class_getitem__ (line 1141) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class range (line 1144) | class range(Sequence[int]):
method start (line 1146) | def start(self) -> int: ...
method stop (line 1148) | def stop(self) -> int: ...
method step (line 1150) | def step(self) -> int: ...
method __new__ (line 1152) | def __new__(cls, stop: SupportsIndex, /) -> Self: ...
method __new__ (line 1154) | def __new__(cls, start: SupportsIndex, stop: SupportsIndex, step: Supp...
method count (line 1155) | def count(self, value: int, /) -> int: ... # type: ignore[override]
method index (line 1156) | def index(self, value: int, /) -> int: ... # type: ignore[override]
method __len__ (line 1157) | def __len__(self) -> int: ...
method __eq__ (line 1158) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 1159) | def __hash__(self) -> int: ...
method __contains__ (line 1160) | def __contains__(self, key: object, /) -> bool: ...
method __iter__ (line 1161) | def __iter__(self) -> Iterator[int]: ...
method __getitem__ (line 1163) | def __getitem__(self, key: SupportsIndex, /) -> int: ...
method __getitem__ (line 1165) | def __getitem__(self, key: slice, /) -> range: ...
method __reversed__ (line 1166) | def __reversed__(self) -> Iterator[int]: ...
class property (line 1168) | class property:
method __init__ (line 1176) | def __init__(
method getter (line 1183) | def getter(self, fget: Callable[[Any], Any], /) -> property: ...
method setter (line 1184) | def setter(self, fset: Callable[[Any, Any], None], /) -> property: ...
method deleter (line 1185) | def deleter(self, fdel: Callable[[Any], None], /) -> property: ...
method __get__ (line 1186) | def __get__(self, instance: Any, owner: type | None = None, /) -> Any:...
method __set__ (line 1187) | def __set__(self, instance: Any, value: Any, /) -> None: ...
method __delete__ (line 1188) | def __delete__(self, instance: Any, /) -> None: ...
class _NotImplementedType (line 1191) | class _NotImplementedType(Any):
function _as_builtin (line 1197) | def _as_builtin(fn: Callable[_P, _T]) -> BuiltinFunctionType[_P, _T]: ...
function abs (line 1200) | def abs(x: SupportsAbs[_T], /) -> _T: ...
function all (line 1202) | def all(iterable: Iterable[object], /) -> bool: ...
function any (line 1204) | def any(iterable: Iterable[object], /) -> bool: ...
function ascii (line 1206) | def ascii(obj: object, /) -> str: ...
function bin (line 1208) | def bin(number: int | SupportsIndex, /) -> str: ...
function breakpoint (line 1210) | def breakpoint(*args: Any, **kws: Any) -> None: ...
function chr (line 1213) | def chr(i: int, /) -> str: ...
class _PathLike (line 1217) | class _PathLike(Protocol[AnyStr]):
method __fspath__ (line 1218) | def __fspath__(self) -> AnyStr: ...
function aiter (line 1222) | def aiter(async_iterable: SupportsAiter[_SupportsAnextT], /) -> _Support...
class _SupportsSynchronousAnext (line 1224) | class _SupportsSynchronousAnext(Protocol[_AwaitableT_co]):
method __anext__ (line 1225) | def __anext__(self) -> _AwaitableT_co: ...
function anext (line 1232) | def anext(i: _SupportsSynchronousAnext[_AwaitableT], /) -> _AwaitableT: ...
function anext (line 1235) | async def anext(i: SupportsAnext[_T], default: _VT, /) -> _T | _VT: ...
function compile (line 1242) | def compile(
function compile (line 1254) | def compile(
function compile (line 1265) | def compile(
function compile (line 1277) | def compile(
function delattr (line 1291) | def delattr(obj: object, name: str, /) -> None: ...
function dir (line 1293) | def dir(o: object = ..., /) -> list[str]: ...
function divmod (line 1296) | def divmod(x: SupportsDivMod[_T_contra, _T_co], y: _T_contra, /) -> _T_c...
function divmod (line 1299) | def divmod(x: _T_contra, y: SupportsRDivMod[_T_contra, _T_co], /) -> _T_...
function eval (line 1305) | def eval(
function eval (line 1314) | def eval(
function exec (line 1324) | def exec(
function exec (line 1335) | def exec(
function exec (line 1346) | def exec(
class filter (line 1355) | class filter(Iterator[_T]):
method __new__ (line 1357) | def __new__(cls, function: None, iterable: Iterable[_T | None], /) -> ...
method __new__ (line 1359) | def __new__(cls, function: Callable[[_S], TypeGuard[_T]], iterable: It...
method __new__ (line 1361) | def __new__(cls, function: Callable[[_S], TypeIs[_T]], iterable: Itera...
method __new__ (line 1363) | def __new__(cls, function: Callable[[_T], Any], iterable: Iterable[_T]...
method __iter__ (line 1364) | def __iter__(self) -> Self: ...
method __next__ (line 1365) | def __next__(self) -> _T: ...
function format (line 1368) | def format(value: object, format_spec: str = "", /) -> str: ...
function getattr (line 1370) | def getattr(o: object, name: str, default: object = ..., /) -> object: ...
function globals (line 1372) | def globals() -> dict[str, object]: ...
function hasattr (line 1374) | def hasattr(obj: object, name: str, /) -> bool: ...
function hash (line 1376) | def hash(obj: object, /) -> int: ...
function hex (line 1380) | def hex(number: int | SupportsIndex, /) -> str: ...
function id (line 1382) | def id(obj: object, /) -> int: ...
function input (line 1384) | def input(prompt: object = "", /) -> str: ...
class _GetItemIterable (line 1386) | class _GetItemIterable(Protocol[_T_co]):
method __getitem__ (line 1387) | def __getitem__(self, i: int, /) -> _T_co: ...
function iter (line 1391) | def iter(object: SupportsIter[_SupportsNextT], /) -> _SupportsNextT: ...
function iter (line 1394) | def iter(object: _GetItemIterable[_T], /) -> Iterator[_T]: ...
function iter (line 1397) | def iter(object: Callable[[], _T | None], sentinel: None, /) -> Iterator...
function iter (line 1400) | def iter(object: Callable[[], _T], sentinel: object, /) -> Iterator[_T]:...
function isinstance (line 1409) | def isinstance(obj: object, class_or_tuple: _ClassInfo, /) -> bool: ...
function issubclass (line 1411) | def issubclass(cls: type, class_or_tuple: _ClassInfo, /) -> bool: ...
function len (line 1413) | def len(obj: Sized, /) -> int: ...
function locals (line 1418) | def locals() -> dict[str, object]: ...
class map (line 1420) | class map(Iterator[_S]):
method __new__ (line 1422) | def __new__(cls, func: Callable[[_T1], _S], iterable: Iterable[_T1], /...
method __new__ (line 1424) | def __new__(cls, func: Callable[[_T1, _T2], _S], iterable: Iterable[_T...
method __new__ (line 1426) | def __new__(
method __new__ (line 1430) | def __new__(
method __new__ (line 1440) | def __new__(
method __new__ (line 1451) | def __new__(
method __iter__ (line 1463) | def __iter__(self) -> Self: ...
method __next__ (line 1464) | def __next__(self) -> _S: ...
function max (line 1468) | def max(
function max (line 1473) | def max(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], SupportsR...
function max (line 1476) | def max(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = N...
function max (line 1479) | def max(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichCo...
function max (line 1482) | def max(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = N...
function max (line 1485) | def max(iterable: Iterable[_T1], /, *, key: Callable[[_T1], SupportsRich...
function min (line 1488) | def min(
function min (line 1493) | def min(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], SupportsR...
function min (line 1496) | def min(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = N...
function min (line 1499) | def min(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichCo...
function min (line 1502) | def min(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = N...
function min (line 1505) | def min(iterable: Iterable[_T1], /, *, key: Callable[[_T1], SupportsRich...
function next (line 1508) | def next(i: SupportsNext[_T], /) -> _T: ...
function next (line 1511) | def next(i: SupportsNext[_T], default: _VT, /) -> _T | _VT: ...
function oct (line 1513) | def oct(number: int | SupportsIndex, /) -> str: ...
function open (line 1520) | def open(
function open (line 1533) | def open(
function open (line 1546) | def open(
function open (line 1557) | def open(
function open (line 1568) | def open(
function open (line 1581) | def open(
function open (line 1594) | def open(
function ord (line 1605) | def ord(c: str | bytes | bytearray, /) -> int: ...
class _SupportsWriteAndFlush (line 1607) | class _SupportsWriteAndFlush(SupportsWrite[_T_contra], SupportsFlush, Pr...
function print (line 1611) | def print(
function print (line 1620) | def print(
class _SupportsPow2 (line 1627) | class _SupportsPow2(Protocol[_E, _T_co]):
method __pow__ (line 1628) | def __pow__(self, other: _E, /) -> _T_co: ...
class _SupportsPow3NoneOnly (line 1630) | class _SupportsPow3NoneOnly(Protocol[_E, _T_co]):
method __pow__ (line 1631) | def __pow__(self, other: _E, modulo: None = None, /) -> _T_co: ...
class _SupportsPow3 (line 1633) | class _SupportsPow3(Protocol[_E, _M, _T_co]):
method __pow__ (line 1634) | def __pow__(self, other: _E, modulo: _M, /) -> _T_co: ...
function pow (line 1644) | def pow(base: int, exp: int, mod: int) -> int: ...
function pow (line 1647) | def pow(base: int, exp: Literal[0], mod: None = None) -> Literal[1]: ...
function pow (line 1650) | def pow(base: int, exp: _PositiveInteger, mod: None = None) -> int: ...
function pow (line 1653) | def pow(base: int, exp: _NegativeInteger, mod: None = None) -> float: ...
function pow (line 1659) | def pow(base: int, exp: int, mod: None = None) -> Any: ...
function pow (line 1662) | def pow(base: _PositiveInteger, exp: float, mod: None = None) -> float: ...
function pow (line 1665) | def pow(base: _NegativeInteger, exp: float, mod: None = None) -> complex...
function pow (line 1668) | def pow(base: float, exp: int, mod: None = None) -> float: ...
function pow (line 1675) | def pow(base: float, exp: complex | _SupportsSomeKindOfPow, mod: None = ...
function pow (line 1678) | def pow(base: complex, exp: complex | _SupportsSomeKindOfPow, mod: None ...
function pow (line 1681) | def pow(base: _SupportsPow2[_E, _T_co], exp: _E, mod: None = None) -> _T...
function pow (line 1684) | def pow(base: _SupportsPow3NoneOnly[_E, _T_co], exp: _E, mod: None = Non...
function pow (line 1687) | def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ...
function pow (line 1690) | def pow(base: _SupportsSomeKindOfPow, exp: float, mod: None = None) -> A...
function pow (line 1693) | def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) ->...
class reversed (line 1697) | class reversed(Iterator[_T]):
method __new__ (line 1699) | def __new__(cls, sequence: Reversible[_T], /) -> Iterator[_T]: ... # ...
method __new__ (line 1701) | def __new__(cls, sequence: SupportsLenAndGetItem[_T], /) -> Iterator[_...
method __iter__ (line 1702) | def __iter__(self) -> Self: ...
method __next__ (line 1703) | def __next__(self) -> _T: ...
method __length_hint__ (line 1704) | def __length_hint__(self) -> int: ...
function repr (line 1707) | def repr(obj: object, /) -> str: ...
class _SupportsRound1 (line 1713) | class _SupportsRound1(Protocol[_T_co]):
method __round__ (line 1714) | def __round__(self) -> _T_co: ...
class _SupportsRound2 (line 1716) | class _SupportsRound2(Protocol[_T_co]):
method __round__ (line 1717) | def __round__(self, ndigits: int, /) -> _T_co: ...
function round (line 1721) | def round(number: _SupportsRound1[_T], ndigits: None = None) -> _T: ...
function round (line 1724) | def round(number: _SupportsRound2[_T], ndigits: SupportsIndex) -> _T: ...
function setattr (line 1729) | def setattr(obj: object, name: str, value: Any, /) -> None: ...
function sorted (line 1732) | def sorted(
function sorted (line 1737) | def sorted(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRic...
class _SupportsSumWithNoDefaultGiven (line 1742) | class _SupportsSumWithNoDefaultGiven(SupportsAdd[Any, Any], SupportsRAdd...
function sum (line 1752) | def sum(iterable: Iterable[bool], /, start: int = 0) -> int: ...
function sum (line 1755) | def sum(iterable: Iterable[_SupportsSumNoDefaultT], /) -> _SupportsSumNo...
function sum (line 1758) | def sum(iterable: Iterable[_AddableT1], /, start: _AddableT2) -> _Addabl...
function vars (line 1765) | def vars(object: type, /) -> types.MappingProxyType[str, Any]: ...
function vars (line 1768) | def vars(object: Any = ..., /) -> dict[str, Any]: ...
class zip (line 1770) | class zip(Iterator[_T_co]):
method __new__ (line 1773) | def __new__(cls, *, strict: bool = ...) -> zip[Any]: ...
method __new__ (line 1775) | def __new__(cls, iter1: Iterable[_T1], /, *, strict: bool = ...) -> zi...
method __new__ (line 1777) | def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], /, *, str...
method __new__ (line 1779) | def __new__(
method __new__ (line 1783) | def __new__(
method __new__ (line 1787) | def __new__(
method __new__ (line 1799) | def __new__(
method __new__ (line 1813) | def __new__(cls) -> zip[Any]: ...
method __new__ (line 1815) | def __new__(cls, iter1: Iterable[_T1], /) -> zip[tuple[_T1]]: ...
method __new__ (line 1817) | def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], /) -> zip...
method __new__ (line 1819) | def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: It...
method __new__ (line 1821) | def __new__(
method __new__ (line 1825) | def __new__(
method __new__ (line 1829) | def __new__(
method __iter__ (line 1841) | def __iter__(self) -> Self: ...
method __next__ (line 1842) | def __next__(self) -> _T_co: ...
function __import__ (line 1847) | def __import__(
function __build_class__ (line 1855) | def __build_class__(func: Callable[[], CellType | Any], name: str, /, *b...
class ellipsis (line 1861) | class ellipsis: ...
class BaseException (line 1865) | class BaseException:
method __init__ (line 1871) | def __init__(self, *args: object) -> None: ...
method __new__ (line 1872) | def __new__(cls, *args: Any, **kwds: Any) -> Self: ...
method __setstate__ (line 1873) | def __setstate__(self, state: dict[str, Any] | None, /) -> None: ...
method with_traceback (line 1874) | def with_traceback(self, tb: TracebackType | None, /) -> Self: ...
method add_note (line 1878) | def add_note(self, note: str, /) -> None: ...
class GeneratorExit (line 1880) | class GeneratorExit(BaseException): ...
class KeyboardInterrupt (line 1881) | class KeyboardInterrupt(BaseException): ...
class SystemExit (line 1883) | class SystemExit(BaseException):
class Exception (line 1886) | class Exception(BaseException): ...
class StopIteration (line 1888) | class StopIteration(Exception):
class OSError (line 1891) | class OSError(Exception):
class ArithmeticError (line 1905) | class ArithmeticError(Exception): ...
class AssertionError (line 1906) | class AssertionError(Exception): ...
class AttributeError (line 1908) | class AttributeError(Exception):
method __init__ (line 1910) | def __init__(self, *args: object, name: str | None = ..., obj: object ...
class BufferError (line 1914) | class BufferError(Exception): ...
class EOFError (line 1915) | class EOFError(Exception): ...
class ImportError (line 1917) | class ImportError(Exception):
method __init__ (line 1918) | def __init__(self, *args: object, name: str | None = ..., path: str | ...
class LookupError (line 1925) | class LookupError(Exception): ...
class MemoryError (line 1926) | class MemoryError(Exception): ...
class NameError (line 1928) | class NameError(Exception):
method __init__ (line 1930) | def __init__(self, *args: object, name: str | None = ...) -> None: ...
class ReferenceError (line 1933) | class ReferenceError(Exception): ...
class RuntimeError (line 1934) | class RuntimeError(Exception): ...
class StopAsyncIteration (line 1935) | class StopAsyncIteration(Exception): ...
class SyntaxError (line 1937) | class SyntaxError(Exception):
method __init__ (line 1951) | def __init__(self) -> None: ...
method __init__ (line 1953) | def __init__(self, msg: object, /) -> None: ...
method __init__ (line 1956) | def __init__(self, msg: str, info: tuple[str | None, int | None, int |...
method __init__ (line 1960) | def __init__(
class SystemError (line 1966) | class SystemError(Exception): ...
class TypeError (line 1967) | class TypeError(Exception): ...
class ValueError (line 1968) | class ValueError(Exception): ...
class FloatingPointError (line 1969) | class FloatingPointError(ArithmeticError): ...
class OverflowError (line 1970) | class OverflowError(ArithmeticError): ...
class ZeroDivisionError (line 1971) | class ZeroDivisionError(ArithmeticError): ...
class ModuleNotFoundError (line 1972) | class ModuleNotFoundError(ImportError): ...
class IndexError (line 1973) | class IndexError(LookupError): ...
class KeyError (line 1974) | class KeyError(LookupError): ...
class UnboundLocalError (line 1975) | class UnboundLocalError(NameError): ...
class BlockingIOError (line 1977) | class BlockingIOError(OSError):
class ChildProcessError (line 1980) | class ChildProcessError(OSError): ...
class ConnectionError (line 1981) | class ConnectionError(OSError): ...
class BrokenPipeError (line 1982) | class BrokenPipeError(ConnectionError): ...
class ConnectionAbortedError (line 1983) | class ConnectionAbortedError(ConnectionError): ...
class ConnectionRefusedError (line 1984) | class ConnectionRefusedError(ConnectionError): ...
class ConnectionResetError (line 1985) | class ConnectionResetError(ConnectionError): ...
class FileExistsError (line 1986) | class FileExistsError(OSError): ...
class FileNotFoundError (line 1987) | class FileNotFoundError(OSError): ...
class InterruptedError (line 1988) | class InterruptedError(OSError): ...
class IsADirectoryError (line 1989) | class IsADirectoryError(OSError): ...
class NotADirectoryError (line 1990) | class NotADirectoryError(OSError): ...
class PermissionError (line 1991) | class PermissionError(OSError): ...
class ProcessLookupError (line 1992) | class ProcessLookupError(OSError): ...
class TimeoutError (line 1993) | class TimeoutError(OSError): ...
class NotImplementedError (line 1994) | class NotImplementedError(RuntimeError): ...
class RecursionError (line 1995) | class RecursionError(RuntimeError): ...
class IndentationError (line 1996) | class IndentationError(SyntaxError): ...
class TabError (line 1997) | class TabError(IndentationError): ...
class UnicodeError (line 1998) | class UnicodeError(ValueError): ...
class UnicodeDecodeError (line 2000) | class UnicodeDecodeError(UnicodeError):
method __init__ (line 2006) | def __init__(self, encoding: str, object: ReadableBuffer, start: int, ...
class UnicodeEncodeError (line 2008) | class UnicodeEncodeError(UnicodeError):
method __init__ (line 2014) | def __init__(self, encoding: str, object: str, start: int, end: int, r...
class UnicodeTranslateError (line 2016) | class UnicodeTranslateError(UnicodeError):
method __init__ (line 2022) | def __init__(self, object: str, start: int, end: int, reason: str, /) ...
class Warning (line 2024) | class Warning(Exception): ...
class UserWarning (line 2025) | class UserWarning(Warning): ...
class DeprecationWarning (line 2026) | class DeprecationWarning(Warning): ...
class SyntaxWarning (line 2027) | class SyntaxWarning(Warning): ...
class RuntimeWarning (line 2028) | class RuntimeWarning(Warning): ...
class FutureWarning (line 2029) | class FutureWarning(Warning): ...
class PendingDeprecationWarning (line 2030) | class PendingDeprecationWarning(Warning): ...
class ImportWarning (line 2031) | class ImportWarning(Warning): ...
class UnicodeWarning (line 2032) | class UnicodeWarning(Warning): ...
class BytesWarning (line 2033) | class BytesWarning(Warning): ...
class ResourceWarning (line 2034) | class ResourceWarning(Warning): ...
class EncodingWarning (line 2037) | class EncodingWarning(Warning): ...
class BaseExceptionGroup (line 2046) | class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]):
method __new__ (line 2047) | def __new__(cls, message: str, exceptions: Sequence[_BaseExceptionT_co...
method __init__ (line 2048) | def __init__(self, message: str, exceptions: Sequence[_BaseExceptionT_...
method message (line 2050) | def message(self) -> str: ...
method exceptions (line 2052) | def exceptions(self) -> tuple[_BaseExceptionT_co | BaseExceptionGroup[...
method subgroup (line 2054) | def subgroup(
method subgroup (line 2058) | def subgroup(
method subgroup (line 2062) | def subgroup(
method split (line 2066) | def split(
method split (line 2070) | def split(
method split (line 2074) | def split(
method derive (line 2079) | def derive(self, excs: Sequence[_ExceptionT], /) -> ExceptionGroup[_Ex...
method derive (line 2081) | def derive(self, excs: Sequence[_BaseExceptionT], /) -> BaseExceptionG...
method __class_getitem__ (line 2082) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class ExceptionGroup (line 2084) | class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
method __new__ (line 2085) | def __new__(cls, message: str, exceptions: Sequence[_ExceptionT_co], /...
method __init__ (line 2086) | def __init__(self, message: str, exceptions: Sequence[_ExceptionT_co],...
method exceptions (line 2088) | def exceptions(self) -> tuple[_ExceptionT_co | ExceptionGroup[_Excepti...
method subgroup (line 2091) | def subgroup(
method subgroup (line 2095) | def subgroup(self, condition: Callable[[_ExceptionT_co | Self], bool],...
method split (line 2097) | def split(
method split (line 2101) | def split(
class PythonFinalizationError (line 2106) | class PythonFinalizationError(RuntimeError): ...
FILE: mypy/typeshed/stdlib/bz2.pyi
class _ReadableFileobj (line 15) | class _ReadableFileobj(_compression._Reader, Protocol): ...
class _WritableFileobj (line 17) | class _WritableFileobj(Protocol):
method write (line 18) | def write(self, b: bytes, /) -> object: ...
function compress (line 23) | def compress(data: ReadableBuffer, compresslevel: int = 9) -> bytes: ...
function decompress (line 24) | def decompress(data: ReadableBuffer) -> bytes: ...
function open (line 32) | def open(
function open (line 41) | def open(
function open (line 50) | def open(
function open (line 59) | def open(
function open (line 68) | def open(
function open (line 77) | def open(
function open (line 86) | def open(
class BZ2File (line 95) | class BZ2File(BaseStream, IO[bytes]):
method __enter__ (line 96) | def __enter__(self) -> Self: ...
method __init__ (line 99) | def __init__(self, filename: _WritableFileobj, mode: _WriteBinaryMode,...
method __init__ (line 101) | def __init__(self, filename: _ReadableFileobj, mode: _ReadBinaryMode =...
method __init__ (line 103) | def __init__(
method __init__ (line 108) | def __init__(
method __init__ (line 112) | def __init__(
method __init__ (line 116) | def __init__(
method read (line 124) | def read(self, size: int | None = -1) -> bytes: ...
method read1 (line 125) | def read1(self, size: int = -1) -> bytes: ...
method readline (line 126) | def readline(self, size: SupportsIndex = -1) -> bytes: ... # type: ig...
method readinto (line 127) | def readinto(self, b: WriteableBuffer) -> int: ...
method readlines (line 128) | def readlines(self, size: SupportsIndex = -1) -> list[bytes]: ...
method peek (line 129) | def peek(self, n: int = 0) -> bytes: ...
method seek (line 130) | def seek(self, offset: int, whence: int = 0) -> int: ...
method write (line 131) | def write(self, data: ReadableBuffer) -> int: ...
method writelines (line 132) | def writelines(self, seq: Iterable[ReadableBuffer]) -> None: ...
FILE: mypy/typeshed/stdlib/cProfile.pyi
function run (line 10) | def run(statement: str, filename: str | None = None, sort: str | int = -...
function runctx (line 11) | def runctx(
class Profile (line 19) | class Profile(_lsprof.Profiler):
method print_stats (line 21) | def print_stats(self, sort: str | int = -1) -> None: ...
method dump_stats (line 22) | def dump_stats(self, file: StrOrBytesPath) -> None: ...
method create_stats (line 23) | def create_stats(self) -> None: ...
method snapshot_stats (line 24) | def snapshot_stats(self) -> None: ...
method run (line 25) | def run(self, cmd: str) -> Self: ...
method runctx (line 26) | def runctx(self, cmd: str, globals: dict[str, Any], locals: Mapping[st...
method runcall (line 27) | def runcall(self, func: Callable[_P, _T], /, *args: _P.args, **kw: _P....
method __enter__ (line 28) | def __enter__(self) -> Self: ...
method __exit__ (line 29) | def __exit__(self, *exc_info: Unused) -> None: ...
function label (line 31) | def label(code: str | CodeType) -> _Label: ... # undocumented
FILE: mypy/typeshed/stdlib/calendar.pyi
class IllegalMonthError (line 59) | class IllegalMonthError(ValueError):
method __init__ (line 60) | def __init__(self, month: int) -> None: ...
class IllegalWeekdayError (line 62) | class IllegalWeekdayError(ValueError):
method __init__ (line 63) | def __init__(self, weekday: int) -> None: ...
function isleap (line 65) | def isleap(year: int) -> bool: ...
function leapdays (line 66) | def leapdays(y1: int, y2: int) -> int: ...
function weekday (line 67) | def weekday(year: int, month: int, day: int) -> int: ...
function monthrange (line 68) | def monthrange(year: int, month: int) -> tuple[int, int]: ...
class Calendar (line 70) | class Calendar:
method __init__ (line 72) | def __init__(self, firstweekday: int = 0) -> None: ...
method getfirstweekday (line 73) | def getfirstweekday(self) -> int: ...
method setfirstweekday (line 74) | def setfirstweekday(self, firstweekday: int) -> None: ...
method iterweekdays (line 75) | def iterweekdays(self) -> Iterable[int]: ...
method itermonthdates (line 76) | def itermonthdates(self, year: int, month: int) -> Iterable[datetime.d...
method itermonthdays2 (line 77) | def itermonthdays2(self, year: int, month: int) -> Iterable[tuple[int,...
method itermonthdays (line 78) | def itermonthdays(self, year: int, month: int) -> Iterable[int]: ...
method monthdatescalendar (line 79) | def monthdatescalendar(self, year: int, month: int) -> list[list[datet...
method monthdays2calendar (line 80) | def monthdays2calendar(self, year: int, month: int) -> list[list[tuple...
method monthdayscalendar (line 81) | def monthdayscalendar(self, year: int, month: int) -> list[list[int]]:...
method yeardatescalendar (line 82) | def yeardatescalendar(self, year: int, width: int = 3) -> list[list[li...
method yeardays2calendar (line 83) | def yeardays2calendar(self, year: int, width: int = 3) -> list[list[li...
method yeardayscalendar (line 84) | def yeardayscalendar(self, year: int, width: int = 3) -> list[list[lis...
method itermonthdays3 (line 85) | def itermonthdays3(self, year: int, month: int) -> Iterable[tuple[int,...
method itermonthdays4 (line 86) | def itermonthdays4(self, year: int, month: int) -> Iterable[tuple[int,...
class TextCalendar (line 88) | class TextCalendar(Calendar):
method prweek (line 89) | def prweek(self, theweek: int, width: int) -> None: ...
method formatday (line 90) | def formatday(self, day: int, weekday: int, width: int) -> str: ...
method formatweek (line 91) | def formatweek(self, theweek: int, width: int) -> str: ...
method formatweekday (line 92) | def formatweekday(self, day: int, width: int) -> str: ...
method formatweekheader (line 93) | def formatweekheader(self, width: int) -> str: ...
method formatmonthname (line 94) | def formatmonthname(self, theyear: int, themonth: int, width: int, wit...
method prmonth (line 95) | def prmonth(self, theyear: int, themonth: int, w: int = 0, l: int = 0)...
method formatmonth (line 96) | def formatmonth(self, theyear: int, themonth: int, w: int = 0, l: int ...
method formatyear (line 97) | def formatyear(self, theyear: int, w: int = 2, l: int = 1, c: int = 6,...
method pryear (line 98) | def pryear(self, theyear: int, w: int = 0, l: int = 0, c: int = 6, m: ...
function firstweekday (line 100) | def firstweekday() -> int: ...
function monthcalendar (line 101) | def monthcalendar(year: int, month: int) -> list[list[int]]: ...
function prweek (line 102) | def prweek(theweek: int, width: int) -> None: ...
function week (line 103) | def week(theweek: int, width: int) -> str: ...
function weekheader (line 104) | def weekheader(width: int) -> str: ...
function prmonth (line 105) | def prmonth(theyear: int, themonth: int, w: int = 0, l: int = 0) -> None...
function month (line 106) | def month(theyear: int, themonth: int, w: int = 0, l: int = 0) -> str: ...
function calendar (line 107) | def calendar(theyear: int, w: int = 2, l: int = 1, c: int = 6, m: int = ...
function prcal (line 108) | def prcal(theyear: int, w: int = 0, l: int = 0, c: int = 6, m: int = 3) ...
class HTMLCalendar (line 110) | class HTMLCalendar(Calendar):
method formatday (line 118) | def formatday(self, day: int, weekday: int) -> str: ...
method formatweek (line 119) | def formatweek(self, theweek: int) -> str: ...
method formatweekday (line 120) | def formatweekday(self, day: int) -> str: ...
method formatweekheader (line 121) | def formatweekheader(self) -> str: ...
method formatmonthname (line 122) | def formatmonthname(self, theyear: int, themonth: int, withyear: bool ...
method formatmonth (line 123) | def formatmonth(self, theyear: int, themonth: int, withyear: bool = Tr...
method formatyear (line 124) | def formatyear(self, theyear: int, width: int = 3) -> str: ...
method formatyearpage (line 125) | def formatyearpage(
class different_locale (line 129) | class different_locale:
method __init__ (line 130) | def __init__(self, locale: _LocaleType) -> None: ...
method __enter__ (line 131) | def __enter__(self) -> None: ...
method __exit__ (line 132) | def __exit__(self, *args: Unused) -> None: ...
class LocaleTextCalendar (line 134) | class LocaleTextCalendar(TextCalendar):
method __init__ (line 135) | def __init__(self, firstweekday: int = 0, locale: _LocaleType | None =...
class LocaleHTMLCalendar (line 137) | class LocaleHTMLCalendar(HTMLCalendar):
method __init__ (line 138) | def __init__(self, firstweekday: int = 0, locale: _LocaleType | None =...
method formatweekday (line 139) | def formatweekday(self, day: int) -> str: ...
method formatmonthname (line 140) | def formatmonthname(self, theyear: int, themonth: int, withyear: bool ...
function setfirstweekday (line 144) | def setfirstweekday(firstweekday: int) -> None: ...
function format (line 145) | def format(cols: int, colwidth: int = 20, spacing: int = 6) -> str: ...
function formatstring (line 146) | def formatstring(cols: int, colwidth: int = 20, spacing: int = 6) -> str...
function timegm (line 147) | def timegm(tuple: tuple[int, ...] | struct_time) -> int: ...
class Month (line 156) | class Month(enum.IntEnum):
class Day (line 183) | class Day(enum.IntEnum):
FILE: mypy/typeshed/stdlib/cgi.pyi
function parse (line 24) | def parse(
function parse_multipart (line 31) | def parse_multipart(
class _Environ (line 35) | class _Environ(Protocol):
method __getitem__ (line 36) | def __getitem__(self, k: str, /) -> str: ...
method keys (line 37) | def keys(self) -> Iterable[str]: ...
function parse_header (line 39) | def parse_header(line: str) -> tuple[str, dict[str, str]]: ...
function test (line 40) | def test(environ: _Environ = ...) -> None: ...
function print_environ (line 41) | def print_environ(environ: _Environ = ...) -> None: ...
function print_form (line 42) | def print_form(form: dict[str, Any]) -> None: ...
function print_directory (line 43) | def print_directory() -> None: ...
function print_environ_usage (line 44) | def print_environ_usage() -> None: ...
class MiniFieldStorage (line 46) | class MiniFieldStorage:
method __init__ (line 58) | def __init__(self, name: Any, value: Any) -> None: ...
class FieldStorage (line 60) | class FieldStorage:
method __init__ (line 83) | def __init__(
method __enter__ (line 97) | def __enter__(self) -> Self: ...
method __exit__ (line 98) | def __exit__(self, *args: Unused) -> None: ...
method __iter__ (line 99) | def __iter__(self) -> Iterator[str]: ...
method __getitem__ (line 100) | def __getitem__(self, key: str) -> Any: ...
method getvalue (line 101) | def getvalue(self, key: str, default: Any = None) -> Any: ...
method getfirst (line 102) | def getfirst(self, key: str, default: Any = None) -> Any: ...
method getlist (line 103) | def getlist(self, key: str) -> _list[Any]: ...
method keys (line 104) | def keys(self) -> _list[str]: ...
method __contains__ (line 105) | def __contains__(self, key: str) -> bool: ...
method __len__ (line 106) | def __len__(self) -> int: ...
method __bool__ (line 107) | def __bool__(self) -> bool: ...
method __del__ (line 108) | def __del__(self) -> None: ...
method make_file (line 110) | def make_file(self) -> IO[Any]: ...
function print_exception (line 112) | def print_exception(
function print_arguments (line 118) | def print_arguments() -> None: ...
FILE: mypy/typeshed/stdlib/cgitb.pyi
function reset (line 8) | def reset() -> str: ... # undocumented
function small (line 9) | def small(text: str) -> str: ... # undocumented
function strong (line 10) | def strong(text: str) -> str: ... # undocumented
function grey (line 11) | def grey(text: str) -> str: ... # undocumented
function lookup (line 12) | def lookup(name: str, frame: FrameType, locals: dict[str, Any]) -> tuple...
function scanvars (line 13) | def scanvars(
function html (line 16) | def html(einfo: OptExcInfo, context: int = 5) -> str: ...
function text (line 17) | def text(einfo: OptExcInfo, context: int = 5) -> str: ...
class Hook (line 19) | class Hook: # undocumented
method __init__ (line 20) | def __init__(
method __call__ (line 28) | def __call__(self, etype: type[BaseException] | None, evalue: BaseExce...
method handle (line 29) | def handle(self, info: OptExcInfo | None = None) -> None: ...
function handler (line 31) | def handler(info: OptExcInfo | None = None) -> None: ...
function enable (line 32) | def enable(display: int = 1, logdir: StrOrBytesPath | None = None, conte...
FILE: mypy/typeshed/stdlib/chunk.pyi
class Chunk (line 3) | class Chunk:
method __init__ (line 12) | def __init__(self, file: IO[bytes], align: bool = True, bigendian: boo...
method getname (line 13) | def getname(self) -> bytes: ...
method getsize (line 14) | def getsize(self) -> int: ...
method close (line 15) | def close(self) -> None: ...
method isatty (line 16) | def isatty(self) -> bool: ...
method seek (line 17) | def seek(self, pos: int, whence: int = 0) -> None: ...
method tell (line 18) | def tell(self) -> int: ...
method read (line 19) | def read(self, size: int = -1) -> bytes: ...
method skip (line 20) | def skip(self) -> None: ...
FILE: mypy/typeshed/stdlib/cmath.pyi
function acos (line 14) | def acos(z: _C, /) -> complex: ...
function acosh (line 15) | def acosh(z: _C, /) -> complex: ...
function asin (line 16) | def asin(z: _C, /) -> complex: ...
function asinh (line 17) | def asinh(z: _C, /) -> complex: ...
function atan (line 18) | def atan(z: _C, /) -> complex: ...
function atanh (line 19) | def atanh(z: _C, /) -> complex: ...
function cos (line 20) | def cos(z: _C, /) -> complex: ...
function cosh (line 21) | def cosh(z: _C, /) -> complex: ...
function exp (line 22) | def exp(z: _C, /) -> complex: ...
function isclose (line 23) | def isclose(a: _C, b: _C, *, rel_tol: SupportsFloat = 1e-09, abs_tol: Su...
function isinf (line 24) | def isinf(z: _C, /) -> bool: ...
function isnan (line 25) | def isnan(z: _C, /) -> bool: ...
function log (line 26) | def log(x: _C, base: _C = ..., /) -> complex: ...
function log10 (line 27) | def log10(z: _C, /) -> complex: ...
function phase (line 28) | def phase(z: _C, /) -> float: ...
function polar (line 29) | def polar(z: _C, /) -> tuple[float, float]: ...
function rect (line 30) | def rect(r: float, phi: float, /) -> complex: ...
function sin (line 31) | def sin(z: _C, /) -> complex: ...
function sinh (line 32) | def sinh(z: _C, /) -> complex: ...
function sqrt (line 33) | def sqrt(z: _C, /) -> complex: ...
function tan (line 34) | def tan(z: _C, /) -> complex: ...
function tanh (line 35) | def tanh(z: _C, /) -> complex: ...
function isfinite (line 36) | def isfinite(z: _C, /) -> bool: ...
FILE: mypy/typeshed/stdlib/cmd.pyi
class Cmd (line 10) | class Cmd:
method __init__ (line 26) | def __init__(self, completekey: str = "tab", stdin: IO[str] | None = N...
method cmdloop (line 28) | def cmdloop(self, intro: Any | None = None) -> None: ...
method precmd (line 29) | def precmd(self, line: str) -> str: ...
method postcmd (line 30) | def postcmd(self, stop: bool, line: str) -> bool: ...
method preloop (line 31) | def preloop(self) -> None: ...
method postloop (line 32) | def postloop(self) -> None: ...
method parseline (line 33) | def parseline(self, line: str) -> tuple[str | None, str | None, str]: ...
method onecmd (line 34) | def onecmd(self, line: str) -> bool: ...
method emptyline (line 35) | def emptyline(self) -> bool: ...
method default (line 36) | def default(self, line: str) -> None: ...
method completedefault (line 37) | def completedefault(self, *ignored: Any) -> list[str]: ...
method completenames (line 38) | def completenames(self, text: str, *ignored: Any) -> list[str]: ...
method complete (line 40) | def complete(self, text: str, state: int) -> list[str] | None: ...
method get_names (line 41) | def get_names(self) -> list[str]: ...
method complete_help (line 43) | def complete_help(self, *args: Any) -> list[str]: ...
method do_help (line 44) | def do_help(self, arg: str) -> bool | None: ...
method print_topics (line 45) | def print_topics(self, header: str, cmds: list[str] | None, cmdlen: An...
method columnize (line 46) | def columnize(self, list: list[str] | None, displaywidth: int = 80) ->...
FILE: mypy/typeshed/stdlib/code.pyi
class InteractiveInterpreter (line 9) | class InteractiveInterpreter:
method __init__ (line 12) | def __init__(self, locals: Mapping[str, Any] | None = None) -> None: ...
method runsource (line 13) | def runsource(self, source: str, filename: str = "", symbol: st...
method runcode (line 14) | def runcode(self, code: CodeType) -> None: ...
method showsyntaxerror (line 16) | def showsyntaxerror(self, filename: str | None = None, *, source: str ...
method showsyntaxerror (line 18) | def showsyntaxerror(self, filename: str | None = None) -> None: ...
method showtraceback (line 20) | def showtraceback(self) -> None: ...
method write (line 21) | def write(self, data: str) -> None: ...
class InteractiveConsole (line 23) | class InteractiveConsole(InteractiveInterpreter):
method __init__ (line 27) | def __init__(
method push (line 30) | def push(self, line: str, filename: str | None = None) -> bool: ...
method __init__ (line 32) | def __init__(self, locals: Mapping[str, Any] | None = None, filename: ...
method push (line 33) | def push(self, line: str) -> bool: ...
method interact (line 35) | def interact(self, banner: str | None = None, exitmsg: str | None = No...
method resetbuffer (line 36) | def resetbuffer(self) -> None: ...
method raw_input (line 37) | def raw_input(self, prompt: str = "") -> str: ...
function interact (line 40) | def interact(
function interact (line 49) | def interact(
function compile_command (line 56) | def compile_command(source: str, filename: str = "", symbol: str ...
FILE: mypy/typeshed/stdlib/codecs.pyi
class _WritableStream (line 61) | class _WritableStream(Protocol):
method write (line 62) | def write(self, data: bytes, /) -> object: ...
method seek (line 63) | def seek(self, offset: int, whence: int, /) -> object: ...
method close (line 64) | def close(self) -> object: ...
class _ReadableStream (line 66) | class _ReadableStream(Protocol):
method read (line 67) | def read(self, size: int = ..., /) -> bytes: ...
method seek (line 68) | def seek(self, offset: int, whence: int, /) -> object: ...
method close (line 69) | def close(self) -> object: ...
class _Stream (line 71) | class _Stream(_WritableStream, _ReadableStream, Protocol): ...
class _Encoder (line 79) | class _Encoder(Protocol):
method __call__ (line 80) | def __call__(self, input: str, errors: str = ..., /) -> tuple[bytes, i...
class _Decoder (line 82) | class _Decoder(Protocol):
method __call__ (line 83) | def __call__(self, input: ReadableBuffer, errors: str = ..., /) -> tup...
class _StreamReader (line 85) | class _StreamReader(Protocol):
method __call__ (line 86) | def __call__(self, stream: _ReadableStream, errors: str = ..., /) -> S...
class _StreamWriter (line 88) | class _StreamWriter(Protocol):
method __call__ (line 89) | def __call__(self, stream: _WritableStream, errors: str = ..., /) -> S...
class _IncrementalEncoder (line 91) | class _IncrementalEncoder(Protocol):
method __call__ (line 92) | def __call__(self, errors: str = ...) -> IncrementalEncoder: ...
class _IncrementalDecoder (line 94) | class _IncrementalDecoder(Protocol):
method __call__ (line 95) | def __call__(self, errors: str = ...) -> IncrementalDecoder: ...
class CodecInfo (line 97) | class CodecInfo(tuple[_Encoder, _Decoder, _StreamReader, _StreamWriter]):
method encode (line 100) | def encode(self) -> _Encoder: ...
method decode (line 102) | def decode(self) -> _Decoder: ...
method streamreader (line 104) | def streamreader(self) -> _StreamReader: ...
method streamwriter (line 106) | def streamwriter(self) -> _StreamWriter: ...
method incrementalencoder (line 108) | def incrementalencoder(self) -> _IncrementalEncoder: ...
method incrementaldecoder (line 110) | def incrementaldecoder(self) -> _IncrementalDecoder: ...
method __new__ (line 112) | def __new__(
function getencoder (line 125) | def getencoder(encoding: str) -> _Encoder: ...
function getdecoder (line 126) | def getdecoder(encoding: str) -> _Decoder: ...
function getincrementalencoder (line 127) | def getincrementalencoder(encoding: str) -> _IncrementalEncoder: ...
function getincrementaldecoder (line 128) | def getincrementaldecoder(encoding: str) -> _IncrementalDecoder: ...
function getreader (line 129) | def getreader(encoding: str) -> _StreamReader: ...
function getwriter (line 130) | def getwriter(encoding: str) -> _StreamWriter: ...
function open (line 131) | def open(
function EncodedFile (line 134) | def EncodedFile(file: _Stream, data_encoding: str, file_encoding: str | ...
function iterencode (line 135) | def iterencode(iterator: Iterable[str], encoding: str, errors: str = "st...
function iterdecode (line 136) | def iterdecode(iterator: Iterable[bytes], encoding: str, errors: str = "...
function strict_errors (line 149) | def strict_errors(exception: UnicodeError, /) -> tuple[str | bytes, int]...
function replace_errors (line 150) | def replace_errors(exception: UnicodeError, /) -> tuple[str | bytes, int...
function ignore_errors (line 151) | def ignore_errors(exception: UnicodeError, /) -> tuple[str | bytes, int]...
function xmlcharrefreplace_errors (line 152) | def xmlcharrefreplace_errors(exception: UnicodeError, /) -> tuple[str | ...
function backslashreplace_errors (line 153) | def backslashreplace_errors(exception: UnicodeError, /) -> tuple[str | b...
function namereplace_errors (line 154) | def namereplace_errors(exception: UnicodeError, /) -> tuple[str | bytes,...
class Codec (line 156) | class Codec:
method encode (line 159) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 160) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 162) | class IncrementalEncoder:
method __init__ (line 164) | def __init__(self, errors: str = "strict") -> None: ...
method encode (line 166) | def encode(self, input: str, final: bool = False) -> bytes: ...
method reset (line 167) | def reset(self) -> None: ...
method getstate (line 169) | def getstate(self) -> int | str: ...
method setstate (line 170) | def setstate(self, state: int | str) -> None: ...
class IncrementalDecoder (line 172) | class IncrementalDecoder:
method __init__ (line 174) | def __init__(self, errors: str = "strict") -> None: ...
method decode (line 176) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
method reset (line 177) | def reset(self) -> None: ...
method getstate (line 178) | def getstate(self) -> tuple[bytes, int]: ...
method setstate (line 179) | def setstate(self, state: tuple[bytes, int]) -> None: ...
class BufferedIncrementalEncoder (line 182) | class BufferedIncrementalEncoder(IncrementalEncoder):
method __init__ (line 184) | def __init__(self, errors: str = "strict") -> None: ...
method _buffer_encode (line 186) | def _buffer_encode(self, input: str, errors: str, final: bool) -> tupl...
method encode (line 187) | def encode(self, input: str, final: bool = False) -> bytes: ...
class BufferedIncrementalDecoder (line 189) | class BufferedIncrementalDecoder(IncrementalDecoder):
method __init__ (line 191) | def __init__(self, errors: str = "strict") -> None: ...
method _buffer_decode (line 193) | def _buffer_decode(self, input: ReadableBuffer, errors: str, final: bo...
method decode (line 194) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 198) | class StreamWriter(Codec):
method __init__ (line 201) | def __init__(self, stream: _WritableStream, errors: str = "strict") ->...
method write (line 202) | def write(self, object: str) -> None: ...
method writelines (line 203) | def writelines(self, list: Iterable[str]) -> None: ...
method reset (line 204) | def reset(self) -> None: ...
method seek (line 205) | def seek(self, offset: int, whence: int = 0) -> None: ...
method __enter__ (line 206) | def __enter__(self) -> Self: ...
method __exit__ (line 207) | def __exit__(self, type: type[BaseException] | None, value: BaseExcept...
method __getattr__ (line 208) | def __getattr__(self, name: str, getattr: Callable[[Any, str], Any] = ...
class StreamReader (line 210) | class StreamReader(Codec):
method __init__ (line 215) | def __init__(self, stream: _ReadableStream, errors: str = "strict") ->...
method read (line 216) | def read(self, size: int = -1, chars: int = -1, firstline: bool = Fals...
method readline (line 217) | def readline(self, size: int | None = None, keepends: bool = True) -> ...
method readlines (line 218) | def readlines(self, sizehint: int | None = None, keepends: bool = True...
method reset (line 219) | def reset(self) -> None: ...
method seek (line 220) | def seek(self, offset: int, whence: int = 0) -> None: ...
method __enter__ (line 221) | def __enter__(self) -> Self: ...
method __exit__ (line 222) | def __exit__(self, type: type[BaseException] | None, value: BaseExcept...
method __iter__ (line 223) | def __iter__(self) -> Self: ...
method __next__ (line 224) | def __next__(self) -> str: ...
method __getattr__ (line 225) | def __getattr__(self, name: str, getattr: Callable[[Any, str], Any] = ...
class StreamReaderWriter (line 229) | class StreamReaderWriter(TextIO):
method __init__ (line 231) | def __init__(self, stream: _Stream, Reader: _StreamReader, Writer: _St...
method read (line 232) | def read(self, size: int = -1) -> str: ...
method readline (line 233) | def readline(self, size: int | None = None) -> str: ...
method readlines (line 234) | def readlines(self, sizehint: int | None = None) -> list[str]: ...
method __next__ (line 235) | def __next__(self) -> str: ...
method __iter__ (line 236) | def __iter__(self) -> Self: ...
method write (line 237) | def write(self, data: str) -> None: ... # type: ignore[override]
method writelines (line 238) | def writelines(self, list: Iterable[str]) -> None: ...
method reset (line 239) | def reset(self) -> None: ...
method seek (line 240) | def seek(self, offset: int, whence: int = 0) -> None: ... # type: ign...
method __enter__ (line 241) | def __enter__(self) -> Self: ...
method __exit__ (line 242) | def __exit__(self, type: type[BaseException] | None, value: BaseExcept...
method __getattr__ (line 243) | def __getattr__(self, name: str) -> Any: ...
method close (line 246) | def close(self) -> None: ...
method fileno (line 247) | def fileno(self) -> int: ...
method flush (line 248) | def flush(self) -> None: ...
method isatty (line 249) | def isatty(self) -> bool: ...
method readable (line 250) | def readable(self) -> bool: ...
method truncate (line 251) | def truncate(self, size: int | None = ...) -> int: ...
method seekable (line 252) | def seekable(self) -> bool: ...
method tell (line 253) | def tell(self) -> int: ...
method writable (line 254) | def writable(self) -> bool: ...
class StreamRecoder (line 256) | class StreamRecoder(BinaryIO):
method __init__ (line 259) | def __init__(
method read (line 268) | def read(self, size: int = -1) -> bytes: ...
method readline (line 269) | def readline(self, size: int | None = None) -> bytes: ...
method readlines (line 270) | def readlines(self, sizehint: int | None = None) -> list[bytes]: ...
method __next__ (line 271) | def __next__(self) -> bytes: ...
method __iter__ (line 272) | def __iter__(self) -> Self: ...
method write (line 274) | def write(self, data: bytes) -> None: ... # type: ignore[override]
method writelines (line 275) | def writelines(self, list: Iterable[bytes]) -> None: ... # type: igno...
method reset (line 276) | def reset(self) -> None: ...
method __getattr__ (line 277) | def __getattr__(self, name: str) -> Any: ...
method __enter__ (line 278) | def __enter__(self) -> Self: ...
method __exit__ (line 279) | def __exit__(self, type: type[BaseException] | None, value: BaseExcept...
method seek (line 280) | def seek(self, offset: int, whence: int = 0) -> None: ... # type: ign...
method close (line 283) | def close(self) -> None: ...
method fileno (line 284) | def fileno(self) -> int: ...
method flush (line 285) | def flush(self) -> None: ...
method isatty (line 286) | def isatty(self) -> bool: ...
method readable (line 287) | def readable(self) -> bool: ...
method truncate (line 288) | def truncate(self, size: int | None = ...) -> int: ...
method seekable (line 289) | def seekable(self) -> bool: ...
method tell (line 290) | def tell(self) -> int: ...
method writable (line 291) | def writable(self) -> bool: ...
FILE: mypy/typeshed/stdlib/codeop.pyi
function compile_command (line 6) | def compile_command(source: str, filename: str = "", symbol: str ...
class Compile (line 8) | class Compile:
method __call__ (line 11) | def __call__(self, source: str, filename: str, symbol: str, flags: int...
method __call__ (line 13) | def __call__(self, source: str, filename: str, symbol: str) -> CodeTyp...
class CommandCompiler (line 15) | class CommandCompiler:
method __call__ (line 17) | def __call__(self, source: str, filename: str = "", symbol: str...
FILE: mypy/typeshed/stdlib/collections/__init__.pyi
function namedtuple (line 38) | def namedtuple(
class UserDict (line 47) | class UserDict(MutableMapping[_KT, _VT]):
method __init__ (line 51) | def __init__(self, dict: None = None, /) -> None: ...
method __init__ (line 53) | def __init__(
method __init__ (line 57) | def __init__(self, dict: SupportsKeysAndGetItem[_KT, _VT], /) -> None:...
method __init__ (line 59) | def __init__(
method __init__ (line 66) | def __init__(self, iterable: Iterable[tuple[_KT, _VT]], /) -> None: ...
method __init__ (line 68) | def __init__(
method __init__ (line 75) | def __init__(self: UserDict[str, str], iterable: Iterable[list[str]], ...
method __init__ (line 77) | def __init__(self: UserDict[bytes, bytes], iterable: Iterable[list[byt...
method __len__ (line 78) | def __len__(self) -> int: ...
method __getitem__ (line 79) | def __getitem__(self, key: _KT) -> _VT: ...
method __setitem__ (line 80) | def __setitem__(self, key: _KT, item: _VT) -> None: ...
method __delitem__ (line 81) | def __delitem__(self, key: _KT) -> None: ...
method __iter__ (line 82) | def __iter__(self) -> Iterator[_KT]: ...
method __contains__ (line 83) | def __contains__(self, key: object) -> bool: ...
method __repr__ (line 84) | def __repr__(self) -> str: ...
method copy (line 85) | def copy(self) -> Self: ...
method __copy__ (line 86) | def __copy__(self) -> Self: ...
method fromkeys (line 93) | def fromkeys(cls, iterable: Iterable[_T], value: None = None) -> UserD...
method fromkeys (line 96) | def fromkeys(cls, iterable: Iterable[_T], value: _S) -> UserDict[_T, _...
method __or__ (line 99) | def __or__(self, other: UserDict[_KT, _VT] | dict[_KT, _VT]) -> Self: ...
method __or__ (line 101) | def __or__(self, other: UserDict[_T1, _T2] | dict[_T1, _T2]) -> UserDi...
method __ror__ (line 103) | def __ror__(self, other: UserDict[_KT, _VT] | dict[_KT, _VT]) -> Self:...
method __ror__ (line 105) | def __ror__(self, other: UserDict[_T1, _T2] | dict[_T1, _T2]) -> UserD...
method __ior__ (line 108) | def __ior__(self, other: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ...
method __ior__ (line 110) | def __ior__(self, other: Iterable[tuple[_KT, _VT]]) -> Self: ...
method get (line 113) | def get(self, key: _KT, default: None = None) -> _VT | None: ...
method get (line 115) | def get(self, key: _KT, default: _T) -> _VT | _T: ...
class UserList (line 117) | class UserList(MutableSequence[_T]):
method __init__ (line 120) | def __init__(self, initlist: None = None) -> None: ...
method __init__ (line 122) | def __init__(self, initlist: Iterable[_T]) -> None: ...
method __repr__ (line 123) | def __repr__(self) -> str: ...
method __lt__ (line 125) | def __lt__(self, other: list[_T] | UserList[_T]) -> bool: ...
method __le__ (line 126) | def __le__(self, other: list[_T] | UserList[_T]) -> bool: ...
method __gt__ (line 127) | def __gt__(self, other: list[_T] | UserList[_T]) -> bool: ...
method __ge__ (line 128) | def __ge__(self, other: list[_T] | UserList[_T]) -> bool: ...
method __eq__ (line 129) | def __eq__(self, other: object) -> bool: ...
method __contains__ (line 130) | def __contains__(self, item: object) -> bool: ...
method __len__ (line 131) | def __len__(self) -> int: ...
method __getitem__ (line 133) | def __getitem__(self, i: SupportsIndex) -> _T: ...
method __getitem__ (line 135) | def __getitem__(self, i: slice) -> Self: ...
method __setitem__ (line 137) | def __setitem__(self, i: SupportsIndex, item: _T) -> None: ...
method __setitem__ (line 139) | def __setitem__(self, i: slice, item: Iterable[_T]) -> None: ...
method __delitem__ (line 140) | def __delitem__(self, i: SupportsIndex | slice) -> None: ...
method __add__ (line 141) | def __add__(self, other: Iterable[_T]) -> Self: ...
method __radd__ (line 142) | def __radd__(self, other: Iterable[_T]) -> Self: ...
method __iadd__ (line 143) | def __iadd__(self, other: Iterable[_T]) -> Self: ...
method __mul__ (line 144) | def __mul__(self, n: int) -> Self: ...
method __rmul__ (line 145) | def __rmul__(self, n: int) -> Self: ...
method __imul__ (line 146) | def __imul__(self, n: int) -> Self: ...
method append (line 147) | def append(self, item: _T) -> None: ... # type: ignore[override]
method insert (line 148) | def insert(self, i: int, item: _T) -> None: ... # type: ignore[override]
method pop (line 149) | def pop(self, i: int = -1) -> _T: ... # type: ignore[override]
method remove (line 150) | def remove(self, item: _T) -> None: ... # type: ignore[override]
method copy (line 151) | def copy(self) -> Self: ...
method __copy__ (line 152) | def __copy__(self) -> Self: ...
method count (line 153) | def count(self, item: _T) -> int: ... # type: ignore[override]
method index (line 157) | def index(self, item: _T, start: SupportsIndex = 0, stop: SupportsInde...
method sort (line 160) | def sort(self: UserList[SupportsRichComparisonT], *, key: None = None,...
method sort (line 162) | def sort(self, *, key: Callable[[_T], SupportsRichComparison], reverse...
method extend (line 163) | def extend(self, other: Iterable[_T]) -> None: ... # type: ignore[ove...
class UserString (line 165) | class UserString(Sequence[UserString]):
method __init__ (line 167) | def __init__(self, seq: object) -> None: ...
method __str__ (line 168) | def __str__(self) -> str: ...
method __repr__ (line 169) | def __repr__(self) -> str: ...
method __int__ (line 170) | def __int__(self) -> int: ...
method __float__ (line 171) | def __float__(self) -> float: ...
method __complex__ (line 172) | def __complex__(self) -> complex: ...
method __getnewargs__ (line 173) | def __getnewargs__(self) -> tuple[str]: ...
method __lt__ (line 174) | def __lt__(self, string: str | UserString) -> bool: ...
method __le__ (line 175) | def __le__(self, string: str | UserString) -> bool: ...
method __gt__ (line 176) | def __gt__(self, string: str | UserString) -> bool: ...
method __ge__ (line 177) | def __ge__(self, string: str | UserString) -> bool: ...
method __eq__ (line 178) | def __eq__(self, string: object) -> bool: ...
method __hash__ (line 179) | def __hash__(self) -> int: ...
method __contains__ (line 180) | def __contains__(self, char: object) -> bool: ...
method __len__ (line 181) | def __len__(self) -> int: ...
method __getitem__ (line 182) | def __getitem__(self, index: SupportsIndex | slice) -> Self: ...
method __iter__ (line 183) | def __iter__(self) -> Iterator[Self]: ...
method __reversed__ (line 184) | def __reversed__(self) -> Iterator[Self]: ...
method __add__ (line 185) | def __add__(self, other: object) -> Self: ...
method __radd__ (line 186) | def __radd__(self, other: object) -> Self: ...
method __mul__ (line 187) | def __mul__(self, n: int) -> Self: ...
method __rmul__ (line 188) | def __rmul__(self, n: int) -> Self: ...
method __mod__ (line 189) | def __mod__(self, args: Any) -> Self: ...
method __rmod__ (line 190) | def __rmod__(self, template: object) -> Self: ...
method capitalize (line 191) | def capitalize(self) -> Self: ...
method casefold (line 192) | def casefold(self) -> Self: ...
method center (line 193) | def center(self, width: int, *args: Any) -> Self: ...
method count (line 194) | def count(self, sub: str | UserString, start: int = 0, end: int = sys....
method encode (line 195) | def encode(self: UserString, encoding: str | None = "utf-8", errors: s...
method endswith (line 196) | def endswith(self, suffix: str | tuple[str, ...], start: int | None = ...
method expandtabs (line 197) | def expandtabs(self, tabsize: int = 8) -> Self: ...
method find (line 198) | def find(self, sub: str | UserString, start: int = 0, end: int = sys.m...
method format (line 199) | def format(self, *args: Any, **kwds: Any) -> str: ...
method format_map (line 200) | def format_map(self, mapping: Mapping[str, Any]) -> str: ...
method index (line 201) | def index(self, sub: str, start: int = 0, end: int = sys.maxsize) -> i...
method isalpha (line 202) | def isalpha(self) -> bool: ...
method isalnum (line 203) | def isalnum(self) -> bool: ...
method isdecimal (line 204) | def isdecimal(self) -> bool: ...
method isdigit (line 205) | def isdigit(self) -> bool: ...
method isidentifier (line 206) | def isidentifier(self) -> bool: ...
method islower (line 207) | def islower(self) -> bool: ...
method isnumeric (line 208) | def isnumeric(self) -> bool: ...
method isprintable (line 209) | def isprintable(self) -> bool: ...
method isspace (line 210) | def isspace(self) -> bool: ...
method istitle (line 211) | def istitle(self) -> bool: ...
method isupper (line 212) | def isupper(self) -> bool: ...
method isascii (line 213) | def isascii(self) -> bool: ...
method join (line 214) | def join(self, seq: Iterable[str]) -> str: ...
method ljust (line 215) | def ljust(self, width: int, *args: Any) -> Self: ...
method lower (line 216) | def lower(self) -> Self: ...
method lstrip (line 217) | def lstrip(self, chars: str | None = None) -> Self: ...
method partition (line 219) | def partition(self, sep: str) -> tuple[str, str, str]: ...
method removeprefix (line 221) | def removeprefix(self, prefix: str | UserString, /) -> Self: ...
method removesuffix (line 222) | def removesuffix(self, suffix: str | UserString, /) -> Self: ...
method replace (line 224) | def replace(self, old: str | UserString, new: str | UserString, maxspl...
method rfind (line 225) | def rfind(self, sub: str | UserString, start: int = 0, end: int = sys....
method rindex (line 226) | def rindex(self, sub: str | UserString, start: int = 0, end: int = sys...
method rjust (line 227) | def rjust(self, width: int, *args: Any) -> Self: ...
method rpartition (line 228) | def rpartition(self, sep: str) -> tuple[str, str, str]: ...
method rstrip (line 229) | def rstrip(self, chars: str | None = None) -> Self: ...
method split (line 230) | def split(self, sep: str | None = None, maxsplit: int = -1) -> list[st...
method rsplit (line 231) | def rsplit(self, sep: str | None = None, maxsplit: int = -1) -> list[s...
method splitlines (line 232) | def splitlines(self, keepends: bool = False) -> list[str]: ...
method startswith (line 233) | def startswith(self, prefix: str | tuple[str, ...], start: int | None ...
method strip (line 234) | def strip(self, chars: str | None = None) -> Self: ...
method swapcase (line 235) | def swapcase(self) -> Self: ...
method title (line 236) | def title(self) -> Self: ...
method translate (line 237) | def translate(self, *args: Any) -> Self: ...
method upper (line 238) | def upper(self) -> Self: ...
method zfill (line 239) | def zfill(self, width: int) -> Self: ...
class deque (line 241) | class deque(MutableSequence[_T]):
method maxlen (line 243) | def maxlen(self) -> int | None: ...
method __init__ (line 245) | def __init__(self, *, maxlen: int | None = None) -> None: ...
method __init__ (line 247) | def __init__(self, iterable: Iterable[_T], maxlen: int | None = None) ...
method append (line 248) | def append(self, x: _T, /) -> None: ... # type: ignore[override]
method appendleft (line 249) | def appendleft(self, x: _T, /) -> None: ...
method copy (line 250) | def copy(self) -> Self: ...
method count (line 251) | def count(self, x: _T, /) -> int: ... # type: ignore[override]
method extend (line 252) | def extend(self, iterable: Iterable[_T], /) -> None: ... # type: igno...
method extendleft (line 253) | def extendleft(self, iterable: Iterable[_T], /) -> None: ...
method insert (line 254) | def insert(self, i: int, x: _T, /) -> None: ... # type: ignore[override]
method index (line 255) | def index(self, x: _T, start: int = 0, stop: int = ..., /) -> int: ......
method pop (line 256) | def pop(self) -> _T: ... # type: ignore[override]
method popleft (line 257) | def popleft(self) -> _T: ...
method remove (line 258) | def remove(self, value: _T, /) -> None: ... # type: ignore[override]
method rotate (line 259) | def rotate(self, n: int = 1, /) -> None: ...
method __copy__ (line 260) | def __copy__(self) -> Self: ...
method __len__ (line 261) | def __len__(self) -> int: ...
method __getitem__ (line 264) | def __getitem__(self, key: SupportsIndex, /) -> _T: ... # type: ignor...
method __setitem__ (line 265) | def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ... ...
method __delitem__ (line 266) | def __delitem__(self, key: SupportsIndex, /) -> None: ... # type: ign...
method __contains__ (line 267) | def __contains__(self, key: object, /) -> bool: ...
method __reduce__ (line 268) | def __reduce__(self) -> tuple[type[Self], tuple[()], None, Iterator[_T...
method __iadd__ (line 269) | def __iadd__(self, value: Iterable[_T], /) -> Self: ...
method __add__ (line 270) | def __add__(self, value: Self, /) -> Self: ...
method __mul__ (line 271) | def __mul__(self, value: int, /) -> Self: ...
method __imul__ (line 272) | def __imul__(self, value: int, /) -> Self: ...
method __lt__ (line 273) | def __lt__(self, value: deque[_T], /) -> bool: ...
method __le__ (line 274) | def __le__(self, value: deque[_T], /) -> bool: ...
method __gt__ (line 275) | def __gt__(self, value: deque[_T], /) -> bool: ...
method __ge__ (line 276) | def __ge__(self, value: deque[_T], /) -> bool: ...
method __eq__ (line 277) | def __eq__(self, value: object, /) -> bool: ...
method __class_getitem__ (line 279) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class Counter (line 281) | class Counter(dict[_T, int], Generic[_T]):
method __init__ (line 283) | def __init__(self, iterable: None = None, /) -> None: ...
method __init__ (line 285) | def __init__(self: Counter[str], iterable: None = None, /, **kwargs: i...
method __init__ (line 287) | def __init__(self, mapping: SupportsKeysAndGetItem[_T, int], /) -> Non...
method __init__ (line 289) | def __init__(self, iterable: Iterable[_T], /) -> None: ...
method copy (line 290) | def copy(self) -> Self: ...
method elements (line 291) | def elements(self) -> Iterator[_T]: ...
method most_common (line 292) | def most_common(self, n: int | None = None) -> list[tuple[_T, int]]: ...
method fromkeys (line 294) | def fromkeys(cls, iterable: Any, v: int | None = None) -> NoReturn: .....
method subtract (line 296) | def subtract(self, iterable: None = None, /) -> None: ...
method subtract (line 298) | def subtract(self, mapping: Mapping[_T, int], /) -> None: ...
method subtract (line 300) | def subtract(self, iterable: Iterable[_T], /) -> None: ...
method update (line 308) | def update(self, m: Mapping[_T, int], /, **kwargs: int) -> None: ...
method update (line 310) | def update(self, iterable: Iterable[_T], /, **kwargs: int) -> None: ...
method update (line 312) | def update(self, iterable: None = None, /, **kwargs: int) -> None: ...
method __missing__ (line 313) | def __missing__(self, key: _T) -> int: ...
method __delitem__ (line 314) | def __delitem__(self, elem: object) -> None: ...
method __eq__ (line 316) | def __eq__(self, other: object) -> bool: ...
method __ne__ (line 317) | def __ne__(self, other: object) -> bool: ...
method __add__ (line 319) | def __add__(self, other: Counter[_S]) -> Counter[_T | _S]: ...
method __sub__ (line 320) | def __sub__(self, other: Counter[_T]) -> Counter[_T]: ...
method __and__ (line 321) | def __and__(self, other: Counter[_T]) -> Counter[_T]: ...
method __or__ (line 322) | def __or__(self, other: Counter[_S]) -> Counter[_T | _S]: ... # type:...
method __pos__ (line 323) | def __pos__(self) -> Counter[_T]: ...
method __neg__ (line 324) | def __neg__(self) -> Counter[_T]: ...
method __iadd__ (line 326) | def __iadd__(self, other: SupportsItems[_T, int]) -> Self: ... # type...
method __isub__ (line 327) | def __isub__(self, other: SupportsItems[_T, int]) -> Self: ...
method __iand__ (line 328) | def __iand__(self, other: SupportsItems[_T, int]) -> Self: ...
method __ior__ (line 329) | def __ior__(self, other: SupportsItems[_T, int]) -> Self: ... # type:...
method total (line 331) | def total(self) -> int: ...
method __le__ (line 332) | def __le__(self, other: Counter[Any]) -> bool: ...
method __lt__ (line 333) | def __lt__(self, other: Counter[Any]) -> bool: ...
method __ge__ (line 334) | def __ge__(self, other: Counter[Any]) -> bool: ...
method __gt__ (line 335) | def __gt__(self, other: Counter[Any]) -> bool: ...
class _OrderedDictKeysView (line 339) | class _OrderedDictKeysView(KeysView[_KT_co]):
method __reversed__ (line 340) | def __reversed__(self) -> Iterator[_KT_co]: ...
class _OrderedDictItemsView (line 342) | class _OrderedDictItemsView(ItemsView[_KT_co, _VT_co]):
method __reversed__ (line 343) | def __reversed__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
class _OrderedDictValuesView (line 345) | class _OrderedDictValuesView(ValuesView[_VT_co]):
method __reversed__ (line 346) | def __reversed__(self) -> Iterator[_VT_co]: ...
class _odict_keys (line 353) | class _odict_keys(dict_keys[_KT_co, _VT_co]): # type: ignore[misc] # p...
method __reversed__ (line 354) | def __reversed__(self) -> Iterator[_KT_co]: ...
class _odict_items (line 357) | class _odict_items(dict_items[_KT_co, _VT_co]): # type: ignore[misc] #...
method __reversed__ (line 358) | def __reversed__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
class _odict_values (line 361) | class _odict_values(dict_values[_KT_co, _VT_co]): # type: ignore[misc] ...
method __reversed__ (line 362) | def __reversed__(self) -> Iterator[_VT_co]: ...
class OrderedDict (line 364) | class OrderedDict(dict[_KT, _VT]):
method popitem (line 365) | def popitem(self, last: bool = True) -> tuple[_KT, _VT]: ...
method move_to_end (line 366) | def move_to_end(self, key: _KT, last: bool = True) -> None: ...
method copy (line 367) | def copy(self) -> Self: ...
method __reversed__ (line 368) | def __reversed__(self) -> Iterator[_KT]: ...
method keys (line 369) | def keys(self) -> _odict_keys[_KT, _VT]: ...
method items (line 370) | def items(self) -> _odict_items[_KT, _VT]: ...
method values (line 371) | def values(self) -> _odict_values[_KT, _VT]: ...
method fromkeys (line 377) | def fromkeys(cls, iterable: Iterable[_T], value: None = None) -> Order...
method fromkeys (line 380) | def fromkeys(cls, iterable: Iterable[_T], value: _S) -> OrderedDict[_T...
method setdefault (line 383) | def setdefault(self: OrderedDict[_KT, _T | None], key: _KT, default: N...
method setdefault (line 385) | def setdefault(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 388) | def pop(self, key: _KT) -> _VT: ...
method pop (line 390) | def pop(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 392) | def pop(self, key: _KT, default: _T) -> _VT | _T: ...
method __eq__ (line 393) | def __eq__(self, value: object, /) -> bool: ...
method __or__ (line 396) | def __or__(self, value: dict[_KT, _VT], /) -> Self: ...
method __or__ (line 398) | def __or__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, _...
method __ror__ (line 400) | def __ror__(self, value: dict[_KT, _VT], /) -> Self: ...
method __ror__ (line 402) | def __ror__(self, value: dict[_T1, _T2], /) -> OrderedDict[_KT | _T1, ...
class defaultdict (line 404) | class defaultdict(dict[_KT, _VT]):
method __init__ (line 407) | def __init__(self) -> None: ...
method __init__ (line 409) | def __init__(self: defaultdict[str, _VT], **kwargs: _VT) -> None: ... ...
method __init__ (line 411) | def __init__(self, default_factory: Callable[[], _VT] | None, /) -> No...
method __init__ (line 413) | def __init__(
method __init__ (line 420) | def __init__(self, default_factory: Callable[[], _VT] | None, map: Sup...
method __init__ (line 422) | def __init__(
method __init__ (line 430) | def __init__(self, default_factory: Callable[[], _VT] | None, iterable...
method __init__ (line 432) | def __init__(
method __missing__ (line 439) | def __missing__(self, key: _KT, /) -> _VT: ...
method __copy__ (line 440) | def __copy__(self) -> Self: ...
method copy (line 441) | def copy(self) -> Self: ...
method __or__ (line 444) | def __or__(self, value: dict[_KT, _VT], /) -> Self: ...
method __or__ (line 446) | def __or__(self, value: dict[_T1, _T2], /) -> defaultdict[_KT | _T1, _...
method __ror__ (line 448) | def __ror__(self, value: dict[_KT, _VT], /) -> Self: ...
method __ror__ (line 450) | def __ror__(self, value: dict[_T1, _T2], /) -> defaultdict[_KT | _T1, ...
class ChainMap (line 452) | class ChainMap(MutableMapping[_KT, _VT]):
method __init__ (line 454) | def __init__(self, *maps: MutableMapping[_KT, _VT]) -> None: ...
method new_child (line 455) | def new_child(self, m: MutableMapping[_KT, _VT] | None = None) -> Self...
method parents (line 457) | def parents(self) -> Self: ...
method __setitem__ (line 458) | def __setitem__(self, key: _KT, value: _VT) -> None: ...
method __delitem__ (line 459) | def __delitem__(self, key: _KT) -> None: ...
method __getitem__ (line 460) | def __getitem__(self, key: _KT) -> _VT: ...
method __iter__ (line 461) | def __iter__(self) -> Iterator[_KT]: ...
method __len__ (line 462) | def __len__(self) -> int: ...
method __contains__ (line 463) | def __contains__(self, key: object) -> bool: ...
method get (line 465) | def get(self, key: _KT, default: None = None) -> _VT | None: ...
method get (line 467) | def get(self, key: _KT, default: _T) -> _VT | _T: ...
method __missing__ (line 468) | def __missing__(self, key: _KT) -> _VT: ... # undocumented
method __bool__ (line 469) | def __bool__(self) -> bool: ...
method setdefault (line 472) | def setdefault(self: ChainMap[_KT, _T | None], key: _KT, default: None...
method setdefault (line 474) | def setdefault(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 476) | def pop(self, key: _KT) -> _VT: ...
method pop (line 478) | def pop(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 480) | def pop(self, key: _KT, default: _T) -> _VT | _T: ...
method copy (line 481) | def copy(self) -> Self: ...
method fromkeys (line 487) | def fromkeys(cls, iterable: Iterable[_T]) -> ChainMap[_T, Any | None]:...
method fromkeys (line 491) | def fromkeys(cls, iterable: Iterable[_T], value: None, /) -> ChainMap[...
method fromkeys (line 494) | def fromkeys(cls, iterable: Iterable[_T], value: _S, /) -> ChainMap[_T...
method __or__ (line 497) | def __or__(self, other: Mapping[_KT, _VT]) -> Self: ...
method __or__ (line 499) | def __or__(self, other: Mapping[_T1, _T2]) -> ChainMap[_KT | _T1, _VT ...
method __ror__ (line 501) | def __ror__(self, other: Mapping[_KT, _VT]) -> Self: ...
method __ror__ (line 503) | def __ror__(self, other: Mapping[_T1, _T2]) -> ChainMap[_KT | _T1, _VT...
method __ior__ (line 506) | def __ior__(self, other: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ...
method __ior__ (line 508) | def __ior__(self, other: Iterable[tuple[_KT, _VT]]) -> Self: ...
FILE: mypy/typeshed/stdlib/colorsys.pyi
function rgb_to_yiq (line 3) | def rgb_to_yiq(r: float, g: float, b: float) -> tuple[float, float, floa...
function yiq_to_rgb (line 4) | def yiq_to_rgb(y: float, i: float, q: float) -> tuple[float, float, floa...
function rgb_to_hls (line 5) | def rgb_to_hls(r: float, g: float, b: float) -> tuple[float, float, floa...
function hls_to_rgb (line 6) | def hls_to_rgb(h: float, l: float, s: float) -> tuple[float, float, floa...
function rgb_to_hsv (line 7) | def rgb_to_hsv(r: float, g: float, b: float) -> tuple[float, float, floa...
function hsv_to_rgb (line 8) | def hsv_to_rgb(h: float, s: float, v: float) -> tuple[float, float, floa...
FILE: mypy/typeshed/stdlib/compileall.pyi
class _SupportsSearch (line 8) | class _SupportsSearch(Protocol):
method search (line 9) | def search(self, string: str, /) -> Any: ...
function compile_dir (line 12) | def compile_dir(
function compile_file (line 29) | def compile_file(
function compile_dir (line 46) | def compile_dir(
function compile_file (line 63) | def compile_file(
function compile_dir (line 80) | def compile_dir(
function compile_file (line 92) | def compile_file(
function compile_path (line 103) | def compile_path(
FILE: mypy/typeshed/stdlib/concurrent/futures/__init__.pyi
function __dir__ (line 51) | def __dir__() -> tuple[str, ...]: ...
FILE: mypy/typeshed/stdlib/concurrent/futures/_base.pyi
class Error (line 25) | class Error(Exception): ...
class CancelledError (line 26) | class CancelledError(Error): ...
class TimeoutError (line 31) | class TimeoutError(Error): ...
class InvalidStateError (line 33) | class InvalidStateError(Error): ...
class BrokenExecutor (line 34) | class BrokenExecutor(RuntimeError): ...
class Future (line 40) | class Future(Generic[_T]):
method cancel (line 46) | def cancel(self) -> bool: ...
method cancelled (line 47) | def cancelled(self) -> bool: ...
method running (line 48) | def running(self) -> bool: ...
method done (line 49) | def done(self) -> bool: ...
method add_done_callback (line 50) | def add_done_callback(self, fn: Callable[[Future[_T]], object]) -> Non...
method result (line 51) | def result(self, timeout: float | None = None) -> _T: ...
method set_running_or_notify_cancel (line 52) | def set_running_or_notify_cancel(self) -> bool: ...
method set_result (line 53) | def set_result(self, result: _T) -> None: ...
method exception (line 54) | def exception(self, timeout: float | None = None) -> BaseException | N...
method set_exception (line 55) | def set_exception(self, exception: BaseException | None) -> None: ...
method __class_getitem__ (line 57) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class Executor (line 59) | class Executor:
method submit (line 61) | def submit(self, fn: Callable[_P, _T], /, *args: _P.args, **kwargs: _P...
method submit (line 63) | def submit(self, fn: Callable[_P, _T], *args: _P.args, **kwargs: _P.kw...
method map (line 65) | def map(
method shutdown (line 69) | def shutdown(self, wait: bool = True, *, cancel_futures: bool = False)...
method shutdown (line 71) | def shutdown(self, wait: bool = True) -> None: ...
method __enter__ (line 73) | def __enter__(self) -> Self: ...
method __exit__ (line 74) | def __exit__(
class _AsCompletedFuture (line 78) | class _AsCompletedFuture(Protocol[_T_co]):
method result (line 86) | def result(self, timeout: float | None = None) -> _T_co: ...
function as_completed (line 88) | def as_completed(fs: Iterable[_AsCompletedFuture[_T]], timeout: float | ...
class DoneAndNotDoneFutures (line 90) | class DoneAndNotDoneFutures(NamedTuple, Generic[_T]):
function wait (line 95) | def wait(
function wait (line 100) | def wait(
class _Waiter (line 104) | class _Waiter:
method add_result (line 107) | def add_result(self, future: Future[Any]) -> None: ...
method add_exception (line 108) | def add_exception(self, future: Future[Any]) -> None: ...
method add_cancelled (line 109) | def add_cancelled(self, future: Future[Any]) -> None: ...
class _AsCompletedWaiter (line 111) | class _AsCompletedWaiter(_Waiter):
class _FirstCompletedWaiter (line 114) | class _FirstCompletedWaiter(_Waiter): ...
class _AllCompletedWaiter (line 116) | class _AllCompletedWaiter(_Waiter):
method __init__ (line 120) | def __init__(self, num_pending_calls: int, stop_on_exception: bool) ->...
class _AcquireFutures (line 122) | class _AcquireFutures:
method __init__ (line 124) | def __init__(self, futures: Iterable[Future[Any]]) -> None: ...
method __enter__ (line 125) | def __enter__(self) -> None: ...
method __exit__ (line 126) | def __exit__(self, *args: Unused) -> None: ...
FILE: mypy/typeshed/stdlib/concurrent/futures/process.pyi
class _ThreadWakeup (line 20) | class _ThreadWakeup:
method close (line 25) | def close(self) -> None: ...
method wakeup (line 26) | def wakeup(self) -> None: ...
method clear (line 27) | def clear(self) -> None: ...
function _python_exit (line 29) | def _python_exit() -> None: ...
class _RemoteTraceback (line 35) | class _RemoteTraceback(Exception):
method __init__ (line 37) | def __init__(self, tb: TracebackType) -> None: ...
class _ExceptionWithTraceback (line 39) | class _ExceptionWithTraceback:
method __init__ (line 42) | def __init__(self, exc: BaseException, tb: TracebackType) -> None: ...
method __reduce__ (line 43) | def __reduce__(self) -> str | tuple[Any, ...]: ...
function _rebuild_exc (line 45) | def _rebuild_exc(exc: Exception, tb: str) -> Exception: ...
class _WorkItem (line 47) | class _WorkItem(Generic[_T]):
method __init__ (line 52) | def __init__(self, future: Future[_T], fn: Callable[..., _T], args: It...
class _ResultItem (line 54) | class _ResultItem:
method __init__ (line 60) | def __init__(
method __init__ (line 64) | def __init__(self, work_id: int, exception: Exception | None = None, r...
class _CallItem (line 66) | class _CallItem:
method __init__ (line 71) | def __init__(self, work_id: int, fn: Callable[..., Any], args: Iterabl...
class _SafeQueue (line 73) | class _SafeQueue(Queue[Future[Any]]):
method __init__ (line 79) | def __init__(
method __init__ (line 88) | def __init__(
method __init__ (line 98) | def __init__(
method _on_queue_feeder_error (line 102) | def _on_queue_feeder_error(self, e: Exception, obj: _CallItem) -> None...
function _get_chunks (line 104) | def _get_chunks(*iterables: Any, chunksize: int) -> Generator[tuple[Any,...
function _process_chunk (line 105) | def _process_chunk(fn: Callable[..., _T], chunk: Iterable[tuple[Any, ......
function _sendback_result (line 108) | def _sendback_result(
function _sendback_result (line 117) | def _sendback_result(
function _process_worker (line 122) | def _process_worker(
function _process_worker (line 131) | def _process_worker(
class _ExecutorManagerThread (line 139) | class _ExecutorManagerThread(Thread):
method __init__ (line 148) | def __init__(self, executor: ProcessPoolExecutor) -> None: ...
method run (line 149) | def run(self) -> None: ...
method add_call_item_to_queue (line 150) | def add_call_item_to_queue(self) -> None: ...
method wait_result_broken_or_wakeup (line 151) | def wait_result_broken_or_wakeup(self) -> tuple[Any, bool, str]: ...
method process_result_item (line 152) | def process_result_item(self, result_item: int | _ResultItem) -> None:...
method is_shutting_down (line 153) | def is_shutting_down(self) -> bool: ...
method terminate_broken (line 154) | def terminate_broken(self, cause: str) -> None: ...
method flag_executor_shutting_down (line 155) | def flag_executor_shutting_down(self) -> None: ...
method shutdown_workers (line 156) | def shutdown_workers(self) -> None: ...
method join_executor_internals (line 157) | def join_executor_internals(self) -> None: ...
method get_n_children_alive (line 158) | def get_n_children_alive(self) -> int: ...
function _check_system_limits (line 163) | def _check_system_limits() -> None: ...
function _chain_from_iterable_of_lists (line 164) | def _chain_from_iterable_of_lists(iterable: Iterable[MutableSequence[Any...
class BrokenProcessPool (line 166) | class BrokenProcessPool(BrokenExecutor): ...
class ProcessPoolExecutor (line 168) | class ProcessPoolExecutor(Executor):
method __init__ (line 186) | def __init__(
method __init__ (line 196) | def __init__(
method __init__ (line 206) | def __init__(
method __init__ (line 217) | def __init__(
method __init__ (line 225) | def __init__(
method __init__ (line 234) | def __init__(
method _start_executor_manager_thread (line 242) | def _start_executor_manager_thread(self) -> None: ...
method _adjust_process_count (line 244) | def _adjust_process_count(self) -> None: ...
FILE: mypy/typeshed/stdlib/concurrent/futures/thread.pyi
function _python_exit (line 17) | def _python_exit() -> None: ...
class _WorkItem (line 24) | class _WorkItem(Generic[_S]):
method __init__ (line 29) | def __init__(self, future: Future[_S], fn: Callable[..., _S], args: It...
method run (line 30) | def run(self) -> None: ...
method __class_getitem__ (line 32) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function _worker (line 34) | def _worker(
class BrokenThreadPool (line 41) | class BrokenThreadPool(BrokenExecutor): ...
class ThreadPoolExecutor (line 43) | class ThreadPoolExecutor(Executor):
method __init__ (line 55) | def __init__(
method __init__ (line 63) | def __init__(
method __init__ (line 72) | def __init__(
method _adjust_thread_count (line 79) | def _adjust_thread_count(self) -> None: ...
method _initializer_failed (line 80) | def _initializer_failed(self) -> None: ...
FILE: mypy/typeshed/stdlib/configparser.pyi
class Interpolation (line 89) | class Interpolation:
method before_get (line 90) | def before_get(self, parser: _Parser, section: str, option: str, value...
method before_set (line 91) | def before_set(self, parser: _Parser, section: str, option: str, value...
method before_read (line 92) | def before_read(self, parser: _Parser, section: str, option: str, valu...
method before_write (line 93) | def before_write(self, parser: _Parser, section: str, option: str, val...
class BasicInterpolation (line 95) | class BasicInterpolation(Interpolation): ...
class ExtendedInterpolation (line 96) | class ExtendedInterpolation(Interpolation): ...
class LegacyInterpolation (line 99) | class LegacyInterpolation(Interpolation):
method before_get (line 100) | def before_get(self, parser: _Parser, section: str, option: str, value...
class RawConfigParser (line 102) | class RawConfigParser(_Parser):
method __init__ (line 116) | def __init__(
method __init__ (line 133) | def __init__(
method __init__ (line 150) | def __init__(
method __init__ (line 168) | def __init__(
method __init__ (line 184) | def __init__(
method __init__ (line 200) | def __init__(
method __len__ (line 216) | def __len__(self) -> int: ...
method __getitem__ (line 217) | def __getitem__(self, key: str) -> SectionProxy: ...
method __setitem__ (line 218) | def __setitem__(self, key: str, value: _Section) -> None: ...
method __delitem__ (line 219) | def __delitem__(self, key: str) -> None: ...
method __iter__ (line 220) | def __iter__(self) -> Iterator[str]: ...
method __contains__ (line 221) | def __contains__(self, key: object) -> bool: ...
method defaults (line 222) | def defaults(self) -> _Section: ...
method sections (line 223) | def sections(self) -> list[str]: ...
method add_section (line 224) | def add_section(self, section: str) -> None: ...
method has_section (line 225) | def has_section(self, section: str) -> bool: ...
method options (line 226) | def options(self, section: str) -> list[str]: ...
method has_option (line 227) | def has_option(self, section: str, option: str) -> bool: ...
method read (line 228) | def read(self, filenames: StrOrBytesPath | Iterable[StrOrBytesPath], e...
method read_file (line 229) | def read_file(self, f: Iterable[str], source: str | None = None) -> No...
method read_string (line 230) | def read_string(self, string: str, source: str = "") -> None: ...
method read_dict (line 231) | def read_dict(self, dictionary: Mapping[str, Mapping[str, Any]], sourc...
method readfp (line 233) | def readfp(self, fp: Iterable[str], filename: str | None = None) -> No...
method getint (line 237) | def getint(self, section: str, option: str, *, raw: bool = False, vars...
method getint (line 239) | def getint(
method getfloat (line 243) | def getfloat(self, section: str, option: str, *, raw: bool = False, va...
method getfloat (line 245) | def getfloat(
method getboolean (line 249) | def getboolean(self, section: str, option: str, *, raw: bool = False, ...
method getboolean (line 251) | def getboolean(
method _get_conv (line 254) | def _get_conv(
method get (line 266) | def get(self, section: str, option: str, *, raw: bool = False, vars: _...
method get (line 268) | def get(
method items (line 272) | def items(self, *, raw: bool = False, vars: _Section | None = None) ->...
method items (line 274) | def items(self, section: str, raw: bool = False, vars: _Section | None...
method set (line 275) | def set(self, section: str, option: str, value: str | None = None) -> ...
method write (line 276) | def write(self, fp: SupportsWrite[str], space_around_delimiters: bool ...
method remove_option (line 277) | def remove_option(self, section: str, option: str) -> bool: ...
method remove_section (line 278) | def remove_section(self, section: str) -> bool: ...
method optionxform (line 279) | def optionxform(self, optionstr: str) -> str: ...
method converters (line 281) | def converters(self) -> ConverterMapping: ...
class ConfigParser (line 283) | class ConfigParser(RawConfigParser):
method get (line 286) | def get(self, section: str, option: str, *, raw: bool = False, vars: _...
method get (line 288) | def get(self, section: str, option: str, *, raw: bool = False, vars: _...
class SafeConfigParser (line 291) | class SafeConfigParser(ConfigParser): ... # deprecated alias
class SectionProxy (line 293) | class SectionProxy(MutableMapping[str, str]):
method __init__ (line 294) | def __init__(self, parser: RawConfigParser, name: str) -> None: ...
method __getitem__ (line 295) | def __getitem__(self, key: str) -> str: ...
method __setitem__ (line 296) | def __setitem__(self, key: str, value: str) -> None: ...
method __delitem__ (line 297) | def __delitem__(self, key: str) -> None: ...
method __contains__ (line 298) | def __contains__(self, key: object) -> bool: ...
method __len__ (line 299) | def __len__(self) -> int: ...
method __iter__ (line 300) | def __iter__(self) -> Iterator[str]: ...
method parser (line 302) | def parser(self) -> RawConfigParser: ...
method name (line 304) | def name(self) -> str: ...
method get (line 307) | def get(
method get (line 311) | def get(
method getint (line 324) | def getint(self, option: str, *, raw: bool = ..., vars: _Section | Non...
method getint (line 326) | def getint(self, option: str, fallback: _T = ..., *, raw: bool = ..., ...
method getfloat (line 328) | def getfloat(self, option: str, *, raw: bool = ..., vars: _Section | N...
method getfloat (line 330) | def getfloat(self, option: str, fallback: _T = ..., *, raw: bool = ......
method getboolean (line 332) | def getboolean(self, option: str, *, raw: bool = ..., vars: _Section |...
method getboolean (line 334) | def getboolean(self, option: str, fallback: _T = ..., *, raw: bool = ....
method __getattr__ (line 336) | def __getattr__(self, key: str) -> Callable[..., Any]: ...
class ConverterMapping (line 338) | class ConverterMapping(MutableMapping[str, _ConverterCallback | None]):
method __init__ (line 340) | def __init__(self, parser: RawConfigParser) -> None: ...
method __getitem__ (line 341) | def __getitem__(self, key: str) -> _ConverterCallback: ...
method __setitem__ (line 342) | def __setitem__(self, key: str, value: _ConverterCallback | None) -> N...
method __delitem__ (line 343) | def __delitem__(self, key: str) -> None: ...
method __iter__ (line 344) | def __iter__(self) -> Iterator[str]: ...
method __len__ (line 345) | def __len__(self) -> int: ...
class Error (line 347) | class Error(Exception):
method __init__ (line 349) | def __init__(self, msg: str = "") -> None: ...
class NoSectionError (line 351) | class NoSectionError(Error):
method __init__ (line 353) | def __init__(self, section: str) -> None: ...
class DuplicateSectionError (line 355) | class DuplicateSectionError(Error):
method __init__ (line 359) | def __init__(self, section: str, source: str | None = None, lineno: in...
class DuplicateOptionError (line 361) | class DuplicateOptionError(Error):
method __init__ (line 366) | def __init__(self, section: str, option: str, source: str | None = Non...
class NoOptionError (line 368) | class NoOptionError(Error):
method __init__ (line 371) | def __init__(self, option: str, section: str) -> None: ...
class InterpolationError (line 373) | class InterpolationError(Error):
method __init__ (line 376) | def __init__(self, option: str, section: str, msg: str) -> None: ...
class InterpolationDepthError (line 378) | class InterpolationDepthError(InterpolationError):
method __init__ (line 379) | def __init__(self, option: str, section: str, rawval: object) -> None:...
class InterpolationMissingOptionError (line 381) | class InterpolationMissingOptionError(InterpolationError):
method __init__ (line 383) | def __init__(self, option: str, section: str, rawval: object, referenc...
class InterpolationSyntaxError (line 385) | class InterpolationSyntaxError(InterpolationError): ...
class ParsingError (line 387) | class ParsingError(Error):
method __init__ (line 391) | def __init__(self, source: str, *args: object) -> None: ...
method combine (line 392) | def combine(self, others: Iterable[ParsingError]) -> ParsingError: ...
method __init__ (line 394) | def __init__(self, source: str) -> None: ...
method __init__ (line 396) | def __init__(self, source: str | None = None, filename: str | None = N...
method append (line 398) | def append(self, lineno: int, line: str) -> None: ...
class MissingSectionHeaderError (line 400) | class MissingSectionHeaderError(ParsingError):
method __init__ (line 403) | def __init__(self, filename: str, lineno: int, line: str) -> None: ...
class _UNNAMED_SECTION (line 406) | class _UNNAMED_SECTION: ...
class MultilineContinuationError (line 409) | class MultilineContinuationError(ParsingError):
method __init__ (line 412) | def __init__(self, filename: str, lineno: int, line: str) -> None: ...
FILE: mypy/typeshed/stdlib/contextlib.pyi
class AbstractContextManager (line 49) | class AbstractContextManager(ABC, Protocol[_T_co, _ExitT_co]): # type: ...
method __enter__ (line 50) | def __enter__(self) -> _T_co: ...
method __exit__ (line 52) | def __exit__(
class AbstractAsyncContextManager (line 60) | class AbstractAsyncContextManager(ABC, Protocol[_T_co, _ExitT_co]): # t...
method __aenter__ (line 61) | async def __aenter__(self) -> _T_co: ...
method __aexit__ (line 63) | async def __aexit__(
class ContextDecorator (line 67) | class ContextDecorator:
method _recreate_cm (line 68) | def _recreate_cm(self) -> Self: ...
method __call__ (line 69) | def __call__(self, func: _F) -> _F: ...
class _GeneratorContextManagerBase (line 71) | class _GeneratorContextManagerBase(Generic[_G]):
method __init__ (line 73) | def __init__(self, func: Callable[..., _G], args: tuple[Any, ...], kwd...
class _GeneratorContextManager (line 79) | class _GeneratorContextManager(
method __exit__ (line 85) | def __exit__(
method __exit__ (line 89) | def __exit__(
function contextmanager (line 93) | def contextmanager(func: Callable[_P, Iterator[_T_co]]) -> FunctionType[...
class AsyncContextDecorator (line 98) | class AsyncContextDecorator:
method _recreate_cm (line 99) | def _recreate_cm(self) -> Self: ...
method __call__ (line 100) | def __call__(self, func: _AF) -> _AF: ...
class _AsyncGeneratorContextManager (line 102) | class _AsyncGeneratorContextManager(
method __aexit__ (line 107) | async def __aexit__(
method __aexit__ (line 115) | async def __aexit__(
class _AsyncGeneratorContextManager (line 112) | class _AsyncGeneratorContextManager(
method __aexit__ (line 107) | async def __aexit__(
method __aexit__ (line 115) | async def __aexit__(
function asynccontextmanager (line 119) | def asynccontextmanager(func: Callable[_P, AsyncIterator[_T_co]]) -> Fun...
class _SupportsClose (line 121) | class _SupportsClose(Protocol):
method close (line 122) | def close(self) -> object: ...
class closing (line 126) | class closing(AbstractContextManager[_SupportsCloseT, None]):
method __init__ (line 127) | def __init__(self, thing: _SupportsCloseT) -> None: ...
method __exit__ (line 128) | def __exit__(self, *exc_info: Unused) -> None: ...
class _SupportsAclose (line 131) | class _SupportsAclose(Protocol):
method aclose (line 132) | def aclose(self) -> Awaitable[object]: ...
class aclosing (line 136) | class aclosing(AbstractAsyncContextManager[_SupportsAcloseT, None]):
method __init__ (line 137) | def __init__(self, thing: _SupportsAcloseT) -> None: ...
method __aexit__ (line 138) | async def __aexit__(self, *exc_info: Unused) -> None: ...
class suppress (line 140) | class suppress(AbstractContextManager[None, bool]):
method __init__ (line 141) | def __init__(self, *exceptions: type[BaseException]) -> None: ...
method __exit__ (line 142) | def __exit__(
class _RedirectStream (line 146) | class _RedirectStream(AbstractContextManager[_T_io, None]):
method __init__ (line 147) | def __init__(self, new_target: _T_io) -> None: ...
method __exit__ (line 148) | def __exit__(
class redirect_stdout (line 152) | class redirect_stdout(_RedirectStream[_T_io]): ...
class redirect_stderr (line 153) | class redirect_stderr(_RedirectStream[_T_io]): ...
class _BaseExitStack (line 155) | class _BaseExitStack(Generic[_ExitT_co]):
method enter_context (line 156) | def enter_context(self, cm: AbstractContextManager[_T, _ExitT_co]) -> ...
method push (line 157) | def push(self, exit: _CM_EF) -> _CM_EF: ...
method callback (line 158) | def callback(self, callback: Callable[_P, _T], /, *args: _P.args, **kw...
method pop_all (line 159) | def pop_all(self) -> Self: ...
class ExitStack (line 163) | class ExitStack(_BaseExitStack[_ExitT_co], metaclass=abc.ABCMeta):
method close (line 164) | def close(self) -> None: ...
method __enter__ (line 165) | def __enter__(self) -> Self: ...
method __exit__ (line 166) | def __exit__(
class AsyncExitStack (line 177) | class AsyncExitStack(_BaseExitStack[_ExitT_co], metaclass=abc.ABCMeta):
method enter_async_context (line 178) | async def enter_async_context(self, cm: AbstractAsyncContextManager[_T...
method push_async_exit (line 179) | def push_async_exit(self, exit: _ACM_EF) -> _ACM_EF: ...
method push_async_callback (line 180) | def push_async_callback(
method aclose (line 183) | async def aclose(self) -> None: ...
method __aenter__ (line 184) | async def __aenter__(self) -> Self: ...
method __aexit__ (line 185) | async def __aexit__(
class nullcontext (line 190) | class nullcontext(AbstractContextManager[_T, None], AbstractAsyncContext...
method __init__ (line 193) | def __init__(self: nullcontext[None], enter_result: None = None) -> No...
method __init__ (line 195) | def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # ...
method __enter__ (line 196) | def __enter__(self) -> _T: ...
method __exit__ (line 197) | def __exit__(self, *exctype: Unused) -> None: ...
method __aenter__ (line 198) | async def __aenter__(self) -> _T: ...
method __aexit__ (line 199) | async def __aexit__(self, *exctype: Unused) -> None: ...
method __init__ (line 205) | def __init__(self: nullcontext[None], enter_result: None = None) -> No...
method __init__ (line 207) | def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # ...
method __enter__ (line 208) | def __enter__(self) -> _T: ...
method __exit__ (line 209) | def __exit__(self, *exctype: Unused) -> None: ...
class nullcontext (line 202) | class nullcontext(AbstractContextManager[_T, None]):
method __init__ (line 193) | def __init__(self: nullcontext[None], enter_result: None = None) -> No...
method __init__ (line 195) | def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # ...
method __enter__ (line 196) | def __enter__(self) -> _T: ...
method __exit__ (line 197) | def __exit__(self, *exctype: Unused) -> None: ...
method __aenter__ (line 198) | async def __aenter__(self) -> _T: ...
method __aexit__ (line 199) | async def __aexit__(self, *exctype: Unused) -> None: ...
method __init__ (line 205) | def __init__(self: nullcontext[None], enter_result: None = None) -> No...
method __init__ (line 207) | def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # ...
method __enter__ (line 208) | def __enter__(self) -> _T: ...
method __exit__ (line 209) | def __exit__(self, *exctype: Unused) -> None: ...
class chdir (line 214) | class chdir(AbstractContextManager[None, None], Generic[_T_fd_or_any_pat...
method __init__ (line 216) | def __init__(self, path: _T_fd_or_any_path) -> None: ...
method __enter__ (line 217) | def __enter__(self) -> None: ...
method __exit__ (line 218) | def __exit__(self, *excinfo: Unused) -> None: ...
FILE: mypy/typeshed/stdlib/copy.pyi
class _SupportsReplace (line 10) | class _SupportsReplace(Protocol):
method __replace__ (line 12) | def __replace__(self, *args: Any, **kwargs: Any) -> Self: ...
function deepcopy (line 18) | def deepcopy(x: _T, memo: dict[int, Any] | None = None, _nil: Any = []) ...
function copy (line 19) | def copy(x: _T) -> _T: ...
function replace (line 23) | def replace(obj: _SR, /, **changes: Any) -> _SR: ...
class Error (line 25) | class Error(Exception): ...
FILE: mypy/typeshed/stdlib/copyreg.pyi
function pickle (line 10) | def pickle(
function constructor (line 15) | def constructor(object: Callable[[_Reduce[_T]], _T]) -> None: ...
function add_extension (line 16) | def add_extension(module: Hashable, name: Hashable, code: SupportsInt) -...
function remove_extension (line 17) | def remove_extension(module: Hashable, name: Hashable, code: int) -> Non...
function clear_extension_cache (line 18) | def clear_extension_cache() -> None: ...
FILE: mypy/typeshed/stdlib/crypt.pyi
class _MethodBase (line 6) | class _MethodBase(NamedTuple):
class _Method (line 12) | class _Method(_MethodBase): ...
function mksalt (line 19) | def mksalt(method: _Method | None = None, *, rounds: int | None = None) ...
function crypt (line 20) | def crypt(word: str, salt: str | _Method | None = None) -> str: ...
FILE: mypy/typeshed/stdlib/csv.pyi
class Dialect (line 63) | class Dialect:
method __init__ (line 72) | def __init__(self) -> None: ...
class excel (line 74) | class excel(Dialect): ...
class excel_tab (line 75) | class excel_tab(excel): ...
class unix_dialect (line 76) | class unix_dialect(Dialect): ...
class DictReader (line 78) | class DictReader(Iterator[dict[_T | Any, str | Any]], Generic[_T]):
method __init__ (line 86) | def __init__(
method __init__ (line 104) | def __init__(
method __iter__ (line 121) | def __iter__(self) -> Self: ...
method __next__ (line 122) | def __next__(self) -> dict[_T | Any, str | Any]: ...
method __class_getitem__ (line 124) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class DictWriter (line 126) | class DictWriter(Generic[_T]):
method __init__ (line 131) | def __init__(
method writeheader (line 148) | def writeheader(self) -> Any: ...
method writerow (line 149) | def writerow(self, rowdict: Mapping[_T, Any]) -> Any: ...
method writerows (line 150) | def writerows(self, rowdicts: Iterable[Mapping[_T, Any]]) -> None: ...
method __class_getitem__ (line 152) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class Sniffer (line 154) | class Sniffer:
method sniff (line 156) | def sniff(self, sample: str, delimiters: str | None = None) -> type[Di...
method has_header (line 157) | def has_header(self, sample: str) -> bool: ...
FILE: mypy/typeshed/stdlib/ctypes/__init__.pyi
class ArgumentError (line 47) | class ArgumentError(Exception): ...
class _CDLLFuncPointer (line 52) | class _CDLLFuncPointer(_CFuncPtr):
class _NamedFuncPointer (line 58) | class _NamedFuncPointer(_CDLLFuncPointer):
class CDLL (line 66) | class CDLL:
method __init__ (line 72) | def __init__(
method __getattr__ (line 81) | def __getattr__(self, name: str) -> _NamedFuncPointer: ...
method __getitem__ (line 82) | def __getitem__(self, name_or_ordinal: str) -> _NamedFuncPointer: ...
class OleDLL (line 85) | class OleDLL(CDLL): ...
class WinDLL (line 86) | class WinDLL(CDLL): ...
class PyDLL (line 88) | class PyDLL(CDLL): ...
class LibraryLoader (line 90) | class LibraryLoader(Generic[_DLLT]):
method __init__ (line 91) | def __init__(self, dlltype: type[_DLLT]) -> None: ...
method __getattr__ (line 92) | def __getattr__(self, name: str) -> _DLLT: ...
method __getitem__ (line 93) | def __getitem__(self, name: str) -> _DLLT: ...
method LoadLibrary (line 94) | def LoadLibrary(self, name: str) -> _DLLT: ...
method __class_getitem__ (line 96) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class _CFunctionType (line 111) | class _CFunctionType(_CFuncPtr):
function CFUNCTYPE (line 119) | def CFUNCTYPE(
function WINFUNCTYPE (line 127) | def WINFUNCTYPE(
function PYFUNCTYPE (line 134) | def PYFUNCTYPE(restype: type[_CData | _CDataType] | None, *argtypes: typ...
function cast (line 147) | def cast(obj: _CData | _CDataType | _CArgObject | int, typ: type[_CastT]...
function create_string_buffer (line 148) | def create_string_buffer(init: int | bytes, size: int | None = None) -> ...
function create_unicode_buffer (line 152) | def create_unicode_buffer(init: int | str, size: int | None = None) -> A...
function SetPointerType (line 154) | def SetPointerType(
function ARRAY (line 157) | def ARRAY(typ: _CT, len: int) -> Array[_CT]: ... # Soft Deprecated, no ...
function DllCanUnloadNow (line 160) | def DllCanUnloadNow() -> int: ...
function DllGetClassObject (line 161) | def DllGetClassObject(rclsid: Any, riid: Any, ppv: Any) -> int: ... # T...
class _GetLastErrorFunctionType (line 166) | class _GetLastErrorFunctionType(_NamedFuncPointer):
method __call__ (line 167) | def __call__(self) -> int: ...
class _MemmoveFunctionType (line 174) | class _MemmoveFunctionType(_CFunctionType):
method __call__ (line 175) | def __call__(self, dst: _CVoidPLike, src: _CVoidConstPLike, count: int...
class _MemsetFunctionType (line 182) | class _MemsetFunctionType(_CFunctionType):
method __call__ (line 183) | def __call__(self, dst: _CVoidPLike, c: int, count: int) -> int: ...
function string_at (line 187) | def string_at(ptr: _CVoidConstPLike, size: int = -1) -> bytes: ...
function WinError (line 190) | def WinError(code: int | None = None, descr: str | None = None) -> OSErr...
function wstring_at (line 192) | def wstring_at(ptr: _CVoidConstPLike, size: int = -1) -> str: ...
class c_byte (line 194) | class c_byte(_SimpleCData[int]): ...
class c_char (line 196) | class c_char(_SimpleCData[bytes]):
method __init__ (line 197) | def __init__(self, value: int | bytes | bytearray = ...) -> None: ...
class c_char_p (line 199) | class c_char_p(_PointerLike, _SimpleCData[bytes | None]):
method __init__ (line 200) | def __init__(self, value: int | bytes | None = ...) -> None: ...
method from_param (line 202) | def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
class c_double (line 204) | class c_double(_SimpleCData[float]): ...
class c_longdouble (line 205) | class c_longdouble(_SimpleCData[float]): ... # can be an alias for c_do...
class c_float (line 206) | class c_float(_SimpleCData[float]): ...
class c_int (line 207) | class c_int(_SimpleCData[int]): ... # can be an alias for c_long
class c_long (line 208) | class c_long(_SimpleCData[int]): ...
class c_longlong (line 209) | class c_longlong(_SimpleCData[int]): ... # can be an alias for c_long
class c_short (line 210) | class c_short(_SimpleCData[int]): ...
class c_size_t (line 211) | class c_size_t(_SimpleCData[int]): ... # alias for c_uint, c_ulong, or ...
class c_ssize_t (line 212) | class c_ssize_t(_SimpleCData[int]): ... # alias for c_int, c_long, or c...
class c_ubyte (line 213) | class c_ubyte(_SimpleCData[int]): ...
class c_uint (line 214) | class c_uint(_SimpleCData[int]): ... # can be an alias for c_ulong
class c_ulong (line 215) | class c_ulong(_SimpleCData[int]): ...
class c_ulonglong (line 216) | class c_ulonglong(_SimpleCData[int]): ... # can be an alias for c_ulong
class c_ushort (line 217) | class c_ushort(_SimpleCData[int]): ...
class c_void_p (line 219) | class c_void_p(_PointerLike, _SimpleCData[int | None]):
method from_param (line 221) | def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
class c_wchar (line 225) | class c_wchar(_SimpleCData[str]): ...
class c_int16 (line 230) | class c_int16(_SimpleCData[int]): ...
class c_int32 (line 231) | class c_int32(_SimpleCData[int]): ...
class c_int64 (line 232) | class c_int64(_SimpleCData[int]): ...
class c_uint16 (line 237) | class c_uint16(_SimpleCData[int]): ...
class c_uint32 (line 238) | class c_uint32(_SimpleCData[int]): ...
class c_uint64 (line 239) | class c_uint64(_SimpleCData[int]): ...
class c_wchar_p (line 241) | class c_wchar_p(_PointerLike, _SimpleCData[str | None]):
method __init__ (line 242) | def __init__(self, value: int | str | None = ...) -> None: ...
method from_param (line 244) | def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
class c_bool (line 246) | class c_bool(_SimpleCData[bool]):
method __init__ (line 247) | def __init__(self, value: bool = ...) -> None: ...
class HRESULT (line 250) | class HRESULT(_SimpleCData[int]): ... # TODO undocumented
class py_object (line 258) | class py_object(_CanCastTo, _SimpleCData[_T]): ...
class c_float_complex (line 261) | class c_float_complex(_SimpleCData[complex]): ...
class c_double_complex (line 262) | class c_double_complex(_SimpleCData[complex]): ...
class c_longdouble_complex (line 263) | class c_longdouble_complex(_SimpleCData[complex]): ...
FILE: mypy/typeshed/stdlib/ctypes/_endian.pyi
class BigEndianStructure (line 6) | class BigEndianStructure(Structure): ...
class LittleEndianStructure (line 7) | class LittleEndianStructure(Structure): ...
class BigEndianUnion (line 11) | class BigEndianUnion(Union): ...
class LittleEndianUnion (line 12) | class LittleEndianUnion(Union): ...
FILE: mypy/typeshed/stdlib/ctypes/macholib/dyld.pyi
function dyld_find (line 7) | def dyld_find(name: str, executable_path: str | None = None, env: Mappin...
function framework_find (line 8) | def framework_find(fn: str, executable_path: str | None = None, env: Map...
FILE: mypy/typeshed/stdlib/ctypes/macholib/dylib.pyi
class _DylibInfo (line 7) | class _DylibInfo(TypedDict):
function dylib_info (line 14) | def dylib_info(filename: str) -> _DylibInfo | None: ...
FILE: mypy/typeshed/stdlib/ctypes/macholib/framework.pyi
class _FrameworkInfo (line 7) | class _FrameworkInfo(TypedDict):
function framework_info (line 14) | def framework_info(filename: str) -> _FrameworkInfo | None: ...
FILE: mypy/typeshed/stdlib/ctypes/util.pyi
function find_library (line 3) | def find_library(name: str) -> str | None: ...
function find_msvcrt (line 6) | def find_msvcrt() -> str | None: ...
function test (line 8) | def test() -> None: ...
FILE: mypy/typeshed/stdlib/ctypes/wintypes.pyi
class VARIANT_BOOL (line 39) | class VARIANT_BOOL(_SimpleCData[bool]): ...
class WPARAM (line 63) | class WPARAM(_SimpleCData[int]): ...
class LPARAM (line 64) | class LPARAM(_SimpleCData[int]): ...
class RECT (line 109) | class RECT(Structure):
class _SMALL_RECT (line 119) | class _SMALL_RECT(Structure):
class _COORD (line 127) | class _COORD(Structure):
class POINT (line 131) | class POINT(Structure):
class SIZE (line 139) | class SIZE(Structure):
function RGB (line 146) | def RGB(red: int, green: int, blue: int) -> int: ...
class FILETIME (line 148) | class FILETIME(Structure):
class MSG (line 154) | class MSG(Structure):
class WIN32_FIND_DATAA (line 165) | class WIN32_FIND_DATAA(Structure):
class WIN32_FIND_DATAW (line 177) | class WIN32_FIND_DATAW(Structure):
class PSHORT (line 195) | class PSHORT(_Pointer[SHORT]): ...
class PUSHORT (line 198) | class PUSHORT(_Pointer[USHORT]): ...
class PLONG (line 204) | class PLONG(_Pointer[LONG]): ...
class PULONG (line 211) | class PULONG(_Pointer[ULONG]): ...
class PINT (line 219) | class PINT(_Pointer[INT]): ...
class PUINT (line 224) | class PUINT(_Pointer[UINT]): ...
class PFLOAT (line 229) | class PFLOAT(_Pointer[FLOAT]): ...
class PLARGE_INTEGER (line 232) | class PLARGE_INTEGER(_Pointer[LARGE_INTEGER]): ...
class PULARGE_INTEGER (line 235) | class PULARGE_INTEGER(_Pointer[ULARGE_INTEGER]): ...
class PBYTE (line 238) | class PBYTE(_Pointer[BYTE]): ...
class PCHAR (line 244) | class PCHAR(_Pointer[CHAR]):
method from_param (line 247) | def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
class PWCHAR (line 250) | class PWCHAR(_Pointer[WCHAR]):
method from_param (line 253) | def from_param(cls, value: Any, /) -> Self | _CArgObject: ...
class PHANDLE (line 256) | class PHANDLE(_Pointer[HANDLE]): ...
class PFILETIME (line 264) | class PFILETIME(_Pointer[FILETIME]): ...
class PMSG (line 269) | class PMSG(_Pointer[MSG]): ...
class PPOINT (line 274) | class PPOINT(_Pointer[POINT]): ...
class PRECT (line 280) | class PRECT(_Pointer[RECT]): ...
class PSIZE (line 287) | class PSIZE(_Pointer[SIZE]): ...
class PSMALL_RECT (line 294) | class PSMALL_RECT(_Pointer[SMALL_RECT]): ...
class PWIN32_FIND_DATAA (line 297) | class PWIN32_FIND_DATAA(_Pointer[WIN32_FIND_DATAA]): ...
class PWIN32_FIND_DATAW (line 302) | class PWIN32_FIND_DATAW(_Pointer[WIN32_FIND_DATAW]): ...
FILE: mypy/typeshed/stdlib/curses/__init__.pyi
function wrapper (line 24) | def wrapper(func: Callable[Concatenate[window, _P], _T], /, *arg: _P.arg...
class _ncurses_version (line 36) | class _ncurses_version(structseq[int], tuple[int, int, int]):
method major (line 41) | def major(self) -> int: ...
method minor (line 43) | def minor(self) -> int: ...
method patch (line 45) | def patch(self) -> int: ...
FILE: mypy/typeshed/stdlib/curses/ascii.pyi
function isalnum (line 44) | def isalnum(c: str | int) -> bool: ...
function isalpha (line 45) | def isalpha(c: str | int) -> bool: ...
function isascii (line 46) | def isascii(c: str | int) -> bool: ...
function isblank (line 47) | def isblank(c: str | int) -> bool: ...
function iscntrl (line 48) | def iscntrl(c: str | int) -> bool: ...
function isdigit (line 49) | def isdigit(c: str | int) -> bool: ...
function isgraph (line 50) | def isgraph(c: str | int) -> bool: ...
function islower (line 51) | def islower(c: str | int) -> bool: ...
function isprint (line 52) | def isprint(c: str | int) -> bool: ...
function ispunct (line 53) | def ispunct(c: str | int) -> bool: ...
function isspace (line 54) | def isspace(c: str | int) -> bool: ...
function isupper (line 55) | def isupper(c: str | int) -> bool: ...
function isxdigit (line 56) | def isxdigit(c: str | int) -> bool: ...
function isctrl (line 57) | def isctrl(c: str | int) -> bool: ...
function ismeta (line 58) | def ismeta(c: str | int) -> bool: ...
function ascii (line 59) | def ascii(c: _CharT) -> _CharT: ...
function ctrl (line 60) | def ctrl(c: _CharT) -> _CharT: ...
function alt (line 61) | def alt(c: _CharT) -> _CharT: ...
function unctrl (line 62) | def unctrl(c: str | int) -> str: ...
FILE: mypy/typeshed/stdlib/curses/has_key.pyi
function has_key (line 1) | def has_key(ch: int | str) -> bool: ...
FILE: mypy/typeshed/stdlib/curses/textpad.pyi
function rectangle (line 4) | def rectangle(win: window, uly: int, ulx: int, lry: int, lrx: int) -> No...
class Textbox (line 6) | class Textbox:
method __init__ (line 8) | def __init__(self, win: window, insert_mode: bool = False) -> None: ...
method edit (line 9) | def edit(self, validate: Callable[[int], int] | None = None) -> str: ...
method do_command (line 10) | def do_command(self, ch: str | int) -> None: ...
method gather (line 11) | def gather(self) -> str: ...
FILE: mypy/typeshed/stdlib/dataclasses.pyi
class _MISSING_TYPE (line 41) | class _MISSING_TYPE(enum.Enum):
class KW_ONLY (line 47) | class KW_ONLY: ...
function asdict (line 50) | def asdict(obj: DataclassInstance) -> dict[str, Any]: ...
function asdict (line 52) | def asdict(obj: DataclassInstance, *, dict_factory: Callable[[list[tuple...
function astuple (line 54) | def astuple(obj: DataclassInstance) -> tuple[Any, ...]: ...
function astuple (line 56) | def astuple(obj: DataclassInstance, *, tuple_factory: Callable[[list[Any...
function dataclass (line 58) | def dataclass(cls: None, /) -> Callable[[type[_T]], type[_T]]: ...
function dataclass (line 60) | def dataclass(cls: type[_T], /) -> type[_T]: ...
function dataclass (line 64) | def dataclass(
function dataclass (line 80) | def dataclass(
function dataclass (line 95) | def dataclass(
class _DefaultFactory (line 106) | class _DefaultFactory(Protocol[_T_co]):
method __call__ (line 107) | def __call__(self) -> _T_co: ...
class Field (line 109) | class Field(Generic[_T]):
method __init__ (line 121) | def __init__(
method __init__ (line 133) | def __init__(
method __set_name__ (line 144) | def __set_name__(self, owner: Type[Any], name: str) -> None: ...
method __class_getitem__ (line 146) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function field (line 152) | def field(
function field (line 164) | def field(
function field (line 176) | def field(
function field (line 190) | def field(
function field (line 201) | def field(
function field (line 212) | def field(
function fields (line 223) | def fields(class_or_instance: DataclassInstance | type[DataclassInstance...
function is_dataclass (line 227) | def is_dataclass(obj: Never) -> TypeIs[DataclassInstance | type[Dataclas...
function is_dataclass (line 229) | def is_dataclass(obj: type) -> TypeIs[type[DataclassInstance]]: ...
function is_dataclass (line 231) | def is_dataclass(obj: object) -> TypeIs[DataclassInstance | type[Datacla...
class FrozenInstanceError (line 233) | class FrozenInstanceError(AttributeError): ...
class _InitVarMeta (line 238) | class _InitVarMeta(type):
method __getitem__ (line 241) | def __getitem__(self, params: Any) -> InitVar[Any]: ... # pyright: ig...
class InitVar (line 243) | class InitVar(Generic[_T], metaclass=_InitVarMeta):
method __init__ (line 245) | def __init__(self, type: Type[_T]) -> None: ...
method __class_getitem__ (line 248) | def __class_getitem__(cls, type: Type[_T]) -> InitVar[_T]: ... # pyri...
method __class_getitem__ (line 250) | def __class_getitem__(cls, type: Any) -> InitVar[Any]: ... # pyright:...
function make_dataclass (line 253) | def make_dataclass(
function make_dataclass (line 273) | def make_dataclass(
function make_dataclass (line 292) | def make_dataclass(
function make_dataclass (line 310) | def make_dataclass(
function replace (line 324) | def replace(obj: _DataclassT, /, **changes: Any) -> _DataclassT: ...
FILE: mypy/typeshed/stdlib/datetime.pyi
class tzinfo (line 15) | class tzinfo:
method tzname (line 17) | def tzname(self, dt: datetime | None, /) -> str | None: ...
method utcoffset (line 19) | def utcoffset(self, dt: datetime | None, /) -> timedelta | None: ...
method dst (line 21) | def dst(self, dt: datetime | None, /) -> timedelta | None: ...
method fromutc (line 22) | def fromutc(self, dt: datetime, /) -> datetime: ...
class timezone (line 28) | class timezone(tzinfo):
method __new__ (line 32) | def __new__(cls, offset: timedelta, name: str = ...) -> Self: ...
method tzname (line 33) | def tzname(self, dt: datetime | None, /) -> str: ...
method utcoffset (line 34) | def utcoffset(self, dt: datetime | None, /) -> timedelta: ...
method dst (line 35) | def dst(self, dt: datetime | None, /) -> None: ...
method __hash__ (line 36) | def __hash__(self) -> int: ...
method __eq__ (line 37) | def __eq__(self, value: object, /) -> bool: ...
class _IsoCalendarDate (line 47) | class _IsoCalendarDate(tuple[int, int, int]):
method year (line 49) | def year(self) -> int: ...
method week (line 51) | def week(self) -> int: ...
method weekday (line 53) | def weekday(self) -> int: ...
class date (line 55) | class date:
method __new__ (line 59) | def __new__(cls, year: SupportsIndex, month: SupportsIndex, day: Suppo...
method fromtimestamp (line 61) | def fromtimestamp(cls, timestamp: float, /) -> Self: ...
method today (line 63) | def today(cls) -> Self: ...
method fromordinal (line 65) | def fromordinal(cls, n: int, /) -> Self: ...
method fromisoformat (line 67) | def fromisoformat(cls, date_string: str, /) -> Self: ...
method fromisocalendar (line 69) | def fromisocalendar(cls, year: int, week: int, day: int) -> Self: ...
method year (line 71) | def year(self) -> int: ...
method month (line 73) | def month(self) -> int: ...
method day (line 75) | def day(self) -> int: ...
method ctime (line 76) | def ctime(self) -> str: ...
method strftime (line 81) | def strftime(self, format: str) -> str: ...
method strftime (line 83) | def strftime(self, format: str, /) -> str: ...
method __format__ (line 85) | def __format__(self, fmt: str, /) -> str: ...
method isoformat (line 86) | def isoformat(self) -> str: ...
method timetuple (line 87) | def timetuple(self) -> struct_time: ...
method toordinal (line 88) | def toordinal(self) -> int: ...
method __replace__ (line 90) | def __replace__(self, /, *, year: SupportsIndex = ..., month: Supports...
method replace (line 92) | def replace(self, year: SupportsIndex = ..., month: SupportsIndex = .....
method __le__ (line 93) | def __le__(self, value: date, /) -> bool: ...
method __lt__ (line 94) | def __lt__(self, value: date, /) -> bool: ...
method __ge__ (line 95) | def __ge__(self, value: date, /) -> bool: ...
method __gt__ (line 96) | def __gt__(self, value: date, /) -> bool: ...
method __eq__ (line 97) | def __eq__(self, value: object, /) -> bool: ...
method __add__ (line 98) | def __add__(self, value: timedelta, /) -> Self: ...
method __radd__ (line 99) | def __radd__(self, value: timedelta, /) -> Self: ...
method __sub__ (line 101) | def __sub__(self, value: datetime, /) -> NoReturn: ...
method __sub__ (line 103) | def __sub__(self, value: Self, /) -> timedelta: ...
method __sub__ (line 105) | def __sub__(self, value: timedelta, /) -> Self: ...
method __hash__ (line 106) | def __hash__(self) -> int: ...
method weekday (line 107) | def weekday(self) -> int: ...
method isoweekday (line 108) | def isoweekday(self) -> int: ...
method isocalendar (line 110) | def isocalendar(self) -> _IsoCalendarDate: ...
method isocalendar (line 112) | def isocalendar(self) -> tuple[int, int, int]: ...
class time (line 114) | class time:
method __new__ (line 118) | def __new__(
method hour (line 129) | def hour(self) -> int: ...
method minute (line 131) | def minute(self) -> int: ...
method second (line 133) | def second(self) -> int: ...
method microsecond (line 135) | def microsecond(self) -> int: ...
method tzinfo (line 137) | def tzinfo(self) -> _TzInfo | None: ...
method fold (line 139) | def fold(self) -> int: ...
method __le__ (line 140) | def __le__(self, value: time, /) -> bool: ...
method __lt__ (line 141) | def __lt__(self, value: time, /) -> bool: ...
method __ge__ (line 142) | def __ge__(self, value: time, /) -> bool: ...
method __gt__ (line 143) | def __gt__(self, value: time, /) -> bool: ...
method __eq__ (line 144) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 145) | def __hash__(self) -> int: ...
method isoformat (line 146) | def isoformat(self, timespec: str = ...) -> str: ...
method fromisoformat (line 148) | def fromisoformat(cls, time_string: str, /) -> Self: ...
method strftime (line 153) | def strftime(self, format: str) -> str: ...
method strftime (line 155) | def strftime(self, format: str, /) -> str: ...
method __format__ (line 157) | def __format__(self, fmt: str, /) -> str: ...
method utcoffset (line 158) | def utcoffset(self) -> timedelta | None: ...
method tzname (line 159) | def tzname(self) -> str | None: ...
method dst (line 160) | def dst(self) -> timedelta | None: ...
method __replace__ (line 162) | def __replace__(
method replace (line 174) | def replace(
class timedelta (line 188) | class timedelta:
method __new__ (line 192) | def __new__(
method days (line 203) | def days(self) -> int: ...
method seconds (line 205) | def seconds(self) -> int: ...
method microseconds (line 207) | def microseconds(self) -> int: ...
method total_seconds (line 208) | def total_seconds(self) -> float: ...
method __add__ (line 209) | def __add__(self, value: timedelta, /) -> timedelta: ...
method __radd__ (line 210) | def __radd__(self, value: timedelta, /) -> timedelta: ...
method __sub__ (line 211) | def __sub__(self, value: timedelta, /) -> timedelta: ...
method __rsub__ (line 212) | def __rsub__(self, value: timedelta, /) -> timedelta: ...
method __neg__ (line 213) | def __neg__(self) -> timedelta: ...
method __pos__ (line 214) | def __pos__(self) -> timedelta: ...
method __abs__ (line 215) | def __abs__(self) -> timedelta: ...
method __mul__ (line 216) | def __mul__(self, value: float, /) -> timedelta: ...
method __rmul__ (line 217) | def __rmul__(self, value: float, /) -> timedelta: ...
method __floordiv__ (line 219) | def __floordiv__(self, value: timedelta, /) -> int: ...
method __floordiv__ (line 221) | def __floordiv__(self, value: int, /) -> timedelta: ...
method __truediv__ (line 223) | def __truediv__(self, value: timedelta, /) -> float: ...
method __truediv__ (line 225) | def __truediv__(self, value: float, /) -> timedelta: ...
method __mod__ (line 226) | def __mod__(self, value: timedelta, /) -> timedelta: ...
method __divmod__ (line 227) | def __divmod__(self, value: timedelta, /) -> tuple[int, timedelta]: ...
method __le__ (line 228) | def __le__(self, value: timedelta, /) -> bool: ...
method __lt__ (line 229) | def __lt__(self, value: timedelta, /) -> bool: ...
method __ge__ (line 230) | def __ge__(self, value: timedelta, /) -> bool: ...
method __gt__ (line 231) | def __gt__(self, value: timedelta, /) -> bool: ...
method __eq__ (line 232) | def __eq__(self, value: object, /) -> bool: ...
method __bool__ (line 233) | def __bool__(self) -> bool: ...
method __hash__ (line 234) | def __hash__(self) -> int: ...
method __str__ (line 235) | def __str__(self) -> str: ...
class datetime (line 237) | class datetime(date):
method __new__ (line 240) | def __new__(
method hour (line 254) | def hour(self) -> int: ...
method minute (line 256) | def minute(self) -> int: ...
method second (line 258) | def second(self) -> int: ...
method microsecond (line 260) | def microsecond(self) -> int: ...
method tzinfo (line 262) | def tzinfo(self) -> _TzInfo | None: ...
method fold (line 264) | def fold(self) -> int: ...
method fromtimestamp (line 270) | def fromtimestamp(cls, timestamp: float, tz: _TzInfo | None = ...) -> ...
method fromtimestamp (line 273) | def fromtimestamp(cls, timestamp: float, /, tz: _TzInfo | None = ...) ...
method utcfromtimestamp (line 277) | def utcfromtimestamp(cls, t: float, /) -> Self: ...
method now (line 279) | def now(cls, tz: _TzInfo | None = None) -> Self: ...
method utcnow (line 282) | def utcnow(cls) -> Self: ...
method combine (line 284) | def combine(cls, date: _Date, time: _Time, tzinfo: _TzInfo | None = .....
method timestamp (line 285) | def timestamp(self) -> float: ...
method utctimetuple (line 286) | def utctimetuple(self) -> struct_time: ...
method date (line 287) | def date(self) -> _Date: ...
method time (line 288) | def time(self) -> _Time: ...
method timetz (line 289) | def timetz(self) -> _Time: ...
method __replace__ (line 291) | def __replace__(
method replace (line 306) | def replace(
method astimezone (line 319) | def astimezone(self, tz: _TzInfo | None = ...) -> Self: ...
method isoformat (line 320) | def isoformat(self, sep: str = ..., timespec: str = ...) -> str: ...
method strptime (line 322) | def strptime(cls, date_string: str, format: str, /) -> Self: ...
method utcoffset (line 323) | def utcoffset(self) -> timedelta | None: ...
method tzname (line 324) | def tzname(self) -> str | None: ...
method dst (line 325) | def dst(self) -> timedelta | None: ...
method __le__ (line 326) | def __le__(self, value: datetime, /) -> bool: ... # type: ignore[over...
method __lt__ (line 327) | def __lt__(self, value: datetime, /) -> bool: ... # type: ignore[over...
method __ge__ (line 328) | def __ge__(self, value: datetime, /) -> bool: ... # type: ignore[over...
method __gt__ (line 329) | def __gt__(self, value: datetime, /) -> bool: ... # type: ignore[over...
method __eq__ (line 330) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 331) | def __hash__(self) -> int: ...
method __sub__ (line 333) | def __sub__(self, value: Self, /) -> timedelta: ...
method __sub__ (line 335) | def __sub__(self, value: timedelta, /) -> Self: ...
FILE: mypy/typeshed/stdlib/dbm/__init__.pyi
class _Database (line 79) | class _Database(MutableMapping[_KeyType, bytes]):
method close (line 80) | def close(self) -> None: ...
method __getitem__ (line 81) | def __getitem__(self, key: _KeyType) -> bytes: ...
method __setitem__ (line 82) | def __setitem__(self, key: _KeyType, value: _ValueType) -> None: ...
method __delitem__ (line 83) | def __delitem__(self, key: _KeyType) -> None: ...
method __iter__ (line 84) | def __iter__(self) -> Iterator[bytes]: ...
method __len__ (line 85) | def __len__(self) -> int: ...
method __del__ (line 86) | def __del__(self) -> None: ...
method __enter__ (line 87) | def __enter__(self) -> Self: ...
method __exit__ (line 88) | def __exit__(
class _error (line 94) | class _error(Exception): ...
function whichdb (line 99) | def whichdb(filename: StrOrBytesPath) -> str | None: ...
function open (line 100) | def open(file: StrOrBytesPath, flag: _TFlags = "r", mode: int = 0o666) -...
function whichdb (line 103) | def whichdb(filename: str) -> str | None: ...
function open (line 104) | def open(file: str, flag: _TFlags = "r", mode: int = 0o666) -> _Database...
FILE: mypy/typeshed/stdlib/dbm/dumb.pyi
class _Database (line 17) | class _Database(MutableMapping[_KeyType, bytes]):
method __init__ (line 18) | def __init__(self, filebasename: str, mode: str, flag: str = "c") -> N...
method sync (line 19) | def sync(self) -> None: ...
method iterkeys (line 20) | def iterkeys(self) -> Iterator[bytes]: ... # undocumented
method close (line 21) | def close(self) -> None: ...
method __getitem__ (line 22) | def __getitem__(self, key: _KeyType) -> bytes: ...
method __setitem__ (line 23) | def __setitem__(self, key: _KeyType, val: _ValueType) -> None: ...
method __delitem__ (line 24) | def __delitem__(self, key: _KeyType) -> None: ...
method __iter__ (line 25) | def __iter__(self) -> Iterator[bytes]: ...
method __len__ (line 26) | def __len__(self) -> int: ...
method __del__ (line 27) | def __del__(self) -> None: ...
method __enter__ (line 28) | def __enter__(self) -> Self: ...
method __exit__ (line 29) | def __exit__(
function open (line 34) | def open(file: StrOrBytesPath, flag: str = "c", mode: int = 0o666) -> _D...
function open (line 37) | def open(file: str, flag: str = "c", mode: int = 0o666) -> _Database: ...
FILE: mypy/typeshed/stdlib/dbm/sqlite3.pyi
class error (line 15) | class error(OSError): ...
class _Database (line 17) | class _Database(MutableMapping[bytes, bytes]):
method __init__ (line 18) | def __init__(self, path: StrOrBytesPath, /, *, flag: Literal["r", "w",...
method __len__ (line 19) | def __len__(self) -> int: ...
method __getitem__ (line 20) | def __getitem__(self, key: _SqliteData) -> bytes: ...
method __setitem__ (line 21) | def __setitem__(self, key: _SqliteData, value: _SqliteData) -> None: ...
method __delitem__ (line 22) | def __delitem__(self, key: _SqliteData) -> None: ...
method __iter__ (line 23) | def __iter__(self) -> Generator[bytes]: ...
method close (line 24) | def close(self) -> None: ...
method keys (line 25) | def keys(self) -> list[bytes]: ... # type: ignore[override]
method __enter__ (line 26) | def __enter__(self) -> Self: ...
method __exit__ (line 27) | def __exit__(self, *args: Unused) -> None: ...
function open (line 29) | def open(filename: StrOrBytesPath, /, flag: Literal["r", "w,", "c", "n"]...
FILE: mypy/typeshed/stdlib/decimal.pyi
class _ContextManager (line 42) | class _ContextManager:
method __init__ (line 43) | def __init__(self, new_context: Context) -> None: ...
method __enter__ (line 44) | def __enter__(self) -> Context: ...
method __exit__ (line 45) | def __exit__(self, t: type[BaseException] | None, v: BaseException | N...
class DecimalTuple (line 47) | class DecimalTuple(NamedTuple):
class DecimalException (line 52) | class DecimalException(ArithmeticError): ...
class Clamped (line 53) | class Clamped(DecimalException): ...
class InvalidOperation (line 54) | class InvalidOperation(DecimalException): ...
class ConversionSyntax (line 55) | class ConversionSyntax(InvalidOperation): ...
class DivisionByZero (line 56) | class DivisionByZero(DecimalException, ZeroDivisionError): ...
class DivisionImpossible (line 57) | class DivisionImpossible(InvalidOperation): ...
class DivisionUndefined (line 58) | class DivisionUndefined(InvalidOperation, ZeroDivisionError): ...
class Inexact (line 59) | class Inexact(DecimalException): ...
class InvalidContext (line 60) | class InvalidContext(InvalidOperation): ...
class Rounded (line 61) | class Rounded(DecimalException): ...
class Subnormal (line 62) | class Subnormal(DecimalException): ...
class Overflow (line 63) | class Overflow(Inexact, Rounded): ...
class Underflow (line 64) | class Underflow(Inexact, Rounded, Subnormal): ...
class FloatOperation (line 65) | class FloatOperation(DecimalException, TypeError): ...
class Decimal (line 67) | class Decimal:
method __new__ (line 68) | def __new__(cls, value: _DecimalNew = ..., context: Context | None = ....
method from_float (line 70) | def from_float(cls, f: float, /) -> Self: ...
method __bool__ (line 71) | def __bool__(self) -> bool: ...
method compare (line 72) | def compare(self, other: _Decimal, context: Context | None = None) -> ...
method __hash__ (line 73) | def __hash__(self) -> int: ...
method as_tuple (line 74) | def as_tuple(self) -> DecimalTuple: ...
method as_integer_ratio (line 75) | def as_integer_ratio(self) -> tuple[int, int]: ...
method to_eng_string (line 76) | def to_eng_string(self, context: Context | None = None) -> str: ...
method __abs__ (line 77) | def __abs__(self) -> Decimal: ...
method __add__ (line 78) | def __add__(self, value: _Decimal, /) -> Decimal: ...
method __divmod__ (line 79) | def __divmod__(self, value: _Decimal, /) -> tuple[Decimal, Decimal]: ...
method __eq__ (line 80) | def __eq__(self, value: object, /) -> bool: ...
method __floordiv__ (line 81) | def __floordiv__(self, value: _Decimal, /) -> Decimal: ...
method __ge__ (line 82) | def __ge__(self, value: _ComparableNum, /) -> bool: ...
method __gt__ (line 83) | def __gt__(self, value: _ComparableNum, /) -> bool: ...
method __le__ (line 84) | def __le__(self, value: _ComparableNum, /) -> bool: ...
method __lt__ (line 85) | def __lt__(self, value: _ComparableNum, /) -> bool: ...
method __mod__ (line 86) | def __mod__(self, value: _Decimal, /) -> Decimal: ...
method __mul__ (line 87) | def __mul__(self, value: _Decimal, /) -> Decimal: ...
method __neg__ (line 88) | def __neg__(self) -> Decimal: ...
method __pos__ (line 89) | def __pos__(self) -> Decimal: ...
method __pow__ (line 90) | def __pow__(self, value: _Decimal, mod: _Decimal | None = None, /) -> ...
method __radd__ (line 91) | def __radd__(self, value: _Decimal, /) -> Decimal: ...
method __rdivmod__ (line 92) | def __rdivmod__(self, value: _Decimal, /) -> tuple[Decimal, Decimal]: ...
method __rfloordiv__ (line 93) | def __rfloordiv__(self, value: _Decimal, /) -> Decimal: ...
method __rmod__ (line 94) | def __rmod__(self, value: _Decimal, /) -> Decimal: ...
method __rmul__ (line 95) | def __rmul__(self, value: _Decimal, /) -> Decimal: ...
method __rsub__ (line 96) | def __rsub__(self, value: _Decimal, /) -> Decimal: ...
method __rtruediv__ (line 97) | def __rtruediv__(self, value: _Decimal, /) -> Decimal: ...
method __sub__ (line 98) | def __sub__(self, value: _Decimal, /) -> Decimal: ...
method __truediv__ (line 99) | def __truediv__(self, value: _Decimal, /) -> Decimal: ...
method remainder_near (line 100) | def remainder_near(self, other: _Decimal, context: Context | None = No...
method __float__ (line 101) | def __float__(self) -> float: ...
method __int__ (line 102) | def __int__(self) -> int: ...
method __trunc__ (line 103) | def __trunc__(self) -> int: ...
method real (line 105) | def real(self) -> Decimal: ...
method imag (line 107) | def imag(self) -> Decimal: ...
method conjugate (line 108) | def conjugate(self) -> Decimal: ...
method __complex__ (line 109) | def __complex__(self) -> complex: ...
method __round__ (line 111) | def __round__(self) -> int: ...
method __round__ (line 113) | def __round__(self, ndigits: int, /) -> Decimal: ...
method __floor__ (line 114) | def __floor__(self) -> int: ...
method __ceil__ (line 115) | def __ceil__(self) -> int: ...
method fma (line 116) | def fma(self, other: _Decimal, third: _Decimal, context: Context | Non...
method __rpow__ (line 117) | def __rpow__(self, value: _Decimal, mod: Context | None = None, /) -> ...
method normalize (line 118) | def normalize(self, context: Context | None = None) -> Decimal: ...
method quantize (line 119) | def quantize(self, exp: _Decimal, rounding: str | None = None, context...
method same_quantum (line 120) | def same_quantum(self, other: _Decimal, context: Context | None = None...
method to_integral_exact (line 121) | def to_integral_exact(self, rounding: str | None = None, context: Cont...
method to_integral_value (line 122) | def to_integral_value(self, rounding: str | None = None, context: Cont...
method to_integral (line 123) | def to_integral(self, rounding: str | None = None, context: Context | ...
method sqrt (line 124) | def sqrt(self, context: Context | None = None) -> Decimal: ...
method max (line 125) | def max(self, other: _Decimal, context: Context | None = None) -> Deci...
method min (line 126) | def min(self, other: _Decimal, context: Context | None = None) -> Deci...
method adjusted (line 127) | def adjusted(self) -> int: ...
method canonical (line 128) | def canonical(self) -> Decimal: ...
method compare_signal (line 129) | def compare_signal(self, other: _Decimal, context: Context | None = No...
method compare_total (line 130) | def compare_total(self, other: _Decimal, context: Context | None = Non...
method compare_total_mag (line 131) | def compare_total_mag(self, other: _Decimal, context: Context | None =...
method copy_abs (line 132) | def copy_abs(self) -> Decimal: ...
method copy_negate (line 133) | def copy_negate(self) -> Decimal: ...
method copy_sign (line 134) | def copy_sign(self, other: _Decimal, context: Context | None = None) -...
method exp (line 135) | def exp(self, context: Context | None = None) -> Decimal: ...
method is_canonical (line 136) | def is_canonical(self) -> bool: ...
method is_finite (line 137) | def is_finite(self) -> bool: ...
method is_infinite (line 138) | def is_infinite(self) -> bool: ...
method is_nan (line 139) | def is_nan(self) -> bool: ...
method is_normal (line 140) | def is_normal(self, context: Context | None = None) -> bool: ...
method is_qnan (line 141) | def is_qnan(self) -> bool: ...
method is_signed (line 142) | def is_signed(self) -> bool: ...
method is_snan (line 143) | def is_snan(self) -> bool: ...
method is_subnormal (line 144) | def is_subnormal(self, context: Context | None = None) -> bool: ...
method is_zero (line 145) | def is_zero(self) -> bool: ...
method ln (line 146) | def ln(self, context: Context | None = None) -> Decimal: ...
method log10 (line 147) | def log10(self, context: Context | None = None) -> Decimal: ...
method logb (line 148) | def logb(self, context: Context | None = None) -> Decimal: ...
method logical_and (line 149) | def logical_and(self, other: _Decimal, context: Context | None = None)...
method logical_invert (line 150) | def logical_invert(self, context: Context | None = None) -> Decimal: ...
method logical_or (line 151) | def logical_or(self, other: _Decimal, context: Context | None = None) ...
method logical_xor (line 152) | def logical_xor(self, other: _Decimal, context: Context | None = None)...
method max_mag (line 153) | def max_mag(self, other: _Decimal, context: Context | None = None) -> ...
method min_mag (line 154) | def min_mag(self, other: _Decimal, context: Context | None = None) -> ...
method next_minus (line 155) | def next_minus(self, context: Context | None = None) -> Decimal: ...
method next_plus (line 156) | def next_plus(self, context: Context | None = None) -> Decimal: ...
method next_toward (line 157) | def next_toward(self, other: _Decimal, context: Context | None = None)...
method number_class (line 158) | def number_class(self, context: Context | None = None) -> str: ...
method radix (line 159) | def radix(self) -> Decimal: ...
method rotate (line 160) | def rotate(self, other: _Decimal, context: Context | None = None) -> D...
method scaleb (line 161) | def scaleb(self, other: _Decimal, context: Context | None = None) -> D...
method shift (line 162) | def shift(self, other: _Decimal, context: Context | None = None) -> De...
method __reduce__ (line 163) | def __reduce__(self) -> tuple[type[Self], tuple[str]]: ...
method __copy__ (line 164) | def __copy__(self) -> Self: ...
method __deepcopy__ (line 165) | def __deepcopy__(self, memo: Any, /) -> Self: ...
method __format__ (line 166) | def __format__(self, specifier: str, context: Context | None = ..., /)...
class Context (line 168) | class Context:
method __init__ (line 182) | def __init__(
method __reduce__ (line 193) | def __reduce__(self) -> tuple[type[Self], tuple[Any, ...]]: ...
method clear_flags (line 194) | def clear_flags(self) -> None: ...
method clear_traps (line 195) | def clear_traps(self) -> None: ...
method copy (line 196) | def copy(self) -> Context: ...
method __copy__ (line 197) | def __copy__(self) -> Context: ...
method Etiny (line 200) | def Etiny(self) -> int: ...
method Etop (line 201) | def Etop(self) -> int: ...
method create_decimal (line 202) | def create_decimal(self, num: _DecimalNew = "0", /) -> Decimal: ...
method create_decimal_from_float (line 203) | def create_decimal_from_float(self, f: float, /) -> Decimal: ...
method abs (line 204) | def abs(self, x: _Decimal, /) -> Decimal: ...
method add (line 205) | def add(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method canonical (line 206) | def canonical(self, x: Decimal, /) -> Decimal: ...
method compare (line 207) | def compare(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method compare_signal (line 208) | def compare_signal(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method compare_total (line 209) | def compare_total(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method compare_total_mag (line 210) | def compare_total_mag(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method copy_abs (line 211) | def copy_abs(self, x: _Decimal, /) -> Decimal: ...
method copy_decimal (line 212) | def copy_decimal(self, x: _Decimal, /) -> Decimal: ...
method copy_negate (line 213) | def copy_negate(self, x: _Decimal, /) -> Decimal: ...
method copy_sign (line 214) | def copy_sign(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method divide (line 215) | def divide(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method divide_int (line 216) | def divide_int(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method divmod (line 217) | def divmod(self, x: _Decimal, y: _Decimal, /) -> tuple[Decimal, Decima...
method exp (line 218) | def exp(self, x: _Decimal, /) -> Decimal: ...
method fma (line 219) | def fma(self, x: _Decimal, y: _Decimal, z: _Decimal, /) -> Decimal: ...
method is_canonical (line 220) | def is_canonical(self, x: _Decimal, /) -> bool: ...
method is_finite (line 221) | def is_finite(self, x: _Decimal, /) -> bool: ...
method is_infinite (line 222) | def is_infinite(self, x: _Decimal, /) -> bool: ...
method is_nan (line 223) | def is_nan(self, x: _Decimal, /) -> bool: ...
method is_normal (line 224) | def is_normal(self, x: _Decimal, /) -> bool: ...
method is_qnan (line 225) | def is_qnan(self, x: _Decimal, /) -> bool: ...
method is_signed (line 226) | def is_signed(self, x: _Decimal, /) -> bool: ...
method is_snan (line 227) | def is_snan(self, x: _Decimal, /) -> bool: ...
method is_subnormal (line 228) | def is_subnormal(self, x: _Decimal, /) -> bool: ...
method is_zero (line 229) | def is_zero(self, x: _Decimal, /) -> bool: ...
method ln (line 230) | def ln(self, x: _Decimal, /) -> Decimal: ...
method log10 (line 231) | def log10(self, x: _Decimal, /) -> Decimal: ...
method logb (line 232) | def logb(self, x: _Decimal, /) -> Decimal: ...
method logical_and (line 233) | def logical_and(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method logical_invert (line 234) | def logical_invert(self, x: _Decimal, /) -> Decimal: ...
method logical_or (line 235) | def logical_or(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method logical_xor (line 236) | def logical_xor(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method max (line 237) | def max(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method max_mag (line 238) | def max_mag(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method min (line 239) | def min(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method min_mag (line 240) | def min_mag(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method minus (line 241) | def minus(self, x: _Decimal, /) -> Decimal: ...
method multiply (line 242) | def multiply(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method next_minus (line 243) | def next_minus(self, x: _Decimal, /) -> Decimal: ...
method next_plus (line 244) | def next_plus(self, x: _Decimal, /) -> Decimal: ...
method next_toward (line 245) | def next_toward(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method normalize (line 246) | def normalize(self, x: _Decimal, /) -> Decimal: ...
method number_class (line 247) | def number_class(self, x: _Decimal, /) -> str: ...
method plus (line 248) | def plus(self, x: _Decimal, /) -> Decimal: ...
method power (line 249) | def power(self, a: _Decimal, b: _Decimal, modulo: _Decimal | None = No...
method quantize (line 250) | def quantize(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method radix (line 251) | def radix(self) -> Decimal: ...
method remainder (line 252) | def remainder(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method remainder_near (line 253) | def remainder_near(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method rotate (line 254) | def rotate(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method same_quantum (line 255) | def same_quantum(self, x: _Decimal, y: _Decimal, /) -> bool: ...
method scaleb (line 256) | def scaleb(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method shift (line 257) | def shift(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method sqrt (line 258) | def sqrt(self, x: _Decimal, /) -> Decimal: ...
method subtract (line 259) | def subtract(self, x: _Decimal, y: _Decimal, /) -> Decimal: ...
method to_eng_string (line 260) | def to_eng_string(self, x: _Decimal, /) -> str: ...
method to_sci_string (line 261) | def to_sci_string(self, x: _Decimal, /) -> str: ...
method to_integral_exact (line 262) | def to_integral_exact(self, x: _Decimal, /) -> Decimal: ...
method to_integral_value (line 263) | def to_integral_value(self, x: _Decimal, /) -> Decimal: ...
method to_integral (line 264) | def to_integral(self, x: _Decimal, /) -> Decimal: ...
FILE: mypy/typeshed/stdlib/difflib.pyi
class Match (line 25) | class Match(NamedTuple):
class SequenceMatcher (line 30) | class SequenceMatcher(Generic[_T]):
method __init__ (line 32) | def __init__(self, isjunk: Callable[[_T], bool] | None, a: Sequence[_T...
method __init__ (line 34) | def __init__(self, *, a: Sequence[_T], b: Sequence[_T], autojunk: bool...
method __init__ (line 36) | def __init__(
method set_seqs (line 43) | def set_seqs(self, a: Sequence[_T], b: Sequence[_T]) -> None: ...
method set_seq1 (line 44) | def set_seq1(self, a: Sequence[_T]) -> None: ...
method set_seq2 (line 45) | def set_seq2(self, b: Sequence[_T]) -> None: ...
method find_longest_match (line 47) | def find_longest_match(self, alo: int = 0, ahi: int | None = None, blo...
method find_longest_match (line 49) | def find_longest_match(self, alo: int, ahi: int, blo: int, bhi: int) -...
method get_matching_blocks (line 51) | def get_matching_blocks(self) -> list[Match]: ...
method get_opcodes (line 52) | def get_opcodes(self) -> list[tuple[Literal["replace", "delete", "inse...
method get_grouped_opcodes (line 53) | def get_grouped_opcodes(self, n: int = 3) -> Iterable[list[tuple[str, ...
method ratio (line 54) | def ratio(self) -> float: ...
method quick_ratio (line 55) | def quick_ratio(self) -> float: ...
method real_quick_ratio (line 56) | def real_quick_ratio(self) -> float: ...
method __class_getitem__ (line 58) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function get_close_matches (line 61) | def get_close_matches(word: AnyStr, possibilities: Iterable[AnyStr], n: ...
function get_close_matches (line 63) | def get_close_matches(
class Differ (line 67) | class Differ:
method __init__ (line 68) | def __init__(self, linejunk: Callable[[str], bool] | None = None, char...
method compare (line 69) | def compare(self, a: Sequence[str], b: Sequence[str]) -> Iterator[str]...
function IS_LINE_JUNK (line 71) | def IS_LINE_JUNK(line: str, pat: Any = ...) -> bool: ... # pat is undoc...
function IS_CHARACTER_JUNK (line 72) | def IS_CHARACTER_JUNK(ch: str, ws: str = " \t") -> bool: ... # ws is un...
function unified_diff (line 73) | def unified_diff(
function context_diff (line 83) | def context_diff(
function ndiff (line 93) | def ndiff(
class HtmlDiff (line 100) | class HtmlDiff:
method __init__ (line 101) | def __init__(
method make_file (line 108) | def make_file(
method make_table (line 119) | def make_table(
function restore (line 129) | def restore(delta: Iterable[str], which: int) -> Iterator[str]: ...
function diff_bytes (line 130) | def diff_bytes(
FILE: mypy/typeshed/stdlib/dis.pyi
class Positions (line 47) | class Positions(NamedTuple):
class _Instruction (line 54) | class _Instruction(NamedTuple):
class _Instruction (line 69) | class _Instruction(NamedTuple):
class _Instruction (line 81) | class _Instruction(NamedTuple):
class Instruction (line 91) | class Instruction(_Instruction):
method _disassemble (line 93) | def _disassemble(self, lineno_width: int = 3, mark_as_current: bool = ...
method oparg (line 96) | def oparg(self) -> int: ...
method baseopcode (line 98) | def baseopcode(self) -> int: ...
method baseopname (line 100) | def baseopname(self) -> str: ...
method cache_offset (line 102) | def cache_offset(self) -> int: ...
method end_offset (line 104) | def end_offset(self) -> int: ...
method jump_target (line 106) | def jump_target(self) -> int: ...
method is_jump_target (line 108) | def is_jump_target(self) -> bool: ...
class Bytecode (line 110) | class Bytecode:
method __init__ (line 116) | def __init__(
method __init__ (line 127) | def __init__(
method __init__ (line 137) | def __init__(
method from_traceback (line 143) | def from_traceback(cls, tb: types.TracebackType, *, show_caches: bool ...
method from_traceback (line 146) | def from_traceback(cls, tb: types.TracebackType) -> Self: ...
method __iter__ (line 148) | def __iter__(self) -> Iterator[Instruction]: ...
method info (line 149) | def info(self) -> str: ...
method dis (line 150) | def dis(self) -> str: ...
function findlabels (line 154) | def findlabels(code: _HaveCodeType) -> list[int]: ...
function findlinestarts (line 155) | def findlinestarts(code: _HaveCodeType) -> Iterator[tuple[int, int]]: ...
function pretty_flags (line 156) | def pretty_flags(flags: int) -> str: ...
function code_info (line 157) | def code_info(x: _HaveCodeType | str) -> str: ...
function dis (line 161) | def dis(
function disassemble (line 170) | def disassemble(
function distb (line 179) | def distb(
function get_instructions (line 188) | def get_instructions(
function dis (line 194) | def dis(
function disassemble (line 202) | def disassemble(
function distb (line 205) | def distb(
function get_instructions (line 208) | def get_instructions(
function dis (line 213) | def dis(
function disassemble (line 216) | def disassemble(co: _HaveCodeType, lasti: int = -1, *, file: IO[str] | N...
function distb (line 217) | def distb(tb: types.TracebackType | None = None, *, file: IO[str] | None...
function get_instructions (line 218) | def get_instructions(x: _HaveCodeType, *, first_line: int | None = None)...
function show_code (line 220) | def show_code(co: _HaveCodeType, *, file: IO[str] | None = None) -> None...
FILE: mypy/typeshed/stdlib/distutils/_msvccompiler.pyi
class MSVCCompiler (line 8) | class MSVCCompiler(CCompiler):
method initialize (line 13) | def initialize(self, plat_name: str | None = None) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/archive_util.pyi
function make_archive (line 5) | def make_archive(
function make_archive (line 16) | def make_archive(
function make_tarball (line 26) | def make_tarball(
function make_zipfile (line 35) | def make_zipfile(base_name: str, base_dir: str, verbose: bool | Literal[...
FILE: mypy/typeshed/stdlib/distutils/bcppcompiler.pyi
class BCPPCompiler (line 3) | class BCPPCompiler(CCompiler): ...
FILE: mypy/typeshed/stdlib/distutils/ccompiler.pyi
function gen_lib_options (line 10) | def gen_lib_options(
function gen_preprocess_options (line 13) | def gen_preprocess_options(macros: list[_Macro], include_dirs: list[str]...
function get_default_compiler (line 14) | def get_default_compiler(osname: str | None = None, platform: str | None...
function new_compiler (line 15) | def new_compiler(
function show_compilers (line 22) | def show_compilers() -> None: ...
class CCompiler (line 24) | class CCompiler:
method __init__ (line 35) | def __init__(
method add_include_dir (line 38) | def add_include_dir(self, dir: str) -> None: ...
method set_include_dirs (line 39) | def set_include_dirs(self, dirs: list[str]) -> None: ...
method add_library (line 40) | def add_library(self, libname: str) -> None: ...
method set_libraries (line 41) | def set_libraries(self, libnames: list[str]) -> None: ...
method add_library_dir (line 42) | def add_library_dir(self, dir: str) -> None: ...
method set_library_dirs (line 43) | def set_library_dirs(self, dirs: list[str]) -> None: ...
method add_runtime_library_dir (line 44) | def add_runtime_library_dir(self, dir: str) -> None: ...
method set_runtime_library_dirs (line 45) | def set_runtime_library_dirs(self, dirs: list[str]) -> None: ...
method define_macro (line 46) | def define_macro(self, name: str, value: str | None = None) -> None: ...
method undefine_macro (line 47) | def undefine_macro(self, name: str) -> None: ...
method add_link_object (line 48) | def add_link_object(self, object: str) -> None: ...
method set_link_objects (line 49) | def set_link_objects(self, objects: list[str]) -> None: ...
method detect_language (line 50) | def detect_language(self, sources: str | list[str]) -> str | None: ...
method find_library_file (line 51) | def find_library_file(self, dirs: list[str], lib: str, debug: bool | L...
method has_function (line 52) | def has_function(
method library_dir_option (line 60) | def library_dir_option(self, dir: str) -> str: ...
method library_option (line 61) | def library_option(self, lib: str) -> str: ...
method runtime_library_dir_option (line 62) | def runtime_library_dir_option(self, dir: str) -> str: ...
method set_executables (line 63) | def set_executables(self, **args: str) -> None: ...
method compile (line 64) | def compile(
method create_static_lib (line 75) | def create_static_lib(
method link (line 83) | def link(
method link_executable (line 99) | def link_executable(
method link_shared_lib (line 112) | def link_shared_lib(
method link_shared_object (line 127) | def link_shared_object(
method preprocess (line 142) | def preprocess(
method executable_filename (line 152) | def executable_filename(self, basename: str, strip_dir: Literal[0, Fal...
method executable_filename (line 154) | def executable_filename(self, basename: StrPath, strip_dir: Literal[1,...
method library_filename (line 155) | def library_filename(
method object_filenames (line 158) | def object_filenames(
method shared_object_filename (line 162) | def shared_object_filename(self, basename: str, strip_dir: Literal[0, ...
method shared_object_filename (line 164) | def shared_object_filename(self, basename: StrPath, strip_dir: Literal...
method execute (line 165) | def execute(
method spawn (line 168) | def spawn(self, cmd: Iterable[str]) -> None: ...
method mkpath (line 169) | def mkpath(self, name: str, mode: int = 0o777) -> None: ...
method move_file (line 171) | def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
method move_file (line 173) | def move_file(self, src: BytesPath, dst: _BytesPathT) -> _BytesPathT |...
method announce (line 174) | def announce(self, msg: str, level: int = 1) -> None: ...
method warn (line 175) | def warn(self, msg: str) -> None: ...
method debug_print (line 176) | def debug_print(self, msg: str) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/cmd.pyi
class Command (line 32) | class Command:
method __init__ (line 37) | def __init__(self, dist: Distribution) -> None: ...
method initialize_options (line 39) | def initialize_options(self) -> None: ...
method finalize_options (line 41) | def finalize_options(self) -> None: ...
method run (line 43) | def run(self) -> None: ...
method announce (line 44) | def announce(self, msg: str, level: int = 1) -> None: ...
method debug_print (line 45) | def debug_print(self, msg: str) -> None: ...
method ensure_string (line 46) | def ensure_string(self, option: str, default: str | None = None) -> No...
method ensure_string_list (line 47) | def ensure_string_list(self, option: str) -> None: ...
method ensure_filename (line 48) | def ensure_filename(self, option: str) -> None: ...
method ensure_dirname (line 49) | def ensure_dirname(self, option: str) -> None: ...
method get_command_name (line 50) | def get_command_name(self) -> str: ...
method set_undefined_options (line 51) | def set_undefined_options(self, src_cmd: str, *option_pairs: tuple[str...
method get_finalized_command (line 54) | def get_finalized_command(self, command: Literal["bdist"], create: boo...
method get_finalized_command (line 56) | def get_finalized_command(self, command: Literal["bdist_dumb"], create...
method get_finalized_command (line 58) | def get_finalized_command(self, command: Literal["bdist_rpm"], create:...
method get_finalized_command (line 60) | def get_finalized_command(self, command: Literal["build"], create: boo...
method get_finalized_command (line 62) | def get_finalized_command(self, command: Literal["build_clib"], create...
method get_finalized_command (line 64) | def get_finalized_command(self, command: Literal["build_ext"], create:...
method get_finalized_command (line 66) | def get_finalized_command(self, command: Literal["build_py"], create: ...
method get_finalized_command (line 68) | def get_finalized_command(self, command: Literal["build_scripts"], cre...
method get_finalized_command (line 70) | def get_finalized_command(self, command: Literal["check"], create: boo...
method get_finalized_command (line 72) | def get_finalized_command(self, command: Literal["clean"], create: boo...
method get_finalized_command (line 74) | def get_finalized_command(self, command: Literal["config"], create: bo...
method get_finalized_command (line 76) | def get_finalized_command(self, command: Literal["install"], create: b...
method get_finalized_command (line 78) | def get_finalized_command(self, command: Literal["install_data"], crea...
method get_finalized_command (line 80) | def get_finalized_command(
method get_finalized_command (line 84) | def get_finalized_command(self, command: Literal["install_headers"], c...
method get_finalized_command (line 86) | def get_finalized_command(self, command: Literal["install_lib"], creat...
method get_finalized_command (line 88) | def get_finalized_command(self, command: Literal["install_scripts"], c...
method get_finalized_command (line 90) | def get_finalized_command(self, command: Literal["register"], create: ...
method get_finalized_command (line 92) | def get_finalized_command(self, command: Literal["sdist"], create: boo...
method get_finalized_command (line 94) | def get_finalized_command(self, command: Literal["upload"], create: bo...
method get_finalized_command (line 96) | def get_finalized_command(self, command: str, create: bool | Literal[0...
method reinitialize_command (line 98) | def reinitialize_command(self, command: Literal["bdist"], reinit_subco...
method reinitialize_command (line 100) | def reinitialize_command(
method reinitialize_command (line 104) | def reinitialize_command(self, command: Literal["bdist_rpm"], reinit_s...
method reinitialize_command (line 106) | def reinitialize_command(self, command: Literal["build"], reinit_subco...
method reinitialize_command (line 108) | def reinitialize_command(
method reinitialize_command (line 112) | def reinitialize_command(self, command: Literal["build_ext"], reinit_s...
method reinitialize_command (line 114) | def reinitialize_command(self, command: Literal["build_py"], reinit_su...
method reinitialize_command (line 116) | def reinitialize_command(
method reinitialize_command (line 120) | def reinitialize_command(self, command: Literal["check"], reinit_subco...
method reinitialize_command (line 122) | def reinitialize_command(self, command: Literal["clean"], reinit_subco...
method reinitialize_command (line 124) | def reinitialize_command(self, command: Literal["config"], reinit_subc...
method reinitialize_command (line 126) | def reinitialize_command(self, command: Literal["install"], reinit_sub...
method reinitialize_command (line 128) | def reinitialize_command(
method reinitialize_command (line 132) | def reinitialize_command(
method reinitialize_command (line 136) | def reinitialize_command(
method reinitialize_command (line 140) | def reinitialize_command(
method reinitialize_command (line 144) | def reinitialize_command(
method reinitialize_command (line 148) | def reinitialize_command(self, command: Literal["register"], reinit_su...
method reinitialize_command (line 150) | def reinitialize_command(self, command: Literal["sdist"], reinit_subco...
method reinitialize_command (line 152) | def reinitialize_command(self, command: Literal["upload"], reinit_subc...
method reinitialize_command (line 154) | def reinitialize_command(self, command: str, reinit_subcommands: bool ...
method reinitialize_command (line 156) | def reinitialize_command(self, command: _CommandT, reinit_subcommands:...
method run_command (line 157) | def run_command(self, command: str) -> None: ...
method get_sub_commands (line 158) | def get_sub_commands(self) -> list[str]: ...
method warn (line 159) | def warn(self, msg: str) -> None: ...
method execute (line 160) | def execute(
method mkpath (line 163) | def mkpath(self, name: str, mode: int = 0o777) -> None: ...
method copy_file (line 165) | def copy_file(
method copy_file (line 175) | def copy_file(
method copy_tree (line 184) | def copy_tree(
method move_file (line 194) | def move_file(self, src: StrPath, dst: _StrPathT, level: Unused = 1) -...
method move_file (line 196) | def move_file(self, src: BytesPath, dst: _BytesPathT, level: Unused = ...
method spawn (line 197) | def spawn(self, cmd: Iterable[str], search_path: bool | Literal[0, 1] ...
method make_archive (line 199) | def make_archive(
method make_archive (line 209) | def make_archive(
method make_file (line 218) | def make_file(
method ensure_finalized (line 228) | def ensure_finalized(self) -> None: ...
method dump_options (line 229) | def dump_options(self, header: Incomplete | None = None, indent: str =...
FILE: mypy/typeshed/stdlib/distutils/command/bdist.pyi
function show_formats (line 7) | def show_formats() -> None: ...
class bdist (line 9) | class bdist(Command):
method initialize_options (line 25) | def initialize_options(self) -> None: ...
method finalize_options (line 26) | def finalize_options(self) -> None: ...
method run (line 27) | def run(self) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/command/bdist_dumb.pyi
class bdist_dumb (line 6) | class bdist_dumb(Command):
method initialize_options (line 20) | def initialize_options(self) -> None: ...
method finalize_options (line 21) | def finalize_options(self) -> None: ...
method run (line 22) | def run(self) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/command/bdist_msi.pyi
class PyDialog (line 10) | class PyDialog(Dialog):
method __init__ (line 11) | def __init__(self, *args, **kw) -> None: ...
method title (line 12) | def title(self, title) -> None: ...
method back (line 13) | def back(self, title, next, name: str = "Back", active: bool | Literal...
method cancel (line 14) | def cancel(self, title, next, name: str = "Cancel", active: bool | Lit...
method next (line 15) | def next(self, title, next, name: str = "Next", active: bool | Literal...
method xbutton (line 16) | def xbutton(self, name, title, next, xpos) -> Control: ...
class bdist_msi (line 18) | class bdist_msi(Command):
method __init__ (line 25) | def __init__(self, *args, **kw) -> None: ...
method initialize_options (line 37) | def initialize_options(self) -> None: ...
method finalize_options (line 39) | def finalize_options(self) -> None: ...
method run (line 41) | def run(self) -> None: ...
method add_files (line 42) | def add_files(self) -> None: ...
method add_find_python (line 43) | def add_find_python(self) -> None: ...
method add_scripts (line 44) | def add_scripts(self) -> None: ...
method add_ui (line 45) | def add_ui(self) -> None: ...
method get_installer_filename (line 46) | def get_installer_filename(self, fullname): ...
FILE: mypy/typeshed/stdlib/distutils/command/bdist_rpm.pyi
class bdist_rpm (line 6) | class bdist_rpm(Command):
method initialize_options (line 50) | def initialize_options(self) -> None: ...
method finalize_options (line 51) | def finalize_options(self) -> None: ...
method finalize_package_data (line 52) | def finalize_package_data(self) -> None: ...
method run (line 53) | def run(self) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/command/bdist_wininst.pyi
class bdist_wininst (line 5) | class bdist_wininst(Command):
method initialize_options (line 10) | def initialize_options(self) -> None: ...
method finalize_options (line 11) | def finalize_options(self) -> None: ...
method run (line 12) | def run(self) -> None: ...
method get_inidata (line 13) | def get_inidata(self) -> str: ...
method create_exe (line 14) | def create_exe(self, arcname: StrOrBytesPath, fullname: str, bitmap: S...
method get_installer_filename (line 15) | def get_installer_filename(self, fullname: str) -> str: ...
method get_exe_bytes (line 16) | def get_exe_bytes(self) -> bytes: ...
FILE: mypy/typeshed/stdlib/distutils/command/build.pyi
function show_compilers (line 7) | def show_compilers() -> None: ...
class build (line 9) | class build(Command):
method initialize_options (line 26) | def initialize_options(self) -> None: ...
method finalize_options (line 27) | def finalize_options(self) -> None: ...
method run (line 28) | def run(self) -> None: ...
method has_pure_modules (line 29) | def has_pure_modules(self): ...
method has_c_libraries (line 30) | def has_c_libraries(self): ...
method has_ext_modules (line 31) | def has_ext_modules(self): ...
method has_scripts (line 32) | def has_scripts(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/build_clib.pyi
function show_compilers (line 7) | def show_compilers() -> None: ...
class build_clib (line 9) | class build_clib(Command):
method initialize_options (line 23) | def initialize_options(self) -> None: ...
method finalize_options (line 24) | def finalize_options(self) -> None: ...
method run (line 25) | def run(self) -> None: ...
method check_library_list (line 26) | def check_library_list(self, libraries) -> None: ...
method get_library_names (line 27) | def get_library_names(self): ...
method get_source_files (line 28) | def get_source_files(self): ...
method build_libraries (line 29) | def build_libraries(self, libraries) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/command/build_ext.pyi
function show_compilers (line 9) | def show_compilers() -> None: ...
class build_ext (line 11) | class build_ext(Command):
method initialize_options (line 38) | def initialize_options(self) -> None: ...
method finalize_options (line 39) | def finalize_options(self) -> None: ...
method run (line 40) | def run(self) -> None: ...
method check_extensions_list (line 41) | def check_extensions_list(self, extensions) -> None: ...
method get_source_files (line 42) | def get_source_files(self): ...
method get_outputs (line 43) | def get_outputs(self): ...
method build_extensions (line 44) | def build_extensions(self) -> None: ...
method build_extension (line 45) | def build_extension(self, ext) -> None: ...
method swig_sources (line 46) | def swig_sources(self, sources, extension): ...
method find_swig (line 47) | def find_swig(self): ...
method get_ext_fullpath (line 48) | def get_ext_fullpath(self, ext_name: str) -> str: ...
method get_ext_fullname (line 49) | def get_ext_fullname(self, ext_name: str) -> str: ...
method get_ext_filename (line 50) | def get_ext_filename(self, ext_name: str) -> str: ...
method get_export_symbols (line 51) | def get_export_symbols(self, ext): ...
method get_libraries (line 52) | def get_libraries(self, ext): ...
FILE: mypy/typeshed/stdlib/distutils/command/build_py.pyi
class build_py (line 7) | class build_py(Command):
method initialize_options (line 20) | def initialize_options(self) -> None: ...
method finalize_options (line 23) | def finalize_options(self) -> None: ...
method run (line 24) | def run(self) -> None: ...
method get_data_files (line 25) | def get_data_files(self): ...
method find_data_files (line 26) | def find_data_files(self, package, src_dir): ...
method build_package_data (line 27) | def build_package_data(self) -> None: ...
method get_package_dir (line 28) | def get_package_dir(self, package): ...
method check_package (line 29) | def check_package(self, package, package_dir): ...
method check_module (line 30) | def check_module(self, module, module_file): ...
method find_package_modules (line 31) | def find_package_modules(self, package, package_dir): ...
method find_modules (line 32) | def find_modules(self): ...
method find_all_modules (line 33) | def find_all_modules(self): ...
method get_source_files (line 34) | def get_source_files(self): ...
method get_module_outfile (line 35) | def get_module_outfile(self, build_dir, package, module): ...
method get_outputs (line 36) | def get_outputs(self, include_bytecode: bool | Literal[0, 1] = 1) -> l...
method build_module (line 37) | def build_module(self, module, module_file, package): ...
method build_modules (line 38) | def build_modules(self) -> None: ...
method build_packages (line 39) | def build_packages(self) -> None: ...
method byte_compile (line 40) | def byte_compile(self, files) -> None: ...
class build_py_2to3 (line 42) | class build_py_2to3(build_py, Mixin2to3):
method run (line 44) | def run(self) -> None: ...
method build_module (line 45) | def build_module(self, module, module_file, package): ...
FILE: mypy/typeshed/stdlib/distutils/command/build_scripts.pyi
class build_scripts (line 9) | class build_scripts(Command):
method initialize_options (line 18) | def initialize_options(self) -> None: ...
method finalize_options (line 19) | def finalize_options(self) -> None: ...
method get_source_files (line 20) | def get_source_files(self): ...
method run (line 21) | def run(self) -> None: ...
method copy_scripts (line 22) | def copy_scripts(self): ...
class build_scripts_2to3 (line 24) | class build_scripts_2to3(build_scripts, Mixin2to3):
method copy_scripts (line 25) | def copy_scripts(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/check.pyi
class SilentReporter (line 12) | class SilentReporter(_Reporter):
method __init__ (line 14) | def __init__(
method system_message (line 24) | def system_message(self, level, message, *children, **kwargs): ...
class check (line 28) | class check(Command):
method initialize_options (line 35) | def initialize_options(self) -> None: ...
method finalize_options (line 36) | def finalize_options(self) -> None: ...
method warn (line 37) | def warn(self, msg): ...
method run (line 38) | def run(self) -> None: ...
method check_metadata (line 39) | def check_metadata(self) -> None: ...
method check_restructuredtext (line 40) | def check_restructuredtext(self) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/command/clean.pyi
class clean (line 6) | class clean(Command):
method initialize_options (line 16) | def initialize_options(self) -> None: ...
method finalize_options (line 17) | def finalize_options(self) -> None: ...
method run (line 18) | def run(self) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/command/config.pyi
class config (line 11) | class config(Command):
method initialize_options (line 23) | def initialize_options(self) -> None: ...
method finalize_options (line 24) | def finalize_options(self) -> None: ...
method run (line 25) | def run(self) -> None: ...
method try_cpp (line 26) | def try_cpp(
method search_cpp (line 33) | def search_cpp(
method try_compile (line 41) | def try_compile(
method try_link (line 44) | def try_link(
method try_run (line 53) | def try_run(
method check_func (line 62) | def check_func(
method check_lib (line 72) | def check_lib(
method check_header (line 80) | def check_header(
function dump_file (line 84) | def dump_file(filename: StrOrBytesPath, head: Incomplete | None = None) ...
FILE: mypy/typeshed/stdlib/distutils/command/install.pyi
class install (line 16) | class install(Command):
method initialize_options (line 46) | def initialize_options(self) -> None: ...
method finalize_options (line 49) | def finalize_options(self) -> None: ...
method dump_dirs (line 50) | def dump_dirs(self, msg) -> None: ...
method finalize_unix (line 51) | def finalize_unix(self) -> None: ...
method finalize_other (line 52) | def finalize_other(self) -> None: ...
method select_scheme (line 53) | def select_scheme(self, name) -> None: ...
method expand_basedirs (line 54) | def expand_basedirs(self) -> None: ...
method expand_dirs (line 55) | def expand_dirs(self) -> None: ...
method convert_paths (line 56) | def convert_paths(self, *names) -> None: ...
method handle_extra_path (line 59) | def handle_extra_path(self) -> None: ...
method change_roots (line 60) | def change_roots(self, *names) -> None: ...
method create_home_path (line 61) | def create_home_path(self) -> None: ...
method run (line 62) | def run(self) -> None: ...
method create_path_file (line 63) | def create_path_file(self) -> None: ...
method get_outputs (line 64) | def get_outputs(self): ...
method get_inputs (line 65) | def get_inputs(self): ...
method has_lib (line 66) | def has_lib(self): ...
method has_headers (line 67) | def has_headers(self): ...
method has_scripts (line 68) | def has_scripts(self): ...
method has_data (line 69) | def has_data(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/install_data.pyi
class install_data (line 6) | class install_data(Command):
method initialize_options (line 16) | def initialize_options(self) -> None: ...
method finalize_options (line 17) | def finalize_options(self) -> None: ...
method run (line 18) | def run(self) -> None: ...
method get_inputs (line 19) | def get_inputs(self): ...
method get_outputs (line 20) | def get_outputs(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/install_egg_info.pyi
class install_egg_info (line 6) | class install_egg_info(Command):
method initialize_options (line 10) | def initialize_options(self) -> None: ...
method finalize_options (line 13) | def finalize_options(self) -> None: ...
method run (line 14) | def run(self) -> None: ...
method get_outputs (line 15) | def get_outputs(self) -> list[str]: ...
function safe_name (line 17) | def safe_name(name): ...
function safe_version (line 18) | def safe_version(version): ...
function to_filename (line 19) | def to_filename(name): ...
FILE: mypy/typeshed/stdlib/distutils/command/install_headers.pyi
class install_headers (line 6) | class install_headers(Command):
method initialize_options (line 13) | def initialize_options(self) -> None: ...
method finalize_options (line 14) | def finalize_options(self) -> None: ...
method run (line 15) | def run(self) -> None: ...
method get_inputs (line 16) | def get_inputs(self): ...
method get_outputs (line 17) | def get_outputs(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/install_lib.pyi
class install_lib (line 8) | class install_lib(Command):
method initialize_options (line 19) | def initialize_options(self) -> None: ...
method finalize_options (line 20) | def finalize_options(self) -> None: ...
method run (line 21) | def run(self) -> None: ...
method build (line 22) | def build(self) -> None: ...
method install (line 23) | def install(self): ...
method byte_compile (line 24) | def byte_compile(self, files) -> None: ...
method get_outputs (line 25) | def get_outputs(self): ...
method get_inputs (line 26) | def get_inputs(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/install_scripts.pyi
class install_scripts (line 6) | class install_scripts(Command):
method initialize_options (line 14) | def initialize_options(self) -> None: ...
method finalize_options (line 15) | def finalize_options(self) -> None: ...
method run (line 17) | def run(self) -> None: ...
method get_inputs (line 18) | def get_inputs(self): ...
method get_outputs (line 19) | def get_outputs(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/register.pyi
class register (line 7) | class register(PyPIRCCommand):
method initialize_options (line 13) | def initialize_options(self) -> None: ...
method finalize_options (line 14) | def finalize_options(self) -> None: ...
method run (line 15) | def run(self) -> None: ...
method check_metadata (line 16) | def check_metadata(self) -> None: ...
method classifiers (line 17) | def classifiers(self) -> None: ...
method verify_metadata (line 18) | def verify_metadata(self) -> None: ...
method send_metadata (line 19) | def send_metadata(self) -> None: ...
method build_post_data (line 20) | def build_post_data(self, action): ...
method post_to_server (line 21) | def post_to_server(self, data, auth: Incomplete | None = None): ...
FILE: mypy/typeshed/stdlib/distutils/command/sdist.pyi
function show_formats (line 7) | def show_formats() -> None: ...
class sdist (line 9) | class sdist(Command):
method checking_metadata (line 11) | def checking_metadata(self): ...
method initialize_options (line 32) | def initialize_options(self) -> None: ...
method finalize_options (line 33) | def finalize_options(self) -> None: ...
method run (line 35) | def run(self) -> None: ...
method check_metadata (line 36) | def check_metadata(self) -> None: ...
method get_file_list (line 37) | def get_file_list(self) -> None: ...
method add_defaults (line 38) | def add_defaults(self) -> None: ...
method read_template (line 39) | def read_template(self) -> None: ...
method prune_file_list (line 40) | def prune_file_list(self) -> None: ...
method write_manifest (line 41) | def write_manifest(self) -> None: ...
method read_manifest (line 42) | def read_manifest(self) -> None: ...
method make_release_tree (line 43) | def make_release_tree(self, base_dir, files) -> None: ...
method make_distribution (line 44) | def make_distribution(self) -> None: ...
method get_archive_files (line 45) | def get_archive_files(self): ...
FILE: mypy/typeshed/stdlib/distutils/command/upload.pyi
class upload (line 6) | class upload(PyPIRCCommand):
method initialize_options (line 13) | def initialize_options(self) -> None: ...
method finalize_options (line 16) | def finalize_options(self) -> None: ...
method run (line 17) | def run(self) -> None: ...
method upload_file (line 18) | def upload_file(self, command: str, pyversion: str, filename: str) -> ...
FILE: mypy/typeshed/stdlib/distutils/config.pyi
class PyPIRCCommand (line 7) | class PyPIRCCommand(Command):
method initialize_options (line 14) | def initialize_options(self) -> None: ...
method finalize_options (line 15) | def finalize_options(self) -> None: ...
method run (line 17) | def run(self) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/core.pyi
function gen_usage (line 10) | def gen_usage(script_name: StrOrBytesPath) -> str: ...
function setup (line 15) | def setup(
function run_setup (line 58) | def run_setup(script_name: str, script_args: list[str] | None = None, st...
FILE: mypy/typeshed/stdlib/distutils/cygwinccompiler.pyi
function get_msvcr (line 6) | def get_msvcr() -> list[str] | None: ...
class CygwinCCompiler (line 8) | class CygwinCCompiler(UnixCCompiler): ...
class Mingw32CCompiler (line 9) | class Mingw32CCompiler(CygwinCCompiler): ...
function check_config_h (line 15) | def check_config_h() -> tuple[Literal["ok", "not ok", "uncertain"], str]...
function get_versions (line 19) | def get_versions() -> tuple[LooseVersion | None, ...]: ...
function is_cygwingcc (line 20) | def is_cygwingcc() -> bool: ...
FILE: mypy/typeshed/stdlib/distutils/dep_util.pyi
function newer (line 8) | def newer(source: StrOrBytesPath, target: StrOrBytesPath) -> bool | Lite...
function newer_pairwise (line 9) | def newer_pairwise(
function newer_group (line 12) | def newer_group(
FILE: mypy/typeshed/stdlib/distutils/dir_util.pyi
function mkpath (line 5) | def mkpath(name: str, mode: int = 0o777, verbose: bool | Literal[0, 1] =...
function create_tree (line 6) | def create_tree(
function copy_tree (line 13) | def copy_tree(
function remove_tree (line 23) | def remove_tree(directory: StrOrBytesPath, verbose: bool | Literal[0, 1]...
FILE: mypy/typeshed/stdlib/distutils/dist.pyi
class DistributionMetadata (line 33) | class DistributionMetadata:
method __init__ (line 34) | def __init__(self, path: StrOrBytesPath | None = None) -> None: ...
method read_pkg_file (line 52) | def read_pkg_file(self, file: IO[str]) -> None: ...
method write_pkg_info (line 53) | def write_pkg_info(self, base_dir: StrPath) -> None: ...
method write_pkg_file (line 54) | def write_pkg_file(self, file: SupportsWrite[str]) -> None: ...
method get_name (line 55) | def get_name(self) -> str: ...
method get_version (line 56) | def get_version(self) -> str: ...
method get_fullname (line 57) | def get_fullname(self) -> str: ...
method get_author (line 58) | def get_author(self) -> str: ...
method get_author_email (line 59) | def get_author_email(self) -> str: ...
method get_maintainer (line 60) | def get_maintainer(self) -> str: ...
method get_maintainer_email (line 61) | def get_maintainer_email(self) -> str: ...
method get_contact (line 62) | def get_contact(self) -> str: ...
method get_contact_email (line 63) | def get_contact_email(self) -> str: ...
method get_url (line 64) | def get_url(self) -> str: ...
method get_license (line 65) | def get_license(self) -> str: ...
method get_licence (line 66) | def get_licence(self) -> str: ...
method get_description (line 67) | def get_description(self) -> str: ...
method get_long_description (line 68) | def get_long_description(self) -> str: ...
method get_keywords (line 69) | def get_keywords(self) -> str | list[str]: ...
method get_platforms (line 70) | def get_platforms(self) -> str | list[str]: ...
method get_classifiers (line 71) | def get_classifiers(self) -> str | list[str]: ...
method get_download_url (line 72) | def get_download_url(self) -> str: ...
method get_requires (line 73) | def get_requires(self) -> list[str]: ...
method set_requires (line 74) | def set_requires(self, value: Iterable[str]) -> None: ...
method get_provides (line 75) | def get_provides(self) -> list[str]: ...
method set_provides (line 76) | def set_provides(self, value: Iterable[str]) -> None: ...
method get_obsoletes (line 77) | def get_obsoletes(self) -> list[str]: ...
method set_obsoletes (line 78) | def set_obsoletes(self, value: Iterable[str]) -> None: ...
class Distribution (line 80) | class Distribution:
method __init__ (line 83) | def __init__(self, attrs: MutableMapping[str, Incomplete] | None = Non...
method get_option_dict (line 84) | def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]:...
method parse_config_files (line 85) | def parse_config_files(self, filenames: Iterable[str] | None = None) -...
method dump_option_dicts (line 115) | def dump_option_dicts(
method find_config_files (line 118) | def find_config_files(self): ...
method parse_command_line (line 120) | def parse_command_line(self): ...
method finalize_options (line 121) | def finalize_options(self) -> None: ...
method handle_display_options (line 122) | def handle_display_options(self, option_order): ...
method print_command_list (line 123) | def print_command_list(self, commands, header, max_length) -> None: ...
method print_commands (line 124) | def print_commands(self) -> None: ...
method get_command_list (line 125) | def get_command_list(self): ...
method get_command_packages (line 126) | def get_command_packages(self): ...
method get_command_obj (line 129) | def get_command_obj(self, command: Literal["bdist"], create: Literal[1...
method get_command_obj (line 131) | def get_command_obj(self, command: Literal["bdist_dumb"], create: Lite...
method get_command_obj (line 133) | def get_command_obj(self, command: Literal["bdist_rpm"], create: Liter...
method get_command_obj (line 135) | def get_command_obj(self, command: Literal["build"], create: Literal[1...
method get_command_obj (line 137) | def get_command_obj(self, command: Literal["build_clib"], create: Lite...
method get_command_obj (line 139) | def get_command_obj(self, command: Literal["build_ext"], create: Liter...
method get_command_obj (line 141) | def get_command_obj(self, command: Literal["build_py"], create: Litera...
method get_command_obj (line 143) | def get_command_obj(self, command: Literal["build_scripts"], create: L...
method get_command_obj (line 145) | def get_command_obj(self, command: Literal["check"], create: Literal[1...
method get_command_obj (line 147) | def get_command_obj(self, command: Literal["clean"], create: Literal[1...
method get_command_obj (line 149) | def get_command_obj(self, command: Literal["config"], create: Literal[...
method get_command_obj (line 151) | def get_command_obj(self, command: Literal["install"], create: Literal...
method get_command_obj (line 153) | def get_command_obj(self, command: Literal["install_data"], create: Li...
method get_command_obj (line 155) | def get_command_obj(self, command: Literal["install_egg_info"], create...
method get_command_obj (line 157) | def get_command_obj(self, command: Literal["install_headers"], create:...
method get_command_obj (line 159) | def get_command_obj(self, command: Literal["install_lib"], create: Lit...
method get_command_obj (line 161) | def get_command_obj(self, command: Literal["install_scripts"], create:...
method get_command_obj (line 163) | def get_command_obj(self, command: Literal["register"], create: Litera...
method get_command_obj (line 165) | def get_command_obj(self, command: Literal["sdist"], create: Literal[1...
method get_command_obj (line 167) | def get_command_obj(self, command: Literal["upload"], create: Literal[...
method get_command_obj (line 169) | def get_command_obj(self, command: str, create: Literal[1, True] = 1) ...
method get_command_obj (line 172) | def get_command_obj(self, command: str, create: Literal[0, False]) -> ...
method get_command_class (line 174) | def get_command_class(self, command: Literal["bdist"]) -> type[bdist]:...
method get_command_class (line 176) | def get_command_class(self, command: Literal["bdist_dumb"]) -> type[bd...
method get_command_class (line 178) | def get_command_class(self, command: Literal["bdist_rpm"]) -> type[bdi...
method get_command_class (line 180) | def get_command_class(self, command: Literal["build"]) -> type[build]:...
method get_command_class (line 182) | def get_command_class(self, command: Literal["build_clib"]) -> type[bu...
method get_command_class (line 184) | def get_command_class(self, command: Literal["build_ext"]) -> type[bui...
method get_command_class (line 186) | def get_command_class(self, command: Literal["build_py"]) -> type[buil...
method get_command_class (line 188) | def get_command_class(self, command: Literal["build_scripts"]) -> type...
method get_command_class (line 190) | def get_command_class(self, command: Literal["check"]) -> type[check]:...
method get_command_class (line 192) | def get_command_class(self, command: Literal["clean"]) -> type[clean]:...
method get_command_class (line 194) | def get_command_class(self, command: Literal["config"]) -> type[config...
method get_command_class (line 196) | def get_command_class(self, command: Literal["install"]) -> type[insta...
method get_command_class (line 198) | def get_command_class(self, command: Literal["install_data"]) -> type[...
method get_command_class (line 200) | def get_command_class(self, command: Literal["install_egg_info"]) -> t...
method get_command_class (line 202) | def get_command_class(self, command: Literal["install_headers"]) -> ty...
method get_command_class (line 204) | def get_command_class(self, command: Literal["install_lib"]) -> type[i...
method get_command_class (line 206) | def get_command_class(self, command: Literal["install_scripts"]) -> ty...
method get_command_class (line 208) | def get_command_class(self, command: Literal["register"]) -> type[regi...
method get_command_class (line 210) | def get_command_class(self, command: Literal["sdist"]) -> type[sdist]:...
method get_command_class (line 212) | def get_command_class(self, command: Literal["upload"]) -> type[upload...
method get_command_class (line 214) | def get_command_class(self, command: str) -> type[Command]: ...
method reinitialize_command (line 216) | def reinitialize_command(self, command: Literal["bdist"], reinit_subco...
method reinitialize_command (line 218) | def reinitialize_command(self, command: Literal["bdist_dumb"], reinit_...
method reinitialize_command (line 220) | def reinitialize_command(self, command: Literal["bdist_rpm"], reinit_s...
method reinitialize_command (line 222) | def reinitialize_command(self, command: Literal["build"], reinit_subco...
method reinitialize_command (line 224) | def reinitialize_command(self, command: Literal["build_clib"], reinit_...
method reinitialize_command (line 226) | def reinitialize_command(self, command: Literal["build_ext"], reinit_s...
method reinitialize_command (line 228) | def reinitialize_command(self, command: Literal["build_py"], reinit_su...
method reinitialize_command (line 230) | def reinitialize_command(self, command: Literal["build_scripts"], rein...
method reinitialize_command (line 232) | def reinitialize_command(self, command: Literal["check"], reinit_subco...
method reinitialize_command (line 234) | def reinitialize_command(self, command: Literal["clean"], reinit_subco...
method reinitialize_command (line 236) | def reinitialize_command(self, command: Literal["config"], reinit_subc...
method reinitialize_command (line 238) | def reinitialize_command(self, command: Literal["install"], reinit_sub...
method reinitialize_command (line 240) | def reinitialize_command(self, command: Literal["install_data"], reini...
method reinitialize_command (line 242) | def reinitialize_command(
method reinitialize_command (line 246) | def reinitialize_command(self, command: Literal["install_headers"], re...
method reinitialize_command (line 248) | def reinitialize_command(self, command: Literal["install_lib"], reinit...
method reinitialize_command (line 250) | def reinitialize_command(self, command: Literal["install_scripts"], re...
method reinitialize_command (line 252) | def reinitialize_command(self, command: Literal["register"], reinit_su...
method reinitialize_command (line 254) | def reinitialize_command(self, command: Literal["sdist"], reinit_subco...
method reinitialize_command (line 256) | def reinitialize_command(self, command: Literal["upload"], reinit_subc...
method reinitialize_command (line 258) | def reinitialize_command(self, command: str, reinit_subcommands: bool ...
method reinitialize_command (line 260) | def reinitialize_command(self, command: _CommandT, reinit_subcommands:...
method announce (line 261) | def announce(self, msg, level: int = 2) -> None: ...
method run_commands (line 262) | def run_commands(self) -> None: ...
method run_command (line 263) | def run_command(self, command: str) -> None: ...
method has_pure_modules (line 264) | def has_pure_modules(self) -> bool: ...
method has_ext_modules (line 265) | def has_ext_modules(self) -> bool: ...
method has_c_libraries (line 266) | def has_c_libraries(self) -> bool: ...
method has_modules (line 267) | def has_modules(self) -> bool: ...
method has_headers (line 268) | def has_headers(self) -> bool: ...
method has_scripts (line 269) | def has_scripts(self) -> bool: ...
method has_data_files (line 270) | def has_data_files(self) -> bool: ...
method is_pure (line 271) | def is_pure(self) -> bool: ...
method get_name (line 274) | def get_name(self) -> str: ...
method get_version (line 275) | def get_version(self) -> str: ...
method get_fullname (line 276) | def get_fullname(self) -> str: ...
method get_author (line 277) | def get_author(self) -> str: ...
method get_author_email (line 278) | def get_author_email(self) -> str: ...
method get_maintainer (line 279) | def get_maintainer(self) -> str: ...
method get_maintainer_email (line 280) | def get_maintainer_email(self) -> str: ...
method get_contact (line 281) | def get_contact(self) -> str: ...
method get_contact_email (line 282) | def get_contact_email(self) -> str: ...
method get_url (line 283) | def get_url(self) -> str: ...
method get_license (line 284) | def get_license(self) -> str: ...
method get_licence (line 285) | def get_licence(self) -> str: ...
method get_description (line 286) | def get_description(self) -> str: ...
method get_long_description (line 287) | def get_long_description(self) -> str: ...
method get_keywords (line 288) | def get_keywords(self) -> str | list[str]: ...
method get_platforms (line 289) | def get_platforms(self) -> str | list[str]: ...
method get_classifiers (line 290) | def get_classifiers(self) -> str | list[str]: ...
method get_download_url (line 291) | def get_download_url(self) -> str: ...
method get_requires (line 292) | def get_requires(self) -> list[str]: ...
method get_provides (line 293) | def get_provides(self) -> list[str]: ...
method get_obsoletes (line 294) | def get_obsoletes(self) -> list[str]: ...
FILE: mypy/typeshed/stdlib/distutils/errors.pyi
class DistutilsError (line 1) | class DistutilsError(Exception): ...
class DistutilsModuleError (line 2) | class DistutilsModuleError(DistutilsError): ...
class DistutilsClassError (line 3) | class DistutilsClassError(DistutilsError): ...
class DistutilsGetoptError (line 4) | class DistutilsGetoptError(DistutilsError): ...
class DistutilsArgError (line 5) | class DistutilsArgError(DistutilsError): ...
class DistutilsFileError (line 6) | class DistutilsFileError(DistutilsError): ...
class DistutilsOptionError (line 7) | class DistutilsOptionError(DistutilsError): ...
class DistutilsSetupError (line 8) | class DistutilsSetupError(DistutilsError): ...
class DistutilsPlatformError (line 9) | class DistutilsPlatformError(DistutilsError): ...
class DistutilsExecError (line 10) | class DistutilsExecError(DistutilsError): ...
class DistutilsInternalError (line 11) | class DistutilsInternalError(DistutilsError): ...
class DistutilsTemplateError (line 12) | class DistutilsTemplateError(DistutilsError): ...
class DistutilsByteCompileError (line 13) | class DistutilsByteCompileError(DistutilsError): ...
class CCompilerError (line 14) | class CCompilerError(Exception): ...
class PreprocessError (line 15) | class PreprocessError(CCompilerError): ...
class CompileError (line 16) | class CompileError(CCompilerError): ...
class LibError (line 17) | class LibError(CCompilerError): ...
class LinkError (line 18) | class LinkError(CCompilerError): ...
class UnknownFileError (line 19) | class UnknownFileError(CCompilerError): ...
FILE: mypy/typeshed/stdlib/distutils/extension.pyi
class Extension (line 1) | class Extension:
method __init__ (line 18) | def __init__(
FILE: mypy/typeshed/stdlib/distutils/fancy_getopt.pyi
class FancyGetopt (line 14) | class FancyGetopt:
method __init__ (line 15) | def __init__(self, option_table: list[_Option] | None = None) -> None:...
method getopt (line 18) | def getopt(self, args: list[str] | None = None) -> _GR: ...
method getopt (line 20) | def getopt(self, args: list[str] | None, object: Any) -> list[str]: ...
method get_option_order (line 21) | def get_option_order(self) -> list[tuple[str, str]]: ...
method generate_help (line 22) | def generate_help(self, header: str | None = None) -> list[str]: ...
function fancy_getopt (line 24) | def fancy_getopt(
function wrap_text (line 30) | def wrap_text(text: str, width: int) -> list[str]: ...
function translate_longopt (line 31) | def translate_longopt(opt: str) -> str: ...
class OptionDummy (line 33) | class OptionDummy:
method __init__ (line 34) | def __init__(self, options: Iterable[str] = []) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/file_util.pyi
function copy_file (line 9) | def copy_file(
function copy_file (line 20) | def copy_file(
function move_file (line 31) | def move_file(
function move_file (line 35) | def move_file(
function write_file (line 38) | def write_file(filename: StrOrBytesPath, contents: Iterable[str]) -> Non...
FILE: mypy/typeshed/stdlib/distutils/filelist.pyi
class FileList (line 6) | class FileList:
method __init__ (line 9) | def __init__(self, warn: None = None, debug_print: None = None) -> Non...
method set_allfiles (line 10) | def set_allfiles(self, allfiles: Iterable[str]) -> None: ...
method findall (line 11) | def findall(self, dir: str = ".") -> None: ...
method debug_print (line 12) | def debug_print(self, msg: str) -> None: ...
method append (line 13) | def append(self, item: str) -> None: ...
method extend (line 14) | def extend(self, items: Iterable[str]) -> None: ...
method sort (line 15) | def sort(self) -> None: ...
method remove_duplicates (line 16) | def remove_duplicates(self) -> None: ...
method process_template_line (line 17) | def process_template_line(self, line: str) -> None: ...
method include_pattern (line 19) | def include_pattern(
method include_pattern (line 23) | def include_pattern(self, pattern: str | Pattern[str], *, is_regex: Li...
method include_pattern (line 25) | def include_pattern(
method exclude_pattern (line 33) | def exclude_pattern(
method exclude_pattern (line 37) | def exclude_pattern(self, pattern: str | Pattern[str], *, is_regex: Li...
method exclude_pattern (line 39) | def exclude_pattern(
function findall (line 47) | def findall(dir: str = ".") -> list[str]: ...
function glob_to_re (line 48) | def glob_to_re(pattern: str) -> str: ...
function translate_pattern (line 50) | def translate_pattern(
function translate_pattern (line 54) | def translate_pattern(pattern: str | Pattern[str], *, is_regex: Literal[...
function translate_pattern (line 56) | def translate_pattern(
FILE: mypy/typeshed/stdlib/distutils/log.pyi
class Log (line 9) | class Log:
method __init__ (line 10) | def __init__(self, threshold: int = 3) -> None: ...
method log (line 12) | def log(self, level: int, msg: str, *args: Any) -> None: ...
method debug (line 13) | def debug(self, msg: str, *args: Any) -> None: ...
method info (line 14) | def info(self, msg: str, *args: Any) -> None: ...
method warn (line 15) | def warn(self, msg: str, *args: Any) -> None: ...
method error (line 16) | def error(self, msg: str, *args: Any) -> None: ...
method fatal (line 17) | def fatal(self, msg: str, *args: Any) -> None: ...
function log (line 19) | def log(level: int, msg: str, *args: Any) -> None: ...
function debug (line 20) | def debug(msg: str, *args: Any) -> None: ...
function info (line 21) | def info(msg: str, *args: Any) -> None: ...
function warn (line 22) | def warn(msg: str, *args: Any) -> None: ...
function error (line 23) | def error(msg: str, *args: Any) -> None: ...
function fatal (line 24) | def fatal(msg: str, *args: Any) -> None: ...
function set_threshold (line 25) | def set_threshold(level: int) -> int: ...
function set_verbosity (line 26) | def set_verbosity(v: int) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/msvccompiler.pyi
class MSVCCompiler (line 3) | class MSVCCompiler(CCompiler): ...
FILE: mypy/typeshed/stdlib/distutils/spawn.pyi
function spawn (line 4) | def spawn(
function find_executable (line 10) | def find_executable(executable: str, path: str | None = None) -> str | N...
FILE: mypy/typeshed/stdlib/distutils/sysconfig.pyi
function expand_makefile_vars (line 14) | def expand_makefile_vars(s: str, vars: Mapping[str, str]) -> str: ...
function get_config_var (line 17) | def get_config_var(name: Literal["SO"]) -> int | str | None: ...
function get_config_var (line 19) | def get_config_var(name: str) -> int | str | None: ...
function get_config_vars (line 21) | def get_config_vars() -> dict[str, str | int]: ...
function get_config_vars (line 23) | def get_config_vars(arg: str, /, *args: str) -> list[str | int]: ...
function get_config_h_filename (line 24) | def get_config_h_filename() -> str: ...
function get_makefile_filename (line 25) | def get_makefile_filename() -> str: ...
function get_python_inc (line 26) | def get_python_inc(plat_specific: bool | Literal[0, 1] = 0, prefix: str ...
function get_python_lib (line 27) | def get_python_lib(
function customize_compiler (line 30) | def customize_compiler(compiler: CCompiler) -> None: ...
function get_python_version (line 33) | def get_python_version() -> str: ...
FILE: mypy/typeshed/stdlib/distutils/text_file.pyi
class TextFile (line 3) | class TextFile:
method __init__ (line 4) | def __init__(
method open (line 16) | def open(self, filename: str) -> None: ...
method close (line 17) | def close(self) -> None: ...
method warn (line 18) | def warn(self, msg: str, line: list[int] | tuple[int, int] | int | Non...
method readline (line 19) | def readline(self) -> str | None: ...
method readlines (line 20) | def readlines(self) -> list[str]: ...
method unreadline (line 21) | def unreadline(self, line: str) -> str: ...
FILE: mypy/typeshed/stdlib/distutils/unixccompiler.pyi
class UnixCCompiler (line 3) | class UnixCCompiler(CCompiler): ...
FILE: mypy/typeshed/stdlib/distutils/util.pyi
function get_host_platform (line 8) | def get_host_platform() -> str: ...
function get_platform (line 9) | def get_platform() -> str: ...
function convert_path (line 10) | def convert_path(pathname: str) -> str: ...
function change_root (line 11) | def change_root(new_root: StrPath, pathname: StrPath) -> str: ...
function check_environ (line 12) | def check_environ() -> None: ...
function subst_vars (line 13) | def subst_vars(s: str, local_vars: Mapping[str, str]) -> None: ...
function split_quoted (line 14) | def split_quoted(s: str) -> list[str]: ...
function execute (line 15) | def execute(
function strtobool (line 22) | def strtobool(val: str) -> Literal[0, 1]: ...
function byte_compile (line 23) | def byte_compile(
function rfc822_escape (line 33) | def rfc822_escape(header: str) -> str: ...
function run_2to3 (line 34) | def run_2to3(
function copydir_run_2to3 (line 40) | def copydir_run_2to3(
class Mixin2to3 (line 49) | class Mixin2to3:
method run_2to3 (line 53) | def run_2to3(self, files: Iterable[str]) -> None: ...
FILE: mypy/typeshed/stdlib/distutils/version.pyi
class Version (line 5) | class Version:
method __eq__ (line 6) | def __eq__(self, other: object) -> bool: ...
method __lt__ (line 7) | def __lt__(self, other: Self | str) -> bool: ...
method __le__ (line 8) | def __le__(self, other: Self | str) -> bool: ...
method __gt__ (line 9) | def __gt__(self, other: Self | str) -> bool: ...
method __ge__ (line 10) | def __ge__(self, other: Self | str) -> bool: ...
method __init__ (line 12) | def __init__(self, vstring: str | None = None) -> None: ...
method parse (line 14) | def parse(self, vstring: str) -> Self: ...
method __str__ (line 16) | def __str__(self) -> str: ...
method _cmp (line 18) | def _cmp(self, other: Self | str) -> bool: ...
class StrictVersion (line 20) | class StrictVersion(Version):
method __init__ (line 24) | def __init__(self, vstring: str | None = None) -> None: ...
method parse (line 25) | def parse(self, vstring: str) -> Self: ...
method __str__ (line 26) | def __str__(self) -> str: ... # noqa: Y029
method _cmp (line 27) | def _cmp(self, other: Self | str) -> bool: ...
class LooseVersion (line 29) | class LooseVersion(Version):
method __init__ (line 33) | def __init__(self, vstring: str | None = None) -> None: ...
method parse (line 34) | def parse(self, vstring: str) -> Self: ...
method __str__ (line 35) | def __str__(self) -> str: ... # noqa: Y029
method _cmp (line 36) | def _cmp(self, other: Self | str) -> bool: ...
FILE: mypy/typeshed/stdlib/doctest.pyi
class _TestResultsBase (line 47) | class _TestResultsBase(NamedTuple):
class TestResults (line 51) | class TestResults(_TestResultsBase):
method __new__ (line 52) | def __new__(cls, failed: int, attempted: int, *, skipped: int = 0) -> ...
class TestResults (line 56) | class TestResults(NamedTuple):
method __new__ (line 52) | def __new__(cls, failed: int, attempted: int, *, skipped: int = 0) -> ...
function register_optionflag (line 62) | def register_optionflag(name: str) -> int: ...
class Example (line 84) | class Example:
method __init__ (line 91) | def __init__(
method __hash__ (line 100) | def __hash__(self) -> int: ...
method __eq__ (line 101) | def __eq__(self, other: object) -> bool: ...
class DocTest (line 103) | class DocTest:
method __init__ (line 110) | def __init__(
method __hash__ (line 119) | def __hash__(self) -> int: ...
method __lt__ (line 120) | def __lt__(self, other: DocTest) -> bool: ...
method __eq__ (line 121) | def __eq__(self, other: object) -> bool: ...
class DocTestParser (line 123) | class DocTestParser:
method parse (line 124) | def parse(self, string: str, name: str = "") -> list[str | Exa...
method get_doctest (line 125) | def get_doctest(self, string: str, globs: dict[str, Any], name: str, f...
method get_examples (line 126) | def get_examples(self, string: str, name: str = "") -> list[Ex...
class DocTestFinder (line 128) | class DocTestFinder:
method __init__ (line 129) | def __init__(
method find (line 132) | def find(
class DocTestRunner (line 143) | class DocTestRunner:
method __init__ (line 152) | def __init__(self, checker: OutputChecker | None = None, verbose: bool...
method report_start (line 153) | def report_start(self, out: _Out, test: DocTest, example: Example) -> ...
method report_success (line 154) | def report_success(self, out: _Out, test: DocTest, example: Example, g...
method report_failure (line 155) | def report_failure(self, out: _Out, test: DocTest, example: Example, g...
method report_unexpected_exception (line 156) | def report_unexpected_exception(self, out: _Out, test: DocTest, exampl...
method run (line 157) | def run(
method summarize (line 160) | def summarize(self, verbose: bool | None = None) -> TestResults: ...
method merge (line 161) | def merge(self, other: DocTestRunner) -> None: ...
class OutputChecker (line 163) | class OutputChecker:
method check_output (line 164) | def check_output(self, want: str, got: str, optionflags: int) -> bool:...
method output_difference (line 165) | def output_difference(self, example: Example, got: str, optionflags: i...
class DocTestFailure (line 167) | class DocTestFailure(Exception):
method __init__ (line 171) | def __init__(self, test: DocTest, example: Example, got: str) -> None:...
class UnexpectedException (line 173) | class UnexpectedException(Exception):
method __init__ (line 177) | def __init__(self, test: DocTest, example: Example, exc_info: ExcInfo)...
class DebugRunner (line 179) | class DebugRunner(DocTestRunner): ...
function testmod (line 183) | def testmod(
function testfile (line 194) | def testfile(
function run_docstring_examples (line 208) | def run_docstring_examples(
function set_unittest_reportflags (line 216) | def set_unittest_reportflags(flags: int) -> int: ...
class DocTestCase (line 218) | class DocTestCase(unittest.TestCase):
method __init__ (line 219) | def __init__(
method runTest (line 227) | def runTest(self) -> None: ...
method format_failure (line 228) | def format_failure(self, err: str) -> str: ...
method __hash__ (line 229) | def __hash__(self) -> int: ...
method __eq__ (line 230) | def __eq__(self, other: object) -> bool: ...
class SkipDocTestCase (line 232) | class SkipDocTestCase(DocTestCase):
method __init__ (line 233) | def __init__(self, module: types.ModuleType) -> None: ...
method test_skip (line 234) | def test_skip(self) -> None: ...
class _DocTestSuite (line 236) | class _DocTestSuite(unittest.TestSuite): ...
function DocTestSuite (line 238) | def DocTestSuite(
class DocFileCase (line 246) | class DocFileCase(DocTestCase): ...
function DocFileTest (line 248) | def DocFileTest(
function DocFileSuite (line 257) | def DocFileSuite(*paths: str, **kw: Any) -> _DocTestSuite: ...
function script_from_examples (line 258) | def script_from_examples(s: str) -> str: ...
function testsource (line 259) | def testsource(module: None | str | types.ModuleType, name: str) -> str:...
function debug_src (line 260) | def debug_src(src: str, pm: bool = False, globs: dict[str, Any] | None =...
function debug_script (line 261) | def debug_script(src: str, pm: bool = False, globs: dict[str, Any] | Non...
function debug (line 262) | def debug(module: None | str | types.ModuleType, name: str, pm: bool = F...
FILE: mypy/typeshed/stdlib/email/__init__.pyi
function message_from_string (line 34) | def message_from_string(s: str, _class: Callable[[], Message] = ..., *, ...
function message_from_bytes (line 35) | def message_from_bytes(s: bytes | bytearray, _class: Callable[[], Messag...
function message_from_file (line 36) | def message_from_file(fp: IO[str], _class: Callable[[], Message] = ..., ...
function message_from_binary_file (line 37) | def message_from_binary_file(fp: IO[bytes], _class: Callable[[], Message...
FILE: mypy/typeshed/stdlib/email/_header_value_parser.pyi
function quote_string (line 24) | def quote_string(value: Any) -> str: ...
class TokenList (line 28) | class TokenList(list[TokenList | Terminal]):
method __init__ (line 33) | def __init__(self, *args: Any, **kw: Any) -> None: ...
method value (line 35) | def value(self) -> str: ...
method all_defects (line 37) | def all_defects(self) -> list[MessageDefect]: ...
method startswith_fws (line 38) | def startswith_fws(self) -> bool: ...
method as_ew_allowed (line 40) | def as_ew_allowed(self) -> bool: ...
method comments (line 42) | def comments(self) -> list[str]: ...
method fold (line 43) | def fold(self, *, policy: Policy) -> str: ...
method pprint (line 44) | def pprint(self, indent: str = "") -> None: ...
method ppstr (line 45) | def ppstr(self, indent: str = "") -> str: ...
class WhiteSpaceTokenList (line 47) | class WhiteSpaceTokenList(TokenList): ...
class UnstructuredTokenList (line 49) | class UnstructuredTokenList(TokenList):
class Phrase (line 52) | class Phrase(TokenList):
class Word (line 55) | class Word(TokenList):
class CFWSList (line 58) | class CFWSList(WhiteSpaceTokenList):
class Atom (line 61) | class Atom(TokenList):
class Token (line 64) | class Token(TokenList):
class EncodedWord (line 68) | class EncodedWord(TokenList):
class QuotedString (line 74) | class QuotedString(TokenList):
method content (line 77) | def content(self) -> str: ...
method quoted_value (line 79) | def quoted_value(self) -> str: ...
method stripped_value (line 81) | def stripped_value(self) -> str: ...
class BareQuotedString (line 83) | class BareQuotedString(QuotedString):
class Comment (line 86) | class Comment(WhiteSpaceTokenList):
method quote (line 88) | def quote(self, value: Any) -> str: ...
method content (line 90) | def content(self) -> str: ...
class AddressList (line 92) | class AddressList(TokenList):
method addresses (line 95) | def addresses(self) -> list[Address]: ...
method mailboxes (line 97) | def mailboxes(self) -> list[Mailbox]: ...
method all_mailboxes (line 99) | def all_mailboxes(self) -> list[Mailbox]: ...
class Address (line 101) | class Address(TokenList):
method display_name (line 104) | def display_name(self) -> str: ...
method mailboxes (line 106) | def mailboxes(self) -> list[Mailbox]: ...
method all_mailboxes (line 108) | def all_mailboxes(self) -> list[Mailbox]: ...
class MailboxList (line 110) | class MailboxList(TokenList):
method mailboxes (line 113) | def mailboxes(self) -> list[Mailbox]: ...
method all_mailboxes (line 115) | def all_mailboxes(self) -> list[Mailbox]: ...
class GroupList (line 117) | class GroupList(TokenList):
method mailboxes (line 120) | def mailboxes(self) -> list[Mailbox]: ...
method all_mailboxes (line 122) | def all_mailboxes(self) -> list[Mailbox]: ...
class Group (line 124) | class Group(TokenList):
method mailboxes (line 127) | def mailboxes(self) -> list[Mailbox]: ...
method all_mailboxes (line 129) | def all_mailboxes(self) -> list[Mailbox]: ...
method display_name (line 131) | def display_name(self) -> str: ...
class NameAddr (line 133) | class NameAddr(TokenList):
method display_name (line 136) | def display_name(self) -> str: ...
method local_part (line 138) | def local_part(self) -> str: ...
method domain (line 140) | def domain(self) -> str: ...
method route (line 142) | def route(self) -> list[Domain] | None: ...
method addr_spec (line 144) | def addr_spec(self) -> str: ...
class AngleAddr (line 146) | class AngleAddr(TokenList):
method local_part (line 149) | def local_part(self) -> str: ...
method domain (line 151) | def domain(self) -> str: ...
method route (line 153) | def route(self) -> list[Domain] | None: ...
method addr_spec (line 155) | def addr_spec(self) -> str: ...
class ObsRoute (line 157) | class ObsRoute(TokenList):
method domains (line 160) | def domains(self) -> list[Domain]: ...
class Mailbox (line 162) | class Mailbox(TokenList):
method display_name (line 165) | def display_name(self) -> str: ...
method local_part (line 167) | def local_part(self) -> str: ...
method domain (line 169) | def domain(self) -> str: ...
method route (line 171) | def route(self) -> list[str]: ...
method addr_spec (line 173) | def addr_spec(self) -> str: ...
class InvalidMailbox (line 175) | class InvalidMailbox(TokenList):
method display_name (line 178) | def display_name(self) -> None: ...
method local_part (line 180) | def local_part(self) -> None: ...
method domain (line 182) | def domain(self) -> None: ...
method route (line 184) | def route(self) -> None: ...
method addr_spec (line 186) | def addr_spec(self) -> None: ...
class Domain (line 188) | class Domain(TokenList):
method domain (line 192) | def domain(self) -> str: ...
class DotAtom (line 194) | class DotAtom(TokenList):
class DotAtomText (line 197) | class DotAtomText(TokenList):
class NoFoldLiteral (line 201) | class NoFoldLiteral(TokenList):
class AddrSpec (line 205) | class AddrSpec(TokenList):
method local_part (line 209) | def local_part(self) -> str: ...
method domain (line 211) | def domain(self) -> str: ...
method addr_spec (line 213) | def addr_spec(self) -> str: ...
class ObsLocalPart (line 215) | class ObsLocalPart(TokenList):
class DisplayName (line 219) | class DisplayName(Phrase):
method display_name (line 222) | def display_name(self) -> str: ...
class LocalPart (line 224) | class LocalPart(TokenList):
method local_part (line 228) | def local_part(self) -> str: ...
class DomainLiteral (line 230) | class DomainLiteral(TokenList):
method domain (line 234) | def domain(self) -> str: ...
method ip (line 236) | def ip(self) -> str: ...
class MIMEVersion (line 238) | class MIMEVersion(TokenList):
class Parameter (line 243) | class Parameter(TokenList):
method section_number (line 249) | def section_number(self) -> int: ...
method param_value (line 251) | def param_value(self) -> str: ...
class InvalidParameter (line 253) | class InvalidParameter(Parameter):
class Attribute (line 256) | class Attribute(TokenList):
method stripped_value (line 259) | def stripped_value(self) -> str: ...
class Section (line 261) | class Section(TokenList):
class Value (line 265) | class Value(TokenList):
method stripped_value (line 268) | def stripped_value(self) -> str: ...
class MimeParameters (line 270) | class MimeParameters(TokenList):
method params (line 274) | def params(self) -> Iterator[tuple[str, str]]: ...
class ParameterizedHeaderValue (line 276) | class ParameterizedHeaderValue(TokenList):
method params (line 279) | def params(self) -> Iterable[tuple[str, str]]: ...
class ContentType (line 281) | class ContentType(ParameterizedHeaderValue):
class ContentDisposition (line 287) | class ContentDisposition(ParameterizedHeaderValue):
class ContentTransferEncoding (line 292) | class ContentTransferEncoding(TokenList):
class HeaderLabel (line 297) | class HeaderLabel(TokenList):
class MsgID (line 301) | class MsgID(TokenList):
method fold (line 304) | def fold(self, policy: Policy) -> str: ...
class MessageID (line 306) | class MessageID(MsgID):
class InvalidMessageID (line 309) | class InvalidMessageID(MessageID):
class Header (line 312) | class Header(TokenList):
class Terminal (line 315) | class Terminal(str):
method __new__ (line 321) | def __new__(cls, value: str, token_type: str) -> Self: ...
method pprint (line 322) | def pprint(self) -> None: ...
method all_defects (line 324) | def all_defects(self) -> list[MessageDefect]: ...
method pop_trailing_ws (line 325) | def pop_trailing_ws(self) -> None: ...
method comments (line 327) | def comments(self) -> list[str]: ...
method __getnewargs__ (line 328) | def __getnewargs__(self) -> tuple[str, str]: ... # type: ignore[overr...
class WhiteSpaceTerminal (line 330) | class WhiteSpaceTerminal(Terminal):
method value (line 332) | def value(self) -> str: ...
method startswith_fws (line 333) | def startswith_fws(self) -> bool: ...
class ValueTerminal (line 335) | class ValueTerminal(Terminal):
method value (line 337) | def value(self) -> ValueTerminal: ...
method startswith_fws (line 338) | def startswith_fws(self) -> bool: ...
class EWWhiteSpaceTerminal (line 340) | class EWWhiteSpaceTerminal(WhiteSpaceTerminal): ...
class _InvalidEwError (line 341) | class _InvalidEwError(HeaderParseError): ...
function get_fws (line 347) | def get_fws(value: str) -> tuple[WhiteSpaceTerminal, str]: ...
function get_encoded_word (line 348) | def get_encoded_word(value: str) -> tuple[EncodedWord, str]: ...
function get_unstructured (line 349) | def get_unstructured(value: str) -> UnstructuredTokenList: ...
function get_qp_ctext (line 350) | def get_qp_ctext(value: str) -> tuple[WhiteSpaceTerminal, str]: ...
function get_qcontent (line 351) | def get_qcontent(value: str) -> tuple[ValueTerminal, str]: ...
function get_atext (line 352) | def get_atext(value: str) -> tuple[ValueTerminal, str]: ...
function get_bare_quoted_string (line 353) | def get_bare_quoted_string(value: str) -> tuple[BareQuotedString, str]: ...
function get_comment (line 354) | def get_comment(value: str) -> tuple[Comment, str]: ...
function get_cfws (line 355) | def get_cfws(value: str) -> tuple[CFWSList, str]: ...
function get_quoted_string (line 356) | def get_quoted_string(value: str) -> tuple[QuotedString, str]: ...
function get_atom (line 357) | def get_atom(value: str) -> tuple[Atom, str]: ...
function get_dot_atom_text (line 358) | def get_dot_atom_text(value: str) -> tuple[DotAtomText, str]: ...
function get_dot_atom (line 359) | def get_dot_atom(value: str) -> tuple[DotAtom, str]: ...
function get_word (line 360) | def get_word(value: str) -> tuple[Any, str]: ...
function get_phrase (line 361) | def get_phrase(value: str) -> tuple[Phrase, str]: ...
function get_local_part (line 362) | def get_local_part(value: str) -> tuple[LocalPart, str]: ...
function get_obs_local_part (line 363) | def get_obs_local_part(value: str) -> tuple[ObsLocalPart, str]: ...
function get_dtext (line 364) | def get_dtext(value: str) -> tuple[ValueTerminal, str]: ...
function get_domain_literal (line 365) | def get_domain_literal(value: str) -> tuple[DomainLiteral, str]: ...
function get_domain (line 366) | def get_domain(value: str) -> tuple[Domain, str]: ...
function get_addr_spec (line 367) | def get_addr_spec(value: str) -> tuple[AddrSpec, str]: ...
function get_obs_route (line 368) | def get_obs_route(value: str) -> tuple[ObsRoute, str]: ...
function get_angle_addr (line 369) | def get_angle_addr(value: str) -> tuple[AngleAddr, str]: ...
function get_display_name (line 370) | def get_display_name(value: str) -> tuple[DisplayName, str]: ...
function get_name_addr (line 371) | def get_name_addr(value: str) -> tuple[NameAddr, str]: ...
function get_mailbox (line 372) | def get_mailbox(value: str) -> tuple[Mailbox, str]: ...
function get_invalid_mailbox (line 373) | def get_invalid_mailbox(value: str, endchars: str) -> tuple[InvalidMailb...
function get_mailbox_list (line 374) | def get_mailbox_list(value: str) -> tuple[MailboxList, str]: ...
function get_group_list (line 375) | def get_group_list(value: str) -> tuple[GroupList, str]: ...
function get_group (line 376) | def get_group(value: str) -> tuple[Group, str]: ...
function get_address (line 377) | def get_address(value: str) -> tuple[Address, str]: ...
function get_address_list (line 378) | def get_address_list(value: str) -> tuple[AddressList, str]: ...
function get_no_fold_literal (line 379) | def get_no_fold_literal(value: str) -> tuple[NoFoldLiteral, str]: ...
function get_msg_id (line 380) | def get_msg_id(value: str) -> tuple[MsgID, str]: ...
function parse_message_id (line 381) | def parse_message_id(value: str) -> MessageID: ...
function parse_mime_version (line 382) | def parse_mime_version(value: str) -> MIMEVersion: ...
function get_invalid_parameter (line 383) | def get_invalid_parameter(value: str) -> tuple[InvalidParameter, str]: ...
function get_ttext (line 384) | def get_ttext(value: str) -> tuple[ValueTerminal, str]: ...
function get_token (line 385) | def get_token(value: str) -> tuple[Token, str]: ...
function get_attrtext (line 386) | def get_attrtext(value: str) -> tuple[ValueTerminal, str]: ...
function get_attribute (line 387) | def get_attribute(value: str) -> tuple[Attribute, str]: ...
function get_extended_attrtext (line 388) | def get_extended_attrtext(value: str) -> tuple[ValueTerminal, str]: ...
function get_extended_attribute (line 389) | def get_extended_attribute(value: str) -> tuple[Attribute, str]: ...
function get_section (line 390) | def get_section(value: str) -> tuple[Section, str]: ...
function get_value (line 391) | def get_value(value: str) -> tuple[Value, str]: ...
function get_parameter (line 392) | def get_parameter(value: str) -> tuple[Parameter, str]: ...
function parse_mime_parameters (line 393) | def parse_mime_parameters(value: str) -> MimeParameters: ...
function parse_content_type_header (line 394) | def parse_content_type_header(value: str) -> ContentType: ...
function parse_content_disposition_header (line 395) | def parse_content_disposition_header(value: str) -> ContentDisposition: ...
function parse_content_transfer_encoding_header (line 396) | def parse_content_transfer_encoding_header(value: str) -> ContentTransfe...
FILE: mypy/typeshed/stdlib/email/_policybase.pyi
class _MessageFactory (line 13) | class _MessageFactory(Protocol[_MessageT]):
method __call__ (line 14) | def __call__(self, policy: Policy[_MessageT]) -> _MessageT: ...
class _PolicyBase (line 19) | class _PolicyBase(Generic[_MessageT]):
method __init__ (line 29) | def __init__(
method clone (line 41) | def clone(
method __add__ (line 53) | def __add__(self, other: Policy) -> Self: ...
class Policy (line 55) | class Policy(_PolicyBase[_MessageT], metaclass=ABCMeta):
method handle_defect (line 56) | def handle_defect(self, obj: _MessageT, defect: MessageDefect) -> None...
method register_defect (line 57) | def register_defect(self, obj: _MessageT, defect: MessageDefect) -> No...
method header_max_count (line 58) | def header_max_count(self, name: str) -> int | None: ...
method header_source_parse (line 60) | def header_source_parse(self, sourcelines: list[str]) -> tuple[str, st...
method header_store_parse (line 62) | def header_store_parse(self, name: str, value: str) -> tuple[str, str]...
method header_fetch_parse (line 64) | def header_fetch_parse(self, name: str, value: str) -> str: ...
method fold (line 66) | def fold(self, name: str, value: str) -> str: ...
method fold_binary (line 68) | def fold_binary(self, name: str, value: str) -> bytes: ...
class Compat32 (line 70) | class Compat32(Policy[_MessageT]):
method header_source_parse (line 71) | def header_source_parse(self, sourcelines: list[str]) -> tuple[str, st...
method header_store_parse (line 72) | def header_store_parse(self, name: str, value: str) -> tuple[str, str]...
method header_fetch_parse (line 73) | def header_fetch_parse(self, name: str, value: str) -> str | Header: ....
method fold (line 74) | def fold(self, name: str, value: str) -> str: ...
method fold_binary (line 75) | def fold_binary(self, name: str, value: str) -> bytes: ...
FILE: mypy/typeshed/stdlib/email/base64mime.pyi
function header_length (line 5) | def header_length(bytearray: str | bytes | bytearray) -> int: ...
function header_encode (line 6) | def header_encode(header_bytes: str | ReadableBuffer, charset: str = "is...
function body_encode (line 9) | def body_encode(s: bytes | bytearray, maxlinelen: int = 76, eol: str = "...
function decode (line 10) | def decode(string: str | ReadableBuffer) -> bytes: ...
FILE: mypy/typeshed/stdlib/email/charset.pyi
class Charset (line 11) | class Charset:
method __init__ (line 18) | def __init__(self, input_charset: str = "us-ascii") -> None: ...
method get_body_encoding (line 19) | def get_body_encoding(self) -> str | Callable[[Message], None]: ...
method get_output_charset (line 20) | def get_output_charset(self) -> str | None: ...
method header_encode (line 21) | def header_encode(self, string: str) -> str: ...
method header_encode_lines (line 22) | def header_encode_lines(self, string: str, maxlengths: Iterator[int]) ...
method body_encode (line 24) | def body_encode(self, string: None) -> None: ...
method body_encode (line 26) | def body_encode(self, string: str | bytes) -> str: ...
method __eq__ (line 28) | def __eq__(self, other: object) -> bool: ...
method __ne__ (line 29) | def __ne__(self, value: object, /) -> bool: ...
function add_charset (line 31) | def add_charset(
function add_alias (line 34) | def add_alias(alias: str, canonical: str) -> None: ...
function add_codec (line 35) | def add_codec(charset: str, codecname: str) -> None: ...
FILE: mypy/typeshed/stdlib/email/contentmanager.pyi
class ContentManager (line 5) | class ContentManager:
method get_content (line 6) | def get_content(self, msg: Message, *args: Any, **kw: Any) -> Any: ...
method set_content (line 7) | def set_content(self, msg: Message, obj: Any, *args: Any, **kw: Any) -...
method add_get_handler (line 8) | def add_get_handler(self, key: str, handler: Callable[..., Any]) -> No...
method add_set_handler (line 9) | def add_set_handler(self, typekey: type, handler: Callable[..., Any]) ...
FILE: mypy/typeshed/stdlib/email/encoders.pyi
function encode_base64 (line 5) | def encode_base64(msg: Message) -> None: ...
function encode_quopri (line 6) | def encode_quopri(msg: Message) -> None: ...
function encode_7or8bit (line 7) | def encode_7or8bit(msg: Message) -> None: ...
function encode_noop (line 8) | def encode_noop(msg: Message) -> None: ...
FILE: mypy/typeshed/stdlib/email/errors.pyi
class MessageError (line 3) | class MessageError(Exception): ...
class MessageParseError (line 4) | class MessageParseError(MessageError): ...
class HeaderParseError (line 5) | class HeaderParseError(MessageParseError): ...
class BoundaryError (line 6) | class BoundaryError(MessageParseError): ...
class MultipartConversionError (line 7) | class MultipartConversionError(MessageError, TypeError): ...
class CharsetError (line 8) | class CharsetError(MessageError): ...
class HeaderWriteError (line 11) | class HeaderWriteError(MessageError): ...
class MessageDefect (line 13) | class MessageDefect(ValueError):
method __init__ (line 14) | def __init__(self, line: str | None = None) -> None: ...
class NoBoundaryInMultipartDefect (line 16) | class NoBoundaryInMultipartDefect(MessageDefect): ...
class StartBoundaryNotFoundDefect (line 17) | class StartBoundaryNotFoundDefect(MessageDefect): ...
class FirstHeaderLineIsContinuationDefect (line 18) | class FirstHeaderLineIsContinuationDefect(MessageDefect): ...
class MisplacedEnvelopeHeaderDefect (line 19) | class MisplacedEnvelopeHeaderDefect(MessageDefect): ...
class MultipartInvariantViolationDefect (line 20) | class MultipartInvariantViolationDefect(MessageDefect): ...
class InvalidMultipartContentTransferEncodingDefect (line 21) | class InvalidMultipartContentTransferEncodingDefect(MessageDefect): ...
class UndecodableBytesDefect (line 22) | class UndecodableBytesDefect(MessageDefect): ...
class InvalidBase64PaddingDefect (line 23) | class InvalidBase64PaddingDefect(MessageDefect): ...
class InvalidBase64CharactersDefect (line 24) | class InvalidBase64CharactersDefect(MessageDefect): ...
class InvalidBase64LengthDefect (line 25) | class InvalidBase64LengthDefect(MessageDefect): ...
class CloseBoundaryNotFoundDefect (line 26) | class CloseBoundaryNotFoundDefect(MessageDefect): ...
class MissingHeaderBodySeparatorDefect (line 27) | class MissingHeaderBodySeparatorDefect(MessageDefect): ...
class HeaderDefect (line 31) | class HeaderDefect(MessageDefect): ...
class InvalidHeaderDefect (line 32) | class InvalidHeaderDefect(HeaderDefect): ...
class HeaderMissingRequiredValue (line 33) | class HeaderMissingRequiredValue(HeaderDefect): ...
class NonPrintableDefect (line 35) | class NonPrintableDefect(HeaderDefect):
method __init__ (line 36) | def __init__(self, non_printables: str | None) -> None: ...
class ObsoleteHeaderDefect (line 38) | class ObsoleteHeaderDefect(HeaderDefect): ...
class NonASCIILocalPartDefect (line 39) | class NonASCIILocalPartDefect(HeaderDefect): ...
class InvalidDateDefect (line 42) | class InvalidDateDefect(HeaderDefect): ...
FILE: mypy/typeshed/stdlib/email/feedparser.pyi
class FeedParser (line 10) | class FeedParser(Generic[_MessageT]):
method __init__ (line 12) | def __init__(self: FeedParser[Message], _factory: None = None, *, poli...
method __init__ (line 14) | def __init__(self, _factory: Callable[[], _MessageT], *, policy: Polic...
method feed (line 15) | def feed(self, data: str) -> None: ...
method close (line 16) | def close(self) -> _MessageT: ...
class BytesFeedParser (line 18) | class BytesFeedParser(FeedParser[_MessageT]):
method __init__ (line 20) | def __init__(self: BytesFeedParser[Message], _factory: None = None, *,...
method __init__ (line 22) | def __init__(self, _factory: Callable[[], _MessageT], *, policy: Polic...
method feed (line 23) | def feed(self, data: bytes | bytearray) -> None: ... # type: ignore[o...
FILE: mypy/typeshed/stdlib/email/generator.pyi
class Generator (line 12) | class Generator(Generic[_MessageT]):
method __init__ (line 16) | def __init__(
method __init__ (line 25) | def __init__(
method write (line 33) | def write(self, s: str) -> None: ...
method flatten (line 34) | def flatten(self, msg: _MessageT, unixfrom: bool = False, linesep: str...
method clone (line 35) | def clone(self, fp: SupportsWrite[str]) -> Self: ...
class BytesGenerator (line 37) | class BytesGenerator(Generator[_MessageT]):
method __init__ (line 39) | def __init__(
method __init__ (line 48) | def __init__(
class DecodedGenerator (line 57) | class DecodedGenerator(Generator[_MessageT]):
method __init__ (line 59) | def __init__(
method __init__ (line 69) | def __init__(
FILE: mypy/typeshed/stdlib/email/header.pyi
class Header (line 7) | class Header:
method __init__ (line 8) | def __init__(
method append (line 17) | def append(self, s: bytes | bytearray | str, charset: Charset | str | ...
method encode (line 18) | def encode(self, splitchars: str = ";, \t", maxlinelen: int | None = N...
method __eq__ (line 20) | def __eq__(self, other: object) -> bool: ...
method __ne__ (line 21) | def __ne__(self, value: object, /) -> bool: ...
function decode_header (line 26) | def decode_header(header: Header | str) -> list[tuple[Any, Any | None]]:...
function make_header (line 27) | def make_header(
FILE: mypy/typeshed/stdlib/email/headerregistry.pyi
class BaseHeader (line 19) | class BaseHeader(str):
method name (line 23) | def name(self) -> str: ...
method defects (line 25) | def defects(self) -> tuple[MessageDefect, ...]: ...
method __new__ (line 26) | def __new__(cls, name: str, value: Any) -> Self: ...
method init (line 27) | def init(self, name: str, *, parse_tree: TokenList, defects: Iterable[...
method fold (line 28) | def fold(self, *, policy: Policy) -> str: ...
class UnstructuredHeader (line 30) | class UnstructuredHeader:
method value_parser (line 33) | def value_parser(value: str) -> UnstructuredTokenList: ...
method parse (line 35) | def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
class UniqueUnstructuredHeader (line 37) | class UniqueUnstructuredHeader(UnstructuredHeader):
class DateHeader (line 40) | class DateHeader:
method init (line 42) | def init(self, name: str, *, parse_tree: TokenList, defects: Iterable[...
method datetime (line 44) | def datetime(self) -> _datetime: ...
method value_parser (line 46) | def value_parser(value: str) -> UnstructuredTokenList: ...
method parse (line 48) | def parse(cls, value: str | _datetime, kwds: dict[str, Any]) -> None: ...
class UniqueDateHeader (line 50) | class UniqueDateHeader(DateHeader):
class AddressHeader (line 53) | class AddressHeader:
method init (line 55) | def init(self, name: str, *, parse_tree: TokenList, defects: Iterable[...
method groups (line 57) | def groups(self) -> tuple[Group, ...]: ...
method addresses (line 59) | def addresses(self) -> tuple[Address, ...]: ...
method value_parser (line 61) | def value_parser(value: str) -> AddressList: ...
method parse (line 63) | def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
class UniqueAddressHeader (line 65) | class UniqueAddressHeader(AddressHeader):
class SingleAddressHeader (line 68) | class SingleAddressHeader(AddressHeader):
method address (line 70) | def address(self) -> Address: ...
class UniqueSingleAddressHeader (line 72) | class UniqueSingleAddressHeader(SingleAddressHeader):
class MIMEVersionHeader (line 75) | class MIMEVersionHeader:
method init (line 77) | def init(
method version (line 88) | def version(self) -> str | None: ...
method major (line 90) | def major(self) -> int | None: ...
method minor (line 92) | def minor(self) -> int | None: ...
method value_parser (line 94) | def value_parser(value: str) -> MIMEVersion: ...
method parse (line 96) | def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
class ParameterizedMIMEHeader (line 98) | class ParameterizedMIMEHeader:
method init (line 100) | def init(self, name: str, *, parse_tree: TokenList, defects: Iterable[...
method params (line 102) | def params(self) -> types.MappingProxyType[str, Any]: ...
method parse (line 104) | def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
class ContentTypeHeader (line 106) | class ContentTypeHeader(ParameterizedMIMEHeader):
method content_type (line 108) | def content_type(self) -> str: ...
method maintype (line 110) | def maintype(self) -> str: ...
method subtype (line 112) | def subtype(self) -> str: ...
method value_parser (line 114) | def value_parser(value: str) -> ContentType: ...
class ContentDispositionHeader (line 116) | class ContentDispositionHeader(ParameterizedMIMEHeader):
method content_disposition (line 119) | def content_disposition(self) -> str | None: ...
method value_parser (line 121) | def value_parser(value: str) -> ContentDisposition: ...
class ContentTransferEncodingHeader (line 123) | class ContentTransferEncodingHeader:
method init (line 125) | def init(self, name: str, *, parse_tree: TokenList, defects: Iterable[...
method cte (line 127) | def cte(self) -> str: ...
method parse (line 129) | def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
method value_parser (line 131) | def value_parser(value: str) -> ContentTransferEncoding: ...
class MessageIDHeader (line 133) | class MessageIDHeader:
method parse (line 136) | def parse(cls, value: str, kwds: dict[str, Any]) -> None: ...
method value_parser (line 138) | def value_parser(value: str) -> MessageID: ...
class _HeaderParser (line 140) | class _HeaderParser(Protocol):
method value_parser (line 143) | def value_parser(value: str, /) -> TokenList: ...
method parse (line 145) | def parse(cls, value: str, kwds: dict[str, Any], /) -> None: ...
class HeaderRegistry (line 147) | class HeaderRegistry:
method __init__ (line 151) | def __init__(
method map_to_type (line 154) | def map_to_type(self, name: str, cls: type[BaseHeader]) -> None: ...
method __getitem__ (line 155) | def __getitem__(self, name: str) -> type[BaseHeader]: ...
method __call__ (line 156) | def __call__(self, name: str, value: Any) -> BaseHeader: ...
class Address (line 158) | class Address:
method display_name (line 160) | def display_name(self) -> str: ...
method username (line 162) | def username(self) -> str: ...
method domain (line 164) | def domain(self) -> str: ...
method addr_spec (line 166) | def addr_spec(self) -> str: ...
method __init__ (line 167) | def __init__(
method __eq__ (line 171) | def __eq__(self, other: object) -> bool: ...
class Group (line 173) | class Group:
method display_name (line 175) | def display_name(self) -> str | None: ...
method addresses (line 177) | def addresses(self) -> tuple[Address, ...]: ...
method __init__ (line 178) | def __init__(self, display_name: str | None = None, addresses: Iterabl...
method __eq__ (line 180) | def __eq__(self, other: object) -> bool: ...
FILE: mypy/typeshed/stdlib/email/iterators.pyi
function body_line_iterator (line 7) | def body_line_iterator(msg: Message, decode: bool = False) -> Iterator[s...
function typed_subpart_iterator (line 8) | def typed_subpart_iterator(msg: Message, maintype: str = "text", subtype...
function walk (line 9) | def walk(self: Message) -> Iterator[Message]: ...
function _structure (line 12) | def _structure(msg: Message, fp: SupportsWrite[str] | None = None, level...
FILE: mypy/typeshed/stdlib/email/message.pyi
class _SupportsEncodeToPayload (line 27) | class _SupportsEncodeToPayload(Protocol):
method encode (line 28) | def encode(self, encoding: str, /) -> _PayloadType | _MultipartPayload...
class _SupportsDecodeToPayload (line 30) | class _SupportsDecodeToPayload(Protocol):
method decode (line 31) | def decode(self, encoding: str, errors: str, /) -> _PayloadType | _Mul...
class Message (line 33) | class Message(Generic[_HeaderT, _HeaderParamT]):
method __init__ (line 40) | def __init__(self, policy: Policy[Any] = ...) -> None: ...
method is_multipart (line 41) | def is_multipart(self) -> bool: ...
method set_unixfrom (line 42) | def set_unixfrom(self, unixfrom: str) -> None: ...
method get_unixfrom (line 43) | def get_unixfrom(self) -> str | None: ...
method attach (line 44) | def attach(self, payload: _PayloadType) -> None: ...
method get_payload (line 48) | def get_payload(self, i: int, decode: Literal[True]) -> None: ...
method get_payload (line 50) | def get_payload(self, i: int, decode: Literal[False] = False) -> _Payl...
method get_payload (line 52) | def get_payload(self, i: None = None, decode: Literal[False] = False) ...
method get_payload (line 54) | def get_payload(self, i: None = None, *, decode: Literal[True]) -> _En...
method get_payload (line 56) | def get_payload(self, i: None, decode: Literal[True]) -> _EncodedPaylo...
method set_payload (line 61) | def set_payload(
method set_payload (line 65) | def set_payload(
method set_charset (line 70) | def set_charset(self, charset: _CharsetType) -> None: ...
method get_charset (line 71) | def get_charset(self) -> _CharsetType: ...
method __len__ (line 72) | def __len__(self) -> int: ...
method __contains__ (line 73) | def __contains__(self, name: str) -> bool: ...
method __iter__ (line 74) | def __iter__(self) -> Iterator[str]: ...
method __getitem__ (line 79) | def __getitem__(self, name: str) -> _HeaderT | MaybeNone: ...
method __setitem__ (line 80) | def __setitem__(self, name: str, val: _HeaderParamT) -> None: ...
method __delitem__ (line 81) | def __delitem__(self, name: str) -> None: ...
method keys (line 82) | def keys(self) -> list[str]: ...
method values (line 83) | def values(self) -> list[_HeaderT]: ...
method items (line 84) | def items(self) -> list[tuple[str, _HeaderT]]: ...
method get (line 86) | def get(self, name: str, failobj: None = None) -> _HeaderT | None: ...
method get (line 88) | def get(self, name: str, failobj: _T) -> _HeaderT | _T: ...
method get_all (line 90) | def get_all(self, name: str, failobj: None = None) -> list[_HeaderT] |...
method get_all (line 92) | def get_all(self, name: str, failobj: _T) -> list[_HeaderT] | _T: ...
method add_header (line 93) | def add_header(self, _name: str, _value: str, **_params: _ParamsType) ...
method replace_header (line 94) | def replace_header(self, _name: str, _value: _HeaderParamT) -> None: ...
method get_content_type (line 95) | def get_content_type(self) -> str: ...
method get_content_maintype (line 96) | def get_content_maintype(self) -> str: ...
method get_content_subtype (line 97) | def get_content_subtype(self) -> str: ...
method get_default_type (line 98) | def get_default_type(self) -> str: ...
method set_default_type (line 99) | def set_default_type(self, ctype: str) -> None: ...
method get_params (line 101) | def get_params(
method get_params (line 105) | def get_params(self, failobj: _T, header: str = "content-type", unquot...
method get_param (line 107) | def get_param(
method get_param (line 111) | def get_param(self, param: str, failobj: _T, header: str = "content-ty...
method del_param (line 112) | def del_param(self, param: str, header: str = "content-type", requote:...
method set_type (line 113) | def set_type(self, type: str, header: str = "Content-Type", requote: b...
method get_filename (line 115) | def get_filename(self, failobj: None = None) -> str | None: ...
method get_filename (line 117) | def get_filename(self, failobj: _T) -> str | _T: ...
method get_boundary (line 119) | def get_boundary(self, failobj: None = None) -> str | None: ...
method get_boundary (line 121) | def get_boundary(self, failobj: _T) -> str | _T: ...
method set_boundary (line 122) | def set_boundary(self, boundary: str) -> None: ...
method get_content_charset (line 124) | def get_content_charset(self) -> str | None: ...
method get_content_charset (line 126) | def get_content_charset(self, failobj: _T) -> str | _T: ...
method get_charsets (line 128) | def get_charsets(self, failobj: None = None) -> list[str | None]: ...
method get_charsets (line 130) | def get_charsets(self, failobj: _T) -> list[str | _T]: ...
method walk (line 131) | def walk(self) -> Generator[Self, None, None]: ...
method get_content_disposition (line 132) | def get_content_disposition(self) -> str | None: ...
method as_string (line 133) | def as_string(self, unixfrom: bool = False, maxheaderlen: int = 0, pol...
method as_bytes (line 134) | def as_bytes(self, unixfrom: bool = False, policy: Policy[Any] | None ...
method __bytes__ (line 135) | def __bytes__(self) -> bytes: ...
method set_param (line 136) | def set_param(
method set_raw (line 147) | def set_raw(self, name: str, value: _HeaderParamT) -> None: ...
method raw_items (line 148) | def raw_items(self) -> Iterator[tuple[str, _HeaderT]]: ...
class MIMEPart (line 150) | class MIMEPart(Message[_HeaderRegistryT, _HeaderRegistryParamT]):
method __init__ (line 151) | def __init__(self, policy: Policy[Any] | None = None) -> None: ...
method get_body (line 152) | def get_body(self, preferencelist: Sequence[str] = ("related", "html",...
method attach (line 153) | def attach(self, payload: Self) -> None: ... # type: ignore[override]
method iter_attachments (line 157) | def iter_attachments(self) -> Iterator[Self]: ...
method iter_parts (line 158) | def iter_parts(self) -> Iterator[MIMEPart[_HeaderRegistryT]]: ...
method get_content (line 159) | def get_content(self, *args: Any, content_manager: ContentManager | No...
method set_content (line 160) | def set_content(self, *args: Any, content_manager: ContentManager | No...
method make_related (line 161) | def make_related(self, boundary: str | None = None) -> None: ...
method make_alternative (line 162) | def make_alternative(self, boundary: str | None = None) -> None: ...
method make_mixed (line 163) | def make_mixed(self, boundary: str | None = None) -> None: ...
method add_related (line 164) | def add_related(self, *args: Any, content_manager: ContentManager | No...
method add_alternative (line 165) | def add_alternative(self, *args: Any, content_manager: ContentManager ...
method add_attachment (line 166) | def add_attachment(self, *args: Any, content_manager: ContentManager |...
method clear (line 167) | def clear(self) -> None: ...
method clear_content (line 168) | def clear_content(self) -> None: ...
method as_string (line 169) | def as_string(self, unixfrom: bool = False, maxheaderlen: int | None =...
method is_attachment (line 170) | def is_attachment(self) -> bool: ...
class EmailMessage (line 172) | class EmailMessage(MIMEPart): ...
FILE: mypy/typeshed/stdlib/email/mime/application.pyi
class MIMEApplication (line 8) | class MIMEApplication(MIMENonMultipart):
method __init__ (line 9) | def __init__(
FILE: mypy/typeshed/stdlib/email/mime/audio.pyi
class MIMEAudio (line 8) | class MIMEAudio(MIMENonMultipart):
method __init__ (line 9) | def __init__(
FILE: mypy/typeshed/stdlib/email/mime/base.pyi
class MIMEBase (line 7) | class MIMEBase(email.message.Message):
method __init__ (line 8) | def __init__(self, _maintype: str, _subtype: str, *, policy: Policy | ...
FILE: mypy/typeshed/stdlib/email/mime/image.pyi
class MIMEImage (line 8) | class MIMEImage(MIMENonMultipart):
method __init__ (line 9) | def __init__(
FILE: mypy/typeshed/stdlib/email/mime/message.pyi
class MIMEMessage (line 7) | class MIMEMessage(MIMENonMultipart):
method __init__ (line 8) | def __init__(self, _msg: Message, _subtype: str = "rfc822", *, policy:...
FILE: mypy/typeshed/stdlib/email/mime/multipart.pyi
class MIMEMultipart (line 9) | class MIMEMultipart(MIMEBase):
method __init__ (line 10) | def __init__(
FILE: mypy/typeshed/stdlib/email/mime/nonmultipart.pyi
class MIMENonMultipart (line 5) | class MIMENonMultipart(MIMEBase): ...
FILE: mypy/typeshed/stdlib/email/mime/text.pyi
class MIMEText (line 6) | class MIMEText(MIMENonMultipart):
method __init__ (line 7) | def __init__(
FILE: mypy/typeshed/stdlib/email/parser.pyi
class Parser (line 13) | class Parser(Generic[_MessageT]):
method __init__ (line 15) | def __init__(self: Parser[Message[str, str]], _class: None = None, *, ...
method __init__ (line 17) | def __init__(self, _class: Callable[[], _MessageT], *, policy: Policy[...
method parse (line 18) | def parse(self, fp: SupportsRead[str], headersonly: bool = False) -> _...
method parsestr (line 19) | def parsestr(self, text: str, headersonly: bool = False) -> _MessageT:...
class HeaderParser (line 21) | class HeaderParser(Parser[_MessageT]):
method parse (line 22) | def parse(self, fp: SupportsRead[str], headersonly: bool = True) -> _M...
method parsestr (line 23) | def parsestr(self, text: str, headersonly: bool = True) -> _MessageT: ...
class BytesParser (line 25) | class BytesParser(Generic[_MessageT]):
method __init__ (line 28) | def __init__(
method __init__ (line 32) | def __init__(self, _class: Callable[[], _MessageT], *, policy: Policy[...
method parse (line 33) | def parse(self, fp: _WrappedBuffer, headersonly: bool = False) -> _Mes...
method parsebytes (line 34) | def parsebytes(self, text: bytes | bytearray, headersonly: bool = Fals...
class BytesHeaderParser (line 36) | class BytesHeaderParser(BytesParser[_MessageT]):
method parse (line 37) | def parse(self, fp: _WrappedBuffer, headersonly: bool = True) -> _Mess...
method parsebytes (line 38) | def parsebytes(self, text: bytes | bytearray, headersonly: bool = True...
FILE: mypy/typeshed/stdlib/email/policy.pyi
class EmailPolicy (line 12) | class EmailPolicy(Policy[_MessageT]):
method __init__ (line 18) | def __init__(
method __init__ (line 35) | def __init__(
method header_source_parse (line 51) | def header_source_parse(self, sourcelines: list[str]) -> tuple[str, st...
method header_store_parse (line 52) | def header_store_parse(self, name: str, value: Any) -> tuple[str, Any]...
method header_fetch_parse (line 53) | def header_fetch_parse(self, name: str, value: str) -> Any: ...
method fold (line 54) | def fold(self, name: str, value: str) -> Any: ...
method fold_binary (line 55) | def fold_binary(self, name: str, value: str) -> bytes: ...
method clone (line 56) | def clone(
FILE: mypy/typeshed/stdlib/email/quoprimime.pyi
function header_check (line 16) | def header_check(octet: int) -> bool: ...
function body_check (line 17) | def body_check(octet: int) -> bool: ...
function header_length (line 18) | def header_length(bytearray: Iterable[int]) -> int: ...
function body_length (line 19) | def body_length(bytearray: Iterable[int]) -> int: ...
function unquote (line 20) | def unquote(s: str | bytes | bytearray) -> str: ...
function quote (line 21) | def quote(c: str | bytes | bytearray) -> str: ...
function header_encode (line 22) | def header_encode(header_bytes: bytes | bytearray, charset: str = "iso-8...
function body_encode (line 23) | def body_encode(body: str, maxlinelen: int = 76, eol: str = "\n") -> str...
function decode (line 24) | def decode(encoded: str, eol: str = "\n") -> str: ...
function header_decode (line 25) | def header_decode(s: str) -> str: ...
FILE: mypy/typeshed/stdlib/email/utils.pyi
function quote (line 30) | def quote(str: str) -> str: ...
function unquote (line 31) | def unquote(str: str) -> str: ...
function parseaddr (line 34) | def parseaddr(addr: str | list[str], *, strict: bool = True) -> tuple[st...
function formataddr (line 35) | def formataddr(pair: tuple[str | None, str], charset: str | Charset = "u...
function getaddresses (line 38) | def getaddresses(fieldvalues: Iterable[str], *, strict: bool = True) -> ...
function parsedate (line 40) | def parsedate(data: None) -> None: ...
function parsedate (line 42) | def parsedate(data: str) -> tuple[int, int, int, int, int, int, int, int...
function parsedate_tz (line 44) | def parsedate_tz(data: None) -> None: ...
function parsedate_tz (line 46) | def parsedate_tz(data: str) -> _PDTZ | None: ...
function parsedate_to_datetime (line 50) | def parsedate_to_datetime(data: None) -> None: ...
function parsedate_to_datetime (line 52) | def parsedate_to_datetime(data: str) -> datetime.datetime: ...
function parsedate_to_datetime (line 55) | def parsedate_to_datetime(data: str) -> datetime.datetime: ...
function mktime_tz (line 57) | def mktime_tz(data: _PDTZ) -> int: ...
function formatdate (line 58) | def formatdate(timeval: float | None = None, localtime: bool = False, us...
function format_datetime (line 59) | def format_datetime(dt: datetime.datetime, usegmt: bool = False) -> str:...
function localtime (line 62) | def localtime(dt: datetime.datetime | None = None) -> datetime.datetime:...
function localtime (line 66) | def localtime(dt: datetime.datetime | None = None) -> datetime.datetime:...
function localtime (line 69) | def localtime(dt: datetime.datetime | None = None, isdst: Unused = None)...
function localtime (line 72) | def localtime(dt: datetime.datetime | None = None, isdst: int = -1) -> d...
function make_msgid (line 74) | def make_msgid(idstring: str | None = None, domain: str | None = None) -...
function decode_rfc2231 (line 75) | def decode_rfc2231(s: str) -> tuple[str | None, str | None, str]: ... #...
function encode_rfc2231 (line 76) | def encode_rfc2231(s: str, charset: str | None = None, language: str | N...
function collapse_rfc2231_value (line 77) | def collapse_rfc2231_value(value: _ParamType, errors: str = "replace", f...
function decode_params (line 78) | def decode_params(params: list[tuple[str, str]]) -> list[tuple[str, _Par...
FILE: mypy/typeshed/stdlib/encodings/__init__.pyi
class CodecRegistryError (line 4) | class CodecRegistryError(LookupError, SystemError): ...
function normalize_encoding (line 6) | def normalize_encoding(encoding: str | bytes) -> str: ...
function search_function (line 7) | def search_function(encoding: str) -> CodecInfo | None: ...
function __getattr__ (line 10) | def __getattr__(name: str) -> Incomplete: ...
FILE: mypy/typeshed/stdlib/encodings/ascii.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 7) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
method decode (line 10) | def decode(data: ReadableBuffer, errors: str | None = None, /) -> tupl...
class IncrementalEncoder (line 12) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 13) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 15) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 16) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 18) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 19) | class StreamReader(Codec, codecs.StreamReader): ...
class StreamConverter (line 22) | class StreamConverter(StreamWriter, StreamReader): # type: ignore[misc]...
method encode (line 25) | def encode(data: ReadableBuffer, errors: str | None = None, /) -> tupl...
method decode (line 28) | def decode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
function getregentry (line 30) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/base64_codec.pyi
function base64_encode (line 7) | def base64_encode(input: ReadableBuffer, errors: str = "strict") -> tupl...
function base64_decode (line 8) | def base64_decode(input: ReadableBuffer, errors: str = "strict") -> tupl...
class Codec (line 10) | class Codec(codecs.Codec):
method encode (line 11) | def encode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
method decode (line 12) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
class IncrementalEncoder (line 14) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 15) | def encode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class IncrementalDecoder (line 17) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 18) | def decode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class StreamWriter (line 20) | class StreamWriter(Codec, codecs.StreamWriter):
class StreamReader (line 23) | class StreamReader(Codec, codecs.StreamReader):
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/big5.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/big5hkscs.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/bz2_codec.pyi
function bz2_encode (line 7) | def bz2_encode(input: ReadableBuffer, errors: str = "strict") -> tuple[b...
function bz2_decode (line 8) | def bz2_decode(input: ReadableBuffer, errors: str = "strict") -> tuple[b...
class Codec (line 10) | class Codec(codecs.Codec):
method encode (line 11) | def encode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
method decode (line 12) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
class IncrementalEncoder (line 14) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 15) | def encode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class IncrementalDecoder (line 17) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 18) | def decode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class StreamWriter (line 20) | class StreamWriter(Codec, codecs.StreamWriter):
class StreamReader (line 23) | class StreamReader(Codec, codecs.StreamReader):
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/charmap.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 8) | def encode(str: str, errors: str | None = None, mapping: _CharMap | No...
method decode (line 11) | def decode(data: ReadableBuffer, errors: str | None = None, mapping: _...
class IncrementalEncoder (line 13) | class IncrementalEncoder(codecs.IncrementalEncoder):
method __init__ (line 15) | def __init__(self, errors: str = "strict", mapping: _CharMap | None = ...
method encode (line 16) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 18) | class IncrementalDecoder(codecs.IncrementalDecoder):
method __init__ (line 20) | def __init__(self, errors: str = "strict", mapping: _CharMap | None = ...
method decode (line 21) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 23) | class StreamWriter(Codec, codecs.StreamWriter):
method __init__ (line 25) | def __init__(self, stream: codecs._WritableStream, errors: str = "stri...
method encode (line 26) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
class StreamReader (line 28) | class StreamReader(Codec, codecs.StreamReader):
method __init__ (line 30) | def __init__(self, stream: codecs._ReadableStream, errors: str = "stri...
method decode (line 31) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
function getregentry (line 33) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp037.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1006.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1026.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1125.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1140.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1250.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1251.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1252.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1253.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1254.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1255.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1256.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1257.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp1258.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp273.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp424.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp437.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp500.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp720.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp737.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp775.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp850.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp852.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp855.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp856.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp857.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp858.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp860.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp861.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp862.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp863.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp864.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp865.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp866.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp869.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp874.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp875.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp932.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp949.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/cp950.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/euc_jis_2004.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/euc_jisx0213.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/euc_jp.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/euc_kr.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/gb18030.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/gb2312.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/gbk.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/hex_codec.pyi
function hex_encode (line 7) | def hex_encode(input: ReadableBuffer, errors: str = "strict") -> tuple[b...
function hex_decode (line 8) | def hex_decode(input: ReadableBuffer, errors: str = "strict") -> tuple[b...
class Codec (line 10) | class Codec(codecs.Codec):
method encode (line 11) | def encode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
method decode (line 12) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
class IncrementalEncoder (line 14) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 15) | def encode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class IncrementalDecoder (line 17) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 18) | def decode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class StreamWriter (line 20) | class StreamWriter(Codec, codecs.StreamWriter):
class StreamReader (line 23) | class StreamReader(Codec, codecs.StreamReader):
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/hp_roman8.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/hz.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/idna.pyi
function nameprep (line 9) | def nameprep(label: str) -> str: ...
function ToASCII (line 10) | def ToASCII(label: str) -> bytes: ...
function ToUnicode (line 11) | def ToUnicode(label: bytes | str) -> str: ...
class Codec (line 13) | class Codec(codecs.Codec):
method encode (line 14) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 15) | def decode(self, input: ReadableBuffer | str, errors: str = "strict") ...
class IncrementalEncoder (line 17) | class IncrementalEncoder(codecs.BufferedIncrementalEncoder):
method _buffer_encode (line 18) | def _buffer_encode(self, input: str, errors: str, final: bool) -> tupl...
class IncrementalDecoder (line 20) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 21) | def _buffer_decode(self, input: ReadableBuffer | str, errors: str, fin...
class StreamWriter (line 23) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 24) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso2022_jp.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso2022_jp_1.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso2022_jp_2.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso2022_jp_2004.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso2022_jp_3.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso2022_jp_ext.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso2022_kr.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_1.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_10.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_11.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_13.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_14.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_15.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_16.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_2.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_3.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_4.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_5.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_6.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_7.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_8.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/iso8859_9.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/johab.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/koi8_r.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/koi8_t.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/koi8_u.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/kz1048.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/latin_1.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 7) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
method decode (line 10) | def decode(data: ReadableBuffer, errors: str | None = None, /) -> tupl...
class IncrementalEncoder (line 12) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 13) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 15) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 16) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 18) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 19) | class StreamReader(Codec, codecs.StreamReader): ...
class StreamConverter (line 22) | class StreamConverter(StreamWriter, StreamReader): # type: ignore[misc]...
method encode (line 25) | def encode(data: ReadableBuffer, errors: str | None = None, /) -> tupl...
method decode (line 28) | def decode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
function getregentry (line 30) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_arabic.pyi
class Codec (line 4) | class Codec(codecs.Codec):
method encode (line 5) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 6) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 12) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 14) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 15) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 17) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_centeuro.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_croatian.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_cyrillic.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_farsi.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_greek.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_iceland.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_latin2.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_roman.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_romanian.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mac_turkish.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/mbcs.pyi
function decode (line 8) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 10) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 11) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 13) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 16) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 18) | class StreamWriter(codecs.StreamWriter):
method encode (line 21) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 23) | class StreamReader(codecs.StreamReader):
method decode (line 26) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 28) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/oem.pyi
function decode (line 8) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 10) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 11) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 13) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 16) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 18) | class StreamWriter(codecs.StreamWriter):
method encode (line 21) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 23) | class StreamReader(codecs.StreamReader):
method decode (line 26) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 28) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/palmos.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/ptcp154.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/punycode.pyi
function segregate (line 4) | def segregate(str: str) -> tuple[bytes, list[int]]: ...
function selective_len (line 5) | def selective_len(str: str, max: int) -> int: ...
function selective_find (line 6) | def selective_find(str: str, char: str, index: int, pos: int) -> tuple[i...
function insertion_unsort (line 7) | def insertion_unsort(str: str, extended: list[int]) -> list[int]: ...
function T (line 8) | def T(j: int, bias: int) -> int: ...
function generate_generalized_integer (line 12) | def generate_generalized_integer(N: int, bias: int) -> bytes: ...
function adapt (line 13) | def adapt(delta: int, first: bool, numchars: int) -> int: ...
function generate_integers (line 14) | def generate_integers(baselen: int, deltas: list[int]) -> bytes: ...
function punycode_encode (line 15) | def punycode_encode(text: str) -> bytes: ...
function decode_generalized_number (line 16) | def decode_generalized_number(extended: bytes, extpos: int, bias: int, e...
function insertion_sort (line 17) | def insertion_sort(base: str, extended: bytes, errors: str) -> str: ...
function punycode_decode (line 18) | def punycode_decode(text: memoryview | bytes | bytearray | str, errors: ...
class Codec (line 20) | class Codec(codecs.Codec):
method encode (line 21) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 22) | def decode(self, input: memoryview | bytes | bytearray | str, errors: ...
class IncrementalEncoder (line 24) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 25) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 27) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 28) | def decode(self, input: memoryview | bytes | bytearray | str, final: b...
class StreamWriter (line 30) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 31) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 33) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/quopri_codec.pyi
function quopri_encode (line 7) | def quopri_encode(input: ReadableBuffer, errors: str = "strict") -> tupl...
function quopri_decode (line 8) | def quopri_decode(input: ReadableBuffer, errors: str = "strict") -> tupl...
class Codec (line 10) | class Codec(codecs.Codec):
method encode (line 11) | def encode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
method decode (line 12) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
class IncrementalEncoder (line 14) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 15) | def encode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class IncrementalDecoder (line 17) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 18) | def decode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class StreamWriter (line 20) | class StreamWriter(Codec, codecs.StreamWriter):
class StreamReader (line 23) | class StreamReader(Codec, codecs.StreamReader):
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/raw_unicode_escape.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 8) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
method decode (line 12) | def decode(data: str | ReadableBuffer, errors: str | None = None, fina...
method decode (line 15) | def decode(data: str | ReadableBuffer, errors: str | None = None, /) -...
class IncrementalEncoder (line 17) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 18) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 21) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 22) | def _buffer_decode(self, input: str | ReadableBuffer, errors: str | No...
method decode (line 26) | def decode(self, input: str | ReadableBuffer, final: bool = False) -> ...
class IncrementalDecoder (line 25) | class IncrementalDecoder(codecs.IncrementalDecoder):
method _buffer_decode (line 22) | def _buffer_decode(self, input: str | ReadableBuffer, errors: str | No...
method decode (line 26) | def decode(self, input: str | ReadableBuffer, final: bool = False) -> ...
class StreamWriter (line 28) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 30) | class StreamReader(Codec, codecs.StreamReader):
method decode (line 32) | def decode(self, input: str | ReadableBuffer, errors: str = "strict") ...
function getregentry (line 34) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/rot_13.pyi
class Codec (line 6) | class Codec(codecs.Codec):
method encode (line 7) | def encode(self, input: str, errors: str = "strict") -> tuple[str, int...
method decode (line 8) | def decode(self, input: str, errors: str = "strict") -> tuple[str, int...
class IncrementalEncoder (line 10) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 11) | def encode(self, input: str, final: bool = False) -> str: ... # type:...
class IncrementalDecoder (line 13) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 14) | def decode(self, input: str, final: bool = False) -> str: ... # type:...
class StreamWriter (line 16) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 17) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 19) | def getregentry() -> codecs.CodecInfo: ...
function rot13 (line 23) | def rot13(infile: SupportsRead[str], outfile: SupportsWrite[str]) -> Non...
FILE: mypy/typeshed/stdlib/encodings/shift_jis.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/shift_jis_2004.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/shift_jisx0213.pyi
class Codec (line 7) | class Codec(codecs.Codec):
class IncrementalEncoder (line 11) | class IncrementalEncoder(mbc.MultibyteIncrementalEncoder, codecs.Increme...
class IncrementalDecoder (line 14) | class IncrementalDecoder(mbc.MultibyteIncrementalDecoder, codecs.Increme...
class StreamReader (line 17) | class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader...
class StreamWriter (line 20) | class StreamWriter(Codec, mbc.MultibyteStreamWriter, codecs.StreamWriter):
function getregentry (line 23) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/tis_620.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 6) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 7) | def decode(self, input: bytes, errors: str = "strict") -> tuple[str, i...
class IncrementalEncoder (line 9) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 10) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 12) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 13) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 15) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 16) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 18) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/undefined.pyi
class Codec (line 7) | class Codec(codecs.Codec):
method encode (line 8) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
method decode (line 9) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
class IncrementalEncoder (line 11) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 12) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 14) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 15) | def decode(self, input: ReadableBuffer, final: bool = False) -> str: ...
class StreamWriter (line 17) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 18) | class StreamReader(Codec, codecs.StreamReader): ...
function getregentry (line 20) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/unicode_escape.pyi
class Codec (line 5) | class Codec(codecs.Codec):
method encode (line 8) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
method decode (line 12) | def decode(data: str | ReadableBuffer, errors: str | None = None, fina...
method decode (line 15) | def decode(data: str | ReadableBuffer, errors: str | None = None, /) -...
class IncrementalEncoder (line 17) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 18) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 21) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 22) | def _buffer_decode(self, input: str | ReadableBuffer, errors: str | No...
method decode (line 26) | def decode(self, input: str | ReadableBuffer, final: bool = False) -> ...
class IncrementalDecoder (line 25) | class IncrementalDecoder(codecs.IncrementalDecoder):
method _buffer_decode (line 22) | def _buffer_decode(self, input: str | ReadableBuffer, errors: str | No...
method decode (line 26) | def decode(self, input: str | ReadableBuffer, final: bool = False) -> ...
class StreamWriter (line 28) | class StreamWriter(Codec, codecs.StreamWriter): ...
class StreamReader (line 30) | class StreamReader(Codec, codecs.StreamReader):
method decode (line 32) | def decode(self, input: str | ReadableBuffer, errors: str = "strict") ...
function getregentry (line 34) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_16.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 12) | def _buffer_decode(self, input: ReadableBuffer, errors: str, final: bo...
class StreamWriter (line 14) | class StreamWriter(codecs.StreamWriter):
method encode (line 15) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
class StreamReader (line 17) | class StreamReader(codecs.StreamReader):
method decode (line 18) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
function getregentry (line 20) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_16_be.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 14) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 16) | class StreamWriter(codecs.StreamWriter):
method encode (line 19) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 21) | class StreamReader(codecs.StreamReader):
method decode (line 24) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_16_le.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 14) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 16) | class StreamWriter(codecs.StreamWriter):
method encode (line 19) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 21) | class StreamReader(codecs.StreamReader):
method decode (line 24) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_32.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 12) | def _buffer_decode(self, input: ReadableBuffer, errors: str, final: bo...
class StreamWriter (line 14) | class StreamWriter(codecs.StreamWriter):
method encode (line 15) | def encode(self, input: str, errors: str = "strict") -> tuple[bytes, i...
class StreamReader (line 17) | class StreamReader(codecs.StreamReader):
method decode (line 18) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
function getregentry (line 20) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_32_be.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 14) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 16) | class StreamWriter(codecs.StreamWriter):
method encode (line 19) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 21) | class StreamReader(codecs.StreamReader):
method decode (line 24) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_32_le.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 14) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 16) | class StreamWriter(codecs.StreamWriter):
method encode (line 19) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 21) | class StreamReader(codecs.StreamReader):
method decode (line 24) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_7.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 14) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 16) | class StreamWriter(codecs.StreamWriter):
method encode (line 19) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 21) | class StreamReader(codecs.StreamReader):
method decode (line 24) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_8.pyi
function decode (line 6) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
class IncrementalEncoder (line 8) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 9) | def encode(self, input: str, final: bool = False) -> bytes: ...
class IncrementalDecoder (line 11) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method _buffer_decode (line 14) | def _buffer_decode(data: ReadableBuffer, errors: str | None = None, fi...
class StreamWriter (line 16) | class StreamWriter(codecs.StreamWriter):
method encode (line 19) | def encode(str: str, errors: str | None = None, /) -> tuple[bytes, int...
class StreamReader (line 21) | class StreamReader(codecs.StreamReader):
method decode (line 24) | def decode(data: ReadableBuffer, errors: str | None = None, final: boo...
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/utf_8_sig.pyi
class IncrementalEncoder (line 4) | class IncrementalEncoder(codecs.IncrementalEncoder):
method __init__ (line 5) | def __init__(self, errors: str = "strict") -> None: ...
method encode (line 6) | def encode(self, input: str, final: bool = False) -> bytes: ...
method getstate (line 7) | def getstate(self) -> int: ...
method setstate (line 8) | def setstate(self, state: int) -> None: ... # type: ignore[override]
class IncrementalDecoder (line 10) | class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
method __init__ (line 11) | def __init__(self, errors: str = "strict") -> None: ...
method _buffer_decode (line 12) | def _buffer_decode(self, input: ReadableBuffer, errors: str | None, fi...
class StreamWriter (line 14) | class StreamWriter(codecs.StreamWriter):
method encode (line 15) | def encode(self, input: str, errors: str | None = "strict") -> tuple[b...
class StreamReader (line 17) | class StreamReader(codecs.StreamReader):
method decode (line 18) | def decode(self, input: ReadableBuffer, errors: str | None = "strict")...
function getregentry (line 20) | def getregentry() -> codecs.CodecInfo: ...
function encode (line 21) | def encode(input: str, errors: str | None = "strict") -> tuple[bytes, in...
function decode (line 22) | def decode(input: ReadableBuffer, errors: str | None = "strict") -> tupl...
FILE: mypy/typeshed/stdlib/encodings/uu_codec.pyi
function uu_encode (line 7) | def uu_encode(
function uu_decode (line 10) | def uu_decode(input: ReadableBuffer, errors: str = "strict") -> tuple[by...
class Codec (line 12) | class Codec(codecs.Codec):
method encode (line 13) | def encode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
method decode (line 14) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
class IncrementalEncoder (line 16) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 17) | def encode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class IncrementalDecoder (line 19) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 20) | def decode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class StreamWriter (line 22) | class StreamWriter(Codec, codecs.StreamWriter):
class StreamReader (line 25) | class StreamReader(Codec, codecs.StreamReader):
function getregentry (line 28) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/encodings/zlib_codec.pyi
function zlib_encode (line 7) | def zlib_encode(input: ReadableBuffer, errors: str = "strict") -> tuple[...
function zlib_decode (line 8) | def zlib_decode(input: ReadableBuffer, errors: str = "strict") -> tuple[...
class Codec (line 10) | class Codec(codecs.Codec):
method encode (line 11) | def encode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
method decode (line 12) | def decode(self, input: ReadableBuffer, errors: str = "strict") -> tup...
class IncrementalEncoder (line 14) | class IncrementalEncoder(codecs.IncrementalEncoder):
method encode (line 15) | def encode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class IncrementalDecoder (line 17) | class IncrementalDecoder(codecs.IncrementalDecoder):
method decode (line 18) | def decode(self, input: ReadableBuffer, final: bool = False) -> bytes:...
class StreamWriter (line 20) | class StreamWriter(Codec, codecs.StreamWriter):
class StreamReader (line 23) | class StreamReader(Codec, codecs.StreamReader):
function getregentry (line 26) | def getregentry() -> codecs.CodecInfo: ...
FILE: mypy/typeshed/stdlib/ensurepip/__init__.pyi
function version (line 3) | def version() -> str: ...
function bootstrap (line 4) | def bootstrap(
FILE: mypy/typeshed/stdlib/enum.pyi
class nonmember (line 58) | class nonmember(Generic[_EnumMemberT]):
method __init__ (line 60) | def __init__(self, value: _EnumMemberT) -> None: ...
class member (line 62) | class member(Generic[_EnumMemberT]):
method __init__ (line 64) | def __init__(self, value: _EnumMemberT) -> None: ...
class _EnumDict (line 66) | class _EnumDict(dict[str, Any]):
method __init__ (line 67) | def __init__(self) -> None: ...
method __setitem__ (line 68) | def __setitem__(self, key: str, value: Any) -> None: ...
method update (line 76) | def update(self, members: SupportsKeysAndGetItem[str, Any], **more_mem...
method update (line 78) | def update(self, members: Iterable[tuple[str, Any]], **more_members: A...
method member_names (line 81) | def member_names(self) -> list[str]: ...
class EnumMeta (line 87) | class EnumMeta(type):
method __new__ (line 89) | def __new__(
method __new__ (line 100) | def __new__(
method __new__ (line 104) | def __new__(metacls: type[_typeshed.Self], cls: str, bases: tuple[type...
method __prepare__ (line 108) | def __prepare__(metacls, cls: str, bases: tuple[type, ...], **kwds: An...
method __prepare__ (line 111) | def __prepare__(metacls, cls: str, bases: tuple[type, ...]) -> _EnumDi...
method __iter__ (line 113) | def __iter__(self: type[_EnumMemberT]) -> Iterator[_EnumMemberT]: ...
method __reversed__ (line 114) | def __reversed__(self: type[_EnumMemberT]) -> Iterator[_EnumMemberT]: ...
method __contains__ (line 116) | def __contains__(self: type[Any], value: object) -> bool: ...
method __contains__ (line 118) | def __contains__(self: type[Any], member: object) -> bool: ...
method __contains__ (line 120) | def __contains__(self: type[Any], obj: object) -> bool: ...
method __contains__ (line 122) | def __contains__(self: type[Any], member: object) -> bool: ...
method __getitem__ (line 124) | def __getitem__(self: type[_EnumMemberT], name: str) -> _EnumMemberT: ...
method __members__ (line 126) | def __members__(self: type[_EnumMemberT]) -> types.MappingProxyType[st...
method __len__ (line 127) | def __len__(self) -> int: ...
method __bool__ (line 128) | def __bool__(self) -> Literal[True]: ...
method __dir__ (line 129) | def __dir__(self) -> list[str]: ...
method __call__ (line 133) | def __call__(cls: type[_EnumMemberT], value: Any, names: None = None) ...
method __call__ (line 138) | def __call__(
method __call__ (line 151) | def __call__(
method __call__ (line 171) | def __call__(cls: type[_EnumMemberT], value: Any, *values: Any) -> _En...
class property (line 181) | class property(types.DynamicClassAttribute):
method __set_name__ (line 182) | def __set_name__(self, ownerclass: type[Enum], name: str) -> None: ...
class Enum (line 191) | class Enum(metaclass=EnumMeta):
method name (line 193) | def name(self) -> str: ...
method value (line 195) | def value(self) -> Any: ...
method _missing_ (line 202) | def _missing_(cls, value: object) -> Any: ...
method _generate_next_value_ (line 204) | def _generate_next_value_(name: str, start: int, count: int, last_valu...
method __new__ (line 210) | def __new__(cls, value: object) -> Self: ...
method __dir__ (line 211) | def __dir__(self) -> list[str]: ...
method __hash__ (line 212) | def __hash__(self) -> int: ...
method __format__ (line 213) | def __format__(self, format_spec: str) -> str: ...
method __reduce_ex__ (line 214) | def __reduce_ex__(self, proto: Unused) -> tuple[Any, ...]: ...
method __copy__ (line 216) | def __copy__(self) -> Self: ...
method __deepcopy__ (line 217) | def __deepcopy__(self, memo: Any) -> Self: ...
method __signature__ (line 220) | def __signature__(cls) -> str: ...
class ReprEnum (line 223) | class ReprEnum(Enum): ...
class IntEnum (line 230) | class IntEnum(int, _IntEnumBase):
method value (line 233) | def value(self) -> int: ...
method __new__ (line 234) | def __new__(cls, value: int) -> Self: ...
function unique (line 236) | def unique(enumeration: _EnumerationT) -> _EnumerationT: ...
class Flag (line 240) | class Flag(Enum):
method name (line 244) | def name(self) -> str | None: ... # type: ignore[override]
method value (line 246) | def value(self) -> int: ...
method __contains__ (line 247) | def __contains__(self, other: Self) -> bool: ...
method __bool__ (line 248) | def __bool__(self) -> bool: ...
method __or__ (line 249) | def __or__(self, other: Self) -> Self: ...
method __and__ (line 250) | def __and__(self, other: Self) -> Self: ...
method __xor__ (line 251) | def __xor__(self, other: Self) -> Self: ...
method __invert__ (line 252) | def __invert__(self) -> Self: ...
method __iter__ (line 254) | def __iter__(self) -> Iterator[Self]: ...
method __len__ (line 255) | def __len__(self) -> int: ...
class StrEnum (line 261) | class StrEnum(str, ReprEnum):
method __new__ (line 262) | def __new__(cls, value: str) -> Self: ...
method value (line 265) | def value(self) -> str: ...
method _generate_next_value_ (line 267) | def _generate_next_value_(name: str, start: int, count: int, last_valu...
class EnumCheck (line 269) | class EnumCheck(StrEnum):
class verify (line 278) | class verify:
method __init__ (line 279) | def __init__(self, *checks: EnumCheck) -> None: ...
method __call__ (line 280) | def __call__(self, enumeration: _EnumerationT) -> _EnumerationT: ...
class FlagBoundary (line 282) | class FlagBoundary(StrEnum):
function global_str (line 293) | def global_str(self: Enum) -> str: ...
function global_enum (line 294) | def global_enum(cls: _EnumerationT, update_str: bool = False) -> _Enumer...
function global_enum_repr (line 295) | def global_enum_repr(self: Enum) -> str: ...
function global_flag_repr (line 296) | def global_flag_repr(self: Flag) -> str: ...
class IntFlag (line 300) | class IntFlag(int, ReprEnum, Flag, boundary=KEEP): # type: ignore[misc]...
method __new__ (line 301) | def __new__(cls, value: int) -> Self: ...
method __or__ (line 302) | def __or__(self, other: int) -> Self: ...
method __and__ (line 303) | def __and__(self, other: int) -> Self: ...
method __xor__ (line 304) | def __xor__(self, other: int) -> Self: ...
method __new__ (line 311) | def __new__(cls, value: int) -> Self: ...
method __or__ (line 312) | def __or__(self, other: int) -> Self: ...
method __and__ (line 313) | def __and__(self, other: int) -> Self: ...
method __xor__ (line 314) | def __xor__(self, other: int) -> Self: ...
class IntFlag (line 310) | class IntFlag(int, Flag): # type: ignore[misc] # complaints about inco...
method __new__ (line 301) | def __new__(cls, value: int) -> Self: ...
method __or__ (line 302) | def __or__(self, other: int) -> Self: ...
method __and__ (line 303) | def __and__(self, other: int) -> Self: ...
method __xor__ (line 304) | def __xor__(self, other: int) -> Self: ...
method __new__ (line 311) | def __new__(cls, value: int) -> Self: ...
method __or__ (line 312) | def __or__(self, other: int) -> Self: ...
method __and__ (line 313) | def __and__(self, other: int) -> Self: ...
method __xor__ (line 314) | def __xor__(self, other: int) -> Self: ...
class auto (line 319) | class auto:
method value (line 322) | def value(self) -> Any: ...
method __new__ (line 323) | def __new__(cls) -> Self: ...
method __or__ (line 330) | def __or__(self, other: int | Self) -> Self: ...
method __and__ (line 331) | def __and__(self, other: int | Self) -> Self: ...
method __xor__ (line 332) | def __xor__(self, other: int | Self) -> Self: ...
function pickle_by_global_name (line 338) | def pickle_by_global_name(self: Enum, proto: int) -> str: ...
function pickle_by_enum_name (line 339) | def pickle_by_enum_name(self: _EnumMemberT, proto: int) -> tuple[Callabl...
FILE: mypy/typeshed/stdlib/faulthandler.pyi
function cancel_dump_traceback_later (line 4) | def cancel_dump_traceback_later() -> None: ...
function disable (line 5) | def disable() -> None: ...
function dump_traceback (line 6) | def dump_traceback(file: FileDescriptorLike = ..., all_threads: bool = ....
function dump_traceback_later (line 7) | def dump_traceback_later(timeout: float, repeat: bool = ..., file: FileD...
function enable (line 8) | def enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> N...
function is_enabled (line 9) | def is_enabled() -> bool: ...
function register (line 12) | def register(signum: int, file: FileDescriptorLike = ..., all_threads: b...
function unregister (line 13) | def unregister(signum: int, /) -> None: ...
FILE: mypy/typeshed/stdlib/fcntl.pyi
function fcntl (line 142) | def fcntl(fd: FileDescriptorLike, cmd: int, arg: int = 0, /) -> int: ...
function fcntl (line 144) | def fcntl(fd: FileDescriptorLike, cmd: int, arg: str | ReadOnlyBuffer, /...
function ioctl (line 147) | def ioctl(fd: FileDescriptorLike, request: int, arg: int = 0, mutate_fla...
function ioctl (line 154) | def ioctl(fd: FileDescriptorLike, request: int, arg: bytes, mutate_flag:...
function ioctl (line 156) | def ioctl(fd: FileDescriptorLike, request: int, arg: WriteableBuffer, mu...
function ioctl (line 158) | def ioctl(fd: FileDescriptorLike, request: int, arg: Buffer, mutate_flag...
function flock (line 159) | def flock(fd: FileDescriptorLike, operation: int, /) -> None: ...
function lockf (line 160) | def lockf(fd: FileDescriptorLike, cmd: int, len: int = 0, start: int = 0...
FILE: mypy/typeshed/stdlib/filecmp.pyi
function cmp (line 14) | def cmp(f1: StrOrBytesPath, f2: StrOrBytesPath, shallow: bool | Literal[...
function cmpfiles (line 15) | def cmpfiles(
class dircmp (line 19) | class dircmp(Generic[AnyStr]):
method __init__ (line 21) | def __init__(
method __init__ (line 31) | def __init__(
method report (line 55) | def report(self) -> None: ...
method report_partial_closure (line 56) | def report_partial_closure(self) -> None: ...
method report_full_closure (line 57) | def report_full_closure(self) -> None: ...
method phase0 (line 59) | def phase0(self) -> None: ...
method phase1 (line 60) | def phase1(self) -> None: ...
method phase2 (line 61) | def phase2(self) -> None: ...
method phase3 (line 62) | def phase3(self) -> None: ...
method phase4 (line 63) | def phase4(self) -> None: ...
method phase4_closure (line 64) | def phase4_closure(self) -> None: ...
method __class_getitem__ (line 66) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function clear_cache (line 68) | def clear_cache() -> None: ...
FILE: mypy/typeshed/stdlib/fileinput.pyi
class _HasReadlineAndFileno (line 31) | class _HasReadlineAndFileno(Protocol[AnyStr]):
method readline (line 32) | def readline(self) -> AnyStr: ...
method fileno (line 33) | def fileno(self) -> int: ...
function input (line 38) | def input(
function input (line 49) | def input(
function input (line 60) | def input(
function input (line 74) | def input(
function input (line 83) | def input(
function input (line 92) | def input(
function close (line 101) | def close() -> None: ...
function nextfile (line 102) | def nextfile() -> None: ...
function filename (line 103) | def filename() -> str: ...
function lineno (line 104) | def lineno() -> int: ...
function filelineno (line 105) | def filelineno() -> int: ...
function fileno (line 106) | def fileno() -> int: ...
function isfirstline (line 107) | def isfirstline() -> bool: ...
function isstdin (line 108) | def isstdin() -> bool: ...
class FileInput (line 110) | class FileInput(Iterator[AnyStr]):
method __init__ (line 114) | def __init__(
method __init__ (line 126) | def __init__(
method __init__ (line 138) | def __init__(
method __init__ (line 153) | def __init__(
method __init__ (line 163) | def __init__(
method __init__ (line 173) | def __init__(
method __del__ (line 183) | def __del__(self) -> None: ...
method close (line 184) | def close(self) -> None: ...
method __enter__ (line 185) | def __enter__(self) -> Self: ...
method __exit__ (line 186) | def __exit__(
method __iter__ (line 189) | def __iter__(self) -> Self: ...
method __next__ (line 190) | def __next__(self) -> AnyStr: ...
method __getitem__ (line 192) | def __getitem__(self, i: int) -> AnyStr: ...
method nextfile (line 194) | def nextfile(self) -> None: ...
method readline (line 195) | def readline(self) -> AnyStr: ...
method filename (line 196) | def filename(self) -> str: ...
method lineno (line 197) | def lineno(self) -> int: ...
method filelineno (line 198) | def filelineno(self) -> int: ...
method fileno (line 199) | def fileno(self) -> int: ...
method isfirstline (line 200) | def isfirstline(self) -> bool: ...
method isstdin (line 201) | def isstdin(self) -> bool: ...
method __class_getitem__ (line 203) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function hook_compressed (line 206) | def hook_compressed(
function hook_compressed (line 211) | def hook_compressed(filename: StrOrBytesPath, mode: str) -> IO[Any]: ...
function hook_encoded (line 213) | def hook_encoded(encoding: str, errors: str | None = None) -> Callable[[...
FILE: mypy/typeshed/stdlib/fnmatch.pyi
function fnmatch (line 6) | def fnmatch(name: AnyStr, pat: AnyStr) -> bool: ...
function fnmatchcase (line 7) | def fnmatchcase(name: AnyStr, pat: AnyStr) -> bool: ...
function filter (line 8) | def filter(names: Iterable[AnyStr], pat: AnyStr) -> list[AnyStr]: ...
function translate (line 9) | def translate(pat: str) -> str: ...
FILE: mypy/typeshed/stdlib/formatter.pyi
class NullFormatter (line 9) | class NullFormatter:
method __init__ (line 11) | def __init__(self, writer: NullWriter | None = None) -> None: ...
method end_paragraph (line 12) | def end_paragraph(self, blankline: int) -> None: ...
method add_line_break (line 13) | def add_line_break(self) -> None: ...
method add_hor_rule (line 14) | def add_hor_rule(self, *args: Any, **kw: Any) -> None: ...
method add_label_data (line 15) | def add_label_data(self, format: str, counter: int, blankline: int | N...
method add_flowing_data (line 16) | def add_flowing_data(self, data: str) -> None: ...
method add_literal_data (line 17) | def add_literal_data(self, data: str) -> None: ...
method flush_softspace (line 18) | def flush_softspace(self) -> None: ...
method push_alignment (line 19) | def push_alignment(self, align: str | None) -> None: ...
method pop_alignment (line 20) | def pop_alignment(self) -> None: ...
method push_font (line 21) | def push_font(self, x: _FontType) -> None: ...
method pop_font (line 22) | def pop_font(self) -> None: ...
method push_margin (line 23) | def push_margin(self, margin: int) -> None: ...
method pop_margin (line 24) | def pop_margin(self) -> None: ...
method set_spacing (line 25) | def set_spacing(self, spacing: str | None) -> None: ...
method push_style (line 26) | def push_style(self, *styles: _StylesType) -> None: ...
method pop_style (line 27) | def pop_style(self, n: int = 1) -> None: ...
method assert_line_data (line 28) | def assert_line_data(self, flag: int = 1) -> None: ...
class AbstractFormatter (line 30) | class AbstractFormatter:
method __init__ (line 44) | def __init__(self, writer: NullWriter) -> None: ...
method end_paragraph (line 45) | def end_paragraph(self, blankline: int) -> None: ...
method add_line_break (line 46) | def add_line_break(self) -> None: ...
method add_hor_rule (line 47) | def add_hor_rule(self, *args: Any, **kw: Any) -> None: ...
method add_label_data (line 48) | def add_label_data(self, format: str, counter: int, blankline: int | N...
method format_counter (line 49) | def format_counter(self, format: Iterable[str], counter: int) -> str: ...
method format_letter (line 50) | def format_letter(self, case: str, counter: int) -> str: ...
method format_roman (line 51) | def format_roman(self, case: str, counter: int) -> str: ...
method add_flowing_data (line 52) | def add_flowing_data(self, data: str) -> None: ...
method add_literal_data (line 53) | def add_literal_data(self, data: str) -> None: ...
method flush_softspace (line 54) | def flush_softspace(self) -> None: ...
method push_alignment (line 55) | def push_alignment(self, align: str | None) -> None: ...
method pop_alignment (line 56) | def pop_alignment(self) -> None: ...
method push_font (line 57) | def push_font(self, font: _FontType) -> None: ...
method pop_font (line 58) | def pop_font(self) -> None: ...
method push_margin (line 59) | def push_margin(self, margin: int) -> None: ...
method pop_margin (line 60) | def pop_margin(self) -> None: ...
method set_spacing (line 61) | def set_spacing(self, spacing: str | None) -> None: ...
method push_style (line 62) | def push_style(self, *styles: _StylesType) -> None: ...
method pop_style (line 63) | def pop_style(self, n: int = 1) -> None: ...
method assert_line_data (line 64) | def assert_line_data(self, flag: int = 1) -> None: ...
class NullWriter (line 66) | class NullWriter:
method flush (line 67) | def flush(self) -> None: ...
method new_alignment (line 68) | def new_alignment(self, align: str | None) -> None: ...
method new_font (line 69) | def new_font(self, font: _FontType) -> None: ...
method new_margin (line 70) | def new_margin(self, margin: int, level: int) -> None: ...
method new_spacing (line 71) | def new_spacing(self, spacing: str | None) -> None: ...
method new_styles (line 72) | def new_styles(self, styles: tuple[Any, ...]) -> None: ...
method send_paragraph (line 73) | def send_paragraph(self, blankline: int) -> None: ...
method send_line_break (line 74) | def send_line_break(self) -> None: ...
method send_hor_rule (line 75) | def send_hor_rule(self, *args: Any, **kw: Any) -> None: ...
method send_label_data (line 76) | def send_label_data(self, data: str) -> None: ...
method send_flowing_data (line 77) | def send_flowing_data(self, data: str) -> None: ...
method send_literal_data (line 78) | def send_literal_data(self, data: str) -> None: ...
class AbstractWriter (line 80) | class AbstractWriter(NullWriter): ...
class DumbWriter (line 82) | class DumbWriter(NullWriter):
method __init__ (line 85) | def __init__(self, file: IO[str] | None = None, maxcol: int = 72) -> N...
method reset (line 86) | def reset(self) -> None: ...
function test (line 88) | def test(file: str | None = None) -> None: ...
FILE: mypy/typeshed/stdlib/fractions.pyi
function gcd (line 15) | def gcd(a: int, b: int) -> int: ...
function gcd (line 17) | def gcd(a: Integral, b: int) -> Integral: ...
function gcd (line 19) | def gcd(a: int, b: Integral) -> Integral: ...
function gcd (line 21) | def gcd(a: Integral, b: Integral) -> Integral: ...
class _ConvertibleToIntegerRatio (line 23) | class _ConvertibleToIntegerRatio(Protocol):
method as_integer_ratio (line 24) | def as_integer_ratio(self) -> tuple[int | Rational, int | Rational]: ...
class Fraction (line 26) | class Fraction(Rational):
method __new__ (line 28) | def __new__(cls, numerator: int | Rational = 0, denominator: int | Rat...
method __new__ (line 30) | def __new__(cls, numerator: float | Decimal | str) -> Self: ...
method __new__ (line 34) | def __new__(cls, numerator: _ConvertibleToIntegerRatio) -> Self: ...
method from_float (line 37) | def from_float(cls, f: float) -> Self: ...
method from_decimal (line 39) | def from_decimal(cls, dec: Decimal) -> Self: ...
method limit_denominator (line 40) | def limit_denominator(self, max_denominator: int = 1000000) -> Fractio...
method as_integer_ratio (line 41) | def as_integer_ratio(self) -> tuple[int, int]: ...
method is_integer (line 43) | def is_integer(self) -> bool: ...
method numerator (line 46) | def numerator(a) -> int: ...
method denominator (line 48) | def denominator(a) -> int: ...
method __add__ (line 50) | def __add__(a, b: int | Fraction) -> Fraction: ...
method __add__ (line 52) | def __add__(a, b: float) -> float: ...
method __add__ (line 54) | def __add__(a, b: complex) -> complex: ...
method __radd__ (line 56) | def __radd__(b, a: int | Fraction) -> Fraction: ...
method __radd__ (line 58) | def __radd__(b, a: float) -> float: ...
method __radd__ (line 60) | def __radd__(b, a: complex) -> complex: ...
method __sub__ (line 62) | def __sub__(a, b: int | Fraction) -> Fraction: ...
method __sub__ (line 64) | def __sub__(a, b: float) -> float: ...
method __sub__ (line 66) | def __sub__(a, b: complex) -> complex: ...
method __rsub__ (line 68) | def __rsub__(b, a: int | Fraction) -> Fraction: ...
method __rsub__ (line 70) | def __rsub__(b, a: float) -> float: ...
method __rsub__ (line 72) | def __rsub__(b, a: complex) -> complex: ...
method __mul__ (line 74) | def __mul__(a, b: int | Fraction) -> Fraction: ...
method __mul__ (line 76) | def __mul__(a, b: float) -> float: ...
method __mul__ (line 78) | def __mul__(a, b: complex) -> complex: ...
method __rmul__ (line 80) | def __rmul__(b, a: int | Fraction) -> Fraction: ...
method __rmul__ (line 82) | def __rmul__(b, a: float) -> float: ...
method __rmul__ (line 84) | def __rmul__(b, a: complex) -> complex: ...
method __truediv__ (line 86) | def __truediv__(a, b: int | Fraction) -> Fraction: ...
method __truediv__ (line 88) | def __truediv__(a, b: float) -> float: ...
method __truediv__ (line 90) | def __truediv__(a, b: complex) -> complex: ...
method __rtruediv__ (line 92) | def __rtruediv__(b, a: int | Fraction) -> Fraction: ...
method __rtruediv__ (line 94) | def __rtruediv__(b, a: float) -> float: ...
method __rtruediv__ (line 96) | def __rtruediv__(b, a: complex) -> complex: ...
method __floordiv__ (line 98) | def __floordiv__(a, b: int | Fraction) -> int: ...
method __floordiv__ (line 100) | def __floordiv__(a, b: float) -> float: ...
method __rfloordiv__ (line 102) | def __rfloordiv__(b, a: int | Fraction) -> int: ...
method __rfloordiv__ (line 104) | def __rfloordiv__(b, a: float) -> float: ...
method __mod__ (line 106) | def __mod__(a, b: int | Fraction) -> Fraction: ...
method __mod__ (line 108) | def __mod__(a, b: float) -> float: ...
method __rmod__ (line 110) | def __rmod__(b, a: int | Fraction) -> Fraction: ...
method __rmod__ (line 112) | def __rmod__(b, a: float) -> float: ...
method __divmod__ (line 114) | def __divmod__(a, b: int | Fraction) -> tuple[int, Fraction]: ...
method __divmod__ (line 116) | def __divmod__(a, b: float) -> tuple[float, Fraction]: ...
method __rdivmod__ (line 118) | def __rdivmod__(a, b: int | Fraction) -> tuple[int, Fraction]: ...
method __rdivmod__ (line 120) | def __rdivmod__(a, b: float) -> tuple[float, Fraction]: ...
method __pow__ (line 122) | def __pow__(a, b: int) -> Fraction: ...
method __pow__ (line 124) | def __pow__(a, b: float | Fraction) -> float: ...
method __pow__ (line 126) | def __pow__(a, b: complex) -> complex: ...
method __rpow__ (line 128) | def __rpow__(b, a: float | Fraction) -> float: ...
method __rpow__ (line 130) | def __rpow__(b, a: complex) -> complex: ...
method __pos__ (line 131) | def __pos__(a) -> Fraction: ...
method __neg__ (line 132) | def __neg__(a) -> Fraction: ...
method __abs__ (line 133) | def __abs__(a) -> Fraction: ...
method __trunc__ (line 134) | def __trunc__(a) -> int: ...
method __floor__ (line 135) | def __floor__(a) -> int: ...
method __ceil__ (line 136) | def __ceil__(a) -> int: ...
method __round__ (line 138) | def __round__(self, ndigits: None = None) -> int: ...
method __round__ (line 140) | def __round__(self, ndigits: int) -> Fraction: ...
method __hash__ (line 141) | def __hash__(self) -> int: ... # type: ignore[override]
method __eq__ (line 142) | def __eq__(a, b: object) -> bool: ...
method __lt__ (line 143) | def __lt__(a, b: _ComparableNum) -> bool: ...
method __gt__ (line 144) | def __gt__(a, b: _ComparableNum) -> bool: ...
method __le__ (line 145) | def __le__(a, b: _ComparableNum) -> bool: ...
method __ge__ (line 146) | def __ge__(a, b: _ComparableNum) -> bool: ...
method __bool__ (line 147) | def __bool__(a) -> bool: ...
method __copy__ (line 148) | def __copy__(self) -> Self: ...
method __deepcopy__ (line 149) | def __deepcopy__(self, memo: Any) -> Self: ...
method __int__ (line 151) | def __int__(a, _index: Callable[[SupportsIndex], int] = ...) -> int: ...
method real (line 155) | def real(self) -> Fraction: ...
method imag (line 157) | def imag(self) -> Literal[0]: ...
method conjugate (line 158) | def conjugate(self) -> Fraction: ...
FILE: mypy/typeshed/stdlib/ftplib.pyi
class Error (line 18) | class Error(Exception): ...
class error_reply (line 19) | class error_reply(Error): ...
class error_temp (line 20) | class error_temp(Error): ...
class error_perm (line 21) | class error_perm(Error): ...
class error_proto (line 22) | class error_proto(Error): ...
class FTP (line 26) | class FTP:
method __enter__ (line 39) | def __enter__(self) -> Self: ...
method __exit__ (line 40) | def __exit__(
method __init__ (line 45) | def __init__(
method __init__ (line 57) | def __init__(
method connect (line 67) | def connect(
method getwelcome (line 70) | def getwelcome(self) -> str: ...
method set_debuglevel (line 71) | def set_debuglevel(self, level: int) -> None: ...
method debug (line 72) | def debug(self, level: int) -> None: ...
method set_pasv (line 73) | def set_pasv(self, val: bool | Literal[0, 1]) -> None: ...
method sanitize (line 74) | def sanitize(self, s: str) -> str: ...
method putline (line 75) | def putline(self, line: str) -> None: ...
method putcmd (line 76) | def putcmd(self, line: str) -> None: ...
method getline (line 77) | def getline(self) -> str: ...
method getmultiline (line 78) | def getmultiline(self) -> str: ...
method getresp (line 79) | def getresp(self) -> str: ...
method voidresp (line 80) | def voidresp(self) -> str: ...
method abort (line 81) | def abort(self) -> str: ...
method sendcmd (line 82) | def sendcmd(self, cmd: str) -> str: ...
method voidcmd (line 83) | def voidcmd(self, cmd: str) -> str: ...
method sendport (line 84) | def sendport(self, host: str, port: int) -> str: ...
method sendeprt (line 85) | def sendeprt(self, host: str, port: int) -> str: ...
method makeport (line 86) | def makeport(self) -> socket: ...
method makepasv (line 87) | def makepasv(self) -> tuple[str, int]: ...
method login (line 88) | def login(self, user: str = "", passwd: str = "", acct: str = "") -> s...
method ntransfercmd (line 90) | def ntransfercmd(self, cmd: str, rest: int | str | None = None) -> tup...
method transfercmd (line 91) | def transfercmd(self, cmd: str, rest: int | str | None = None) -> sock...
method retrbinary (line 92) | def retrbinary(
method storbinary (line 95) | def storbinary(
method retrlines (line 103) | def retrlines(self, cmd: str, callback: Callable[[str], object] | None...
method storlines (line 104) | def storlines(self, cmd: str, fp: SupportsReadline[bytes], callback: C...
method acct (line 105) | def acct(self, password: str) -> str: ...
method nlst (line 106) | def nlst(self, *args: str) -> list[str]: ...
method dir (line 108) | def dir(self, *args: str | Callable[[str], object]) -> None: ...
method mlsd (line 109) | def mlsd(self, path: str = "", facts: Iterable[str] = []) -> Iterator[...
method rename (line 110) | def rename(self, fromname: str, toname: str) -> str: ...
method delete (line 111) | def delete(self, filename: str) -> str: ...
method cwd (line 112) | def cwd(self, dirname: str) -> str: ...
method size (line 113) | def size(self, filename: str) -> int | None: ...
method mkd (line 114) | def mkd(self, dirname: str) -> str: ...
method rmd (line 115) | def rmd(self, dirname: str) -> str: ...
method pwd (line 116) | def pwd(self) -> str: ...
method quit (line 117) | def quit(self) -> str: ...
method close (line 118) | def close(self) -> None: ...
class FTP_TLS (line 120) | class FTP_TLS(FTP):
method __init__ (line 122) | def __init__(
method __init__ (line 135) | def __init__(
method __init__ (line 150) | def __init__(
method login (line 166) | def login(self, user: str = "", passwd: str = "", acct: str = "", secu...
method auth (line 167) | def auth(self) -> str: ...
method prot_p (line 168) | def prot_p(self) -> str: ...
method prot_c (line 169) | def prot_c(self) -> str: ...
method ccc (line 170) | def ccc(self) -> str: ...
function parse150 (line 172) | def parse150(resp: str) -> int | None: ... # undocumented
function parse227 (line 173) | def parse227(resp: str) -> tuple[str, int]: ... # undocumented
function parse229 (line 174) | def parse229(resp: str, peer: Any) -> tuple[str, int]: ... # undocumented
function parse257 (line 175) | def parse257(resp: str) -> str: ... # undocumented
function ftpcp (line 176) | def ftpcp(
FILE: mypy/typeshed/stdlib/functools.pyi
function reduce (line 41) | def reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], ini...
function reduce (line 43) | def reduce(function: Callable[[_T, _T], _T], sequence: Iterable[_T], /) ...
class _CacheInfo (line 45) | class _CacheInfo(NamedTuple):
class _CacheParameters (line 52) | class _CacheParameters(TypedDict):
class _HashCallable (line 57) | class _HashCallable(Protocol):
method __call__ (line 58) | def __call__(self, /, *args: Hashable, **kwargs: Hashable) -> Never: ...
class _LruCacheWrapperBase (line 61) | class _LruCacheWrapperBase(Generic[_out_TCallable]):
method cache_info (line 65) | def cache_info(self) -> _CacheInfo: ...
method cache_clear (line 66) | def cache_clear(self) -> None: ...
method cache_parameters (line 68) | def cache_parameters(self) -> _CacheParameters: ...
method __copy__ (line 70) | def __copy__(self) -> Self: ...
method __deepcopy__ (line 71) | def __deepcopy__(self, memo: Any, /) -> Self: ...
class _LruCacheWrapperMethod (line 76) | class _LruCacheWrapperMethod(MethodType, _LruCacheWrapperBase[_out_TCall...
class _lru_cache_wrapper (line 82) | class _lru_cache_wrapper(_LruCacheWrapperBase[_out_TCallable]):
method __init__ (line 83) | def __init__(self, user_function: Never, maxsize: Never, typed: Never,...
method __get__ (line 86) | def __get__(self, instance: None, owner: object) -> Self: ...
method __get__ (line 88) | def __get__(
function lru_cache (line 97) | def lru_cache(maxsize: int | None = 128, typed: bool = False) -> Functio...
function lru_cache (line 99) | def lru_cache(maxsize: _TCallable, typed: bool = False) -> _lru_cache_wr...
class _Wrapped (line 121) | class _Wrapped(Generic[_TCallable]):
class _Wrapper (line 124) | class _Wrapper(Generic[_TCallable]):
method __call__ (line 125) | def __call__(self, f: _TCallable2) -> _TCallable2 & _Wrapped[_TCallabl...
function update_wrapper (line 128) | def update_wrapper(
function wraps (line 134) | def wraps(
function update_wrapper (line 141) | def update_wrapper(
function wraps (line 147) | def wraps(
function total_ordering (line 153) | def total_ordering(cls: type[_T]) -> type[_T]: ...
function cmp_to_key (line 154) | def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], Support...
class partial (line 156) | class partial(Generic[_T]):
method func (line 158) | def func(self) -> Callable[..., _T]: ...
method args (line 160) | def args(self) -> tuple[Any, ...]: ...
method keywords (line 162) | def keywords(self) -> dict[str, Any]: ...
method __new__ (line 163) | def __new__(cls, func: Callable[..., _T], /, *args: Any, **kwargs: Any...
method __call__ (line 164) | def __call__(self, /, *args: Any, **kwargs: Any) -> _T: ...
method __class_getitem__ (line 166) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class partialmethod (line 171) | class partialmethod(Generic[_T]):
method __init__ (line 176) | def __init__(self, func: Callable[..., _T], /, *args: Any, **keywords:...
method __init__ (line 178) | def __init__(self, func: _Descriptor, /, *args: Any, **keywords: Any) ...
method __get__ (line 179) | def __get__(self, obj: Any, cls: type[Any] | None = None) -> Callable[...
method __isabstractmethod__ (line 181) | def __isabstractmethod__(self) -> bool: ...
method __class_getitem__ (line 183) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class _SingleDispatchCallable (line 185) | class _SingleDispatchCallable(Generic[_T]):
method dispatch (line 187) | def dispatch(self, cls: Any) -> Callable[..., _T]: ...
method register (line 191) | def register(self, cls: type[Any], func: None = None) -> Callable[[Cal...
method register (line 195) | def register(self, cls: Callable[..., _T], func: None = None) -> Calla...
method register (line 198) | def register(self, cls: type[Any], func: Callable[..., _T]) -> Callabl...
method _clear_cache (line 199) | def _clear_cache(self) -> None: ...
method __call__ (line 200) | def __call__(self, /, *args: Any, **kwargs: Any) -> _T: ...
function singledispatch (line 202) | def singledispatch(func: Callable[..., _T]) -> _SingleDispatchCallable[_...
class singledispatchmethod (line 204) | class singledispatchmethod(Generic[_T]):
method __init__ (line 207) | def __init__(self, func: Callable[..., _T]) -> None: ...
method __isabstractmethod__ (line 209) | def __isabstractmethod__(self) -> bool: ...
method register (line 211) | def register(self, cls: type[Any], method: None = None) -> Callable[[C...
method register (line 213) | def register(self, cls: Callable[..., _T], method: None = None) -> Cal...
method register (line 215) | def register(self, cls: type[Any], method: Callable[..., _T]) -> Calla...
method __get__ (line 216) | def __get__(self, obj: _S, cls: type[_S] | None = None) -> Callable[.....
class cached_property (line 218) | class cached_property(Generic[_T_co]):
method __init__ (line 221) | def __init__(self, func: Callable[[Any], _T_co]) -> None: ...
method __get__ (line 223) | def __get__(self, instance: None, owner: type[Any] | None = None) -> S...
method __get__ (line 225) | def __get__(self, instance: object, owner: type[Any] | None = None) ->...
method __set_name__ (line 226) | def __set_name__(self, owner: type[Any], name: str) -> None: ...
method __set__ (line 228) | def __set__(self, instance: object, value: _T_co) -> None: ... # type...
method __class_getitem__ (line 230) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function cache (line 233) | def cache(user_function: _TCallable, /) -> _lru_cache_wrapper[_TCallable...
function _make_key (line 235) | def _make_key(
FILE: mypy/typeshed/stdlib/gc.pyi
function collect (line 17) | def collect(generation: int = 2) -> int: ...
function disable (line 18) | def disable() -> None: ...
function enable (line 19) | def enable() -> None: ...
function get_count (line 20) | def get_count() -> tuple[int, int, int]: ...
function get_debug (line 21) | def get_debug() -> int: ...
function get_objects (line 22) | def get_objects(generation: int | None = None) -> list[Any]: ...
function freeze (line 23) | def freeze() -> None: ...
function unfreeze (line 24) | def unfreeze() -> None: ...
function get_freeze_count (line 25) | def get_freeze_count() -> int: ...
function get_referents (line 26) | def get_referents(*objs: Any) -> list[Any]: ...
function get_referrers (line 27) | def get_referrers(*objs: Any) -> list[Any]: ...
function get_stats (line 28) | def get_stats() -> list[dict[str, Any]]: ...
function get_threshold (line 29) | def get_threshold() -> tuple[int, int, int]: ...
function is_tracked (line 30) | def is_tracked(obj: Any, /) -> bool: ...
function is_finalized (line 33) | def is_finalized(obj: Any, /) -> bool: ...
function isenabled (line 35) | def isenabled() -> bool: ...
function set_debug (line 36) | def set_debug(flags: int, /) -> None: ...
function set_threshold (line 37) | def set_threshold(threshold0: int, threshold1: int = ..., threshold2: in...
FILE: mypy/typeshed/stdlib/genericpath.pyi
function commonprefix (line 30) | def commonprefix(m: Sequence[LiteralString]) -> LiteralString: ...
function commonprefix (line 32) | def commonprefix(m: Sequence[StrPath]) -> str: ...
function commonprefix (line 34) | def commonprefix(m: Sequence[BytesPath]) -> bytes | Literal[""]: ...
function commonprefix (line 36) | def commonprefix(m: Sequence[list[SupportsRichComparisonT]]) -> Sequence...
function commonprefix (line 38) | def commonprefix(m: Sequence[tuple[SupportsRichComparisonT, ...]]) -> Se...
function exists (line 39) | def exists(path: FileDescriptorOrPath) -> bool: ...
function getsize (line 40) | def getsize(filename: FileDescriptorOrPath) -> int: ...
function isfile (line 41) | def isfile(path: FileDescriptorOrPath) -> bool: ...
function isdir (line 42) | def isdir(s: FileDescriptorOrPath) -> bool: ...
function islink (line 45) | def islink(path: StrOrBytesPath) -> bool: ...
function getatime (line 49) | def getatime(filename: FileDescriptorOrPath) -> float: ...
function getmtime (line 50) | def getmtime(filename: FileDescriptorOrPath) -> float: ...
function getctime (line 51) | def getctime(filename: FileDescriptorOrPath) -> float: ...
function samefile (line 52) | def samefile(f1: FileDescriptorOrPath, f2: FileDescriptorOrPath) -> bool...
function sameopenfile (line 53) | def sameopenfile(fp1: int, fp2: int) -> bool: ...
function samestat (line 54) | def samestat(s1: os.stat_result, s2: os.stat_result) -> bool: ...
function isjunction (line 57) | def isjunction(path: StrOrBytesPath) -> bool: ...
function isdevdrive (line 58) | def isdevdrive(path: StrOrBytesPath) -> bool: ...
function lexists (line 59) | def lexists(path: StrOrBytesPath) -> bool: ...
FILE: mypy/typeshed/stdlib/getopt.pyi
function getopt (line 5) | def getopt(args: list[str], shortopts: str, longopts: Iterable[str] | st...
function gnu_getopt (line 6) | def gnu_getopt(
class GetoptError (line 10) | class GetoptError(Exception):
method __init__ (line 13) | def __init__(self, msg: str, opt: str = "") -> None: ...
FILE: mypy/typeshed/stdlib/getpass.pyi
function getpass (line 5) | def getpass(prompt: str = "Password: ", stream: TextIO | None = None) ->...
function getuser (line 6) | def getuser() -> str: ...
class GetPassWarning (line 8) | class GetPassWarning(UserWarning): ...
FILE: mypy/typeshed/stdlib/gettext.pyi
class _TranslationsReader (line 29) | class _TranslationsReader(Protocol):
method read (line 30) | def read(self) -> bytes: ...
class NullTranslations (line 34) | class NullTranslations:
method __init__ (line 35) | def __init__(self, fp: _TranslationsReader | None = None) -> None: ...
method _parse (line 36) | def _parse(self, fp: _TranslationsReader) -> None: ...
method add_fallback (line 37) | def add_fallback(self, fallback: NullTranslations) -> None: ...
method gettext (line 38) | def gettext(self, message: str) -> str: ...
method ngettext (line 39) | def ngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
method pgettext (line 40) | def pgettext(self, context: str, message: str) -> str: ...
method npgettext (line 41) | def npgettext(self, context: str, msgid1: str, msgid2: str, n: int) ->...
method info (line 42) | def info(self) -> dict[str, str]: ...
method charset (line 43) | def charset(self) -> str | None: ...
method output_charset (line 45) | def output_charset(self) -> str | None: ...
method set_output_charset (line 46) | def set_output_charset(self, charset: str) -> None: ...
method lgettext (line 47) | def lgettext(self, message: str) -> str: ...
method lngettext (line 48) | def lngettext(self, msgid1: str, msgid2: str, n: int) -> str: ...
method install (line 50) | def install(self, names: Container[str] | None = None) -> None: ...
class GNUTranslations (line 52) | class GNUTranslations(NullTranslations):
function find (line 59) | def find(
function find (line 63) | def find(
function find (line 67) | def find(domain: str, localedir: StrPath | None, languages: Iterable[str...
function find (line 69) | def find(domain: str, localedir: StrPath | None = None, languages: Itera...
function translation (line 75) | def translation(
function translation (line 83) | def translation(
function translation (line 92) | def translation(
function translation (line 100) | def translation(
function install (line 107) | def install(domain: str, localedir: StrPath | None = None, *, names: Con...
function translation (line 111) | def translation(
function translation (line 120) | def translation(
function translation (line 130) | def translation(
function translation (line 139) | def translation(
function install (line 147) | def install(
function textdomain (line 151) | def textdomain(domain: str | None = None) -> str: ...
function bindtextdomain (line 152) | def bindtextdomain(domain: str, localedir: StrPath | None = None) -> str...
function dgettext (line 153) | def dgettext(domain: str, message: str) -> str: ...
function dngettext (line 154) | def dngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...
function gettext (line 155) | def gettext(message: str) -> str: ...
function ngettext (line 156) | def ngettext(msgid1: str, msgid2: str, n: int) -> str: ...
function pgettext (line 157) | def pgettext(context: str, message: str) -> str: ...
function dpgettext (line 158) | def dpgettext(domain: str, context: str, message: str) -> str: ...
function npgettext (line 159) | def npgettext(context: str, msgid1: str, msgid2: str, n: int) -> str: ...
function dnpgettext (line 160) | def dnpgettext(domain: str, context: str, msgid1: str, msgid2: str, n: i...
function lgettext (line 163) | def lgettext(message: str) -> str: ...
function ldgettext (line 164) | def ldgettext(domain: str, message: str) -> str: ...
function lngettext (line 165) | def lngettext(msgid1: str, msgid2: str, n: int) -> str: ...
function ldngettext (line 166) | def ldngettext(domain: str, msgid1: str, msgid2: str, n: int) -> str: ...
function bind_textdomain_codeset (line 167) | def bind_textdomain_codeset(domain: str, codeset: str | None = None) -> ...
function c2py (line 171) | def c2py(plural: str) -> Callable[[int], int]: ...
FILE: mypy/typeshed/stdlib/glob.pyi
function glob0 (line 11) | def glob0(dirname: AnyStr, pattern: AnyStr) -> list[AnyStr]: ...
function glob1 (line 12) | def glob1(dirname: AnyStr, pattern: AnyStr) -> list[AnyStr]: ...
function glob (line 15) | def glob(
function iglob (line 23) | def iglob(
function glob (line 33) | def glob(
function iglob (line 36) | def iglob(
function glob (line 41) | def glob(pathname: AnyStr, *, recursive: bool = False) -> list[AnyStr]: ...
function iglob (line 42) | def iglob(pathname: AnyStr, *, recursive: bool = False) -> Iterator[AnyS...
function escape (line 44) | def escape(pathname: AnyStr) -> AnyStr: ...
function has_magic (line 45) | def has_magic(s: str | bytes) -> bool: ... # undocumented
function translate (line 48) | def translate(
FILE: mypy/typeshed/stdlib/graphlib.pyi
class TopologicalSorter (line 13) | class TopologicalSorter(Generic[_T]):
method __init__ (line 15) | def __init__(self, graph: None = None) -> None: ...
method __init__ (line 17) | def __init__(self, graph: SupportsItems[_T, Iterable[_T]]) -> None: ...
method add (line 18) | def add(self, node: _T, *predecessors: _T) -> None: ...
method prepare (line 19) | def prepare(self) -> None: ...
method is_active (line 20) | def is_active(self) -> bool: ...
method __bool__ (line 21) | def __bool__(self) -> bool: ...
method done (line 22) | def done(self, *nodes: _T) -> None: ...
method get_ready (line 23) | def get_ready(self) -> tuple[_T, ...]: ...
method static_order (line 24) | def static_order(self) -> Iterable[_T]: ...
method __class_getitem__ (line 26) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class CycleError (line 28) | class CycleError(ValueError): ...
FILE: mypy/typeshed/stdlib/grp.pyi
class struct_group (line 7) | class struct_group(structseq[Any], tuple[str, str | None, int, list[str]]):
method gr_name (line 12) | def gr_name(self) -> str: ...
method gr_passwd (line 14) | def gr_passwd(self) -> str | None: ...
method gr_gid (line 16) | def gr_gid(self) -> int: ...
method gr_mem (line 18) | def gr_mem(self) -> list[str]: ...
function getgrall (line 20) | def getgrall() -> list[struct_group]: ...
function getgrgid (line 21) | def getgrgid(id: int) -> struct_group: ...
function getgrnam (line 22) | def getgrnam(name: str) -> struct_group: ...
FILE: mypy/typeshed/stdlib/gzip.pyi
class _ReadableFileobj (line 24) | class _ReadableFileobj(Protocol):
method read (line 25) | def read(self, n: int, /) -> bytes: ...
method seek (line 26) | def seek(self, n: int, /) -> object: ...
class _WritableFileobj (line 32) | class _WritableFileobj(Protocol):
method write (line 33) | def write(self, b: bytes, /) -> object: ...
method flush (line 34) | def flush(self) -> object: ...
function open (line 41) | def open(
function open (line 50) | def open(
function open (line 59) | def open(
function open (line 68) | def open(
class _PaddedFile (line 77) | class _PaddedFile:
method __init__ (line 79) | def __init__(self, f: _ReadableFileobj, prepend: bytes = b"") -> None:...
method read (line 80) | def read(self, size: int) -> bytes: ...
method prepend (line 81) | def prepend(self, prepend: bytes = b"") -> None: ...
method seek (line 82) | def seek(self, off: int) -> int: ...
method seekable (line 83) | def seekable(self) -> bool: ...
class BadGzipFile (line 85) | class BadGzipFile(OSError): ...
class GzipFile (line 87) | class GzipFile(_compression.BaseStream):
method __init__ (line 94) | def __init__(
method __init__ (line 103) | def __init__(
method __init__ (line 112) | def __init__(
method __init__ (line 121) | def __init__(
method __init__ (line 130) | def __init__(
method filename (line 140) | def filename(self) -> str: ...
method mtime (line 143) | def mtime(self) -> int | None: ...
method write (line 145) | def write(self, data: ReadableBuffer) -> int: ...
method read (line 146) | def read(self, size: int | None = -1) -> bytes: ...
method read1 (line 147) | def read1(self, size: int = -1) -> bytes: ...
method peek (line 148) | def peek(self, n: int) -> bytes: ...
method close (line 149) | def close(self) -> None: ...
method flush (line 150) | def flush(self, zlib_mode: int = 2) -> None: ...
method fileno (line 151) | def fileno(self) -> int: ...
method rewind (line 152) | def rewind(self) -> None: ...
method seek (line 153) | def seek(self, offset: int, whence: int = 0) -> int: ...
method readline (line 154) | def readline(self, size: int | None = -1) -> bytes: ...
class _GzipReader (line 156) | class _GzipReader(_compression.DecompressReader):
method __init__ (line 157) | def __init__(self, fp: _ReadableFileobj) -> None: ...
function compress (line 159) | def compress(data: SizedBuffer, compresslevel: int = 9, *, mtime: float ...
function decompress (line 160) | def decompress(data: ReadableBuffer) -> bytes: ...
FILE: mypy/typeshed/stdlib/hashlib.pyi
function new (line 63) | def new(name: str, data: ReadableBuffer = b"", *, usedforsecurity: bool ...
class _VarLenHash (line 75) | class _VarLenHash(HASH):
method digest (line 76) | def digest(self, length: int) -> bytes: ... # type: ignore[override]
method hexdigest (line 77) | def hexdigest(self, length: int) -> str: ... # type: ignore[override]
function new (line 79) | def new(name: str, data: ReadableBuffer = b"") -> HASH: ...
function sha3_224 (line 81) | def sha3_224(string: ReadableBuffer = b"") -> HASH: ...
function sha3_256 (line 82) | def sha3_256(string: ReadableBuffer = b"") -> HASH: ...
function sha3_384 (line 83) | def sha3_384(string: ReadableBuffer = b"") -> HASH: ...
function sha3_512 (line 84) | def sha3_512(string: ReadableBuffer = b"") -> HASH: ...
function shake_128 (line 85) | def shake_128(string: ReadableBuffer = b"") -> _VarLenHash: ...
function shake_256 (line 86) | def shake_256(string: ReadableBuffer = b"") -> _VarLenHash: ...
class _BytesIOLike (line 92) | class _BytesIOLike(Protocol):
method getbuffer (line 93) | def getbuffer(self) -> ReadableBuffer: ...
class _FileDigestFileObj (line 95) | class _FileDigestFileObj(Protocol):
method readinto (line 96) | def readinto(self, buf: bytearray, /) -> int: ...
method readable (line 97) | def readable(self) -> bool: ...
function file_digest (line 99) | def file_digest(
FILE: mypy/typeshed/stdlib/heapq.pyi
function merge (line 12) | def merge(
function nlargest (line 15) | def nlargest(n: int, iterable: Iterable[_S], key: Callable[[_S], Support...
function nsmallest (line 16) | def nsmallest(n: int, iterable: Iterable[_S], key: Callable[[_S], Suppor...
function _heapify_max (line 17) | def _heapify_max(heap: list[Any], /) -> None: ... # undocumented
FILE: mypy/typeshed/stdlib/hmac.pyi
function new (line 19) | def new(key: bytes | bytearray, msg: ReadableBuffer | None, digestmod: _...
function new (line 21) | def new(key: bytes | bytearray, *, digestmod: _DigestMod) -> HMAC: ...
class HMAC (line 23) | class HMAC:
method name (line 27) | def name(self) -> str: ...
method __init__ (line 28) | def __init__(self, key: bytes | bytearray, msg: ReadableBuffer | None ...
method update (line 29) | def update(self, msg: ReadableBuffer) -> None: ...
method digest (line 30) | def digest(self) -> bytes: ...
method hexdigest (line 31) | def hexdigest(self) -> str: ...
method copy (line 32) | def copy(self) -> HMAC: ...
function digest (line 34) | def digest(key: SizedBuffer, msg: ReadableBuffer, digest: _DigestMod) ->...
function compare_digest (line 40) | def compare_digest(a: ReadableBuffer, b: ReadableBuffer, /) -> bool: ...
function compare_digest (line 42) | def compare_digest(a: AnyStr, b: AnyStr, /) -> bool: ...
FILE: mypy/typeshed/stdlib/html/__init__.pyi
function escape (line 5) | def escape(s: AnyStr, quote: bool = True) -> AnyStr: ...
function unescape (line 6) | def unescape(s: AnyStr) -> AnyStr: ...
FILE: mypy/typeshed/stdlib/html/parser.pyi
class HTMLParser (line 6) | class HTMLParser(ParserBase):
method __init__ (line 7) | def __init__(self, *, convert_charrefs: bool = True) -> None: ...
method feed (line 8) | def feed(self, data: str) -> None: ...
method close (line 9) | def close(self) -> None: ...
method get_starttag_text (line 10) | def get_starttag_text(self) -> str | None: ...
method handle_starttag (line 11) | def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]...
method handle_endtag (line 12) | def handle_endtag(self, tag: str) -> None: ...
method handle_startendtag (line 13) | def handle_startendtag(self, tag: str, attrs: list[tuple[str, str | No...
method handle_data (line 14) | def handle_data(self, data: str) -> None: ...
method handle_entityref (line 15) | def handle_entityref(self, name: str) -> None: ...
method handle_charref (line 16) | def handle_charref(self, name: str) -> None: ...
method handle_comment (line 17) | def handle_comment(self, data: str) -> None: ...
method handle_decl (line 18) | def handle_decl(self, decl: str) -> None: ...
method handle_pi (line 19) | def handle_pi(self, data: str) -> None: ...
method check_for_whole_start_tag (line 21) | def check_for_whole_start_tag(self, i: int) -> int: ... # undocumented
method clear_cdata_mode (line 22) | def clear_cdata_mode(self) -> None: ... # undocumented
method goahead (line 23) | def goahead(self, end: bool) -> None: ... # undocumented
method parse_bogus_comment (line 24) | def parse_bogus_comment(self, i: int, report: bool = ...) -> int: ... ...
method parse_endtag (line 25) | def parse_endtag(self, i: int) -> int: ... # undocumented
method parse_html_declaration (line 26) | def parse_html_declaration(self, i: int) -> int: ... # undocumented
method parse_pi (line 27) | def parse_pi(self, i: int) -> int: ... # undocumented
method parse_starttag (line 28) | def parse_starttag(self, i: int) -> int: ... # undocumented
method set_cdata_mode (line 29) | def set_cdata_mode(self, elem: str) -> None: ... # undocumented
FILE: mypy/typeshed/stdlib/http/__init__.pyi
class HTTPStatus (line 12) | class HTTPStatus(IntEnum):
method phrase (line 14) | def phrase(self) -> str: ...
method description (line 16) | def description(self) -> str: ...
method is_informational (line 99) | def is_informational(self) -> bool: ...
method is_success (line 101) | def is_success(self) -> bool: ...
method is_redirection (line 103) | def is_redirection(self) -> bool: ...
method is_client_error (line 105) | def is_client_error(self) -> bool: ...
method is_server_error (line 107) | def is_server_error(self) -> bool: ...
class HTTPMethod (line 110) | class HTTPMethod(StrEnum):
method description (line 112) | def description(self) -> str: ...
FILE: mypy/typeshed/stdlib/http/client.pyi
class HTTPMessage (line 124) | class HTTPMessage(email.message.Message[str, str]):
method getallmatchingheaders (line 125) | def getallmatchingheaders(self, name: str) -> list[str]: ... # undocu...
function parse_headers (line 128) | def parse_headers(fp: SupportsReadline[bytes], _class: Callable[[], _Mes...
function parse_headers (line 130) | def parse_headers(fp: SupportsReadline[bytes]) -> HTTPMessage: ...
class HTTPResponse (line 132) | class HTTPResponse(io.BufferedIOBase, BinaryIO): # type: ignore[misc] ...
method __init__ (line 149) | def __init__(self, sock: socket, debuglevel: int = 0, method: str | No...
method peek (line 150) | def peek(self, n: int = -1) -> bytes: ...
method read (line 151) | def read(self, amt: int | None = None) -> bytes: ...
method read1 (line 152) | def read1(self, n: int = -1) -> bytes: ...
method readinto (line 153) | def readinto(self, b: WriteableBuffer) -> int: ...
method readline (line 154) | def readline(self, limit: int = -1) -> bytes: ... # type: ignore[over...
method getheader (line 156) | def getheader(self, name: str) -> str | None: ...
method getheader (line 158) | def getheader(self, name: str, default: _T) -> str | _T: ...
method getheaders (line 159) | def getheaders(self) -> list[tuple[str, str]]: ...
method isclosed (line 160) | def isclosed(self) -> bool: ...
method __iter__ (line 161) | def __iter__(self) -> Iterator[bytes]: ...
method __enter__ (line 162) | def __enter__(self) -> Self: ...
method __exit__ (line 163) | def __exit__(
method info (line 166) | def info(self) -> email.message.Message: ...
method geturl (line 167) | def geturl(self) -> str: ...
method getcode (line 168) | def getcode(self) -> int: ...
method begin (line 169) | def begin(self) -> None: ...
class HTTPConnection (line 171) | class HTTPConnection:
method __init__ (line 180) | def __init__(
method request (line 188) | def request(
method getresponse (line 197) | def getresponse(self) -> HTTPResponse: ...
method set_debuglevel (line 198) | def set_debuglevel(self, level: int) -> None: ...
method get_proxy_response_headers (line 200) | def get_proxy_response_headers(self) -> HTTPMessage | None: ...
method set_tunnel (line 202) | def set_tunnel(self, host: str, port: int | None = None, headers: Mapp...
method connect (line 203) | def connect(self) -> None: ...
method close (line 204) | def close(self) -> None: ...
method putrequest (line 205) | def putrequest(self, method: str, url: str, skip_host: bool = False, s...
method putheader (line 206) | def putheader(self, header: str | bytes, *values: _HeaderValue) -> Non...
method endheaders (line 207) | def endheaders(self, message_body: _DataType | None = None, *, encode_...
method send (line 208) | def send(self, data: _DataType | str) -> None: ...
class HTTPSConnection (line 210) | class HTTPSConnection(HTTPConnection):
method __init__ (line 214) | def __init__(
method __init__ (line 225) | def __init__(
class HTTPException (line 239) | class HTTPException(Exception): ...
class NotConnected (line 243) | class NotConnected(HTTPException): ...
class InvalidURL (line 244) | class InvalidURL(HTTPException): ...
class UnknownProtocol (line 246) | class UnknownProtocol(HTTPException):
method __init__ (line 247) | def __init__(self, version: str) -> None: ...
class UnknownTransferEncoding (line 249) | class UnknownTransferEncoding(HTTPException): ...
class UnimplementedFileMode (line 250) | class UnimplementedFileMode(HTTPException): ...
class IncompleteRead (line 252) | class IncompleteRead(HTTPException):
method __init__ (line 253) | def __init__(self, partial: bytes, expected: int | None = None) -> Non...
class ImproperConnectionState (line 257) | class ImproperConnectionState(HTTPException): ...
class CannotSendRequest (line 258) | class CannotSendRequest(ImproperConnectionState): ...
class CannotSendHeader (line 259) | class CannotSendHeader(ImproperConnectionState): ...
class ResponseNotReady (line 260) | class ResponseNotReady(ImproperConnectionState): ...
class BadStatusLine (line 262) | class BadStatusLine(HTTPException):
method __init__ (line 263) | def __init__(self, line: str) -> None: ...
class LineTooLong (line 265) | class LineTooLong(HTTPException):
method __init__ (line 266) | def __init__(self, line_type: str) -> None: ...
class RemoteDisconnected (line 268) | class RemoteDisconnected(ConnectionResetError, BadStatusLine): ...
FILE: mypy/typeshed/stdlib/http/cookiejar.pyi
class LoadError (line 22) | class LoadError(OSError): ...
class CookieJar (line 24) | class CookieJar:
method __init__ (line 31) | def __init__(self, policy: CookiePolicy | None = None) -> None: ...
method add_cookie_header (line 32) | def add_cookie_header(self, request: Request) -> None: ...
method extract_cookies (line 33) | def extract_cookies(self, response: HTTPResponse, request: Request) ->...
method set_policy (line 34) | def set_policy(self, policy: CookiePolicy) -> None: ...
method make_cookies (line 35) | def make_cookies(self, response: HTTPResponse, request: Request) -> Se...
method set_cookie (line 36) | def set_cookie(self, cookie: Cookie) -> None: ...
method set_cookie_if_ok (line 37) | def set_cookie_if_ok(self, cookie: Cookie, request: Request) -> None: ...
method clear (line 38) | def clear(self, domain: str | None = None, path: str | None = None, na...
method clear_session_cookies (line 39) | def clear_session_cookies(self) -> None: ...
method clear_expired_cookies (line 40) | def clear_expired_cookies(self) -> None: ... # undocumented
method __iter__ (line 41) | def __iter__(self) -> Iterator[Cookie]: ...
method __len__ (line 42) | def __len__(self) -> int: ...
class FileCookieJar (line 44) | class FileCookieJar(CookieJar):
method __init__ (line 47) | def __init__(self, filename: StrPath | None = None, delayload: bool = ...
method save (line 48) | def save(self, filename: str | None = None, ignore_discard: bool = Fal...
method load (line 49) | def load(self, filename: str | None = None, ignore_discard: bool = Fal...
method revert (line 50) | def revert(self, filename: str | None = None, ignore_discard: bool = F...
class MozillaCookieJar (line 52) | class MozillaCookieJar(FileCookieJar):
class LWPCookieJar (line 56) | class LWPCookieJar(FileCookieJar):
method as_lwp_str (line 57) | def as_lwp_str(self, ignore_discard: bool = True, ignore_expires: bool...
class CookiePolicy (line 59) | class CookiePolicy:
method set_ok (line 63) | def set_ok(self, cookie: Cookie, request: Request) -> bool: ...
method return_ok (line 64) | def return_ok(self, cookie: Cookie, request: Request) -> bool: ...
method domain_return_ok (line 65) | def domain_return_ok(self, domain: str, request: Request) -> bool: ...
method path_return_ok (line 66) | def path_return_ok(self, path: str, request: Request) -> bool: ...
class DefaultCookiePolicy (line 68) | class DefaultCookiePolicy(CookiePolicy):
method __init__ (line 81) | def __init__(
method blocked_domains (line 97) | def blocked_domains(self) -> tuple[str, ...]: ...
method set_blocked_domains (line 98) | def set_blocked_domains(self, blocked_domains: Sequence[str]) -> None:...
method is_blocked (line 99) | def is_blocked(self, domain: str) -> bool: ...
method allowed_domains (line 100) | def allowed_domains(self) -> tuple[str, ...] | None: ...
method set_allowed_domains (line 101) | def set_allowed_domains(self, allowed_domains: Sequence[str] | None) -...
method is_not_allowed (line 102) | def is_not_allowed(self, domain: str) -> bool: ...
method set_ok_version (line 103) | def set_ok_version(self, cookie: Cookie, request: Request) -> bool: .....
method set_ok_verifiability (line 104) | def set_ok_verifiability(self, cookie: Cookie, request: Request) -> bo...
method set_ok_name (line 105) | def set_ok_name(self, cookie: Cookie, request: Request) -> bool: ... ...
method set_ok_path (line 106) | def set_ok_path(self, cookie: Cookie, request: Request) -> bool: ... ...
method set_ok_domain (line 107) | def set_ok_domain(self, cookie: Cookie, request: Request) -> bool: ......
method set_ok_port (line 108) | def set_ok_port(self, cookie: Cookie, request: Request) -> bool: ... ...
method return_ok_version (line 109) | def return_ok_version(self, cookie: Cookie, request: Request) -> bool:...
method return_ok_verifiability (line 110) | def return_ok_verifiability(self, cookie: Cookie, request: Request) ->...
method return_ok_secure (line 111) | def return_ok_secure(self, cookie: Cookie, request: Request) -> bool: ...
method return_ok_expires (line 112) | def return_ok_expires(self, cookie: Cookie, request: Request) -> bool:...
method return_ok_port (line 113) | def return_ok_port(self, cookie: Cookie, request: Request) -> bool: .....
method return_ok_domain (line 114) | def return_ok_domain(self, cookie: Cookie, request: Request) -> bool: ...
class Cookie (line 116) | class Cookie:
method __init__ (line 133) | def __init__(
method has_nonstandard_attr (line 153) | def has_nonstandard_attr(self, name: str) -> bool: ...
method get_nonstandard_attr (line 155) | def get_nonstandard_attr(self, name: str) -> str | None: ...
method get_nonstandard_attr (line 157) | def get_nonstandard_attr(self, name: str, default: _T) -> str | _T: ...
method set_nonstandard_attr (line 158) | def set_nonstandard_attr(self, name: str, value: str) -> None: ...
method is_expired (line 159) | def is_expired(self, now: int | None = None) -> bool: ...
FILE: mypy/typeshed/stdlib/http/cookies.pyi
function _quote (line 15) | def _quote(str: None) -> None: ...
function _quote (line 17) | def _quote(str: str) -> str: ...
function _unquote (line 19) | def _unquote(str: None) -> None: ...
function _unquote (line 21) | def _unquote(str: str) -> str: ...
class CookieError (line 23) | class CookieError(Exception): ...
class Morsel (line 25) | class Morsel(dict[str, Any], Generic[_T]):
method value (line 27) | def value(self) -> str: ...
method coded_value (line 29) | def coded_value(self) -> _T: ...
method key (line 31) | def key(self) -> str: ...
method __init__ (line 32) | def __init__(self) -> None: ...
method set (line 33) | def set(self, key: str, val: str, coded_val: _T) -> None: ...
method setdefault (line 34) | def setdefault(self, key: str, val: str | None = None) -> str: ...
method update (line 37) | def update(self, values: Mapping[str, str]) -> None: ...
method update (line 39) | def update(self, values: Iterable[tuple[str, str]]) -> None: ...
method isReservedKey (line 40) | def isReservedKey(self, K: str) -> bool: ...
method output (line 41) | def output(self, attrs: list[str] | None = None, header: str = "Set-Co...
method js_output (line 43) | def js_output(self, attrs: list[str] | None = None) -> str: ...
method OutputString (line 44) | def OutputString(self, attrs: list[str] | None = None) -> str: ...
method __eq__ (line 45) | def __eq__(self, morsel: object) -> bool: ...
method __setitem__ (line 46) | def __setitem__(self, K: str, V: Any) -> None: ...
method __class_getitem__ (line 48) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class BaseCookie (line 50) | class BaseCookie(dict[str, Morsel[_T]], Generic[_T]):
method __init__ (line 51) | def __init__(self, input: _DataType | None = None) -> None: ...
method value_decode (line 52) | def value_decode(self, val: str) -> tuple[_T, str]: ...
method value_encode (line 53) | def value_encode(self, val: _T) -> tuple[_T, str]: ...
method output (line 54) | def output(self, attrs: list[str] | None = None, header: str = "Set-Co...
method js_output (line 56) | def js_output(self, attrs: list[str] | None = None) -> str: ...
method load (line 57) | def load(self, rawdata: _DataType) -> None: ...
method __setitem__ (line 58) | def __setitem__(self, key: str, value: str | Morsel[_T]) -> None: ...
class SimpleCookie (line 60) | class SimpleCookie(BaseCookie[str]): ...
FILE: mypy/typeshed/stdlib/http/server.pyi
class HTTPServer (line 12) | class HTTPServer(socketserver.TCPServer):
class ThreadingHTTPServer (line 16) | class ThreadingHTTPServer(socketserver.ThreadingMixIn, HTTPServer): ...
class BaseHTTPRequestHandler (line 18) | class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
method handle_one_request (line 36) | def handle_one_request(self) -> None: ...
method handle_expect_100 (line 37) | def handle_expect_100(self) -> bool: ...
method send_error (line 38) | def send_error(self, code: int, message: str | None = None, explain: s...
method send_response (line 39) | def send_response(self, code: int, message: str | None = None) -> None...
method send_header (line 40) | def send_header(self, keyword: str, value: str) -> None: ...
method send_response_only (line 41) | def send_response_only(self, code: int, message: str | None = None) ->...
method end_headers (line 42) | def end_headers(self) -> None: ...
method flush_headers (line 43) | def flush_headers(self) -> None: ...
method log_request (line 44) | def log_request(self, code: int | str = "-", size: int | str = "-") ->...
method log_error (line 45) | def log_error(self, format: str, *args: Any) -> None: ...
method log_message (line 46) | def log_message(self, format: str, *args: Any) -> None: ...
method version_string (line 47) | def version_string(self) -> str: ...
method date_time_string (line 48) | def date_time_string(self, timestamp: float | None = None) -> str: ...
method log_date_time_string (line 49) | def log_date_time_string(self) -> str: ...
method address_string (line 50) | def address_string(self) -> str: ...
method parse_request (line 51) | def parse_request(self) -> bool: ... # undocumented
class SimpleHTTPRequestHandler (line 53) | class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
method __init__ (line 58) | def __init__(
method do_GET (line 66) | def do_GET(self) -> None: ...
method do_HEAD (line 67) | def do_HEAD(self) -> None: ...
method send_head (line 68) | def send_head(self) -> io.BytesIO | BinaryIO | None: ... # undocumented
method list_directory (line 69) | def list_directory(self, path: StrPath) -> io.BytesIO | None: ... # u...
method translate_path (line 70) | def translate_path(self, path: str) -> str: ... # undocumented
method copyfile (line 71) | def copyfile(self, source: SupportsRead[AnyStr], outputfile: SupportsW...
method guess_type (line 72) | def guess_type(self, path: StrPath) -> str: ... # undocumented
function executable (line 74) | def executable(path: StrPath) -> bool: ... # undocumented
class CGIHTTPRequestHandler (line 76) | class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
method do_POST (line 79) | def do_POST(self) -> None: ...
method is_cgi (line 80) | def is_cgi(self) -> bool: ... # undocumented
method is_executable (line 81) | def is_executable(self, path: StrPath) -> bool: ... # undocumented
method is_python (line 82) | def is_python(self, path: StrPath) -> bool: ... # undocumented
method run_cgi (line 83) | def run_cgi(self) -> None: ... # undocumented
FILE: mypy/typeshed/stdlib/imaplib.pyi
class IMAP4 (line 25) | class IMAP4:
class error (line 26) | class error(Exception): ...
class abort (line 27) | class abort(error): ...
class readonly (line 28) | class readonly(abort): ...
method __init__ (line 44) | def __init__(self, host: str = "", port: int = 143, timeout: float | N...
method open (line 45) | def open(self, host: str = "", port: int = 143, timeout: float | None ...
method __init__ (line 47) | def __init__(self, host: str = "", port: int = 143) -> None: ...
method open (line 48) | def open(self, host: str = "", port: int = 143) -> None: ...
method __getattr__ (line 50) | def __getattr__(self, attr: str) -> Any: ...
method read (line 55) | def read(self, size: int) -> bytes: ...
method readline (line 56) | def readline(self) -> bytes: ...
method send (line 57) | def send(self, data: ReadableBuffer) -> None: ...
method shutdown (line 58) | def shutdown(self) -> None: ...
method socket (line 59) | def socket(self) -> _socket: ...
method recent (line 60) | def recent(self) -> _CommandResults: ...
method response (line 61) | def response(self, code: str) -> _CommandResults: ...
method append (line 62) | def append(self, mailbox: str, flags: str, date_time: str, message: Re...
method authenticate (line 63) | def authenticate(self, mechanism: str, authobject: Callable[[bytes], b...
method capability (line 64) | def capability(self) -> _CommandResults: ...
method check (line 65) | def check(self) -> _CommandResults: ...
method close (line 66) | def close(self) -> _CommandResults: ...
method copy (line 67) | def copy(self, message_set: str, new_mailbox: str) -> _CommandResults:...
method create (line 68) | def create(self, mailbox: str) -> _CommandResults: ...
method delete (line 69) | def delete(self, mailbox: str) -> _CommandResults: ...
method deleteacl (line 70) | def deleteacl(self, mailbox: str, who: str) -> _CommandResults: ...
method enable (line 71) | def enable(self, capability: str) -> _CommandResults: ...
method __enter__ (line 72) | def __enter__(self) -> Self: ...
method __exit__ (line 73) | def __exit__(self, t: type[BaseException] | None, v: BaseException | N...
method expunge (line 74) | def expunge(self) -> _CommandResults: ...
method fetch (line 75) | def fetch(self, message_set: str, message_parts: str) -> tuple[str, _A...
method getacl (line 76) | def getacl(self, mailbox: str) -> _CommandResults: ...
method getannotation (line 77) | def getannotation(self, mailbox: str, entry: str, attribute: str) -> _...
method getquota (line 78) | def getquota(self, root: str) -> _CommandResults: ...
method getquotaroot (line 79) | def getquotaroot(self, mailbox: str) -> _CommandResults: ...
method list (line 80) | def list(self, directory: str = '""', pattern: str = "*") -> tuple[str...
method login (line 81) | def login(self, user: str, password: str) -> tuple[Literal["OK"], _lis...
method login_cram_md5 (line 82) | def login_cram_md5(self, user: str, password: str) -> _CommandResults:...
method logout (line 83) | def logout(self) -> tuple[str, _AnyResponseData]: ...
method lsub (line 84) | def lsub(self, directory: str = '""', pattern: str = "*") -> _CommandR...
method myrights (line 85) | def myrights(self, mailbox: str) -> _CommandResults: ...
method namespace (line 86) | def namespace(self) -> _CommandResults: ...
method noop (line 87) | def noop(self) -> tuple[str, _list[bytes]]: ...
method partial (line 88) | def partial(self, message_num: str, message_part: str, start: str, len...
method proxyauth (line 89) | def proxyauth(self, user: str) -> _CommandResults: ...
method rename (line 90) | def rename(self, oldmailbox: str, newmailbox: str) -> _CommandResults:...
method search (line 91) | def search(self, charset: str | None, *criteria: str) -> _CommandResul...
method select (line 92) | def select(self, mailbox: str = "INBOX", readonly: bool = False) -> tu...
method setacl (line 93) | def setacl(self, mailbox: str, who: str, what: str) -> _CommandResults...
method setannotation (line 94) | def setannotation(self, *args: str) -> _CommandResults: ...
method setquota (line 95) | def setquota(self, root: str, limits: str) -> _CommandResults: ...
method sort (line 96) | def sort(self, sort_criteria: str, charset: str, *search_criteria: str...
method starttls (line 97) | def starttls(self, ssl_context: Any | None = None) -> tuple[Literal["O...
method status (line 98) | def status(self, mailbox: str, names: str) -> _CommandResults: ...
method store (line 99) | def store(self, message_set: str, command: str, flags: str) -> _Comman...
method subscribe (line 100) | def subscribe(self, mailbox: str) -> _CommandResults: ...
method thread (line 101) | def thread(self, threading_algorithm: str, charset: str, *search_crite...
method uid (line 102) | def uid(self, command: str, *args: str) -> _CommandResults: ...
method unsubscribe (line 103) | def unsubscribe(self, mailbox: str) -> _CommandResults: ...
method unselect (line 105) | def unselect(self) -> _CommandResults: ...
method xatom (line 107) | def xatom(self, name: str, *args: str) -> _CommandResults: ...
method print_log (line 108) | def print_log(self) -> None: ...
class IMAP4_SSL (line 110) | class IMAP4_SSL(IMAP4):
method __init__ (line 115) | def __init__(
method __init__ (line 119) | def __init__(
method __init__ (line 129) | def __init__(
method open (line 140) | def open(self, host: str = "", port: int | None = 993, timeout: float ...
method open (line 142) | def open(self, host: str = "", port: int | None = 993) -> None: ...
method ssl (line 144) | def ssl(self) -> SSLSocket: ...
class IMAP4_stream (line 146) | class IMAP4_stream(IMAP4):
method __init__ (line 148) | def __init__(self, command: str) -> None: ...
method open (line 154) | def open(self, host: str | None = None, port: int | None = None, timeo...
method open (line 156) | def open(self, host: str | None = None, port: int | None = None) -> No...
class _Authenticator (line 158) | class _Authenticator:
method __init__ (line 160) | def __init__(self, mechinst: Callable[[bytes], bytes | bytearray | mem...
method process (line 161) | def process(self, data: str) -> str: ...
method encode (line 162) | def encode(self, inp: bytes | bytearray | memoryview) -> str: ...
method decode (line 163) | def decode(self, inp: str | SizedBuffer) -> bytes: ...
function Internaldate2tuple (line 165) | def Internaldate2tuple(resp: ReadableBuffer) -> time.struct_time | None:...
function Int2AP (line 166) | def Int2AP(num: SupportsAbs[SupportsInt]) -> bytes: ...
function ParseFlags (line 167) | def ParseFlags(resp: ReadableBuffer) -> tuple[bytes, ...]: ...
function Time2Internaldate (line 168) | def Time2Internaldate(date_time: float | time.struct_time | time._TimeTu...
FILE: mypy/typeshed/stdlib/imghdr.pyi
class _ReadableBinary (line 7) | class _ReadableBinary(Protocol):
method tell (line 8) | def tell(self) -> int: ...
method read (line 9) | def read(self, size: int, /) -> bytes: ...
method seek (line 10) | def seek(self, offset: int, /) -> Any: ...
function what (line 13) | def what(file: StrPath | _ReadableBinary, h: None = None) -> str | None:...
function what (line 15) | def what(file: Any, h: bytes) -> str | None: ...
FILE: mypy/typeshed/stdlib/imp.pyi
function new_module (line 29) | def new_module(name: str) -> types.ModuleType: ...
function get_magic (line 30) | def get_magic() -> bytes: ...
function get_tag (line 31) | def get_tag() -> str: ...
function cache_from_source (line 32) | def cache_from_source(path: StrPath, debug_override: bool | None = None)...
function source_from_cache (line 33) | def source_from_cache(path: StrPath) -> str: ...
function get_suffixes (line 34) | def get_suffixes() -> list[tuple[str, str, int]]: ...
class NullImporter (line 36) | class NullImporter:
method __init__ (line 37) | def __init__(self, path: StrPath) -> None: ...
method find_module (line 38) | def find_module(self, fullname: Any) -> None: ...
class _FileLike (line 42) | class _FileLike(Protocol):
method read (line 45) | def read(self) -> str | bytes: ...
method close (line 46) | def close(self) -> Any: ...
method __enter__ (line 47) | def __enter__(self) -> Any: ...
method __exit__ (line 48) | def __exit__(self, typ: type[BaseException] | None, exc: BaseException...
function load_source (line 51) | def load_source(name: str, pathname: str, file: _FileLike | None = None)...
function load_compiled (line 52) | def load_compiled(name: str, pathname: str, file: _FileLike | None = Non...
function load_package (line 53) | def load_package(name: str, path: StrPath) -> types.ModuleType: ...
function load_module (line 54) | def load_module(name: str, file: _FileLike | None, filename: str, detail...
function find_module (line 57) | def find_module(
function reload (line 60) | def reload(module: types.ModuleType) -> types.ModuleType: ...
function init_builtin (line 61) | def init_builtin(name: str) -> types.ModuleType | None: ...
function load_dynamic (line 62) | def load_dynamic(name: str, path: str, file: Any = None) -> types.Module...
FILE: mypy/typeshed/stdlib/importlib/__init__.pyi
function import_module (line 9) | def import_module(name: str, package: str | None = None) -> ModuleType: ...
function find_loader (line 12) | def find_loader(name: str, path: str | None = None) -> Loader | None: ...
function invalidate_caches (line 14) | def invalidate_caches() -> None: ...
function reload (line 15) | def reload(module: ModuleType) -> ModuleType: ...
FILE: mypy/typeshed/stdlib/importlib/_abc.pyi
class Loader (line 7) | class Loader(metaclass=ABCMeta):
method load_module (line 8) | def load_module(self, fullname: str) -> types.ModuleType: ...
method module_repr (line 10) | def module_repr(self, module: types.ModuleType) -> str: ...
method create_module (line 12) | def create_module(self, spec: ModuleSpec) -> types.ModuleType | None: ...
method exec_module (line 15) | def exec_module(self, module: types.ModuleType) -> None: ...
FILE: mypy/typeshed/stdlib/importlib/abc.pyi
class Loader (line 30) | class Loader(metaclass=ABCMeta):
method load_module (line 31) | def load_module(self, fullname: str) -> types.ModuleType: ...
method module_repr (line 32) | def module_repr(self, module: types.ModuleType) -> str: ...
method create_module (line 33) | def create_module(self, spec: ModuleSpec) -> types.ModuleType | None: ...
method exec_module (line 36) | def exec_module(self, module: types.ModuleType) -> None: ...
class Finder (line 39) | class Finder(metaclass=ABCMeta): ...
class ResourceLoader (line 41) | class ResourceLoader(Loader):
method get_data (line 43) | def get_data(self, path: str) -> bytes: ...
class InspectLoader (line 45) | class InspectLoader(Loader):
method is_package (line 46) | def is_package(self, fullname: str) -> bool: ...
method get_code (line 47) | def get_code(self, fullname: str) -> types.CodeType | None: ...
method get_source (line 49) | def get_source(self, fullname: str) -> str | None: ...
method exec_module (line 50) | def exec_module(self, module: types.ModuleType) -> None: ...
method source_to_code (line 52) | def source_to_code(
class ExecutionLoader (line 56) | class ExecutionLoader(InspectLoader):
method get_filename (line 58) | def get_filename(self, fullname: str) -> str: ...
class SourceLoader (line 60) | class SourceLoader(_bootstrap_external.SourceLoader, ResourceLoader, Exe...
method path_mtime (line 61) | def path_mtime(self, path: str) -> float: ...
method set_data (line 62) | def set_data(self, path: str, data: bytes) -> None: ...
method get_source (line 63) | def get_source(self, fullname: str) -> str | None: ...
method path_stats (line 64) | def path_stats(self, path: str) -> Mapping[str, Any]: ...
class MetaPathFinder (line 69) | class MetaPathFinder(metaclass=ABCMeta):
method find_module (line 71) | def find_module(self, fullname: str, path: Sequence[str] | None) -> Lo...
method invalidate_caches (line 73) | def invalidate_caches(self) -> None: ...
method find_spec (line 75) | def find_spec(
method find_module (line 91) | def find_module(self, fullname: str, path: Sequence[str] | None) -> Lo...
method invalidate_caches (line 92) | def invalidate_caches(self) -> None: ...
method find_spec (line 94) | def find_spec(
class PathEntryFinder (line 79) | class PathEntryFinder(metaclass=ABCMeta):
method find_module (line 81) | def find_module(self, fullname: str) -> Loader | None: ...
method find_loader (line 82) | def find_loader(self, fullname: str) -> tuple[Loader | None, Sequence[...
method invalidate_caches (line 84) | def invalidate_caches(self) -> None: ...
method find_spec (line 86) | def find_spec(self, fullname: str, target: types.ModuleType | None = ....
method find_module (line 99) | def find_module(self, fullname: str) -> Loader | None: ...
method find_loader (line 100) | def find_loader(self, fullname: str) -> tuple[Loader | None, Sequence[...
method invalidate_caches (line 101) | def invalidate_caches(self) -> None: ...
method find_spec (line 103) | def find_spec(self, fullname: str, target: types.ModuleType | None = ....
class MetaPathFinder (line 90) | class MetaPathFinder(Finder):
method find_module (line 71) | def find_module(self, fullname: str, path: Sequence[str] | None) -> Lo...
method invalidate_caches (line 73) | def invalidate_caches(self) -> None: ...
method find_spec (line 75) | def find_spec(
method find_module (line 91) | def find_module(self, fullname: str, path: Sequence[str] | None) -> Lo...
method invalidate_caches (line 92) | def invalidate_caches(self) -> None: ...
method find_spec (line 94) | def find_spec(
class PathEntryFinder (line 98) | class PathEntryFinder(Finder):
method find_module (line 81) | def find_module(self, fullname: str) -> Loader | None: ...
method find_loader (line 82) | def find_loader(self, fullname: str) -> tuple[Loader | None, Sequence[...
method invalidate_caches (line 84) | def invalidate_caches(self) -> None: ...
method find_spec (line 86) | def find_spec(self, fullname: str, target: types.ModuleType | None = ....
method find_module (line 99) | def find_module(self, fullname: str) -> Loader | None: ...
method find_loader (line 100) | def find_loader(self, fullname: str) -> tuple[Loader | None, Sequence[...
method invalidate_caches (line 101) | def invalidate_caches(self) -> None: ...
method find_spec (line 103) | def find_spec(self, fullname: str, target: types.ModuleType | None = ....
class FileLoader (line 105) | class FileLoader(_bootstrap_external.FileLoader, ResourceLoader, Executi...
method __init__ (line 108) | def __init__(self, fullname: str, path: str) -> None: ...
method get_data (line 109) | def get_data(self, path: str) -> bytes: ...
method get_filename (line 110) | def get_filename(self, name: str | None = None) -> str: ... # type: i...
method load_module (line 111) | def load_module(self, name: str | None = None) -> types.ModuleType: .....
class ResourceReader (line 113) | class ResourceReader(metaclass=ABCMeta):
method open_resource (line 115) | def open_resource(self, resource: str) -> IO[bytes]: ...
method resource_path (line 117) | def resource_path(self, resource: str) -> str: ...
method is_resource (line 120) | def is_resource(self, path: str) -> bool: ...
method is_resource (line 123) | def is_resource(self, name: str) -> bool: ...
method contents (line 126) | def contents(self) -> Iterator[str]: ...
class Traversable (line 130) | class Traversable(Protocol):
method is_dir (line 132) | def is_dir(self) -> bool: ...
method is_file (line 134) | def is_file(self) -> bool: ...
method iterdir (line 136) | def iterdir(self) -> Iterator[Traversable]: ...
method joinpath (line 139) | def joinpath(self, *descendants: str) -> Traversable: ...
method joinpath (line 142) | def joinpath(self, child: str, /) -> Traversable: ...
method open (line 149) | def open(self, mode: Literal["r"] = "r", *, encoding: str | None = Non...
method open (line 152) | def open(self, mode: Literal["rb"]) -> IO[bytes]: ...
method name (line 155) | def name(self) -> str: ...
method __truediv__ (line 157) | def __truediv__(self, child: str, /) -> Traversable: ...
method __truediv__ (line 160) | def __truediv__(self, child: str, /) -> Traversable: ...
method read_bytes (line 163) | def read_bytes(self) -> bytes: ...
method read_text (line 165) | def read_text(self, encoding: str | None = None) -> str: ...
class TraversableResources (line 167) | class TraversableResources(ResourceReader):
method files (line 169) | def files(self) -> Traversable: ...
method open_resource (line 170) | def open_resource(self, resource: str) -> BufferedReader: ...
method resource_path (line 171) | def resource_path(self, resource: Any) -> str: ...
method is_resource (line 172) | def is_resource(self, path: str) -> bool: ... # type: ignore[override]
method contents (line 173) | def contents(self) -> Iterator[str]: ...
FILE: mypy/typeshed/stdlib/importlib/machinery.pyi
function all_suffixes (line 20) | def all_suffixes() -> list[str]: ...
FILE: mypy/typeshed/stdlib/importlib/metadata/__init__.pyi
function packages_distributions (line 38) | def packages_distributions() -> Mapping[str, list[str]]: ...
class PackageNotFoundError (line 45) | class PackageNotFoundError(ModuleNotFoundError):
method name (line 47) | def name(self) -> str: ... # type: ignore[override]
class DeprecatedTuple (line 52) | class DeprecatedTuple:
method __getitem__ (line 53) | def __getitem__(self, item: int) -> str: ...
class _EntryPointBase (line 57) | class _EntryPointBase(NamedTuple):
class EntryPoint (line 62) | class EntryPoint(_EntryPointBase):
method __init__ (line 69) | def __init__(self, name: str, value: str, group: str) -> None: ...
method load (line 71) | def load(self) -> Any: ... # Callable[[], Any] or an importable module
method extras (line 73) | def extras(self) -> list[str]: ...
method module (line 76) | def module(self) -> str: ...
method attr (line 78) | def attr(self) -> str: ...
method matches (line 81) | def matches(
method __hash__ (line 92) | def __hash__(self) -> int: ...
method __eq__ (line 93) | def __eq__(self, other: object) -> bool: ...
method __lt__ (line 95) | def __lt__(self, other: object) -> bool: ...
method __iter__ (line 97) | def __iter__(self) -> Iterator[Any]: ... # result of iter((str, Self)...
class EntryPoints (line 100) | class EntryPoints(tuple[EntryPoint, ...]):
method __getitem__ (line 101) | def __getitem__(self, name: str) -> EntryPoint: ... # type: ignore[ov...
method select (line 102) | def select(
method names (line 113) | def names(self) -> set[str]: ...
method groups (line 115) | def groups(self) -> set[str]: ...
method __getitem__ (line 122) | def __getitem__(self, name: int | str) -> EntryPoint: ... # type: ign...
method select (line 123) | def select(
method names (line 134) | def names(self) -> set[str]: ...
method groups (line 136) | def groups(self) -> set[str]: ...
class DeprecatedList (line 118) | class DeprecatedList(list[_T]): ...
class EntryPoints (line 120) | class EntryPoints(DeprecatedList[EntryPoint]): # use as list is depreca...
method __getitem__ (line 101) | def __getitem__(self, name: str) -> EntryPoint: ... # type: ignore[ov...
method select (line 102) | def select(
method names (line 113) | def names(self) -> set[str]: ...
method groups (line 115) | def groups(self) -> set[str]: ...
method __getitem__ (line 122) | def __getitem__(self, name: int | str) -> EntryPoint: ... # type: ign...
method select (line 123) | def select(
method names (line 134) | def names(self) -> set[str]: ...
method groups (line 136) | def groups(self) -> set[str]: ...
class Deprecated (line 139) | class Deprecated(Generic[_KT, _VT]):
method __getitem__ (line 140) | def __getitem__(self, name: _KT) -> _VT: ...
method get (line 142) | def get(self, name: _KT) -> _VT | None: ...
method get (line 144) | def get(self, name: _KT, default: _T) -> _VT | _T: ...
method __iter__ (line 145) | def __iter__(self) -> Iterator[_KT]: ...
method __contains__ (line 146) | def __contains__(self, *args: object) -> bool: ...
method keys (line 147) | def keys(self) -> dict_keys[_KT, _VT]: ...
method values (line 148) | def values(self) -> dict_values[_KT, _VT]: ...
class SelectableGroups (line 150) | class SelectableGroups(Deprecated[str, EntryPoints], dict[str, EntryPoin...
method load (line 152) | def load(cls, eps: Iterable[EntryPoint]) -> Self: ...
method groups (line 154) | def groups(self) -> set[str]: ...
method names (line 156) | def names(self) -> set[str]: ...
method select (line 158) | def select(self) -> Self: ...
method select (line 160) | def select(
class PackagePath (line 171) | class PackagePath(pathlib.PurePosixPath):
method read_text (line 172) | def read_text(self, encoding: str = "utf-8") -> str: ...
method read_binary (line 173) | def read_binary(self) -> bytes: ...
method locate (line 174) | def locate(self) -> PathLike[str]: ...
class FileHash (line 180) | class FileHash:
method __init__ (line 183) | def __init__(self, spec: str) -> None: ...
class DeprecatedNonAbstract (line 186) | class DeprecatedNonAbstract: ...
class Distribution (line 191) | class Distribution(_distribution_parent):
method read_text (line 193) | def read_text(self, filename: str) -> str | None: ...
method locate_file (line 195) | def locate_file(self, path: StrPath) -> _SimplePath: ...
method from_name (line 197) | def from_name(cls, name: str) -> Distribution: ...
method discover (line 200) | def discover(cls, *, context: DistributionFinder.Context) -> Iterable[...
method discover (line 203) | def discover(
method at (line 207) | def at(path: StrPath) -> PathDistribution: ...
method metadata (line 211) | def metadata(self) -> PackageMetadata: ...
method entry_points (line 213) | def entry_points(self) -> EntryPoints: ...
method metadata (line 216) | def metadata(self) -> Message: ...
method entry_points (line 218) | def entry_points(self) -> list[EntryPoint]: ...
method version (line 221) | def version(self) -> str: ...
method files (line 223) | def files(self) -> list[PackagePath] | None: ...
method requires (line 225) | def requires(self) -> list[str] | None: ...
method name (line 228) | def name(self) -> str: ...
method origin (line 231) | def origin(self) -> types.SimpleNamespace: ...
class DistributionFinder (line 233) | class DistributionFinder(MetaPathFinder):
class Context (line 234) | class Context:
method __init__ (line 236) | def __init__(self, *, name: str | None = ..., path: list[str] = ...,...
method path (line 238) | def path(self) -> list[str]: ...
method find_distributions (line 241) | def find_distributions(self, context: DistributionFinder.Context = ......
class MetadataPathFinder (line 243) | class MetadataPathFinder(DistributionFinder):
method find_distributions (line 245) | def find_distributions(cls, context: DistributionFinder.Context = ...)...
method invalidate_caches (line 248) | def invalidate_caches(cls) -> None: ...
method invalidate_caches (line 251) | def invalidate_caches(cls) -> None: ...
class PathDistribution (line 253) | class PathDistribution(Distribution):
method __init__ (line 255) | def __init__(self, path: _SimplePath) -> None: ...
method read_text (line 256) | def read_text(self, filename: StrPath) -> str | None: ...
method locate_file (line 257) | def locate_file(self, path: StrPath) -> _SimplePath: ...
function distribution (line 259) | def distribution(distribution_name: str) -> Distribution: ...
function distributions (line 261) | def distributions(*, context: DistributionFinder.Context) -> Iterable[Di...
function distributions (line 263) | def distributions(
function metadata (line 268) | def metadata(distribution_name: str) -> PackageMetadata: ...
function metadata (line 271) | def metadata(distribution_name: str) -> Message: ...
function entry_points (line 274) | def entry_points(
function entry_points (line 280) | def entry_points() -> SelectableGroups: ...
function entry_points (line 282) | def entry_points(
function entry_points (line 287) | def entry_points() -> dict[str, list[EntryPoint]]: ...
function version (line 289) | def version(distribution_name: str) -> str: ...
function files (line 290) | def files(distribution_name: str) -> list[PackagePath] | None: ...
function requires (line 291) | def requires(distribution_name: str) -> list[str] | None: ...
FILE: mypy/typeshed/stdlib/importlib/metadata/_meta.pyi
class PackageMetadata (line 11) | class PackageMetadata(Protocol):
method __len__ (line 12) | def __len__(self) -> int: ...
method __contains__ (line 13) | def __contains__(self, item: str) -> bool: ...
method __getitem__ (line 14) | def __getitem__(self, key: str) -> str: ...
method __iter__ (line 15) | def __iter__(self) -> Iterator[str]: ...
method json (line 17) | def json(self) -> dict[str, str | list[str]]: ...
method get_all (line 19) | def get_all(self, name: str, failobj: None = None) -> list[Any] | None...
method get_all (line 21) | def get_all(self, name: str, failobj: _T) -> list[Any] | _T: ...
method get (line 24) | def get(self, name: str, failobj: None = None) -> str | None: ...
method get (line 26) | def get(self, name: str, failobj: _T) -> _T | str: ...
class SimplePath (line 29) | class SimplePath(Protocol):
method joinpath (line 30) | def joinpath(self, other: StrPath, /) -> SimplePath: ...
method __truediv__ (line 31) | def __truediv__(self, other: StrPath, /) -> SimplePath: ...
method parent (line 34) | def parent(self) -> PathLike[str]: ...
method read_text (line 35) | def read_text(self, encoding: str | None = None) -> str: ...
method read_bytes (line 36) | def read_bytes(self) -> bytes: ...
method exists (line 37) | def exists(self) -> bool: ...
method joinpath (line 43) | def joinpath(self, other: str, /) -> _T_co: ...
method parent (line 45) | def parent(self) -> _T_co: ...
method read_text (line 46) | def read_text(self) -> str: ...
method __truediv__ (line 48) | def __truediv__(self, other: str, /) -> _T_co: ...
method joinpath (line 53) | def joinpath(self, other: Any, /) -> SimplePath: ...
method parent (line 56) | def parent(self) -> Any: ...
method read_text (line 57) | def read_text(self) -> str: ...
method __truediv__ (line 63) | def __truediv__(self, other: Any, /) -> SimplePath: ...
class SimplePath (line 40) | class SimplePath(Protocol[_T_co]):
method joinpath (line 30) | def joinpath(self, other: StrPath, /) -> SimplePath: ...
method __truediv__ (line 31) | def __truediv__(self, other: StrPath, /) -> SimplePath: ...
method parent (line 34) | def parent(self) -> PathLike[str]: ...
method read_text (line 35) | def read_text(self, encoding: str | None = None) -> str: ...
method read_bytes (line 36) | def read_bytes(self) -> bytes: ...
method exists (line 37) | def exists(self) -> bool: ...
method joinpath (line 43) | def joinpath(self, other: str, /) -> _T_co: ...
method parent (line 45) | def parent(self) -> _T_co: ...
method read_text (line 46) | def read_text(self) -> str: ...
method __truediv__ (line 48) | def __truediv__(self, other: str, /) -> _T_co: ...
method joinpath (line 53) | def joinpath(self, other: Any, /) -> SimplePath: ...
method parent (line 56) | def parent(self) -> Any: ...
method read_text (line 57) | def read_text(self) -> str: ...
method __truediv__ (line 63) | def __truediv__(self, other: Any, /) -> SimplePath: ...
class SimplePath (line 51) | class SimplePath(Protocol):
method joinpath (line 30) | def joinpath(self, other: StrPath, /) -> SimplePath: ...
method __truediv__ (line 31) | def __truediv__(self, other: StrPath, /) -> SimplePath: ...
method parent (line 34) | def parent(self) -> PathLike[str]: ...
method read_text (line 35) | def read_text(self, encoding: str | None = None) -> str: ...
method read_bytes (line 36) | def read_bytes(self) -> bytes: ...
method exists (line 37) | def exists(self) -> bool: ...
method joinpath (line 43) | def joinpath(self, other: str, /) -> _T_co: ...
method parent (line 45) | def parent(self) -> _T_co: ...
method read_text (line 46) | def read_text(self) -> str: ...
method __truediv__ (line 48) | def __truediv__(self, other: str, /) -> _T_co: ...
method joinpath (line 53) | def joinpath(self, other: Any, /) -> SimplePath: ...
method parent (line 56) | def parent(self) -> Any: ...
method read_text (line 57) | def read_text(self) -> str: ...
method __truediv__ (line 63) | def __truediv__(self, other: Any, /) -> SimplePath: ...
FILE: mypy/typeshed/stdlib/importlib/metadata/diagnose.pyi
function inspect (line 1) | def inspect(path: str) -> None: ...
function run (line 2) | def run() -> None: ...
FILE: mypy/typeshed/stdlib/importlib/readers.pyi
function remove_duplicates (line 26) | def remove_duplicates(items: Iterable[_T]) -> Iterator[_T]: ...
class FileReader (line 28) | class FileReader(abc.TraversableResources):
method __init__ (line 30) | def __init__(self, loader) -> None: ...
method resource_path (line 31) | def resource_path(self, resource: StrPath) -> str: ...
method files (line 32) | def files(self) -> pathlib.Path: ...
class ZipReader (line 34) | class ZipReader(abc.TraversableResources):
method __init__ (line 37) | def __init__(self, loader, module: str) -> None: ...
method open_resource (line 38) | def open_resource(self, resource: str) -> BufferedReader: ...
method is_resource (line 39) | def is_resource(self, path: StrPath) -> bool: ...
method files (line 40) | def files(self) -> zipfile.Path: ...
class MultiplexedPath (line 42) | class MultiplexedPath(abc.Traversable):
method __init__ (line 43) | def __init__(self, *paths: abc.Traversable) -> None: ...
method iterdir (line 44) | def iterdir(self) -> Iterator[abc.Traversable]: ...
method read_bytes (line 45) | def read_bytes(self) -> NoReturn: ...
method read_text (line 46) | def read_text(self, *args: Never, **kwargs: Never) -> NoReturn: ... #...
method is_dir (line 47) | def is_dir(self) -> Literal[True]: ...
method is_file (line 48) | def is_file(self) -> Literal[False]: ...
method joinpath (line 51) | def joinpath(self, *descendants: str) -> abc.Traversable: ...
method joinpath (line 53) | def joinpath(self, child: str) -> abc.Traversable: ... # type: ignore...
method joinpath (line 55) | def joinpath(self, child: str) -> abc.Traversable: ...
method open (line 60) | def open(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type...
method name (line 62) | def name(self) -> str: ...
class NamespaceReader (line 64) | class NamespaceReader(abc.TraversableResources):
method __init__ (line 66) | def __init__(self, namespace_path) -> None: ...
method resource_path (line 67) | def resource_path(self, resource: str) -> str: ...
method files (line 68) | def files(self) -> MultiplexedPath: ...
FILE: mypy/typeshed/stdlib/importlib/resources/__init__.pyi
function open_binary (line 50) | def open_binary(package: Package, resource: Resource) -> BinaryIO: ...
function open_text (line 51) | def open_text(package: Package, resource: Resource, encoding: str = "utf...
function read_binary (line 52) | def read_binary(package: Package, resource: Resource) -> bytes: ...
function read_text (line 53) | def read_text(package: Package, resource: Resource, encoding: str = "utf...
function path (line 54) | def path(package: Package, resource: Resource) -> AbstractContextManager...
function is_resource (line 55) | def is_resource(package: Package, name: str) -> bool: ...
function contents (line 56) | def contents(package: Package) -> Iterator[str]: ...
function as_file (line 61) | def as_file(path: Traversable) -> AbstractContextManager[Path]: ...
function files (line 67) | def files(package: Package) -> Traversable: ...
FILE: mypy/typeshed/stdlib/importlib/resources/_common.pyi
function package_to_anchor (line 18) | def package_to_anchor(
function files (line 22) | def files(anchor: Anchor | None = None) -> Traversable: ...
function files (line 25) | def files(package: Anchor | None = None) -> Traversable: ...
function files (line 28) | def files(package: Package) -> Traversable: ...
function get_resource_reader (line 30) | def get_resource_reader(package: types.ModuleType) -> ResourceReader | N...
function resolve (line 33) | def resolve(cand: Anchor | None) -> types.ModuleType: ...
function resolve (line 36) | def resolve(cand: Package) -> types.ModuleType: ...
function get_package (line 39) | def get_package(package: Package) -> types.ModuleType: ...
function from_package (line 41) | def from_package(package: types.ModuleType) -> Traversable: ...
function as_file (line 42) | def as_file(path: Traversable) -> AbstractContextManager[Path]: ...
FILE: mypy/typeshed/stdlib/importlib/resources/_functional.pyi
function open_binary (line 14) | def open_binary(anchor: Anchor, *path_names: StrPath) -> BinaryIO: ...
function open_text (line 16) | def open_text(
function open_text (line 20) | def open_text(anchor: Anchor, *path_names: StrPath, encoding: str | None...
function read_binary (line 21) | def read_binary(anchor: Anchor, *path_names: StrPath) -> bytes: ...
function read_text (line 23) | def read_text(
function read_text (line 27) | def read_text(anchor: Anchor, *path_names: StrPath, encoding: str | None...
function path (line 28) | def path(anchor: Anchor, *path_names: StrPath) -> AbstractContextManager...
function is_resource (line 29) | def is_resource(anchor: Anchor, *path_names: StrPath) -> bool: ...
function contents (line 30) | def contents(anchor: Anchor, *path_names: StrPath) -> Iterator[str]: ...
FILE: mypy/typeshed/stdlib/importlib/resources/readers.pyi
function remove_duplicates (line 14) | def remove_duplicates(items: Iterable[_T]) -> Iterator[_T]: ...
FILE: mypy/typeshed/stdlib/importlib/resources/simple.pyi
class SimpleReader (line 11) | class SimpleReader(abc.ABC):
method package (line 14) | def package(self) -> str: ...
method children (line 16) | def children(self) -> list[SimpleReader]: ...
method resources (line 18) | def resources(self) -> list[str]: ...
method open_binary (line 20) | def open_binary(self, resource: str) -> BinaryIO: ...
method name (line 22) | def name(self) -> str: ...
class ResourceHandle (line 24) | class ResourceHandle(Traversable, metaclass=abc.ABCMeta):
method __init__ (line 26) | def __init__(self, parent: ResourceContainer, name: str) -> None: ...
method is_file (line 27) | def is_file(self) -> Literal[True]: ...
method is_dir (line 28) | def is_dir(self) -> Literal[False]: ...
method open (line 30) | def open(
method open (line 40) | def open(self, mode: Literal["rb"]) -> BinaryIO: ...
method open (line 42) | def open(self, mode: str) -> IO[Any]: ...
method joinpath (line 43) | def joinpath(self, name: Never) -> NoReturn: ... # type: ignore[overr...
class ResourceContainer (line 45) | class ResourceContainer(Traversable, metaclass=abc.ABCMeta):
method __init__ (line 47) | def __init__(self, reader: SimpleReader) -> None: ...
method is_dir (line 48) | def is_dir(self) -> Literal[True]: ...
method is_file (line 49) | def is_file(self) -> Literal[False]: ...
method iterdir (line 50) | def iterdir(self) -> Iterator[ResourceHandle | ResourceContainer]: ...
method open (line 51) | def open(self, *args: Never, **kwargs: Never) -> NoReturn: ... # type...
method joinpath (line 53) | def joinpath(self, *descendants: str) -> Traversable: ...
class TraversableReader (line 55) | class TraversableReader(TraversableResources, SimpleReader, metaclass=ab...
method files (line 56) | def files(self) -> ResourceContainer: ...
FILE: mypy/typeshed/stdlib/importlib/util.pyi
function module_for_loader (line 20) | def module_for_loader(fxn: Callable[_P, types.ModuleType]) -> Callable[_...
function set_loader (line 21) | def set_loader(fxn: Callable[_P, types.ModuleType]) -> Callable[_P, type...
function set_package (line 22) | def set_package(fxn: Callable[_P, types.ModuleType]) -> Callable[_P, typ...
function resolve_name (line 24) | def resolve_name(name: str, package: str | None) -> str: ...
function find_spec (line 25) | def find_spec(name: str, package: str | None = None) -> importlib.machin...
class LazyLoader (line 27) | class LazyLoader(importlib.abc.Loader):
method __init__ (line 28) | def __init__(self, loader: importlib.abc.Loader) -> None: ...
method factory (line 30) | def factory(cls, loader: importlib.abc.Loader) -> Callable[..., LazyLo...
method exec_module (line 31) | def exec_module(self, module: types.ModuleType) -> None: ...
function source_hash (line 33) | def source_hash(source_bytes: ReadableBuffer) -> bytes: ...
FILE: mypy/typeshed/stdlib/inspect.pyi
class EndOfBlock (line 152) | class EndOfBlock(Exception): ...
class BlockFinder (line 154) | class BlockFinder:
method tokeneater (line 162) | def tokeneater(self, type: int, token: str, srowcol: tuple[int, int], ...
function getmembers (line 184) | def getmembers(object: object, predicate: _GetMembersPredicateTypeGuard[...
function getmembers (line 186) | def getmembers(object: object, predicate: _GetMembersPredicateTypeIs[_T]...
function getmembers (line 188) | def getmembers(object: object, predicate: _GetMembersPredicate | None = ...
function getmembers_static (line 192) | def getmembers_static(object: object, predicate: _GetMembersPredicateTyp...
function getmembers_static (line 194) | def getmembers_static(object: object, predicate: _GetMembersPredicateTyp...
function getmembers_static (line 196) | def getmembers_static(object: object, predicate: _GetMembersPredicate | ...
function getmodulename (line 198) | def getmodulename(path: StrPath) -> str | None: ...
function ismodule (line 199) | def ismodule(object: object) -> TypeIs[ModuleType]: ...
function isclass (line 200) | def isclass(object: object) -> TypeIs[type[Any]]: ...
function ismethod (line 201) | def ismethod(object: object) -> TypeIs[MethodType]: ...
function isfunction (line 202) | def isfunction(object: object) -> TypeIs[FunctionType[..., Any]]: ...
function markcoroutinefunction (line 205) | def markcoroutinefunction(func: _F) -> _F: ...
function isgeneratorfunction (line 208) | def isgeneratorfunction(obj: Callable[..., Generator[Any, Any, Any]]) ->...
function isgeneratorfunction (line 210) | def isgeneratorfunction(obj: Callable[_P, Any]) -> TypeGuard[Callable[_P...
function isgeneratorfunction (line 212) | def isgeneratorfunction(obj: object) -> TypeGuard[Callable[..., Generato...
function iscoroutinefunction (line 214) | def iscoroutinefunction(obj: Callable[..., Coroutine[Any, Any, Any]]) ->...
function iscoroutinefunction (line 216) | def iscoroutinefunction(obj: Callable[_P, Awaitable[_T]]) -> TypeGuard[C...
function iscoroutinefunction (line 218) | def iscoroutinefunction(obj: Callable[_P, object]) -> TypeGuard[Callable...
function iscoroutinefunction (line 220) | def iscoroutinefunction(obj: object) -> TypeGuard[Callable[..., Coroutin...
function isgenerator (line 221) | def isgenerator(object: object) -> TypeIs[GeneratorType[Any, Any, Any]]:...
function iscoroutine (line 222) | def iscoroutine(object: object) -> TypeIs[CoroutineType[Any, Any, Any]]:...
function isawaitable (line 223) | def isawaitable(object: object) -> TypeIs[Awaitable[Any]]: ...
function isasyncgenfunction (line 225) | def isasyncgenfunction(obj: Callable[..., AsyncGenerator[Any, Any]]) -> ...
function isasyncgenfunction (line 227) | def isasyncgenfunction(obj: Callable[_P, Any]) -> TypeGuard[Callable[_P,...
function isasyncgenfunction (line 229) | def isasyncgenfunction(obj: object) -> TypeGuard[Callable[..., AsyncGene...
class _SupportsSet (line 231) | class _SupportsSet(Protocol[_T_cont, _V_cont]):
method __set__ (line 232) | def __set__(self, instance: _T_cont, value: _V_cont, /) -> None: ...
class _SupportsDelete (line 234) | class _SupportsDelete(Protocol[_T_cont]):
method __delete__ (line 235) | def __delete__(self, instance: _T_cont, /) -> None: ...
function isasyncgen (line 237) | def isasyncgen(object: object) -> TypeIs[AsyncGeneratorType[Any, Any]]: ...
function istraceback (line 238) | def istraceback(object: object) -> TypeIs[TracebackType]: ...
function isframe (line 239) | def isframe(object: object) -> TypeIs[FrameType]: ...
function iscode (line 240) | def iscode(object: object) -> TypeIs[CodeType]: ...
function isbuiltin (line 241) | def isbuiltin(object: object) -> TypeIs[BuiltinFunctionType]: ...
function ismethodwrapper (line 244) | def ismethodwrapper(object: object) -> TypeIs[MethodWrapperType]: ...
function isroutine (line 246) | def isroutine(
function ismethoddescriptor (line 258) | def ismethoddescriptor(object: object) -> TypeIs[MethodDescriptorType]: ...
function ismemberdescriptor (line 259) | def ismemberdescriptor(object: object) -> TypeIs[MemberDescriptorType]: ...
function isabstract (line 260) | def isabstract(object: object) -> bool: ...
function isgetsetdescriptor (line 261) | def isgetsetdescriptor(object: object) -> TypeIs[GetSetDescriptorType]: ...
function isdatadescriptor (line 262) | def isdatadescriptor(object: object) -> TypeIs[_SupportsSet[Any, Any] | ...
function findsource (line 271) | def findsource(object: _SourceObjectType) -> tuple[list[str], int]: ...
function getabsfile (line 272) | def getabsfile(object: _SourceObjectType, _filename: str | None = None) ...
function getblock (line 277) | def getblock(lines: list[str]) -> list[str]: ...
function getblock (line 279) | def getblock(lines: tuple[str, ...]) -> tuple[str, ...]: ...
function getblock (line 281) | def getblock(lines: Sequence[str]) -> Sequence[str]: ...
function getdoc (line 282) | def getdoc(object: object) -> str | None: ...
function getcomments (line 283) | def getcomments(object: object) -> str | None: ...
function getfile (line 284) | def getfile(object: _SourceObjectType) -> str: ...
function getmodule (line 285) | def getmodule(object: object, _filename: str | None = None) -> ModuleTyp...
function getsourcefile (line 286) | def getsourcefile(object: _SourceObjectType) -> str | None: ...
function getsourcelines (line 287) | def getsourcelines(object: _SourceObjectType) -> tuple[list[str], int]: ...
function getsource (line 288) | def getsource(object: _SourceObjectType) -> str: ...
function cleandoc (line 289) | def cleandoc(doc: str) -> str: ...
function indentsize (line 290) | def indentsize(line: str) -> int: ...
function signature (line 298) | def signature(
function signature (line 308) | def signature(obj: _IntrospectableCallable, *, follow_wrapped: bool = Tr...
class _void (line 310) | class _void: ...
class _empty (line 311) | class _empty: ...
class Signature (line 313) | class Signature:
method __init__ (line 314) | def __init__(
method parameters (line 319) | def parameters(self) -> types.MappingProxyType[str, Parameter]: ...
method return_annotation (line 321) | def return_annotation(self) -> Any: ...
method bind (line 322) | def bind(self, *args: Any, **kwargs: Any) -> BoundArguments: ...
method bind_partial (line 323) | def bind_partial(self, *args: Any, **kwargs: Any) -> BoundArguments: ...
method replace (line 324) | def replace(self, *, parameters: Sequence[Parameter] | type[_void] | N...
method from_callable (line 328) | def from_callable(
method from_callable (line 339) | def from_callable(cls, obj: _IntrospectableCallable, *, follow_wrapped...
method format (line 341) | def format(self, *, max_width: int | None = None) -> str: ...
method __eq__ (line 343) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 344) | def __hash__(self) -> int: ...
method __str__ (line 345) | def __str__(self) -> str: ...
function get_annotations (line 348) | def get_annotations(
class _ParameterKind (line 357) | class _ParameterKind(enum.IntEnum):
method description (line 365) | def description(self) -> str: ...
function getasyncgenstate (line 373) | def getasyncgenstate(
function getasyncgenlocals (line 376) | def getasyncgenlocals(agen: AsyncGeneratorType[Any, Any]) -> dict[str, A...
class Parameter (line 378) | class Parameter:
method __init__ (line 379) | def __init__(self, name: str, kind: _ParameterKind, *, default: Any = ...
method name (line 388) | def name(self) -> str: ...
method default (line 390) | def default(self) -> Any: ...
method kind (line 392) | def kind(self) -> _ParameterKind: ...
method annotation (line 394) | def annotation(self) -> Any: ...
method replace (line 395) | def replace(
method __eq__ (line 406) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 407) | def __hash__(self) -> int: ...
class BoundArguments (line 409) | class BoundArguments:
method args (line 412) | def args(self) -> tuple[Any, ...]: ...
method kwargs (line 414) | def kwargs(self) -> dict[str, Any]: ...
method signature (line 416) | def signature(self) -> Signature: ...
method __init__ (line 417) | def __init__(self, signature: Signature, arguments: OrderedDict[str, A...
method apply_defaults (line 418) | def apply_defaults(self) -> None: ...
method __eq__ (line 419) | def __eq__(self, other: object) -> bool: ...
function getclasstree (line 428) | def getclasstree(classes: list[type], unique: bool = False) -> _ClassTre...
function walktree (line 429) | def walktree(classes: list[type], children: Mapping[type[Any], list[type...
class Arguments (line 431) | class Arguments(NamedTuple):
function getargs (line 436) | def getargs(co: CodeType) -> Arguments: ...
class ArgSpec (line 439) | class ArgSpec(NamedTuple):
function getargspec (line 445) | def getargspec(func: object) -> ArgSpec: ...
class FullArgSpec (line 447) | class FullArgSpec(NamedTuple):
function getfullargspec (line 456) | def getfullargspec(func: object) -> FullArgSpec: ...
class ArgInfo (line 458) | class ArgInfo(NamedTuple):
function getargvalues (line 464) | def getargvalues(frame: FrameType) -> ArgInfo: ...
function formatannotation (line 465) | def formatannotation(annotation: object, base_module: str | None = None)...
function formatannotationrelativeto (line 466) | def formatannotationrelativeto(object: object) -> Callable[[object], str...
function formatargspec (line 469) | def formatargspec(
function formatargvalues (line 485) | def formatargvalues(
function getmro (line 495) | def getmro(cls: type) -> tuple[type, ...]: ...
function getcallargs (line 496) | def getcallargs(func: Callable[_P, Any], /, *args: _P.args, **kwds: _P.k...
class ClosureVars (line 498) | class ClosureVars(NamedTuple):
function getclosurevars (line 504) | def getclosurevars(func: _IntrospectableCallable) -> ClosureVars: ...
function unwrap (line 505) | def unwrap(func: Callable[..., Any], *, stop: Callable[[Callable[..., An...
class _Traceback (line 512) | class _Traceback(NamedTuple):
class Traceback (line 519) | class Traceback(_Traceback):
method __new__ (line 521) | def __new__(
class _FrameInfo (line 532) | class _FrameInfo(NamedTuple):
class FrameInfo (line 540) | class FrameInfo(_FrameInfo):
method __new__ (line 542) | def __new__(
class Traceback (line 555) | class Traceback(NamedTuple):
method __new__ (line 521) | def __new__(
class FrameInfo (line 562) | class FrameInfo(NamedTuple):
method __new__ (line 542) | def __new__(
function getframeinfo (line 570) | def getframeinfo(frame: FrameType | TracebackType, context: int = 1) -> ...
function getouterframes (line 571) | def getouterframes(frame: Any, context: int = 1) -> list[FrameInfo]: ...
function getinnerframes (line 572) | def getinnerframes(tb: TracebackType, context: int = 1) -> list[FrameInf...
function getlineno (line 573) | def getlineno(frame: FrameType) -> int: ...
function currentframe (line 574) | def currentframe() -> FrameType | None: ...
function stack (line 575) | def stack(context: int = 1) -> list[FrameInfo]: ...
function trace (line 576) | def trace(context: int = 1) -> list[FrameInfo]: ...
function getattr_static (line 582) | def getattr_static(obj: object, attr: str, default: Any | None = ...) ->...
function getgeneratorstate (line 593) | def getgeneratorstate(
function getcoroutinestate (line 602) | def getcoroutinestate(
function getgeneratorlocals (line 605) | def getgeneratorlocals(generator: Generator[Any, Any, Any]) -> dict[str,...
function getcoroutinelocals (line 606) | def getcoroutinelocals(coroutine: Coroutine[Any, Any, Any]) -> dict[str,...
class Attribute (line 612) | class Attribute(NamedTuple):
function classify_class_attrs (line 618) | def classify_class_attrs(cls: type) -> list[Attribute]: ...
class ClassFoundException (line 621) | class ClassFoundException(Exception): ...
class BufferFlags (line 624) | class BufferFlags(enum.IntFlag):
FILE: mypy/typeshed/stdlib/io.pyi
class UnsupportedOperation (line 56) | class UnsupportedOperation(OSError, ValueError): ...
class IOBase (line 57) | class IOBase(_IOBase, metaclass=abc.ABCMeta): ...
class RawIOBase (line 58) | class RawIOBase(_RawIOBase, IOBase): ...
class BufferedIOBase (line 59) | class BufferedIOBase(_BufferedIOBase, IOBase): ...
class TextIOBase (line 60) | class TextIOBase(_TextIOBase, IOBase): ...
FILE: mypy/typeshed/stdlib/ipaddress.pyi
function ip_address (line 16) | def ip_address(address: _RawIPAddress) -> IPv4Address | IPv6Address: ...
function ip_network (line 17) | def ip_network(
function ip_interface (line 20) | def ip_interface(
class _IPAddressBase (line 24) | class _IPAddressBase:
method compressed (line 26) | def compressed(self) -> str: ...
method exploded (line 28) | def exploded(self) -> str: ...
method reverse_pointer (line 30) | def reverse_pointer(self) -> str: ...
method version (line 32) | def version(self) -> int: ...
class _BaseAddress (line 34) | class _BaseAddress(_IPAddressBase):
method __add__ (line 35) | def __add__(self, other: int) -> Self: ...
method __hash__ (line 36) | def __hash__(self) -> int: ...
method __int__ (line 37) | def __int__(self) -> int: ...
method __sub__ (line 38) | def __sub__(self, other: int) -> Self: ...
method __format__ (line 40) | def __format__(self, fmt: str) -> str: ...
method __eq__ (line 42) | def __eq__(self, other: object) -> bool: ...
method __lt__ (line 43) | def __lt__(self, other: Self) -> bool: ...
method __ge__ (line 45) | def __ge__(self, other: Self) -> bool: ...
method __gt__ (line 46) | def __gt__(self, other: Self) -> bool: ...
method __le__ (line 47) | def __le__(self, other: Self) -> bool: ...
method __ge__ (line 49) | def __ge__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
method __gt__ (line 50) | def __gt__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
method __le__ (line 51) | def __le__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
class _BaseNetwork (line 53) | class _BaseNetwork(_IPAddressBase, Generic[_A]):
method __contains__ (line 56) | def __contains__(self, other: Any) -> bool: ...
method __getitem__ (line 57) | def __getitem__(self, n: int) -> _A: ...
method __iter__ (line 58) | def __iter__(self) -> Iterator[_A]: ...
method __eq__ (line 59) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 60) | def __hash__(self) -> int: ...
method __lt__ (line 61) | def __lt__(self, other: Self) -> bool: ...
method __ge__ (line 63) | def __ge__(self, other: Self) -> bool: ...
method __gt__ (line 64) | def __gt__(self, other: Self) -> bool: ...
method __le__ (line 65) | def __le__(self, other: Self) -> bool: ...
method __ge__ (line 67) | def __ge__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
method __gt__ (line 68) | def __gt__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
method __le__ (line 69) | def __le__(self, other: Self, NotImplemented: Any = ...) -> bool: ...
method address_exclude (line 71) | def address_exclude(self, other: Self) -> Iterator[Self]: ...
method broadcast_address (line 73) | def broadcast_address(self) -> _A: ...
method compare_networks (line 74) | def compare_networks(self, other: Self) -> int: ...
method hosts (line 75) | def hosts(self) -> Iterator[_A]: ...
method is_global (line 77) | def is_global(self) -> bool: ...
method is_link_local (line 79) | def is_link_local(self) -> bool: ...
method is_loopback (line 81) | def is_loopback(self) -> bool: ...
method is_multicast (line 83) | def is_multicast(self) -> bool: ...
method is_private (line 85) | def is_private(self) -> bool: ...
method is_reserved (line 87) | def is_reserved(self) -> bool: ...
method is_unspecified (line 89) | def is_unspecified(self) -> bool: ...
method num_addresses (line 91) | def num_addresses(self) -> int: ...
method overlaps (line 92) | def overlaps(self, other: _BaseNetwork[IPv4Address] | _BaseNetwork[IPv...
method prefixlen (line 94) | def prefixlen(self) -> int: ...
method subnet_of (line 95) | def subnet_of(self, other: Self) -> bool: ...
method supernet_of (line 96) | def supernet_of(self, other: Self) -> bool: ...
method subnets (line 97) | def subnets(self, prefixlen_diff: int = 1, new_prefix: int | None = No...
method supernet (line 98) | def supernet(self, prefixlen_diff: int = 1, new_prefix: int | None = N...
method with_hostmask (line 100) | def with_hostmask(self) -> str: ...
method with_netmask (line 102) | def with_netmask(self) -> str: ...
method with_prefixlen (line 104) | def with_prefixlen(self) -> str: ...
method hostmask (line 106) | def hostmask(self) -> _A: ...
class _BaseV4 (line 108) | class _BaseV4:
method version (line 110) | def version(self) -> Literal[4]: ...
method max_prefixlen (line 112) | def max_prefixlen(self) -> Literal[32]: ...
class IPv4Address (line 114) | class IPv4Address(_BaseV4, _BaseAddress):
method __init__ (line 115) | def __init__(self, address: object) -> None: ...
method is_global (line 117) | def is_global(self) -> bool: ...
method is_link_local (line 119) | def is_link_local(self) -> bool: ...
method is_loopback (line 121) | def is_loopback(self) -> bool: ...
method is_multicast (line 123) | def is_multicast(self) -> bool: ...
method is_private (line 125) | def is_private(self) -> bool: ...
method is_reserved (line 127) | def is_reserved(self) -> bool: ...
method is_unspecified (line 129) | def is_unspecified(self) -> bool: ...
method packed (line 131) | def packed(self) -> bytes: ...
method ipv6_mapped (line 134) | def ipv6_mapped(self) -> IPv6Address: ...
class IPv4Network (line 136) | class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]):
method __init__ (line 137) | def __init__(self, address: object, strict: bool = ...) -> None: ...
class IPv4Interface (line 139) | class IPv4Interface(IPv4Address):
method __eq__ (line 142) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 143) | def __hash__(self) -> int: ...
method hostmask (line 145) | def hostmask(self) -> IPv4Address: ...
method ip (line 147) | def ip(self) -> IPv4Address: ...
method with_hostmask (line 149) | def with_hostmask(self) -> str: ...
method with_netmask (line 151) | def with_netmask(self) -> str: ...
method with_prefixlen (line 153) | def with_prefixlen(self) -> str: ...
class _BaseV6 (line 155) | class _BaseV6:
method version (line 157) | def version(self) -> Literal[6]: ...
method max_prefixlen (line 159) | def max_prefixlen(self) -> Literal[128]: ...
class IPv6Address (line 161) | class IPv6Address(_BaseV6, _BaseAddress):
method __init__ (line 162) | def __init__(self, address: object) -> None: ...
method is_global (line 164) | def is_global(self) -> bool: ...
method is_link_local (line 166) | def is_link_local(self) -> bool: ...
method is_loopback (line 168) | def is_loopback(self) -> bool: ...
method is_multicast (line 170) | def is_multicast(self) -> bool: ...
method is_private (line 172) | def is_private(self) -> bool: ...
method is_reserved (line 174) | def is_reserved(self) -> bool: ...
method is_unspecified (line 176) | def is_unspecified(self) -> bool: ...
method packed (line 178) | def packed(self) -> bytes: ...
method ipv4_mapped (line 180) | def ipv4_mapped(self) -> IPv4Address | None: ...
method is_site_local (line 182) | def is_site_local(self) -> bool: ...
method sixtofour (line 184) | def sixtofour(self) -> IPv4Address | None: ...
method teredo (line 186) | def teredo(self) -> tuple[IPv4Address, IPv4Address] | None: ...
method scope_id (line 189) | def scope_id(self) -> str | None: ...
method __hash__ (line 191) | def __hash__(self) -> int: ...
method __eq__ (line 192) | def __eq__(self, other: object) -> bool: ...
class IPv6Network (line 194) | class IPv6Network(_BaseV6, _BaseNetwork[IPv6Address]):
method __init__ (line 195) | def __init__(self, address: object, strict: bool = ...) -> None: ...
method is_site_local (line 197) | def is_site_local(self) -> bool: ...
class IPv6Interface (line 199) | class IPv6Interface(IPv6Address):
method __eq__ (line 202) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 203) | def __hash__(self) -> int: ...
method hostmask (line 205) | def hostmask(self) -> IPv6Address: ...
method ip (line 207) | def ip(self) -> IPv6Address: ...
method with_hostmask (line 209) | def with_hostmask(self) -> str: ...
method with_netmask (line 211) | def with_netmask(self) -> str: ...
method with_prefixlen (line 213) | def with_prefixlen(self) -> str: ...
function v4_int_to_packed (line 215) | def v4_int_to_packed(address: int) -> bytes: ...
function v6_int_to_packed (line 216) | def v6_int_to_packed(address: int) -> bytes: ...
function summarize_address_range (line 220) | def summarize_address_range(first: IPv4Address, last: IPv4Address) -> It...
function summarize_address_range (line 222) | def summarize_address_range(first: IPv6Address, last: IPv6Address) -> It...
function summarize_address_range (line 224) | def summarize_address_range(
function collapse_addresses (line 227) | def collapse_addresses(addresses: Iterable[_N]) -> Iterator[_N]: ...
function get_mixed_type_key (line 229) | def get_mixed_type_key(obj: _A) -> tuple[int, _A]: ...
function get_mixed_type_key (line 231) | def get_mixed_type_key(obj: IPv4Network) -> tuple[int, IPv4Address, IPv4...
function get_mixed_type_key (line 233) | def get_mixed_type_key(obj: IPv6Network) -> tuple[int, IPv6Address, IPv6...
class AddressValueError (line 235) | class AddressValueError(ValueError): ...
class NetmaskValueError (line 236) | class NetmaskValueError(ValueError): ...
FILE: mypy/typeshed/stdlib/itertools.pyi
class count (line 32) | class count(Iterator[_N]):
method __new__ (line 34) | def __new__(cls) -> count[int]: ...
method __new__ (line 36) | def __new__(cls, start: _N, step: _Step = ...) -> count[_N]: ...
method __new__ (line 38) | def __new__(cls, *, step: _N) -> count[_N]: ...
method __next__ (line 39) | def __next__(self) -> _N: ...
method __iter__ (line 40) | def __iter__(self) -> Self: ...
class cycle (line 42) | class cycle(Iterator[_T]):
method __new__ (line 43) | def __new__(cls, iterable: Iterable[_T], /) -> Self: ...
method __next__ (line 44) | def __next__(self) -> _T: ...
method __iter__ (line 45) | def __iter__(self) -> Self: ...
class repeat (line 47) | class repeat(Iterator[_T]):
method __new__ (line 49) | def __new__(cls, object: _T) -> Self: ...
method __new__ (line 51) | def __new__(cls, object: _T, times: int) -> Self: ...
method __next__ (line 52) | def __next__(self) -> _T: ...
method __iter__ (line 53) | def __iter__(self) -> Self: ...
method __length_hint__ (line 54) | def __length_hint__(self) -> int: ...
class accumulate (line 56) | class accumulate(Iterator[_T]):
method __new__ (line 58) | def __new__(cls, iterable: Iterable[_T], func: None = None, *, initial...
method __new__ (line 60) | def __new__(cls, iterable: Iterable[_S], func: Callable[[_T, _S], _T],...
method __iter__ (line 61) | def __iter__(self) -> Self: ...
method __next__ (line 62) | def __next__(self) -> _T: ...
class chain (line 64) | class chain(Iterator[_T]):
method __new__ (line 65) | def __new__(cls, *iterables: Iterable[_T]) -> Self: ...
method __next__ (line 66) | def __next__(self) -> _T: ...
method __iter__ (line 67) | def __iter__(self) -> Self: ...
method from_iterable (line 70) | def from_iterable(cls: type[Any], iterable: Iterable[Iterable[_S]], /)...
method __class_getitem__ (line 72) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class compress (line 74) | class compress(Iterator[_T]):
method __new__ (line 75) | def __new__(cls, data: Iterable[_T], selectors: Iterable[Any]) -> Self...
method __iter__ (line 76) | def __iter__(self) -> Self: ...
method __next__ (line 77) | def __next__(self) -> _T: ...
class dropwhile (line 79) | class dropwhile(Iterator[_T]):
method __new__ (line 80) | def __new__(cls, predicate: _Predicate[_T], iterable: Iterable[_T], /)...
method __iter__ (line 81) | def __iter__(self) -> Self: ...
method __next__ (line 82) | def __next__(self) -> _T: ...
class filterfalse (line 84) | class filterfalse(Iterator[_T]):
method __new__ (line 85) | def __new__(cls, function: _Predicate[_T] | None, iterable: Iterable[_...
method __iter__ (line 86) | def __iter__(self) -> Self: ...
method __next__ (line 87) | def __next__(self) -> _T: ...
class groupby (line 89) | class groupby(Iterator[tuple[_T_co, Iterator[_S_co]]], Generic[_T_co, _S...
method __new__ (line 91) | def __new__(cls, iterable: Iterable[_T1], key: None = None) -> groupby...
method __new__ (line 93) | def __new__(cls, iterable: Iterable[_T1], key: Callable[[_T1], _T2]) -...
method __iter__ (line 94) | def __iter__(self) -> Self: ...
method __next__ (line 95) | def __next__(self) -> tuple[_T_co, Iterator[_S_co]]: ...
class islice (line 97) | class islice(Iterator[_T]):
method __new__ (line 99) | def __new__(cls, iterable: Iterable[_T], stop: int | None, /) -> Self:...
method __new__ (line 101) | def __new__(cls, iterable: Iterable[_T], start: int | None, stop: int ...
method __iter__ (line 102) | def __iter__(self) -> Self: ...
method __next__ (line 103) | def __next__(self) -> _T: ...
class starmap (line 105) | class starmap(Iterator[_T_co]):
method __new__ (line 106) | def __new__(cls, function: Callable[..., _T], iterable: Iterable[Itera...
method __iter__ (line 107) | def __iter__(self) -> Self: ...
method __next__ (line 108) | def __next__(self) -> _T_co: ...
class takewhile (line 110) | class takewhile(Iterator[_T]):
method __new__ (line 111) | def __new__(cls, predicate: _Predicate[_T], iterable: Iterable[_T], /)...
method __iter__ (line 112) | def __iter__(self) -> Self: ...
method __next__ (line 113) | def __next__(self) -> _T: ...
function tee (line 115) | def tee(iterable: Iterable[_T], n: int = 2, /) -> tuple[Iterator[_T], .....
class zip_longest (line 117) | class zip_longest(Iterator[_T_co]):
method __new__ (line 120) | def __new__(cls, iter1: Iterable[_T1], /, *, fillvalue: object = ...) ...
method __new__ (line 126) | def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], /) -> zip...
method __new__ (line 128) | def __new__(
method __new__ (line 133) | def __new__(
method __new__ (line 137) | def __new__(
method __new__ (line 142) | def __new__(
method __new__ (line 146) | def __new__(
method __new__ (line 151) | def __new__(
method __new__ (line 155) | def __new__(
method __new__ (line 168) | def __new__(
method __new__ (line 180) | def __new__(
method __iter__ (line 192) | def __iter__(self) -> Self: ...
method __next__ (line 193) | def __next__(self) -> _T_co: ...
class product (line 195) | class product(Iterator[_T_co]):
method __new__ (line 197) | def __new__(cls, iter1: Iterable[_T1], /) -> product[tuple[_T1]]: ...
method __new__ (line 199) | def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], /) -> pro...
method __new__ (line 201) | def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: It...
method __new__ (line 203) | def __new__(
method __new__ (line 207) | def __new__(
method __new__ (line 211) | def __new__(
method __new__ (line 222) | def __new__(
method __new__ (line 234) | def __new__(
method __new__ (line 247) | def __new__(
method __new__ (line 261) | def __new__(
method __new__ (line 276) | def __new__(cls, *iterables: Iterable[_T1], repeat: int = 1) -> produc...
method __iter__ (line 277) | def __iter__(self) -> Self: ...
method __next__ (line 278) | def __next__(self) -> _T_co: ...
class permutations (line 280) | class permutations(Iterator[_T_co]):
method __new__ (line 282) | def __new__(cls, iterable: Iterable[_T], r: Literal[2]) -> permutation...
method __new__ (line 284) | def __new__(cls, iterable: Iterable[_T], r: Literal[3]) -> permutation...
method __new__ (line 286) | def __new__(cls, iterable: Iterable[_T], r: Literal[4]) -> permutation...
method __new__ (line 288) | def __new__(cls, iterable: Iterable[_T], r: Literal[5]) -> permutation...
method __new__ (line 290) | def __new__(cls, iterable: Iterable[_T], r: int | None = ...) -> permu...
method __iter__ (line 291) | def __iter__(self) -> Self: ...
method __next__ (line 292) | def __next__(self) -> _T_co: ...
class combinations (line 294) | class combinations(Iterator[_T_co]):
method __new__ (line 296) | def __new__(cls, iterable: Iterable[_T], r: Literal[2]) -> combination...
method __new__ (line 298) | def __new__(cls, iterable: Iterable[_T], r: Literal[3]) -> combination...
method __new__ (line 300) | def __new__(cls, iterable: Iterable[_T], r: Literal[4]) -> combination...
method __new__ (line 302) | def __new__(cls, iterable: Iterable[_T], r: Literal[5]) -> combination...
method __new__ (line 304) | def __new__(cls, iterable: Iterable[_T], r: int) -> combinations[tuple...
method __iter__ (line 305) | def __iter__(self) -> Self: ...
method __next__ (line 306) | def __next__(self) -> _T_co: ...
class combinations_with_replacement (line 308) | class combinations_with_replacement(Iterator[_T_co]):
method __new__ (line 310) | def __new__(cls, iterable: Iterable[_T], r: Literal[2]) -> combination...
method __new__ (line 312) | def __new__(cls, iterable: Iterable[_T], r: Literal[3]) -> combination...
method __new__ (line 314) | def __new__(cls, iterable: Iterable[_T], r: Literal[4]) -> combination...
method __new__ (line 316) | def __new__(cls, iterable: Iterable[_T], r: Literal[5]) -> combination...
method __new__ (line 318) | def __new__(cls, iterable: Iterable[_T], r: int) -> combinations_with_...
method __iter__ (line 319) | def __iter__(self) -> Self: ...
method __next__ (line 320) | def __next__(self) -> _T_co: ...
class pairwise (line 323) | class pairwise(Iterator[_T_co]):
method __new__ (line 324) | def __new__(cls, iterable: Iterable[_T], /) -> pairwise[tuple[_T, _T]]...
method __iter__ (line 325) | def __iter__(self) -> Self: ...
method __next__ (line 326) | def __next__(self) -> _T_co: ...
class batched (line 329) | class batched(Iterator[tuple[_T_co, ...]], Generic[_T_co]):
method __new__ (line 331) | def __new__(cls, iterable: Iterable[_T_co], n: int, *, strict: bool = ...
method __new__ (line 333) | def __new__(cls, iterable: Iterable[_T_co], n: int) -> Self: ...
method __iter__ (line 335) | def __iter__(self) -> Self: ...
method __next__ (line 336) | def __next__(self) -> tuple[_T_co, ...]: ...
FILE: mypy/typeshed/stdlib/json/__init__.pyi
function dumps (line 12) | def dumps(
function dump (line 26) | def dump(
function loads (line 43) | def loads(s: str | bytes | bytearray) -> _JsonType: ...
function loads (line 45) | def loads(
function load (line 58) | def load(fp: SupportsRead[str | bytes])-> _JsonType:...
function load (line 59) | def load(
function detect_encoding (line 71) | def detect_encoding(b: bytes | bytearray) -> str: ... # undocumented
FILE: mypy/typeshed/stdlib/json/decoder.pyi
class JSONDecodeError (line 6) | class JSONDecodeError(ValueError):
method __init__ (line 12) | def __init__(self, msg: str, doc: str, pos: int) -> None: ...
class JSONDecoder (line 14) | class JSONDecoder:
method __init__ (line 21) | def __init__(
method decode (line 31) | def decode(self, s: str, _w: Callable[..., Any] = ...) -> Any: ... # ...
method raw_decode (line 32) | def raw_decode(self, s: str, idx: int = 0) -> tuple[Any, int]: ...
FILE: mypy/typeshed/stdlib/json/encoder.pyi
function py_encode_basestring (line 11) | def py_encode_basestring(s: str) -> str: ... # undocumented
function py_encode_basestring_ascii (line 12) | def py_encode_basestring_ascii(s: str) -> str: ... # undocumented
function encode_basestring (line 13) | def encode_basestring(s: str, /) -> str: ... # undocumented
function encode_basestring_ascii (line 14) | def encode_basestring_ascii(s: str, /) -> str: ... # undocumented
class JSONEncoder (line 16) | class JSONEncoder:
method __init__ (line 26) | def __init__(
method default (line 38) | def default(self, o: Any) -> Any: ...
method encode (line 39) | def encode(self, o: Any) -> str: ...
method iterencode (line 40) | def iterencode(self, o: Any, _one_shot: bool = False) -> Iterator[str]...
FILE: mypy/typeshed/stdlib/json/tool.pyi
function main (line 1) | def main() -> None: ...
FILE: mypy/typeshed/stdlib/keyword.pyi
function iskeyword (line 10) | def iskeyword(s: str, /) -> bool: ...
function issoftkeyword (line 17) | def issoftkeyword(s: str, /) -> bool: ...
FILE: mypy/typeshed/stdlib/lib2to3/btm_matcher.pyi
class BMNode (line 8) | class BMNode:
method __init__ (line 14) | def __init__(self) -> None: ...
class BottomMatcher (line 16) | class BottomMatcher:
method __init__ (line 22) | def __init__(self) -> None: ...
method add_fixer (line 23) | def add_fixer(self, fixer: BaseFix) -> None: ...
method add (line 24) | def add(self, pattern: SupportsGetItem[int | slice, Incomplete] | None...
method run (line 25) | def run(self, leaves: Iterable[Leaf]) -> defaultdict[BaseFix, list[Nod...
method print_ac (line 26) | def print_ac(self) -> None: ...
function type_repr (line 28) | def type_repr(type_num: int) -> str | int: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixer_base.pyi
class BaseFix (line 10) | class BaseFix:
method __init__ (line 25) | def __init__(self, options: MutableMapping[str, Incomplete], log: list...
method compile_pattern (line 26) | def compile_pattern(self) -> None: ...
method set_filename (line 27) | def set_filename(self, filename: StrPath) -> None: ...
method match (line 28) | def match(self, node: _N) -> Literal[False] | dict[str, _N]: ...
method transform (line 30) | def transform(self, node: Base, results: dict[str, Base]) -> Node | Le...
method new_name (line 31) | def new_name(self, template: str = "xxx_todo_changeme") -> str: ...
method log_message (line 33) | def log_message(self, message: str) -> None: ...
method cannot_convert (line 34) | def cannot_convert(self, node: Base, reason: str | None = None) -> Non...
method warning (line 35) | def warning(self, node: Base, reason: str) -> None: ...
method start_tree (line 36) | def start_tree(self, tree: Node, filename: StrPath) -> None: ...
method finish_tree (line 37) | def finish_tree(self, tree: Node, filename: StrPath) -> None: ...
class ConditionalFix (line 39) | class ConditionalFix(BaseFix, metaclass=ABCMeta):
method start_tree (line 41) | def start_tree(self, tree: Node, filename: StrPath, /) -> None: ...
method should_skip (line 42) | def should_skip(self, node: Base) -> bool: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi
class FixApply (line 5) | class FixApply(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi
class FixAsserts (line 7) | class FixAsserts(BaseFix):
method transform (line 10) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi
class FixBasestring (line 5) | class FixBasestring(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi
class FixBuffer (line 5) | class FixBuffer(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi
class FixDict (line 8) | class FixDict(fixer_base.BaseFix):
method transform (line 11) | def transform(self, node, results): ...
method in_special_context (line 16) | def in_special_context(self, node, isiter): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_except.pyi
function find_excepts (line 9) | def find_excepts(nodes: Iterable[_N]) -> Generator[tuple[_N, _N], None, ...
class FixExcept (line 11) | class FixExcept(fixer_base.BaseFix):
method transform (line 14) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi
class FixExec (line 5) | class FixExec(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi
class FixExecfile (line 5) | class FixExecfile(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi
class FixExitfunc (line 7) | class FixExitfunc(fixer_base.BaseFix):
method __init__ (line 10) | def __init__(self, *args) -> None: ...
method start_tree (line 12) | def start_tree(self, tree: Node, filename: StrPath) -> None: ...
method transform (line 13) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi
class FixFilter (line 5) | class FixFilter(fixer_base.ConditionalFix):
method transform (line 9) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi
class FixFuncattrs (line 5) | class FixFuncattrs(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_future.pyi
class FixFuture (line 5) | class FixFuture(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi
class FixGetcwdu (line 5) | class FixGetcwdu(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi
class FixHasKey (line 5) | class FixHasKey(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi
class FixIdioms (line 8) | class FixIdioms(fixer_base.BaseFix):
method match (line 11) | def match(self, node): ...
method transform (line 12) | def transform(self, node, results): ...
method transform_isinstance (line 13) | def transform_isinstance(self, node, results): ...
method transform_while (line 14) | def transform_while(self, node, results) -> None: ...
method transform_sort (line 15) | def transform_sort(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_import.pyi
function traverse_imports (line 8) | def traverse_imports(names) -> Generator[str, None, None]: ...
class FixImport (line 10) | class FixImport(fixer_base.BaseFix):
method start_tree (line 14) | def start_tree(self, tree: Node, name: StrPath) -> None: ...
method transform (line 15) | def transform(self, node, results): ...
method probably_a_local_import (line 16) | def probably_a_local_import(self, imp_name): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi
function alternates (line 10) | def alternates(members): ...
function build_pattern (line 11) | def build_pattern(mapping=...) -> Generator[str, None, None]: ...
class FixImports (line 13) | class FixImports(fixer_base.BaseFix):
method build_pattern (line 16) | def build_pattern(self): ...
method compile_pattern (line 17) | def compile_pattern(self) -> None: ...
method match (line 18) | def match(self, node): ...
method start_tree (line 20) | def start_tree(self, tree: Node, filename: StrPath) -> None: ...
method transform (line 21) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi
class FixImports2 (line 7) | class FixImports2(fix_imports.FixImports):
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_input.pyi
class FixInput (line 8) | class FixInput(fixer_base.BaseFix):
method transform (line 11) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi
class FixIntern (line 5) | class FixIntern(fixer_base.BaseFix):
method transform (line 9) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi
class FixIsinstance (line 5) | class FixIsinstance(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi
class FixItertools (line 5) | class FixItertools(fixer_base.BaseFix):
method transform (line 9) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi
class FixItertoolsImports (line 4) | class FixItertoolsImports(fixer_base.BaseFix):
method transform (line 7) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_long.pyi
class FixLong (line 4) | class FixLong(fixer_base.BaseFix):
method transform (line 7) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_map.pyi
class FixMap (line 5) | class FixMap(fixer_base.ConditionalFix):
method transform (line 9) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi
function has_metaclass (line 7) | def has_metaclass(parent): ...
function fixup_parse_tree (line 8) | def fixup_parse_tree(cls_node) -> None: ...
function fixup_simple_stmt (line 9) | def fixup_simple_stmt(parent, i, stmt_node) -> None: ...
function remove_trailing_newline (line 10) | def remove_trailing_newline(node) -> None: ...
function find_metas (line 11) | def find_metas(cls_node) -> Generator[tuple[Base, int, Base], None, None...
function fixup_indent (line 12) | def fixup_indent(suite) -> None: ...
class FixMetaclass (line 14) | class FixMetaclass(fixer_base.BaseFix):
method transform (line 17) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi
class FixMethodattrs (line 7) | class FixMethodattrs(fixer_base.BaseFix):
method transform (line 10) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi
class FixNe (line 5) | class FixNe(fixer_base.BaseFix):
method match (line 7) | def match(self, node): ...
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_next.pyi
class FixNext (line 9) | class FixNext(fixer_base.BaseFix):
method start_tree (line 14) | def start_tree(self, tree: Node, filename: StrPath) -> None: ...
method transform (line 15) | def transform(self, node, results) -> None: ...
function is_assign_target (line 17) | def is_assign_target(node): ...
function find_assign (line 18) | def find_assign(node): ...
function is_subtree (line 19) | def is_subtree(root, node): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi
class FixNonzero (line 5) | class FixNonzero(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi
class FixNumliterals (line 5) | class FixNumliterals(fixer_base.BaseFix):
method match (line 7) | def match(self, node): ...
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi
function invocation (line 4) | def invocation(s): ...
class FixOperator (line 6) | class FixOperator(fixer_base.BaseFix):
method transform (line 12) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi
class FixParen (line 5) | class FixParen(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_print.pyi
class FixPrint (line 8) | class FixPrint(fixer_base.BaseFix):
method transform (line 11) | def transform(self, node, results): ...
method add_kwarg (line 12) | def add_kwarg(self, l_nodes, s_kwd, n_expr) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi
class FixRaise (line 5) | class FixRaise(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi
class FixRawInput (line 5) | class FixRawInput(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi
class FixReduce (line 4) | class FixReduce(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi
class FixReload (line 5) | class FixReload(fixer_base.BaseFix):
method transform (line 9) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi
function alternates (line 9) | def alternates(members): ...
function build_pattern (line 10) | def build_pattern() -> Generator[str, None, None]: ...
class FixRenames (line 12) | class FixRenames(fixer_base.BaseFix):
method match (line 16) | def match(self, node): ...
method transform (line 17) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi
class FixRepr (line 5) | class FixRepr(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi
class FixSetLiteral (line 4) | class FixSetLiteral(fixer_base.BaseFix):
method transform (line 7) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi
class FixStandarderror (line 5) | class FixStandarderror(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi
class FixSysExc (line 5) | class FixSysExc(fixer_base.BaseFix):
method transform (line 9) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi
class FixThrow (line 5) | class FixThrow(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi
function is_docstring (line 6) | def is_docstring(stmt): ...
class FixTupleParams (line 8) | class FixTupleParams(fixer_base.BaseFix):
method transform (line 11) | def transform(self, node, results): ...
method transform_lambda (line 12) | def transform_lambda(self, node, results) -> None: ...
function simplify_args (line 14) | def simplify_args(node): ...
function find_params (line 15) | def find_params(node): ...
function map_to_index (line 16) | def map_to_index(param_list, prefix=..., d: Incomplete | None = ...): ...
function tuple_name (line 17) | def tuple_name(param_list): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_types.pyi
class FixTypes (line 5) | class FixTypes(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi
class FixUnicode (line 7) | class FixUnicode(fixer_base.BaseFix):
method start_tree (line 11) | def start_tree(self, tree: Node, filename: StrPath) -> None: ...
method transform (line 12) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi
function build_pattern (line 8) | def build_pattern() -> Generator[str, None, None]: ...
class FixUrllib (line 10) | class FixUrllib(FixImports):
method build_pattern (line 11) | def build_pattern(self): ...
method transform_import (line 12) | def transform_import(self, node, results) -> None: ...
method transform_member (line 13) | def transform_member(self, node, results): ...
method transform_dot (line 14) | def transform_dot(self, node, results) -> None: ...
method transform (line 15) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi
class FixWsComma (line 6) | class FixWsComma(fixer_base.BaseFix):
method transform (line 12) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi
class FixXrange (line 7) | class FixXrange(fixer_base.BaseFix):
method start_tree (line 11) | def start_tree(self, tree: Node, filename: StrPath) -> None: ...
method finish_tree (line 12) | def finish_tree(self, tree: Node, filename: StrPath) -> None: ...
method transform (line 13) | def transform(self, node, results): ...
method transform_xrange (line 14) | def transform_xrange(self, node, results) -> None: ...
method transform_range (line 15) | def transform_range(self, node, results): ...
method in_special_context (line 20) | def in_special_context(self, node): ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi
class FixXreadlines (line 5) | class FixXreadlines(fixer_base.BaseFix):
method transform (line 8) | def transform(self, node, results) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi
class FixZip (line 5) | class FixZip(fixer_base.ConditionalFix):
method transform (line 9) | def transform(self, node, results): ...
FILE: mypy/typeshed/stdlib/lib2to3/main.pyi
function diff_texts (line 8) | def diff_texts(a: str, b: str, filename: str) -> Iterator[str]: ...
class StdoutRefactoringTool (line 10) | class StdoutRefactoringTool(refactor.MultiprocessRefactoringTool):
method __init__ (line 13) | def __init__(
method log_error (line 25) | def log_error( # type: ignore[override]
method write_file (line 35) | def write_file( # type: ignore[override]
method print_output (line 39) | def print_output(self, old: str, new: str, filename: str, equal: bool)...
function warn (line 41) | def warn(msg: object) -> None: ...
function main (line 42) | def main(fixer_pkg: str, args: Sequence[AnyStr] | None = None) -> Litera...
FILE: mypy/typeshed/stdlib/lib2to3/pgen2/driver.pyi
class Driver (line 12) | class Driver:
method __init__ (line 16) | def __init__(self, grammar: Grammar, convert: _Convert | None = None, ...
method parse_tokens (line 17) | def parse_tokens(
method parse_stream_raw (line 20) | def parse_stream_raw(self, stream: IO[str], debug: bool = False) -> _N...
method parse_stream (line 21) | def parse_stream(self, stream: IO[str], debug: bool = False) -> _NL: ...
method parse_file (line 22) | def parse_file(self, filename: StrPath, encoding: str | None = None, d...
method parse_string (line 23) | def parse_string(self, text: str, debug: bool = False) -> _NL: ...
function load_grammar (line 25) | def load_grammar(
FILE: mypy/typeshed/stdlib/lib2to3/pgen2/grammar.pyi
class Grammar (line 8) | class Grammar:
method dump (line 18) | def dump(self, filename: StrPath) -> None: ...
method load (line 19) | def load(self, filename: StrPath) -> None: ...
method copy (line 20) | def copy(self) -> Self: ...
method report (line 21) | def report(self) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/pgen2/literals.pyi
function escape (line 5) | def escape(m: Match[str]) -> str: ...
function evalString (line 6) | def evalString(s: str) -> str: ...
function test (line 7) | def test() -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/pgen2/parse.pyi
class ParseError (line 11) | class ParseError(Exception):
method __init__ (line 16) | def __init__(self, msg: str, type: int, value: str | None, context: _C...
class Parser (line 18) | class Parser:
method __init__ (line 24) | def __init__(self, grammar: Grammar, convert: _Convert | None = None) ...
method setup (line 25) | def setup(self, start: int | None = None) -> None: ...
method addtoken (line 26) | def addtoken(self, type: int, value: str | None, context: _Context) ->...
method classify (line 27) | def classify(self, type: int, value: str | None, context: _Context) ->...
method shift (line 28) | def shift(self, type: int, value: str | None, newstate: int, context: ...
method push (line 29) | def push(self, type: int, newdfa: _DFAS, newstate: int, context: _Cont...
method pop (line 30) | def pop(self) -> None: ...
FILE: mypy/typeshed/stdlib/lib2to3/pgen2/pgen.pyi
class PgenGrammar (line 8) | class PgenGrammar(grammar.Grammar): ...
class ParserGenerator (line 10) | class ParserGenerator:
method __init__ (line 15) | def __init__(self, filename: StrPath, stream: IO[str] | None = None) -...
method make_grammar (line 16) | def make_grammar(self) -> PgenGrammar: ...
method make_first (line 17) | def make_first(self, c: PgenGrammar, name: str) -> dict[int, int]: ...
method make_label (line 18) | def make_label(self, c: PgenGrammar, label: str) -> int: ...
method addfirstsets (line 19) | def addfirstsets(self) -> None: ...
method calcfirst (line 20) | def calcfirst(self, name: str) -> None: ...
method parse (line 21) | def parse(self) -> tuple[dict[str, list[DFAState]], str]: ...
method make_dfa (line 22) | def make_dfa(self, start: NFAState, finish: NFAState) -> list[DFAState...
method dump_nfa (line 23) | def dump_nfa(self, name: str, start: NFAState, finish: NFAState) -> li...
method dump_dfa (line 24) | def dump_dfa(self, name: str, dfa: Iterable[DFAState]) -> None: ...
method simplify_dfa (line 25) | def simplify_dfa(self, dfa: list[DFAState]) -> None: ...
method parse_rhs (line 26) | def parse_rhs(self) -> tuple[NFAState, NFAState]: ...
method parse_alt (line 27) | def parse_alt(self) -> tuple[NFAState, NFAState]: ...
method parse_item (line 28) | def parse_item(self) -> tuple[NFAState, NFAState]: ...
method parse_atom (line 29) | def parse_atom(self) -> tuple[NFAState, NFAState]: ...
method expect (line 30) | def expect(self, type: int, value: str | None = None) -> str: ...
method gettoken (line 31) | def gettoken(self) -> None: ...
method raise_error (line 33) | def raise_error(self, msg: object) -> NoReturn: ...
method raise_error (line 35) | def raise_error(self, msg: str, *args: object) -> NoReturn: ...
class NFAState (line 37) | class NFAState:
method addarc (line 39) | def addarc(self, next: NFAState, label: str | None = None) -> None: ...
class DFAState (line 41) | class DFAState:
method __init__ (line 45) | def __init__(self, nfaset: dict[NFAState, Incomplete], final: NFAState...
method addarc (line 46) | def addarc(self, next: DFAState, label: str) -> None: ...
method unifystate (line 47) | def unifystate(self, old: DFAState, new: DFAState) -> None: ...
method __eq__ (line 48) | def __eq__(self, other: DFAState) -> bool: ... # type: ignore[override]
function generate_grammar (line 51) | def generate_grammar(filename: StrPath = "Grammar.txt") -> PgenGrammar: ...
FILE: mypy/typeshed/stdlib/lib2to3/pgen2/token.pyi
function ISTERMINAL (line 67) | def ISTERMINAL(x: int) -> bool: ...
function ISNONTERMINAL (line 68) | def ISNONTERMINAL(x: int) -> bool: ...
function ISEOF (line 69) | def ISEOF(x: int) -> bool: ...
FILE: mypy/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi
class TokenError (line 82) | class TokenError(Exception): ...
class StopTokenizing (line 83) | class StopTokenizing(Exception): ...
function tokenize (line 85) | def tokenize(readline: Callable[[], str], tokeneater: _TokenEater = ...)...
class Untokenizer (line 87) | class Untokenizer:
method add_whitespace (line 91) | def add_whitespace(self, start: _Coord) -> None: ...
method untokenize (line 92) | def untokenize(self, iterable: Iterable[_TokenInfo]) -> str: ...
method compat (line 93) | def compat(self, token: tuple[int, str], iterable: Iterable[_TokenInfo...
function untokenize (line 95) | def untokenize(iterable: Iterable[_TokenInfo]) -> str: ...
function generate_tokens (line 96) | def generate_tokens(readline: Callable[[], str]) -> Iterator[_TokenInfo]...
FILE: mypy/typeshed/stdlib/lib2to3/pygram.pyi
class Symbols (line 3) | class Symbols:
method __init__ (line 4) | def __init__(self, grammar: Grammar) -> None: ...
class python_symbols (line 6) | class python_symbols(Symbols):
class pattern_symbols (line 102) | class pattern_symbols(Symbols):
FILE: mypy/typeshed/stdlib/lib2to3/pytree.pyi
function type_repr (line 17) | def type_repr(type_num: int) -> str | int: ...
class Base (line 19) | class Base:
method __eq__ (line 26) | def __eq__(self, other: object) -> bool: ...
method _eq (line 29) | def _eq(self, other: Base) -> bool: ...
method clone (line 31) | def clone(self) -> Self: ...
method post_order (line 33) | def post_order(self) -> Iterator[Self]: ...
method pre_order (line 35) | def pre_order(self) -> Iterator[Self]: ...
method replace (line 36) | def replace(self, new: _NL | list[_NL]) -> None: ...
method get_lineno (line 37) | def get_lineno(self) -> int: ...
method changed (line 38) | def changed(self) -> None: ...
method remove (line 39) | def remove(self) -> int | None: ...
method next_sibling (line 41) | def next_sibling(self) -> _NL | None: ...
method prev_sibling (line 43) | def prev_sibling(self) -> _NL | None: ...
method leaves (line 44) | def leaves(self) -> Iterator[Leaf]: ...
method depth (line 45) | def depth(self) -> int: ...
method get_suffix (line 46) | def get_suffix(self) -> str: ...
class Node (line 48) | class Node(Base):
method __init__ (line 54) | def __init__(
method _eq (line 62) | def _eq(self, other: Base) -> bool: ...
method clone (line 63) | def clone(self) -> Node: ...
method post_order (line 64) | def post_order(self) -> Iterator[Self]: ...
method pre_order (line 65) | def pre_order(self) -> Iterator[Self]: ...
method set_child (line 66) | def set_child(self, i: int, child: _NL) -> None: ...
method insert_child (line 67) | def insert_child(self, i: int, child: _NL) -> None: ...
method append_child (line 68) | def append_child(self, child: _NL) -> None: ...
method __unicode__ (line 69) | def __unicode__(self) -> str: ...
class Leaf (line 71) | class Leaf(Base):
method __init__ (line 76) | def __init__(
method _eq (line 84) | def _eq(self, other: Base) -> bool: ...
method clone (line 85) | def clone(self) -> Leaf: ...
method post_order (line 86) | def post_order(self) -> Iterator[Self]: ...
method pre_order (line 87) | def pre_order(self) -> Iterator[Self]: ...
method __unicode__ (line 88) | def __unicode__(self) -> str: ...
function convert (line 90) | def convert(gr: Grammar, raw_node: _RawNode) -> _NL: ...
class BasePattern (line 92) | class BasePattern:
method optimize (line 96) | def optimize(self) -> BasePattern: ... # sic, subclasses are free to ...
method match (line 97) | def match(self, node: _NL, results: _Results | None = None) -> bool: ...
method match_seq (line 98) | def match_seq(self, nodes: SupportsLenAndGetItem[_NL], results: _Resul...
method generate_matches (line 99) | def generate_matches(self, nodes: SupportsGetItem[int, _NL]) -> Iterat...
class LeafPattern (line 101) | class LeafPattern(BasePattern):
method __init__ (line 102) | def __init__(self, type: int | None = None, content: str | None = None...
class NodePattern (line 104) | class NodePattern(BasePattern):
method __init__ (line 106) | def __init__(self, type: int | None = None, content: str | None = None...
class WildcardPattern (line 108) | class WildcardPattern(BasePattern):
method __init__ (line 111) | def __init__(self, content: str | None = None, min: int = 0, max: int ...
class NegatedPattern (line 113) | class NegatedPattern(BasePattern):
method __init__ (line 114) | def __init__(self, content: str | None = None) -> None: ...
function generate_matches (line 116) | def generate_matches(
FILE: mypy/typeshed/stdlib/lib2to3/refactor.pyi
function get_all_fix_names (line 14) | def get_all_fix_names(fixer_pkg: str, remove_prefix: bool = True) -> lis...
function get_fixers_from_package (line 15) | def get_fixers_from_package(pkg_name: str) -> list[str]: ...
class FixerError (line 17) | class FixerError(Exception): ...
class RefactoringTool (line 19) | class RefactoringTool:
method __init__ (line 38) | def __init__(
method get_fixers (line 41) | def get_fixers(self) -> tuple[list[BaseFix], list[BaseFix]]: ...
method log_error (line 42) | def log_error(self, msg: str, *args: Iterable[str], **kwargs: _ExcInfo...
method log_message (line 44) | def log_message(self, msg: object) -> None: ...
method log_message (line 46) | def log_message(self, msg: str, *args: object) -> None: ...
method log_debug (line 48) | def log_debug(self, msg: object) -> None: ...
method log_debug (line 50) | def log_debug(self, msg: str, *args: object) -> None: ...
method print_output (line 51) | def print_output(self, old_text: str, new_text: str, filename: StrPath...
method refactor (line 52) | def refactor(self, items: Iterable[str], write: bool = False, doctests...
method refactor_dir (line 53) | def refactor_dir(self, dir_name: str, write: bool = False, doctests_on...
method _read_python_source (line 54) | def _read_python_source(self, filename: FileDescriptorOrPath) -> tuple...
method refactor_file (line 55) | def refactor_file(self, filename: StrPath, write: bool = False, doctes...
method refactor_string (line 56) | def refactor_string(self, data: str, name: str) -> Node | None: ...
method refactor_stdin (line 57) | def refactor_stdin(self, doctests_only: bool = False) -> None: ...
method refactor_tree (line 58) | def refactor_tree(self, tree: Node, name: str) -> bool: ...
method traverse_by (line 59) | def traverse_by(self, fixers: SupportsGetItem[int, Iterable[BaseFix]] ...
method processed_file (line 60) | def processed_file(
method write_file (line 63) | def write_file(self, new_text: str, filename: FileDescriptorOrPath, ol...
method refactor_docstring (line 66) | def refactor_docstring(self, input: str, filename: StrPath) -> str: ...
method refactor_doctest (line 67) | def refactor_doctest(self, block: list[str], lineno: int, indent: int,...
method summarize (line 68) | def summarize(self) -> None: ...
method parse_block (line 69) | def parse_block(self, block: Iterable[str], lineno: int, indent: int) ...
method wrap_toks (line 70) | def wrap_toks(
method gen_lines (line 73) | def gen_lines(self, block: Iterable[str], indent: int) -> Generator[st...
class MultiprocessingUnsupported (line 75) | class MultiprocessingUnsupported(Exception): ...
class MultiprocessRefactoringTool (line 77) | class MultiprocessRefactoringTool(RefactoringTool):
method refactor (line 80) | def refactor(
FILE: mypy/typeshed/stdlib/linecache.pyi
function getline (line 18) | def getline(filename: str, lineno: int, module_globals: _ModuleGlobals |...
function clearcache (line 19) | def clearcache() -> None: ...
function getlines (line 20) | def getlines(filename: str, module_globals: _ModuleGlobals | None = None...
function checkcache (line 21) | def checkcache(filename: str | None = None) -> None: ...
function updatecache (line 22) | def updatecache(filename: str, module_globals: _ModuleGlobals | None = N...
function lazycache (line 23) | def lazycache(filename: str, module_globals: _ModuleGlobals) -> bool: ...
FILE: mypy/typeshed/stdlib/locale.pyi
class Error (line 129) | class Error(Exception): ...
function getdefaultlocale (line 131) | def getdefaultlocale(
function getlocale (line 134) | def getlocale(category: int = ...) -> tuple[_str | None, _str | None]: ...
function setlocale (line 135) | def setlocale(category: int, locale: _str | Iterable[_str | None] | None...
function getpreferredencoding (line 136) | def getpreferredencoding(do_setlocale: bool = True) -> _str: ...
function normalize (line 137) | def normalize(localename: _str) -> _str: ...
function resetlocale (line 140) | def resetlocale(category: int = ...) -> None: ...
function format (line 143) | def format(
function format_string (line 147) | def format_string(f: _str, val: Any, grouping: bool = False, monetary: b...
function currency (line 148) | def currency(val: float | Decimal, symbol: bool = True, grouping: bool =...
function delocalize (line 149) | def delocalize(string: _str) -> _str: ...
function atof (line 150) | def atof(string: _str, func: Callable[[_str], float] = ...) -> float: ...
function atoi (line 151) | def atoi(string: _str) -> int: ...
function str (line 152) | def str(val: float) -> _str: ...
FILE: mypy/typeshed/stdlib/logging/__init__.pyi
class _SupportsFilter (line 73) | class _SupportsFilter(Protocol):
method filter (line 74) | def filter(self, record: LogRecord, /) -> bool | LogRecord: ...
method filter (line 79) | def filter(self, record: LogRecord, /) -> bool: ...
class _SupportsFilter (line 78) | class _SupportsFilter(Protocol):
method filter (line 74) | def filter(self, record: LogRecord, /) -> bool | LogRecord: ...
method filter (line 79) | def filter(self, record: LogRecord, /) -> bool: ...
function currentframe (line 89) | def currentframe() -> FrameType: ...
class Filterer (line 94) | class Filterer:
method addFilter (line 96) | def addFilter(self, filter: _FilterType) -> None: ...
method removeFilter (line 97) | def removeFilter(self, filter: _FilterType) -> None: ...
method filter (line 99) | def filter(self, record: LogRecord) -> bool | LogRecord: ...
method filter (line 101) | def filter(self, record: LogRecord) -> bool: ...
class Manager (line 103) | class Manager: # undocumented
method __init__ (line 110) | def __init__(self, rootnode: RootLogger) -> None: ...
method getLogger (line 111) | def getLogger(self, name: str) -> Logger: ...
method setLoggerClass (line 112) | def setLoggerClass(self, klass: type[Logger]) -> None: ...
method setLogRecordFactory (line 113) | def setLogRecordFactory(self, factory: Callable[..., LogRecord]) -> No...
class Logger (line 115) | class Logger(Filterer):
method __init__ (line 124) | def __init__(self, name: str, level: _Level = 0) -> None: ...
method setLevel (line 125) | def setLevel(self, level: _Level) -> None: ...
method isEnabledFor (line 126) | def isEnabledFor(self, level: int) -> bool: ...
method getEffectiveLevel (line 127) | def getEffectiveLevel(self) -> int: ...
method getChild (line 128) | def getChild(self, suffix: str) -> Self: ... # see python/typing#980
method getChildren (line 130) | def getChildren(self) -> set[Logger]: ...
method debug (line 132) | def debug(
method info (line 141) | def info(
method warning (line 150) | def warning(
method warn (line 160) | def warn(
method error (line 169) | def error(
method exception (line 178) | def exception(
method critical (line 187) | def critical(
method log (line 196) | def log(
method _log (line 206) | def _log(
method addHandler (line 217) | def addHandler(self, hdlr: Handler) -> None: ...
method removeHandler (line 218) | def removeHandler(self, hdlr: Handler) -> None: ...
method findCaller (line 219) | def findCaller(self, stack_info: bool = False, stacklevel: int = 1) ->...
method handle (line 220) | def handle(self, record: LogRecord) -> None: ...
method makeRecord (line 221) | def makeRecord(
method hasHandlers (line 234) | def hasHandlers(self) -> bool: ...
method callHandlers (line 235) | def callHandlers(self, record: LogRecord) -> None: ... # undocumented
class Handler (line 246) | class Handler(Filterer):
method __init__ (line 251) | def __init__(self, level: _Level = 0) -> None: ...
method get_name (line 252) | def get_name(self) -> str: ... # undocumented
method set_name (line 253) | def set_name(self, name: str) -> None: ... # undocumented
method createLock (line 254) | def createLock(self) -> None: ...
method acquire (line 255) | def acquire(self) -> None: ...
method release (line 256) | def release(self) -> None: ...
method setLevel (line 257) | def setLevel(self, level: _Level) -> None: ...
method setFormatter (line 258) | def setFormatter(self, fmt: Formatter | None) -> None: ...
method flush (line 259) | def flush(self) -> None: ...
method close (line 260) | def close(self) -> None: ...
method handle (line 261) | def handle(self, record: LogRecord) -> bool: ...
method handleError (line 262) | def handleError(self, record: LogRecord) -> None: ...
method format (line 263) | def format(self, record: LogRecord) -> str: ...
method emit (line 264) | def emit(self, record: LogRecord) -> None: ...
function getHandlerByName (line 267) | def getHandlerByName(name: str) -> Handler | None: ...
function getHandlerNames (line 268) | def getHandlerNames() -> frozenset[str]: ...
class Formatter (line 270) | class Formatter:
method __init__ (line 282) | def __init__(
method __init__ (line 292) | def __init__(
method format (line 296) | def format(self, record: LogRecord) -> str: ...
method formatTime (line 297) | def formatTime(self, record: LogRecord, datefmt: str | None = None) ->...
method formatException (line 298) | def formatException(self, ei: _SysExcInfoType) -> str: ...
method formatMessage (line 299) | def formatMessage(self, record: LogRecord) -> str: ... # undocumented
method formatStack (line 300) | def formatStack(self, stack_info: str) -> str: ...
method usesTime (line 301) | def usesTime(self) -> bool: ... # undocumented
class BufferingFormatter (line 303) | class BufferingFormatter:
method __init__ (line 305) | def __init__(self, linefmt: Formatter | None = None) -> None: ...
method formatHeader (line 306) | def formatHeader(self, records: Sequence[LogRecord]) -> str: ...
method formatFooter (line 307) | def formatFooter(self, records: Sequence[LogRecord]) -> str: ...
method format (line 308) | def format(self, records: Sequence[LogRecord]) -> str: ...
class Filter (line 310) | class Filter:
method __init__ (line 313) | def __init__(self, name: str = "") -> None: ...
method filter (line 315) | def filter(self, record: LogRecord) -> bool | LogRecord: ...
method filter (line 317) | def filter(self, record: LogRecord) -> bool: ...
class LogRecord (line 319) | class LogRecord:
method __init__ (line 348) | def __init__(
method getMessage (line 360) | def getMessage(self) -> str: ...
method __setattr__ (line 362) | def __setattr__(self, name: str, value: Any, /) -> None: ...
class LoggerAdapter (line 366) | class LoggerAdapter(Generic[_L]):
method __init__ (line 371) | def __init__(self, logger: _L, extra: Mapping[str, object] | None = No...
method __init__ (line 373) | def __init__(self, logger: _L, extra: Mapping[str, object] | None = No...
method __init__ (line 375) | def __init__(self, logger: _L, extra: Mapping[str, object]) -> None: ...
method process (line 382) | def process(self, msg: Any, kwargs: MutableMapping[str, Any]) -> tuple...
method debug (line 383) | def debug(
method info (line 393) | def info(
method warning (line 403) | def warning(
method warn (line 414) | def warn(
method error (line 424) | def error(
method exception (line 434) | def exception(
method critical (line 444) | def critical(
method log (line 454) | def log(
method isEnabledFor (line 465) | def isEnabledFor(self, level: int) -> bool: ...
method getEffectiveLevel (line 466) | def getEffectiveLevel(self) -> int: ...
method setLevel (line 467) | def setLevel(self, level: _Level) -> None: ...
method hasHandlers (line 468) | def hasHandlers(self) -> bool: ...
method _log (line 470) | def _log(
method _log (line 481) | def _log(
method name (line 492) | def name(self) -> str: ... # undocumented
method __class_getitem__ (line 494) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function getLogger (line 496) | def getLogger(name: str | None = None) -> Logger: ...
function getLoggerClass (line 497) | def getLoggerClass() -> type[Logger]: ...
function getLogRecordFactory (line 498) | def getLogRecordFactory() -> Callable[..., LogRecord]: ...
function debug (line 499) | def debug(
function info (line 507) | def info(
function warning (line 515) | def warning(
function warn (line 524) | def warn(
function error (line 532) | def error(
function critical (line 540) | def critical(
function exception (line 548) | def exception(
function log (line 556) | def log(
function disable (line 568) | def disable(level: int = 50) -> None: ...
function addLevelName (line 569) | def addLevelName(level: int, levelName: str) -> None: ...
function getLevelName (line 571) | def getLevelName(level: int) -> str: ...
function getLevelName (line 574) | def getLevelName(level: str) -> Any: ...
function getLevelNamesMapping (line 577) | def getLevelNamesMapping() -> dict[str, int]: ...
function makeLogRecord (line 579) | def makeLogRecord(dict: Mapping[str, object]) -> LogRecord: ...
function basicConfig (line 582) | def basicConfig(
function basicConfig (line 598) | def basicConfig(
function shutdown (line 611) | def shutdown(handlerList: Sequence[Any] = ...) -> None: ... # handlerLi...
function setLoggerClass (line 612) | def setLoggerClass(klass: type[Logger]) -> None: ...
function captureWarnings (line 613) | def captureWarnings(capture: bool) -> None: ...
function setLogRecordFactory (line 614) | def setLogRecordFactory(factory: Callable[..., LogRecord]) -> None: ...
class StreamHandler (line 620) | class StreamHandler(Handler, Generic[_StreamT]):
method __init__ (line 624) | def __init__(self: StreamHandler[TextIO], stream: None = None) -> None...
method __init__ (line 626) | def __init__(self: StreamHandler[_StreamT], stream: _StreamT) -> None:...
method setStream (line 627) | def setStream(self, stream: _StreamT) -> _StreamT | None: ...
method __class_getitem__ (line 629) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class FileHandler (line 631) | class FileHandler(StreamHandler[TextIOWrapper]):
method __init__ (line 638) | def __init__(
method __init__ (line 642) | def __init__(self, filename: StrPath, mode: str = "a", encoding: str |...
method _open (line 644) | def _open(self) -> TextIOWrapper: ... # undocumented
class NullHandler (line 646) | class NullHandler(Handler): ...
class PlaceHolder (line 648) | class PlaceHolder: # undocumented
method __init__ (line 650) | def __init__(self, alogger: Logger) -> None: ...
method append (line 651) | def append(self, alogger: Logger) -> None: ...
class RootLogger (line 655) | class RootLogger(Logger):
method __init__ (line 656) | def __init__(self, level: int) -> None: ...
class PercentStyle (line 660) | class PercentStyle: # undocumented
method __init__ (line 667) | def __init__(self, fmt: str, *, defaults: Mapping[str, Any] | None = N...
method __init__ (line 669) | def __init__(self, fmt: str) -> None: ...
method usesTime (line 671) | def usesTime(self) -> bool: ...
method validate (line 672) | def validate(self) -> None: ...
method format (line 673) | def format(self, record: Any) -> str: ...
class StrFormatStyle (line 675) | class StrFormatStyle(PercentStyle): # undocumented
class StringTemplateStyle (line 679) | class StringTemplateStyle(PercentStyle): # undocumented
FILE: mypy/typeshed/stdlib/logging/config.pyi
class _RootLoggerConfiguration (line 17) | class _RootLoggerConfiguration(TypedDict, total=False):
class _RootLoggerConfiguration (line 23) | class _RootLoggerConfiguration(TypedDict, total=False):
class _LoggerConfiguration (line 28) | class _LoggerConfiguration(_RootLoggerConfiguration, TypedDict, total=Fa...
class _FilterConfigurationTypedDict (line 35) | class _FilterConfigurationTypedDict(TypedDict):
class _DictConfigArgs (line 46) | class _DictConfigArgs(TypedDict, total=False):
function dictConfig (line 61) | def dictConfig(config: _DictConfigArgs | dict[str, Any]) -> None: ...
function fileConfig (line 64) | def fileConfig(
function fileConfig (line 72) | def fileConfig(
function valid_ident (line 78) | def valid_ident(s: str) -> Literal[True]: ... # undocumented
function listen (line 79) | def listen(port: int = 9030, verify: Callable[[bytes], bytes | None] | N...
function stopListening (line 80) | def stopListening() -> None: ...
class ConvertingMixin (line 82) | class ConvertingMixin: # undocumented
method convert_with_key (line 83) | def convert_with_key(self, key: Any, value: Any, replace: bool = True)...
method convert (line 84) | def convert(self, value: Any) -> Any: ...
class ConvertingDict (line 86) | class ConvertingDict(dict[Hashable, Any], ConvertingMixin): # undocumented
method __getitem__ (line 87) | def __getitem__(self, key: Hashable) -> Any: ...
method get (line 88) | def get(self, key: Hashable, default: Any = None) -> Any: ...
method pop (line 89) | def pop(self, key: Hashable, default: Any = None) -> Any: ...
class ConvertingList (line 91) | class ConvertingList(list[Any], ConvertingMixin): # undocumented
method __getitem__ (line 93) | def __getitem__(self, key: SupportsIndex) -> Any: ...
method __getitem__ (line 95) | def __getitem__(self, key: slice) -> Any: ...
method pop (line 96) | def pop(self, idx: SupportsIndex = -1) -> Any: ...
class ConvertingTuple (line 98) | class ConvertingTuple(tuple[Any, ...], ConvertingMixin): # undocumented
method __getitem__ (line 100) | def __getitem__(self, key: SupportsIndex) -> Any: ...
method __getitem__ (line 102) | def __getitem__(self, key: slice) -> Any: ...
class BaseConfigurator (line 104) | class BaseConfigurator: # undocumented
method __init__ (line 113) | def __init__(self, config: _DictConfigArgs | dict[str, Any]) -> None: ...
method resolve (line 114) | def resolve(self, s: str) -> Any: ...
method ext_convert (line 115) | def ext_convert(self, value: str) -> Any: ...
method cfg_convert (line 116) | def cfg_convert(self, value: str) -> Any: ...
method convert (line 117) | def convert(self, value: Any) -> Any: ...
method configure_custom (line 118) | def configure_custom(self, config: dict[str, Any]) -> Any: ...
method as_tuple (line 119) | def as_tuple(self, value: list[Any] | tuple[Any, ...]) -> tuple[Any, ....
class DictConfigurator (line 121) | class DictConfigurator(BaseConfigurator):
method configure (line 122) | def configure(self) -> None: ... # undocumented
method configure_formatter (line 123) | def configure_formatter(self, config: _FormatterConfiguration) -> Form...
method configure_filter (line 124) | def configure_filter(self, config: _FilterConfiguration) -> Filter | A...
method add_filters (line 125) | def add_filters(self, filterer: Filterer, filters: Iterable[_FilterTyp...
method configure_handler (line 126) | def configure_handler(self, config: _HandlerConfiguration) -> Handler ...
method add_handlers (line 127) | def add_handlers(self, logger: Logger, handlers: Iterable[str]) -> Non...
method common_logger_config (line 128) | def common_logger_config(
method configure_logger (line 131) | def configure_logger(self, name: str, config: _LoggerConfiguration, in...
method configure_root (line 132) | def configure_root(self, config: _LoggerConfiguration, incremental: bo...
FILE: mypy/typeshed/stdlib/logging/handlers.pyi
class WatchedFileHandler (line 22) | class WatchedFileHandler(FileHandler):
method __init__ (line 26) | def __init__(
method __init__ (line 30) | def __init__(self, filename: StrPath, mode: str = "a", encoding: str |...
method _statstream (line 32) | def _statstream(self) -> None: ... # undocumented
method reopenIfNeeded (line 33) | def reopenIfNeeded(self) -> None: ...
class BaseRotatingHandler (line 35) | class BaseRotatingHandler(FileHandler):
method __init__ (line 39) | def __init__(
method __init__ (line 43) | def __init__(self, filename: StrPath, mode: str, encoding: str | None ...
method rotation_filename (line 45) | def rotation_filename(self, default_name: str) -> str: ...
method rotate (line 46) | def rotate(self, source: str, dest: str) -> None: ...
class RotatingFileHandler (line 48) | class RotatingFileHandler(BaseRotatingHandler):
method __init__ (line 52) | def __init__(
method __init__ (line 63) | def __init__(
method doRollover (line 73) | def doRollover(self) -> None: ...
method shouldRollover (line 74) | def shouldRollover(self, record: LogRecord) -> int: ... # undocumented
class TimedRotatingFileHandler (line 76) | class TimedRotatingFileHandler(BaseRotatingHandler):
method __init__ (line 87) | def __init__(
method __init__ (line 100) | def __init__(
method doRollover (line 112) | def doRollover(self) -> None: ...
method shouldRollover (line 113) | def shouldRollover(self, record: LogRecord) -> int: ... # undocumented
method computeRollover (line 114) | def computeRollover(self, currentTime: int) -> int: ... # undocumented
method getFilesToDelete (line 115) | def getFilesToDelete(self) -> list[str]: ... # undocumented
class SocketHandler (line 117) | class SocketHandler(Handler):
method __init__ (line 127) | def __init__(self, host: str, port: int | None) -> None: ...
method makeSocket (line 128) | def makeSocket(self, timeout: float = 1) -> socket: ... # timeout is ...
method makePickle (line 129) | def makePickle(self, record: LogRecord) -> bytes: ...
method send (line 130) | def send(self, s: ReadableBuffer) -> None: ...
method createSocket (line 131) | def createSocket(self) -> None: ...
class DatagramHandler (line 133) | class DatagramHandler(SocketHandler):
method makeSocket (line 134) | def makeSocket(self) -> socket: ... # type: ignore[override]
class SysLogHandler (line 136) | class SysLogHandler(Handler):
method __init__ (line 182) | def __init__(
method createSocket (line 186) | def createSocket(self) -> None: ...
method encodePriority (line 188) | def encodePriority(self, facility: int | str, priority: int | str) -> ...
method mapPriority (line 189) | def mapPriority(self, levelName: str) -> str: ...
class NTEventLogHandler (line 191) | class NTEventLogHandler(Handler):
method __init__ (line 192) | def __init__(self, appname: str, dllname: str | None = None, logtype: ...
method getEventCategory (line 193) | def getEventCategory(self, record: LogRecord) -> int: ...
method getEventType (line 195) | def getEventType(self, record: LogRecord) -> int: ...
method getMessageID (line 196) | def getMessageID(self, record: LogRecord) -> int: ...
class SMTPHandler (line 198) | class SMTPHandler(Handler):
method __init__ (line 209) | def __init__(
method getSubject (line 219) | def getSubject(self, record: LogRecord) -> str: ...
class BufferingHandler (line 221) | class BufferingHandler(Handler):
method __init__ (line 224) | def __init__(self, capacity: int) -> None: ...
method shouldFlush (line 225) | def shouldFlush(self, record: LogRecord) -> bool: ...
class MemoryHandler (line 227) | class MemoryHandler(BufferingHandler):
method __init__ (line 231) | def __init__(self, capacity: int, flushLevel: int = 40, target: Handle...
method setTarget (line 232) | def setTarget(self, target: Handler | None) -> None: ...
class HTTPHandler (line 234) | class HTTPHandler(Handler):
method __init__ (line 241) | def __init__(
method mapLogRecord (line 250) | def mapLogRecord(self, record: LogRecord) -> dict[str, Any]: ...
method getConnection (line 252) | def getConnection(self, host: str, secure: bool) -> http.client.HTTPCo...
class _QueueLike (line 254) | class _QueueLike(Protocol[_T]):
method get (line 255) | def get(self) -> _T: ...
method put_nowait (line 256) | def put_nowait(self, item: _T, /) -> None: ...
class QueueHandler (line 258) | class QueueHandler(Handler):
method __init__ (line 260) | def __init__(self, queue: _QueueLike[Any]) -> None: ...
method prepare (line 261) | def prepare(self, record: LogRecord) -> Any: ...
method enqueue (line 262) | def enqueue(self, record: LogRecord) -> None: ...
class QueueListener (line 266) | class QueueListener:
method __init__ (line 271) | def __init__(self, queue: _QueueLike[Any], *handlers: Handler, respect...
method dequeue (line 272) | def dequeue(self, block: bool) -> LogRecord: ...
method prepare (line 273) | def prepare(self, record: LogRecord) -> Any: ...
method start (line 274) | def start(self) -> None: ...
method stop (line 275) | def stop(self) -> None: ...
method enqueue_sentinel (line 276) | def enqueue_sentinel(self) -> None: ...
method handle (line 277) | def handle(self, record: LogRecord) -> None: ...
FILE: mypy/typeshed/stdlib/lzma.pyi
class LZMAFile (line 85) | class LZMAFile(BaseStream, IO[bytes]): # type: ignore[misc] # incompat...
method __init__ (line 86) | def __init__(
method __enter__ (line 96) | def __enter__(self) -> Self: ...
method peek (line 97) | def peek(self, size: int = -1) -> bytes: ...
method read (line 98) | def read(self, size: int | None = -1) -> bytes: ...
method read1 (line 99) | def read1(self, size: int = -1) -> bytes: ...
method readline (line 100) | def readline(self, size: int | None = -1) -> bytes: ...
method write (line 101) | def write(self, data: ReadableBuffer) -> int: ...
method seek (line 102) | def seek(self, offset: int, whence: int = 0) -> int: ...
function open (line 105) | def open(
function open (line 118) | def open(
function open (line 131) | def open(
function open (line 144) | def open(
function open (line 157) | def open(
function compress (line 169) | def compress(
function decompress (line 172) | def decompress(
FILE: mypy/typeshed/stdlib/mailbox.pyi
class _SupportsReadAndReadline (line 37) | class _SupportsReadAndReadline(SupportsRead[bytes], SupportsNoArgReadlin...
class _HasIteritems (line 41) | class _HasIteritems(Protocol):
method iteritems (line 42) | def iteritems(self) -> Iterator[tuple[str, _MessageData]]: ...
class _HasItems (line 44) | class _HasItems(Protocol):
method items (line 45) | def items(self) -> Iterator[tuple[str, _MessageData]]: ...
class Mailbox (line 49) | class Mailbox(Generic[_MessageT]):
method __init__ (line 53) | def __init__(self, path: StrPath, factory: Callable[[IO[Any]], _Messag...
method __init__ (line 55) | def __init__(self, path: StrPath, factory: None = None, create: bool =...
method add (line 57) | def add(self, message: _MessageData) -> str: ...
method remove (line 59) | def remove(self, key: str) -> None: ...
method __delitem__ (line 60) | def __delitem__(self, key: str) -> None: ...
method discard (line 61) | def discard(self, key: str) -> None: ...
method __setitem__ (line 63) | def __setitem__(self, key: str, message: _MessageData) -> None: ...
method get (line 65) | def get(self, key: str, default: None = None) -> _MessageT | None: ...
method get (line 67) | def get(self, key: str, default: _T) -> _MessageT | _T: ...
method __getitem__ (line 68) | def __getitem__(self, key: str) -> _MessageT: ...
method get_message (line 70) | def get_message(self, key: str) -> _MessageT: ...
method get_string (line 71) | def get_string(self, key: str) -> str: ...
method get_bytes (line 73) | def get_bytes(self, key: str) -> bytes: ...
method get_file (line 76) | def get_file(self, key: str) -> Any: ...
method iterkeys (line 78) | def iterkeys(self) -> Iterator[str]: ...
method keys (line 79) | def keys(self) -> list[str]: ...
method itervalues (line 80) | def itervalues(self) -> Iterator[_MessageT]: ...
method __iter__ (line 81) | def __iter__(self) -> Iterator[_MessageT]: ...
method values (line 82) | def values(self) -> list[_MessageT]: ...
method iteritems (line 83) | def iteritems(self) -> Iterator[tuple[str, _MessageT]]: ...
method items (line 84) | def items(self) -> list[tuple[str, _MessageT]]: ...
method __contains__ (line 86) | def __contains__(self, key: str) -> bool: ...
method __len__ (line 88) | def __len__(self) -> int: ...
method clear (line 89) | def clear(self) -> None: ...
method pop (line 91) | def pop(self, key: str, default: None = None) -> _MessageT | None: ...
method pop (line 93) | def pop(self, key: str, default: _T) -> _MessageT | _T: ...
method popitem (line 94) | def popitem(self) -> tuple[str, _MessageT]: ...
method update (line 95) | def update(self, arg: _HasIteritems | _HasItems | Iterable[tuple[str, ...
method flush (line 97) | def flush(self) -> None: ...
method lock (line 99) | def lock(self) -> None: ...
method unlock (line 101) | def unlock(self) -> None: ...
method close (line 103) | def close(self) -> None: ...
method __class_getitem__ (line 105) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class Maildir (line 107) | class Maildir(Mailbox[MaildirMessage]):
method __init__ (line 109) | def __init__(
method add (line 112) | def add(self, message: _MessageData) -> str: ...
method remove (line 113) | def remove(self, key: str) -> None: ...
method __setitem__ (line 114) | def __setitem__(self, key: str, message: _MessageData) -> None: ...
method get_message (line 115) | def get_message(self, key: str) -> MaildirMessage: ...
method get_bytes (line 116) | def get_bytes(self, key: str) -> bytes: ...
method get_file (line 117) | def get_file(self, key: str) -> _ProxyFile[bytes]: ...
method get_info (line 119) | def get_info(self, key: str) -> str: ...
method set_info (line 120) | def set_info(self, key: str, info: str) -> None: ...
method get_flags (line 121) | def get_flags(self, key: str) -> str: ...
method set_flags (line 122) | def set_flags(self, key: str, flags: str) -> None: ...
method add_flag (line 123) | def add_flag(self, key: str, flag: str) -> None: ...
method remove_flag (line 124) | def remove_flag(self, key: str, flag: str) -> None: ...
method iterkeys (line 126) | def iterkeys(self) -> Iterator[str]: ...
method __contains__ (line 127) | def __contains__(self, key: str) -> bool: ...
method __len__ (line 128) | def __len__(self) -> int: ...
method flush (line 129) | def flush(self) -> None: ...
method lock (line 130) | def lock(self) -> None: ...
method unlock (line 131) | def unlock(self) -> None: ...
method close (line 132) | def close(self) -> None: ...
method list_folders (line 133) | def list_folders(self) -> list[str]: ...
method get_folder (line 134) | def get_folder(self, folder: str) -> Maildir: ...
method add_folder (line 135) | def add_folder(self, folder: str) -> Maildir: ...
method remove_folder (line 136) | def remove_folder(self, folder: str) -> None: ...
method clean (line 137) | def clean(self) -> None: ...
method next (line 138) | def next(self) -> str | None: ...
class _singlefileMailbox (line 140) | class _singlefileMailbox(Mailbox[_MessageT], metaclass=ABCMeta):
method add (line 141) | def add(self, message: _MessageData) -> str: ...
method remove (line 142) | def remove(self, key: str) -> None: ...
method __setitem__ (line 143) | def __setitem__(self, key: str, message: _MessageData) -> None: ...
method iterkeys (line 144) | def iterkeys(self) -> Iterator[str]: ...
method __contains__ (line 145) | def __contains__(self, key: str) -> bool: ...
method __len__ (line 146) | def __len__(self) -> int: ...
method lock (line 147) | def lock(self) -> None: ...
method unlock (line 148) | def unlock(self) -> None: ...
method flush (line 149) | def flush(self) -> None: ...
method close (line 150) | def close(self) -> None: ...
class _mboxMMDF (line 152) | class _mboxMMDF(_singlefileMailbox[_MessageT]):
method get_message (line 153) | def get_message(self, key: str) -> _MessageT: ...
method get_file (line 154) | def get_file(self, key: str, from_: bool = False) -> _PartialFile[byte...
method get_bytes (line 155) | def get_bytes(self, key: str, from_: bool = False) -> bytes: ...
method get_string (line 156) | def get_string(self, key: str, from_: bool = False) -> str: ...
class mbox (line 158) | class mbox(_mboxMMDF[mboxMessage]):
method __init__ (line 159) | def __init__(self, path: StrPath, factory: Callable[[IO[Any]], mboxMes...
class MMDF (line 161) | class MMDF(_mboxMMDF[MMDFMessage]):
method __init__ (line 162) | def __init__(self, path: StrPath, factory: Callable[[IO[Any]], MMDFMes...
class MH (line 164) | class MH(Mailbox[MHMessage]):
method __init__ (line 165) | def __init__(self, path: StrPath, factory: Callable[[IO[Any]], MHMessa...
method add (line 166) | def add(self, message: _MessageData) -> str: ...
method remove (line 167) | def remove(self, key: str) -> None: ...
method __setitem__ (line 168) | def __setitem__(self, key: str, message: _MessageData) -> None: ...
method get_message (line 169) | def get_message(self, key: str) -> MHMessage: ...
method get_bytes (line 170) | def get_bytes(self, key: str) -> bytes: ...
method get_file (line 171) | def get_file(self, key: str) -> _ProxyFile[bytes]: ...
method iterkeys (line 172) | def iterkeys(self) -> Iterator[str]: ...
method __contains__ (line 173) | def __contains__(self, key: str) -> bool: ...
method __len__ (line 174) | def __len__(self) -> int: ...
method flush (line 175) | def flush(self) -> None: ...
method lock (line 176) | def lock(self) -> None: ...
method unlock (line 177) | def unlock(self) -> None: ...
method close (line 178) | def close(self) -> None: ...
method list_folders (line 179) | def list_folders(self) -> list[str]: ...
method get_folder (line 180) | def get_folder(self, folder: StrPath) -> MH: ...
method add_folder (line 181) | def add_folder(self, folder: StrPath) -> MH: ...
method remove_folder (line 182) | def remove_folder(self, folder: StrPath) -> None: ...
method get_sequences (line 183) | def get_sequences(self) -> dict[str, list[int]]: ...
method set_sequences (line 184) | def set_sequences(self, sequences: Mapping[str, Sequence[int]]) -> Non...
method pack (line 185) | def pack(self) -> None: ...
class Babyl (line 187) | class Babyl(_singlefileMailbox[BabylMessage]):
method __init__ (line 188) | def __init__(self, path: StrPath, factory: Callable[[IO[Any]], BabylMe...
method get_message (line 189) | def get_message(self, key: str) -> BabylMessage: ...
method get_bytes (line 190) | def get_bytes(self, key: str) -> bytes: ...
method get_file (line 191) | def get_file(self, key: str) -> IO[bytes]: ...
method get_labels (line 192) | def get_labels(self) -> list[str]: ...
class Message (line 194) | class Message(email.message.Message):
method __init__ (line 195) | def __init__(self, message: _MessageData | None = None) -> None: ...
class MaildirMessage (line 197) | class MaildirMessage(Message):
method get_subdir (line 198) | def get_subdir(self) -> str: ...
method set_subdir (line 199) | def set_subdir(self, subdir: Literal["new", "cur"]) -> None: ...
method get_flags (line 200) | def get_flags(self) -> str: ...
method set_flags (line 201) | def set_flags(self, flags: Iterable[str]) -> None: ...
method add_flag (line 202) | def add_flag(self, flag: str) -> None: ...
method remove_flag (line 203) | def remove_flag(self, flag: str) -> None: ...
method get_date (line 204) | def get_date(self) -> int: ...
method set_date (line 205) | def set_date(self, date: float) -> None: ...
method get_info (line 206) | def get_info(self) -> str: ...
method set_info (line 207) | def set_info(self, info: str) -> None: ...
class _mboxMMDFMessage (line 209) | class _mboxMMDFMessage(Message):
method get_from (line 210) | def get_from(self) -> str: ...
method set_from (line 211) | def set_from(self, from_: str, time_: bool | tuple[int, int, int, int,...
method get_flags (line 212) | def get_flags(self) -> str: ...
method set_flags (line 213) | def set_flags(self, flags: Iterable[str]) -> None: ...
method add_flag (line 214) | def add_flag(self, flag: str) -> None: ...
method remove_flag (line 215) | def remove_flag(self, flag: str) -> None: ...
class mboxMessage (line 217) | class mboxMessage(_mboxMMDFMessage): ...
class MHMessage (line 219) | class MHMessage(Message):
method get_sequences (line 220) | def get_sequences(self) -> list[str]: ...
method set_sequences (line 221) | def set_sequences(self, sequences: Iterable[str]) -> None: ...
method add_sequence (line 222) | def add_sequence(self, sequence: str) -> None: ...
method remove_sequence (line 223) | def remove_sequence(self, sequence: str) -> None: ...
class BabylMessage (line 225) | class BabylMessage(Message):
method get_labels (line 226) | def get_labels(self) -> list[str]: ...
method set_labels (line 227) | def set_labels(self, labels: Iterable[str]) -> None: ...
method add_label (line 228) | def add_label(self, label: str) -> None: ...
method remove_label (line 229) | def remove_label(self, label: str) -> None: ...
method get_visible (line 230) | def get_visible(self) -> Message: ...
method set_visible (line 231) | def set_visible(self, visible: _MessageData) -> None: ...
method update_visible (line 232) | def update_visible(self) -> None: ...
class MMDFMessage (line 234) | class MMDFMessage(_mboxMMDFMessage): ...
class _ProxyFile (line 236) | class _ProxyFile(Generic[AnyStr]):
method __init__ (line 237) | def __init__(self, f: IO[AnyStr], pos: int | None = None) -> None: ...
method read (line 238) | def read(self, size: int | None = None) -> AnyStr: ...
method read1 (line 239) | def read1(self, size: int | None = None) -> AnyStr: ...
method readline (line 240) | def readline(self, size: int | None = None) -> AnyStr: ...
method readlines (line 241) | def readlines(self, sizehint: int | None = None) -> list[AnyStr]: ...
method __iter__ (line 242) | def __iter__(self) -> Iterator[AnyStr]: ...
method tell (line 243) | def tell(self) -> int: ...
method seek (line 244) | def seek(self, offset: int, whence: int = 0) -> None: ...
method close (line 245) | def close(self) -> None: ...
method __enter__ (line 246) | def __enter__(self) -> Self: ...
method __exit__ (line 247) | def __exit__(self, exc_type: type[BaseException] | None, exc: BaseExce...
method readable (line 248) | def readable(self) -> bool: ...
method writable (line 249) | def writable(self) -> bool: ...
method seekable (line 250) | def seekable(self) -> bool: ...
method flush (line 251) | def flush(self) -> None: ...
method closed (line 253) | def closed(self) -> bool: ...
method __class_getitem__ (line 255) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class _PartialFile (line 257) | class _PartialFile(_ProxyFile[AnyStr]):
method __init__ (line 258) | def __init__(self, f: IO[AnyStr], start: int | None = None, stop: int ...
class Error (line 260) | class Error(Exception): ...
class NoSuchMailboxError (line 261) | class NoSuchMailboxError(Error): ...
class NotEmptyError (line 262) | class NotEmptyError(Error): ...
class ExternalClashError (line 263) | class ExternalClashError(Error): ...
class FormatError (line 264) | class FormatError(Error): ...
FILE: mypy/typeshed/stdlib/mailcap.pyi
function findmatch (line 8) | def findmatch(
function getcaps (line 11) | def getcaps() -> dict[str, list[_Cap]]: ...
FILE: mypy/typeshed/stdlib/marshal.pyi
function dump (line 32) | def dump(value: _Marshallable, file: SupportsWrite[bytes], version: int ...
function load (line 33) | def load(file: SupportsRead[bytes], /, *, allow_code: bool = True) -> An...
function dumps (line 34) | def dumps(value: _Marshallable, version: int = 4, /, *, allow_code: bool...
function loads (line 35) | def loads(bytes: ReadableBuffer, /, *, allow_code: bool = True) -> Any: ...
function dump (line 38) | def dump(value: _Marshallable, file: SupportsWrite[bytes], version: int ...
function load (line 39) | def load(file: SupportsRead[bytes], /) -> Any: ...
function dumps (line 40) | def dumps(value: _Marshallable, version: int = 4, /) -> bytes: ...
function loads (line 41) | def loads(bytes: ReadableBuffer, /) -> Any: ...
FILE: mypy/typeshed/stdlib/math.pyi
function acos (line 17) | def acos(x: _SupportsFloatOrIndex, /) -> float: ...
function acosh (line 18) | def acosh(x: _SupportsFloatOrIndex, /) -> float: ...
function asin (line 19) | def asin(x: _SupportsFloatOrIndex, /) -> float: ...
function asinh (line 20) | def asinh(x: _SupportsFloatOrIndex, /) -> float: ...
function atan (line 21) | def atan(x: _SupportsFloatOrIndex, /) -> float: ...
function atan2 (line 22) | def atan2(y: _SupportsFloatOrIndex, x: _SupportsFloatOrIndex, /) -> floa...
function atanh (line 23) | def atanh(x: _SupportsFloatOrIndex, /) -> float: ...
function cbrt (line 26) | def cbrt(x: _SupportsFloatOrIndex, /) -> float: ...
class _SupportsCeil (line 28) | class _SupportsCeil(Protocol[_T_co]):
method __ceil__ (line 29) | def __ceil__(self) -> _T_co: ...
function ceil (line 32) | def ceil(x: _SupportsCeil[_T], /) -> _T: ...
function ceil (line 34) | def ceil(x: _SupportsFloatOrIndex, /) -> int: ...
function comb (line 35) | def comb(n: SupportsIndex, k: SupportsIndex, /) -> int: ...
function copysign (line 36) | def copysign(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, /) -> f...
function cos (line 37) | def cos(x: _SupportsFloatOrIndex, /) -> float: ...
function cosh (line 38) | def cosh(x: _SupportsFloatOrIndex, /) -> float: ...
function degrees (line 39) | def degrees(x: _SupportsFloatOrIndex, /) -> float: ...
function dist (line 40) | def dist(p: Iterable[_SupportsFloatOrIndex], q: Iterable[_SupportsFloatO...
function erf (line 41) | def erf(x: _SupportsFloatOrIndex, /) -> float: ...
function erfc (line 42) | def erfc(x: _SupportsFloatOrIndex, /) -> float: ...
function exp (line 43) | def exp(x: _SupportsFloatOrIndex, /) -> float: ...
function exp2 (line 46) | def exp2(x: _SupportsFloatOrIndex, /) -> float: ...
function expm1 (line 48) | def expm1(x: _SupportsFloatOrIndex, /) -> float: ...
function fabs (line 49) | def fabs(x: _SupportsFloatOrIndex, /) -> float: ...
function factorial (line 50) | def factorial(x: SupportsIndex, /) -> int: ...
class _SupportsFloor (line 52) | class _SupportsFloor(Protocol[_T_co]):
method __floor__ (line 53) | def __floor__(self) -> _T_co: ...
function floor (line 56) | def floor(x: _SupportsFloor[_T], /) -> _T: ...
function floor (line 58) | def floor(x: _SupportsFloatOrIndex, /) -> int: ...
function fmod (line 59) | def fmod(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, /) -> float...
function frexp (line 60) | def frexp(x: _SupportsFloatOrIndex, /) -> tuple[float, int]: ...
function fsum (line 61) | def fsum(seq: Iterable[_SupportsFloatOrIndex], /) -> float: ...
function gamma (line 62) | def gamma(x: _SupportsFloatOrIndex, /) -> float: ...
function gcd (line 65) | def gcd(*integers: SupportsIndex) -> int: ...
function gcd (line 68) | def gcd(x: SupportsIndex, y: SupportsIndex, /) -> int: ...
function hypot (line 70) | def hypot(*coordinates: _SupportsFloatOrIndex) -> float: ...
function isclose (line 71) | def isclose(
function isinf (line 78) | def isinf(x: _SupportsFloatOrIndex, /) -> bool: ...
function isfinite (line 79) | def isfinite(x: _SupportsFloatOrIndex, /) -> bool: ...
function isnan (line 80) | def isnan(x: _SupportsFloatOrIndex, /) -> bool: ...
function isqrt (line 81) | def isqrt(n: SupportsIndex, /) -> int: ...
function lcm (line 84) | def lcm(*integers: SupportsIndex) -> int: ...
function ldexp (line 86) | def ldexp(x: _SupportsFloatOrIndex, i: int, /) -> float: ...
function lgamma (line 87) | def lgamma(x: _SupportsFloatOrIndex, /) -> float: ...
function log (line 88) | def log(x: _SupportsFloatOrIndex, base: _SupportsFloatOrIndex = ...) -> ...
function log10 (line 89) | def log10(x: _SupportsFloatOrIndex, /) -> float: ...
function log1p (line 90) | def log1p(x: _SupportsFloatOrIndex, /) -> float: ...
function log2 (line 91) | def log2(x: _SupportsFloatOrIndex, /) -> float: ...
function modf (line 92) | def modf(x: _SupportsFloatOrIndex, /) -> tuple[float, float]: ...
function nextafter (line 95) | def nextafter(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, /, *, ...
function nextafter (line 98) | def nextafter(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, /) -> ...
function perm (line 100) | def perm(n: SupportsIndex, k: SupportsIndex | None = None, /) -> int: ...
function pow (line 101) | def pow(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, /) -> float:...
function prod (line 103) | def prod(iterable: Iterable[SupportsIndex], /, *, start: SupportsIndex =...
function prod (line 105) | def prod(iterable: Iterable[_SupportsFloatOrIndex], /, *, start: _Suppor...
function radians (line 106) | def radians(x: _SupportsFloatOrIndex, /) -> float: ...
function remainder (line 107) | def remainder(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, /) -> ...
function sin (line 108) | def sin(x: _SupportsFloatOrIndex, /) -> float: ...
function sinh (line 109) | def sinh(x: _SupportsFloatOrIndex, /) -> float: ...
function sumprod (line 112) | def sumprod(p: Iterable[float], q: Iterable[float], /) -> float: ...
function sqrt (line 114) | def sqrt(x: _SupportsFloatOrIndex, /) -> float: ...
function tan (line 115) | def tan(x: _SupportsFloatOrIndex, /) -> float: ...
function tanh (line 116) | def tanh(x: _SupportsFloatOrIndex, /) -> float: ...
class _SupportsTrunc (line 119) | class _SupportsTrunc(Protocol[_T_co]):
method __trunc__ (line 120) | def __trunc__(self) -> _T_co: ...
function trunc (line 122) | def trunc(x: _SupportsTrunc[_T], /) -> _T: ...
function ulp (line 125) | def ulp(x: _SupportsFloatOrIndex, /) -> float: ...
function fma (line 128) | def fma(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, z: _Supports...
FILE: mypy/typeshed/stdlib/mimetypes.pyi
function guess_type (line 25) | def guess_type(url: StrPath, strict: bool = True) -> tuple[str | None, s...
function guess_all_extensions (line 26) | def guess_all_extensions(type: str, strict: bool = True) -> list[str]: ...
function guess_extension (line 27) | def guess_extension(type: str, strict: bool = True) -> str | None: ...
function init (line 28) | def init(files: Sequence[str] | None = None) -> None: ...
function read_mime_types (line 29) | def read_mime_types(file: str) -> dict[str, str] | None: ...
function add_type (line 30) | def add_type(type: str, ext: str, strict: bool = True) -> None: ...
function guess_file_type (line 33) | def guess_file_type(path: StrPath, *, strict: bool = True) -> tuple[str ...
class MimeTypes (line 42) | class MimeTypes:
method __init__ (line 47) | def __init__(self, filenames: tuple[str, ...] = (), strict: bool = Tru...
method add_type (line 48) | def add_type(self, type: str, ext: str, strict: bool = True) -> None: ...
method guess_extension (line 49) | def guess_extension(self, type: str, strict: bool = True) -> str | Non...
method guess_type (line 50) | def guess_type(self, url: StrPath, strict: bool = True) -> tuple[str |...
method guess_all_extensions (line 51) | def guess_all_extensions(self, type: str, strict: bool = True) -> list...
method read (line 52) | def read(self, filename: str, strict: bool = True) -> None: ...
method readfp (line 53) | def readfp(self, fp: IO[str], strict: bool = True) -> None: ...
method read_windows_registry (line 54) | def read_windows_registry(self, strict: bool = True) -> None: ...
method guess_file_type (line 56) | def guess_file_type(self, path: StrPath, *, strict: bool = True) -> tu...
FILE: mypy/typeshed/stdlib/mmap.pyi
class mmap (line 33) | class mmap:
method __init__ (line 35) | def __init__(self, fileno: int, length: int, tagname: str | None = ......
method __new__ (line 38) | def __new__(
method __new__ (line 50) | def __new__(
method close (line 54) | def close(self) -> None: ...
method flush (line 55) | def flush(self, offset: int = ..., size: int = ...) -> None: ...
method move (line 56) | def move(self, dest: int, src: int, count: int) -> None: ...
method read_byte (line 57) | def read_byte(self) -> int: ...
method readline (line 58) | def readline(self) -> bytes: ...
method resize (line 59) | def resize(self, newsize: int) -> None: ...
method seek (line 60) | def seek(self, pos: int, whence: int = ...) -> None: ...
method size (line 61) | def size(self) -> int: ...
method tell (line 62) | def tell(self) -> int: ...
method write_byte (line 63) | def write_byte(self, byte: int) -> None: ...
method __len__ (line 64) | def __len__(self) -> int: ...
method madvise (line 67) | def madvise(self, option: int, start: int = ..., length: int = ...) ->...
method find (line 69) | def find(self, sub: ReadableBuffer, start: int = ..., stop: int = ...)...
method rfind (line 70) | def rfind(self, sub: ReadableBuffer, start: int = ..., stop: int = ......
method read (line 71) | def read(self, n: int | None = ...) -> bytes: ...
method write (line 72) | def write(self, bytes: ReadableBuffer) -> int: ...
method __getitem__ (line 74) | def __getitem__(self, key: int, /) -> int: ...
method __getitem__ (line 76) | def __getitem__(self, key: slice, /) -> bytes: ...
method __delitem__ (line 77) | def __delitem__(self, key: int | slice, /) -> NoReturn: ...
method __setitem__ (line 79) | def __setitem__(self, key: int, value: int, /) -> None: ...
method __setitem__ (line 81) | def __setitem__(self, key: slice, value: ReadableBuffer, /) -> None: ...
method __contains__ (line 84) | def __contains__(self, o: object, /) -> bool: ...
method __iter__ (line 87) | def __iter__(self) -> Iterator[int]: ...
method __enter__ (line 88) | def __enter__(self) -> Self: ...
method __exit__ (line 89) | def __exit__(self, *args: Unused) -> None: ...
method __buffer__ (line 90) | def __buffer__(self, flags: int, /) -> memoryview: ...
method __release_buffer__ (line 91) | def __release_buffer__(self, buffer: memoryview, /) -> None: ...
method seekable (line 93) | def seekable(self) -> Literal[True]: ...
FILE: mypy/typeshed/stdlib/modulefinder.pyi
function AddPackagePath (line 16) | def AddPackagePath(packagename: str, path: str) -> None: ...
function ReplacePackage (line 20) | def ReplacePackage(oldname: str, newname: str) -> None: ...
class Module (line 22) | class Module: # undocumented
method __init__ (line 23) | def __init__(self, name: str, file: str | None = None, path: str | Non...
class ModuleFinder (line 25) | class ModuleFinder:
method __init__ (line 34) | def __init__(
method msg (line 41) | def msg(self, level: int, str: str, *args: Any) -> None: ... # undocu...
method msgin (line 42) | def msgin(self, *args: Any) -> None: ... # undocumented
method msgout (line 43) | def msgout(self, *args: Any) -> None: ... # undocumented
method run_script (line 44) | def run_script(self, pathname: str) -> None: ...
method load_file (line 45) | def load_file(self, pathname: str) -> None: ... # undocumented
method import_hook (line 46) | def import_hook(
method determine_parent (line 49) | def determine_parent(self, caller: Module | None, level: int = -1) -> ...
method find_head_package (line 50) | def find_head_package(self, parent: Module, name: str) -> tuple[Module...
method load_tail (line 51) | def load_tail(self, q: Module, tail: str) -> Module: ... # undocumented
method ensure_fromlist (line 52) | def ensure_fromlist(self, m: Module, fromlist: Iterable[str], recursiv...
method find_all_submodules (line 53) | def find_all_submodules(self, m: Module) -> Iterable[str]: ... # undo...
method import_module (line 54) | def import_module(self, partname: str, fqname: str, parent: Module) ->...
method load_module (line 55) | def load_module(self, fqname: str, fp: IO[str], pathname: str, file_in...
method scan_opcodes (line 56) | def scan_opcodes(self, co: CodeType) -> Iterator[tuple[str, tuple[Any,...
method scan_code (line 57) | def scan_code(self, co: CodeType, m: Module) -> None: ... # undocumented
method load_package (line 58) | def load_package(self, fqname: str, pathname: str) -> Module: ... # u...
method add_module (line 59) | def add_module(self, fqname: str) -> Module: ... # undocumented
method find_module (line 60) | def find_module(
method report (line 63) | def report(self) -> None: ...
method any_missing (line 64) | def any_missing(self) -> list[str]: ... # undocumented
method any_missing_maybe (line 65) | def any_missing_maybe(self) -> tuple[list[str], list[str]]: ... # und...
method replace_paths_in_code (line 66) | def replace_paths_in_code(self, co: CodeType) -> CodeType: ... # undo...
function test (line 68) | def test() -> ModuleFinder | None: ... # undocumented
FILE: mypy/typeshed/stdlib/msilib/__init__.pyi
class Table (line 25) | class Table:
method __init__ (line 28) | def __init__(self, name: str) -> None: ...
method add_field (line 29) | def add_field(self, index: int, name: str, type: int) -> None: ...
method sql (line 30) | def sql(self) -> str: ...
method create (line 31) | def create(self, db: _Database) -> None: ...
class _Unspecified (line 33) | class _Unspecified: ...
function change_sequence (line 35) | def change_sequence(
function add_data (line 41) | def add_data(db: _Database, table: str, values: Iterable[tuple[Any, ...]...
function add_stream (line 42) | def add_stream(db: _Database, name: str, path: str) -> None: ...
function init_database (line 43) | def init_database(
function add_tables (line 46) | def add_tables(db: _Database, module: ModuleType) -> None: ...
function make_id (line 47) | def make_id(str: str) -> str: ...
function gen_uuid (line 48) | def gen_uuid() -> str: ...
class CAB (line 50) | class CAB:
method __init__ (line 55) | def __init__(self, name: str) -> None: ...
method gen_id (line 56) | def gen_id(self, file: str) -> str: ...
method append (line 57) | def append(self, full: str, file: str, logical: str) -> tuple[int, str...
method commit (line 58) | def commit(self, db: _Database) -> None: ...
class Directory (line 62) | class Directory:
method __init__ (line 74) | def __init__(
method start_component (line 84) | def start_component(
method make_short (line 92) | def make_short(self, file: str) -> str: ...
method add_file (line 93) | def add_file(self, file: str, src: str | None = None, version: str | N...
method glob (line 94) | def glob(self, pattern: str, exclude: Container[str] | None = None) ->...
method remove_pyc (line 95) | def remove_pyc(self) -> None: ...
class Binary (line 97) | class Binary:
method __init__ (line 99) | def __init__(self, fname: str) -> None: ...
class Feature (line 101) | class Feature:
method __init__ (line 103) | def __init__(
method set_current (line 115) | def set_current(self) -> None: ...
class Control (line 117) | class Control:
method __init__ (line 120) | def __init__(self, dlg: Dialog, name: str) -> None: ...
method event (line 121) | def event(self, event: str, argument: str, condition: str = "1", order...
method mapping (line 122) | def mapping(self, event: str, attribute: str) -> None: ...
method condition (line 123) | def condition(self, action: str, condition: str) -> None: ...
class RadioButtonGroup (line 125) | class RadioButtonGroup(Control):
method __init__ (line 128) | def __init__(self, dlg: Dialog, name: str, property: str) -> None: ...
method add (line 129) | def add(self, name: str, x: int, y: int, w: int, h: int, text: str, va...
class Dialog (line 131) | class Dialog:
method __init__ (line 138) | def __init__(
method control (line 152) | def control(
method text (line 166) | def text(self, name: str, x: int, y: int, w: int, h: int, attr: int, t...
method bitmap (line 167) | def bitmap(self, name: str, x: int, y: int, w: int, h: int, text: str ...
method line (line 168) | def line(self, name: str, x: int, y: int, w: int, h: int) -> Control: ...
method pushbutton (line 169) | def pushbutton(
method radiogroup (line 172) | def radiogroup(
method checkbox (line 175) | def checkbox(
FILE: mypy/typeshed/stdlib/msvcrt.pyi
function locking (line 16) | def locking(fd: int, mode: int, nbytes: int, /) -> None: ...
function setmode (line 17) | def setmode(fd: int, mode: int, /) -> int: ...
function open_osfhandle (line 18) | def open_osfhandle(handle: int, flags: int, /) -> int: ...
function get_osfhandle (line 19) | def get_osfhandle(fd: int, /) -> int: ...
function kbhit (line 20) | def kbhit() -> bool: ...
function getch (line 21) | def getch() -> bytes: ...
function getwch (line 22) | def getwch() -> str: ...
function getche (line 23) | def getche() -> bytes: ...
function getwche (line 24) | def getwche() -> str: ...
function putch (line 25) | def putch(char: bytes | bytearray, /) -> None: ...
function putwch (line 26) | def putwch(unicode_char: str, /) -> None: ...
function ungetch (line 27) | def ungetch(char: bytes | bytearray, /) -> None: ...
function ungetwch (line 28) | def ungetwch(unicode_char: str, /) -> None: ...
function heapmin (line 29) | def heapmin() -> None: ...
function SetErrorMode (line 30) | def SetErrorMode(mode: int, /) -> int: ...
function GetErrorMode (line 32) | def GetErrorMode() -> int: ... # undocumented
FILE: mypy/typeshed/stdlib/multiprocessing/connection.pyi
class _ConnectionBase (line 18) | class _ConnectionBase(Generic[_SendT, _RecvT]):
method __init__ (line 19) | def __init__(self, handle: SupportsIndex, readable: bool = True, writa...
method closed (line 21) | def closed(self) -> bool: ... # undocumented
method readable (line 23) | def readable(self) -> bool: ... # undocumented
method writable (line 25) | def writable(self) -> bool: ... # undocumented
method fileno (line 26) | def fileno(self) -> int: ...
method close (line 27) | def close(self) -> None: ...
method send_bytes (line 28) | def send_bytes(self, buf: ReadableBuffer, offset: int = 0, size: int |...
method send (line 29) | def send(self, obj: _SendT) -> None: ...
method recv_bytes (line 30) | def recv_bytes(self, maxlength: int | None = None) -> bytes: ...
method recv_bytes_into (line 31) | def recv_bytes_into(self, buf: Any, offset: int = 0) -> int: ...
method recv (line 32) | def recv(self) -> _RecvT: ...
method poll (line 33) | def poll(self, timeout: float | None = 0.0) -> bool: ...
method __enter__ (line 34) | def __enter__(self) -> Self: ...
method __exit__ (line 35) | def __exit__(
method __del__ (line 38) | def __del__(self) -> None: ...
class Connection (line 40) | class Connection(_ConnectionBase[_SendT, _RecvT]): ...
class PipeConnection (line 43) | class PipeConnection(_ConnectionBase[_SendT, _RecvT]): ...
class Listener (line 45) | class Listener:
method __init__ (line 46) | def __init__(
method accept (line 49) | def accept(self) -> Connection[Incomplete, Incomplete]: ...
method close (line 50) | def close(self) -> None: ...
method address (line 52) | def address(self) -> _Address: ...
method last_accepted (line 54) | def last_accepted(self) -> _Address | None: ...
method __enter__ (line 55) | def __enter__(self) -> Self: ...
method __exit__ (line 56) | def __exit__(
function deliver_challenge (line 62) | def deliver_challenge(connection: Connection[Any, Any], authkey: bytes, ...
function deliver_challenge (line 65) | def deliver_challenge(connection: Connection[Any, Any], authkey: bytes) ...
function answer_challenge (line 67) | def answer_challenge(connection: Connection[Any, Any], authkey: bytes) -...
function wait (line 68) | def wait(
function Client (line 71) | def Client(address: _Address, family: str | None = None, authkey: bytes ...
function Pipe (line 80) | def Pipe(duplex: bool = True) -> tuple[Connection[Any, Any], Connection[...
function Pipe (line 83) | def Pipe(duplex: bool = True) -> tuple[PipeConnection[Any, Any], PipeCon...
FILE: mypy/typeshed/stdlib/multiprocessing/context.pyi
class ProcessError (line 26) | class ProcessError(Exception): ...
class BufferTooShort (line 27) | class BufferTooShort(ProcessError): ...
class TimeoutError (line 28) | class TimeoutError(ProcessError): ...
class AuthenticationError (line 29) | class AuthenticationError(ProcessError): ...
class BaseContext (line 31) | class BaseContext:
method current_process (line 40) | def current_process() -> BaseProcess: ...
method parent_process (line 42) | def parent_process() -> BaseProcess | None: ...
method active_children (line 44) | def active_children() -> list[BaseProcess]: ...
method cpu_count (line 45) | def cpu_count(self) -> int: ...
method Manager (line 46) | def Manager(self) -> SyncManager: ...
method Pipe (line 55) | def Pipe(self, duplex: bool = True) -> tuple[Connection[Any, Any], Con...
method Pipe (line 57) | def Pipe(self, duplex: bool = True) -> tuple[PipeConnection[Any, Any],...
method Barrier (line 59) | def Barrier(
method BoundedSemaphore (line 62) | def BoundedSemaphore(self, value: int = 1) -> synchronize.BoundedSemap...
method Condition (line 63) | def Condition(self, lock: _LockLike | None = None) -> synchronize.Cond...
method Event (line 64) | def Event(self) -> synchronize.Event: ...
method Lock (line 65) | def Lock(self) -> synchronize.Lock: ...
method RLock (line 66) | def RLock(self) -> synchronize.RLock: ...
method Semaphore (line 67) | def Semaphore(self, value: int = 1) -> synchronize.Semaphore: ...
method Queue (line 68) | def Queue(self, maxsize: int = 0) -> queues.Queue[Any]: ...
method JoinableQueue (line 69) | def JoinableQueue(self, maxsize: int = 0) -> queues.JoinableQueue[Any]...
method SimpleQueue (line 70) | def SimpleQueue(self) -> queues.SimpleQueue[Any]: ...
method Pool (line 71) | def Pool(
method RawValue (line 79) | def RawValue(self, typecode_or_type: type[_CT], *args: Any) -> _CT: ...
method RawValue (line 81) | def RawValue(self, typecode_or_type: str, *args: Any) -> Any: ...
method RawArray (line 83) | def RawArray(self, typecode_or_type: type[_CT], size_or_initializer: i...
method RawArray (line 85) | def RawArray(self, typecode_or_type: str, size_or_initializer: int | S...
method Value (line 87) | def Value(
method Value (line 91) | def Value(self, typecode_or_type: type[_CT], *args: Any, lock: Literal...
method Value (line 93) | def Value(self, typecode_or_type: type[_CT], *args: Any, lock: Literal...
method Value (line 95) | def Value(self, typecode_or_type: str, *args: Any, lock: Literal[True]...
method Value (line 97) | def Value(self, typecode_or_type: str | type[_CData], *args: Any, lock...
method Array (line 99) | def Array(
method Array (line 103) | def Array(
method Array (line 107) | def Array(
method Array (line 115) | def Array(
method Array (line 119) | def Array(
method freeze_support (line 122) | def freeze_support(self) -> None: ...
method get_logger (line 123) | def get_logger(self) -> Logger: ...
method log_to_stderr (line 124) | def log_to_stderr(self, level: _LoggingLevel | None = None) -> Logger:...
method allow_connection_pickling (line 125) | def allow_connection_pickling(self) -> None: ...
method set_executable (line 126) | def set_executable(self, executable: str) -> None: ...
method set_forkserver_preload (line 127) | def set_forkserver_preload(self, module_names: list[str]) -> None: ...
method get_context (line 130) | def get_context(self, method: None = None) -> DefaultContext: ...
method get_context (line 132) | def get_context(self, method: Literal["spawn"]) -> SpawnContext: ...
method get_context (line 134) | def get_context(self, method: Literal["fork"]) -> ForkContext: ...
method get_context (line 136) | def get_context(self, method: Literal["forkserver"]) -> ForkServerCont...
method get_context (line 138) | def get_context(self, method: str) -> BaseContext: ...
method get_context (line 141) | def get_context(self, method: None = None) -> DefaultContext: ...
method get_context (line 143) | def get_context(self, method: Literal["spawn"]) -> SpawnContext: ...
method get_context (line 145) | def get_context(self, method: str) -> BaseContext: ...
method get_start_method (line 148) | def get_start_method(self, allow_none: Literal[False] = False) -> str:...
method get_start_method (line 150) | def get_start_method(self, allow_none: bool) -> str | None: ...
method set_start_method (line 151) | def set_start_method(self, method: str | None, force: bool = False) ->...
method reducer (line 153) | def reducer(self) -> str: ...
method reducer (line 155) | def reducer(self, reduction: str) -> None: ...
method _check_available (line 156) | def _check_available(self) -> None: ...
class Process (line 158) | class Process(BaseProcess):
method _Popen (line 161) | def _Popen(process_obj: BaseProcess) -> DefaultContext: ...
class DefaultContext (line 163) | class DefaultContext(BaseContext):
method __init__ (line 165) | def __init__(self, context: BaseContext) -> None: ...
method get_start_method (line 166) | def get_start_method(self, allow_none: bool = False) -> str: ...
method get_all_start_methods (line 167) | def get_all_start_methods(self) -> list[str]: ...
class SpawnProcess (line 171) | class SpawnProcess(BaseProcess):
method _Popen (line 175) | def _Popen(process_obj: BaseProcess) -> popen_spawn_posix.Popen: ...
method _Popen (line 178) | def _Popen(process_obj: BaseProcess) -> popen_spawn_win32.Popen: ...
class SpawnContext (line 180) | class SpawnContext(BaseContext):
class ForkProcess (line 185) | class ForkProcess(BaseProcess):
method _Popen (line 188) | def _Popen(process_obj: BaseProcess) -> popen_fork.Popen: ...
class ForkServerProcess (line 190) | class ForkServerProcess(BaseProcess):
method _Popen (line 193) | def _Popen(process_obj: BaseProcess) -> popen_forkserver.Popen: ...
class ForkContext (line 195) | class ForkContext(BaseContext):
class ForkServerContext (line 199) | class ForkServerContext(BaseContext):
function _force_start_method (line 203) | def _force_start_method(method: str) -> None: ...
function get_spawning_popen (line 204) | def get_spawning_popen() -> Any | None: ...
function set_spawning_popen (line 205) | def set_spawning_popen(popen: Any) -> None: ...
function assert_spawning (line 206) | def assert_spawning(obj: Any) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/dummy/__init__.pyi
class DummyProcess (line 40) | class DummyProcess(threading.Thread):
method exitcode (line 46) | def exitcode(self) -> Literal[0] | None: ...
method __init__ (line 47) | def __init__(
class Namespace (line 58) | class Namespace:
method __init__ (line 59) | def __init__(self, **kwds: Any) -> None: ...
method __getattr__ (line 60) | def __getattr__(self, name: str, /) -> Any: ...
method __setattr__ (line 61) | def __setattr__(self, name: str, value: Any, /) -> None: ...
class Value (line 63) | class Value:
method __init__ (line 67) | def __init__(self, typecode: Any, value: Any, lock: Any = True) -> Non...
function Array (line 69) | def Array(typecode: Any, sequence: Sequence[Any], lock: Any = True) -> a...
function Manager (line 70) | def Manager() -> Any: ...
function Pool (line 71) | def Pool(processes: int | None = None, initializer: Callable[..., object...
function active_children (line 72) | def active_children() -> list[Any]: ...
function freeze_support (line 76) | def freeze_support() -> None: ...
function shutdown (line 77) | def shutdown() -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/dummy/connection.pyi
class Connection (line 11) | class Connection:
method __enter__ (line 18) | def __enter__(self) -> Self: ...
method __exit__ (line 19) | def __exit__(
method __init__ (line 22) | def __init__(self, _in: Any, _out: Any) -> None: ...
method close (line 23) | def close(self) -> None: ...
method poll (line 24) | def poll(self, timeout: float = 0.0) -> bool: ...
class Listener (line 26) | class Listener:
method address (line 29) | def address(self) -> Queue[Any] | None: ...
method __enter__ (line 30) | def __enter__(self) -> Self: ...
method __exit__ (line 31) | def __exit__(
method __init__ (line 34) | def __init__(self, address: _Address | None = None, family: int | None...
method accept (line 35) | def accept(self) -> Connection: ...
method close (line 36) | def close(self) -> None: ...
function Client (line 38) | def Client(address: _Address) -> Connection: ...
function Pipe (line 39) | def Pipe(duplex: bool = True) -> tuple[Connection, Connection]: ...
FILE: mypy/typeshed/stdlib/multiprocessing/forkserver.pyi
class ForkServer (line 11) | class ForkServer:
method set_forkserver_preload (line 12) | def set_forkserver_preload(self, modules_names: list[str]) -> None: ...
method get_inherited_fds (line 13) | def get_inherited_fds(self) -> list[int] | None: ...
method connect_to_new_process (line 14) | def connect_to_new_process(self, fds: Sequence[int]) -> tuple[int, int...
method ensure_running (line 15) | def ensure_running(self) -> None: ...
function main (line 17) | def main(
function read_signed (line 24) | def read_signed(fd: int) -> Any: ...
function write_signed (line 25) | def write_signed(fd: int, n: int) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/heap.pyi
class Arena (line 10) | class Arena:
method __init__ (line 15) | def __init__(self, size: int) -> None: ...
method __init__ (line 18) | def __init__(self, size: int, fd: int = -1) -> None: ...
class _SupportsDetach (line 23) | class _SupportsDetach(Protocol):
method detach (line 24) | def detach(self) -> int: ...
function reduce_arena (line 26) | def reduce_arena(a: Arena) -> tuple[Callable[[int, _SupportsDetach], Are...
function rebuild_arena (line 27) | def rebuild_arena(size: int, dupfd: _SupportsDetach) -> Arena: ...
class Heap (line 29) | class Heap:
method __init__ (line 30) | def __init__(self, size: int = ...) -> None: ...
method free (line 31) | def free(self, block: _Block) -> None: ...
method malloc (line 32) | def malloc(self, size: int) -> _Block: ...
class BufferWrapper (line 34) | class BufferWrapper:
method __init__ (line 35) | def __init__(self, size: int) -> None: ...
method create_memoryview (line 36) | def create_memoryview(self) -> memoryview: ...
FILE: mypy/typeshed/stdlib/multiprocessing/managers.pyi
class Namespace (line 25) | class Namespace:
method __init__ (line 26) | def __init__(self, **kwds: Any) -> None: ...
method __getattr__ (line 27) | def __getattr__(self, name: str, /) -> Any: ...
method __setattr__ (line 28) | def __setattr__(self, name: str, value: Any, /) -> None: ...
class Token (line 32) | class Token:
method __init__ (line 36) | def __init__(self, typeid: bytes | str | None, address: _Address | Non...
method __getstate__ (line 37) | def __getstate__(self) -> tuple[str | bytes | None, tuple[str | bytes,...
method __setstate__ (line 38) | def __setstate__(self, state: tuple[str | bytes | None, tuple[str | by...
class BaseProxy (line 40) | class BaseProxy:
method __init__ (line 43) | def __init__(
method __deepcopy__ (line 53) | def __deepcopy__(self, memo: Any | None) -> Any: ...
method _callmethod (line 54) | def _callmethod(self, methodname: str, args: tuple[Any, ...] = (), kwd...
method _getvalue (line 55) | def _getvalue(self) -> Any: ...
method __reduce__ (line 56) | def __reduce__(self) -> tuple[Any, tuple[Any, Any, str, dict[Any, Any]...
class ValueProxy (line 58) | class ValueProxy(BaseProxy, Generic[_T]):
method get (line 59) | def get(self) -> _T: ...
method set (line 60) | def set(self, value: _T) -> None: ...
method __class_getitem__ (line 63) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class _BaseDictProxy (line 66) | class _BaseDictProxy(BaseProxy, MutableMapping[_KT, _VT]):
method __len__ (line 68) | def __len__(self) -> int: ...
method __getitem__ (line 69) | def __getitem__(self, key: _KT, /) -> _VT: ...
method __setitem__ (line 70) | def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
method __delitem__ (line 71) | def __delitem__(self, key: _KT, /) -> None: ...
method __iter__ (line 72) | def __iter__(self) -> Iterator[_KT]: ...
method copy (line 73) | def copy(self) -> dict[_KT, _VT]: ...
method get (line 75) | def get(self, key: _KT, /) -> _VT | None: ...
method get (line 77) | def get(self, key: _KT, default: _VT, /) -> _VT: ...
method get (line 79) | def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
method pop (line 81) | def pop(self, key: _KT, /) -> _VT: ...
method pop (line 83) | def pop(self, key: _KT, default: _VT, /) -> _VT: ...
method pop (line 85) | def pop(self, key: _KT, default: _T, /) -> _VT | _T: ...
method keys (line 86) | def keys(self) -> list[_KT]: ... # type: ignore[override]
method items (line 87) | def items(self) -> list[tuple[_KT, _VT]]: ... # type: ignore[override]
method values (line 88) | def values(self) -> list[_VT]: ... # type: ignore[override]
class DictProxy (line 90) | class DictProxy(_BaseDictProxy[_KT, _VT]):
method __class_getitem__ (line 91) | def __class_getitem__(cls, args: Any, /) -> GenericAlias: ...
method __len__ (line 96) | def __len__(self) -> int: ...
method __getitem__ (line 97) | def __getitem__(self, key: _KT, /) -> _VT: ...
method __setitem__ (line 98) | def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
method __delitem__ (line 99) | def __delitem__(self, key: _KT, /) -> None: ...
method __iter__ (line 100) | def __iter__(self) -> Iterator[_KT]: ...
method copy (line 101) | def copy(self) -> dict[_KT, _VT]: ...
method get (line 103) | def get(self, key: _KT, /) -> _VT | None: ...
method get (line 105) | def get(self, key: _KT, default: _VT, /) -> _VT: ...
method get (line 107) | def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
method pop (line 109) | def pop(self, key: _KT, /) -> _VT: ...
method pop (line 111) | def pop(self, key: _KT, default: _VT, /) -> _VT: ...
method pop (line 113) | def pop(self, key: _KT, default: _T, /) -> _VT | _T: ...
method keys (line 114) | def keys(self) -> list[_KT]: ... # type: ignore[override]
method items (line 115) | def items(self) -> list[tuple[_KT, _VT]]: ... # type: ignore[override]
method values (line 116) | def values(self) -> list[_VT]: ... # type: ignore[override]
class DictProxy (line 94) | class DictProxy(BaseProxy, MutableMapping[_KT, _VT]):
method __class_getitem__ (line 91) | def __class_getitem__(cls, args: Any, /) -> GenericAlias: ...
method __len__ (line 96) | def __len__(self) -> int: ...
method __getitem__ (line 97) | def __getitem__(self, key: _KT, /) -> _VT: ...
method __setitem__ (line 98) | def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
method __delitem__ (line 99) | def __delitem__(self, key: _KT, /) -> None: ...
method __iter__ (line 100) | def __iter__(self) -> Iterator[_KT]: ...
method copy (line 101) | def copy(self) -> dict[_KT, _VT]: ...
method get (line 103) | def get(self, key: _KT, /) -> _VT | None: ...
method get (line 105) | def get(self, key: _KT, default: _VT, /) -> _VT: ...
method get (line 107) | def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
method pop (line 109) | def pop(self, key: _KT, /) -> _VT: ...
method pop (line 111) | def pop(self, key: _KT, default: _VT, /) -> _VT: ...
method pop (line 113) | def pop(self, key: _KT, default: _T, /) -> _VT | _T: ...
method keys (line 114) | def keys(self) -> list[_KT]: ... # type: ignore[override]
method items (line 115) | def items(self) -> list[tuple[_KT, _VT]]: ... # type: ignore[override]
method values (line 116) | def values(self) -> list[_VT]: ... # type: ignore[override]
class BaseListProxy (line 118) | class BaseListProxy(BaseProxy, MutableSequence[_T]):
method __len__ (line 120) | def __len__(self) -> int: ...
method __add__ (line 121) | def __add__(self, x: list[_T], /) -> list[_T]: ...
method __delitem__ (line 122) | def __delitem__(self, i: SupportsIndex | slice, /) -> None: ...
method __getitem__ (line 124) | def __getitem__(self, i: SupportsIndex, /) -> _T: ...
method __getitem__ (line 126) | def __getitem__(self, s: slice, /) -> list[_T]: ...
method __setitem__ (line 128) | def __setitem__(self, i: SupportsIndex, o: _T, /) -> None: ...
method __setitem__ (line 130) | def __setitem__(self, s: slice, o: Iterable[_T], /) -> None: ...
method __mul__ (line 131) | def __mul__(self, n: SupportsIndex, /) -> list[_T]: ...
method __rmul__ (line 132) | def __rmul__(self, n: SupportsIndex, /) -> list[_T]: ...
method __imul__ (line 133) | def __imul__(self, value: SupportsIndex, /) -> Self: ...
method __reversed__ (line 134) | def __reversed__(self) -> Iterator[_T]: ...
method append (line 135) | def append(self, object: _T, /) -> None: ... # type: ignore[override]
method extend (line 136) | def extend(self, iterable: Iterable[_T], /) -> None: ... # type: igno...
method pop (line 137) | def pop(self, index: SupportsIndex = ..., /) -> _T: ... # type: ignor...
method index (line 138) | def index(self, value: _T, start: SupportsIndex = ..., stop: SupportsI...
method count (line 139) | def count(self, value: _T, /) -> int: ... # type: ignore[override]
method insert (line 140) | def insert(self, index: SupportsIndex, object: _T, /) -> None: ... # ...
method remove (line 141) | def remove(self, value: _T, /) -> None: ... # type: ignore[override]
method sort (line 145) | def sort(self: BaseListProxy[SupportsRichComparisonT], *, key: None = ...
method sort (line 147) | def sort(self, *, key: Callable[[_T], SupportsRichComparison], reverse...
class ListProxy (line 149) | class ListProxy(BaseListProxy[_T]):
method __iadd__ (line 150) | def __iadd__(self, value: Iterable[_T], /) -> Self: ... # type: ignor...
method __imul__ (line 151) | def __imul__(self, value: SupportsIndex, /) -> Self: ... # type: igno...
method __class_getitem__ (line 153) | def __class_getitem__(cls, args: Any, /) -> Any: ...
class Server (line 160) | class Server:
method __init__ (line 166) | def __init__(
method serve_forever (line 173) | def serve_forever(self) -> None: ...
method accepter (line 174) | def accepter(self) -> None: ...
method handle_request (line 176) | def handle_request(self, conn: _ServerConnection) -> None: ...
method handle_request (line 178) | def handle_request(self, c: _ServerConnection) -> None: ...
method serve_client (line 180) | def serve_client(self, conn: _ServerConnection) -> None: ...
method fallback_getvalue (line 181) | def fallback_getvalue(self, conn: _ServerConnection, ident: str, obj: ...
method fallback_str (line 182) | def fallback_str(self, conn: _ServerConnection, ident: str, obj: Any) ...
method fallback_repr (line 183) | def fallback_repr(self, conn: _ServerConnection, ident: str, obj: Any)...
method dummy (line 184) | def dummy(self, c: _ServerConnection) -> None: ...
method debug_info (line 185) | def debug_info(self, c: _ServerConnection) -> str: ...
method number_of_objects (line 186) | def number_of_objects(self, c: _ServerConnection) -> int: ...
method shutdown (line 187) | def shutdown(self, c: _ServerConnection) -> None: ...
method create (line 188) | def create(self, c: _ServerConnection, typeid: str, /, *args: Any, **k...
method get_methods (line 189) | def get_methods(self, c: _ServerConnection, token: Token) -> set[str]:...
method accept_connection (line 190) | def accept_connection(self, c: _ServerConnection, name: str) -> None: ...
method incref (line 191) | def incref(self, c: _ServerConnection, ident: str) -> None: ...
method decref (line 192) | def decref(self, c: _ServerConnection, ident: str) -> None: ...
class BaseManager (line 194) | class BaseManager:
method __init__ (line 196) | def __init__(
method __init__ (line 206) | def __init__(
method get_server (line 214) | def get_server(self) -> Server: ...
method connect (line 215) | def connect(self) -> None: ...
method start (line 216) | def start(self, initializer: Callable[..., object] | None = None, init...
method join (line 218) | def join(self, timeout: float | None = None) -> None: ... # undocumented
method address (line 220) | def address(self) -> _Address | None: ...
method register (line 222) | def register(
method __enter__ (line 231) | def __enter__(self) -> Self: ...
method __exit__ (line 232) | def __exit__(
class SyncManager (line 236) | class SyncManager(BaseManager):
method Barrier (line 237) | def Barrier(
method BoundedSemaphore (line 240) | def BoundedSemaphore(self, value: int = 1) -> threading.BoundedSemapho...
method Condition (line 241) | def Condition(self, lock: threading.Lock | threading._RLock | None = N...
method Event (line 242) | def Event(self) -> threading.Event: ...
method Lock (line 243) | def Lock(self) -> threading.Lock: ...
method Namespace (line 244) | def Namespace(self) -> _Namespace: ...
method Pool (line 245) | def Pool(
method Queue (line 253) | def Queue(self, maxsize: int = ...) -> queue.Queue[Any]: ...
method JoinableQueue (line 254) | def JoinableQueue(self, maxsize: int = ...) -> queue.Queue[Any]: ...
method RLock (line 255) | def RLock(self) -> threading.RLock: ...
method Semaphore (line 256) | def Semaphore(self, value: int = 1) -> threading.Semaphore: ...
method Array (line 257) | def Array(self, typecode: Any, sequence: Sequence[_T]) -> Sequence[_T]...
method Value (line 258) | def Value(self, typecode: Any, value: _T) -> ValueProxy[_T]: ...
method dict (line 261) | def dict(self) -> DictProxy[Any, Any]: ...
method dict (line 263) | def dict(self, **kwargs: _VT) -> DictProxy[str, _VT]: ...
method dict (line 265) | def dict(self, map: SupportsKeysAndGetItem[_KT, _VT], /) -> DictProxy[...
method dict (line 267) | def dict(self, map: SupportsKeysAndGetItem[str, _VT], /, **kwargs: _VT...
method dict (line 269) | def dict(self, iterable: Iterable[tuple[_KT, _VT]], /) -> DictProxy[_K...
method dict (line 271) | def dict(self, iterable: Iterable[tuple[str, _VT]], /, **kwargs: _VT) ...
method dict (line 273) | def dict(self, iterable: Iterable[list[str]], /) -> DictProxy[str, str...
method dict (line 275) | def dict(self, iterable: Iterable[list[bytes]], /) -> DictProxy[bytes,...
method list (line 277) | def list(self, sequence: Sequence[_T], /) -> ListProxy[_T]: ...
method list (line 279) | def list(self) -> ListProxy[Any]: ...
class RemoteError (line 281) | class RemoteError(Exception): ...
class SharedMemoryServer (line 283) | class SharedMemoryServer(Server):
method track_segment (line 284) | def track_segment(self, c: _ServerConnection, segment_name: str) -> No...
method release_segment (line 285) | def release_segment(self, c: _ServerConnection, segment_name: str) -> ...
method list_segments (line 286) | def list_segments(self, c: _ServerConnection) -> list[str]: ...
class SharedMemoryManager (line 288) | class SharedMemoryManager(BaseManager):
method get_server (line 289) | def get_server(self) -> SharedMemoryServer: ...
method SharedMemory (line 290) | def SharedMemory(self, size: int) -> _SharedMemory: ...
method ShareableList (line 291) | def ShareableList(self, sequence: Iterable[_SLT] | None) -> _Shareable...
method __del__ (line 292) | def __del__(self) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/pool.pyi
class ApplyResult (line 16) | class ApplyResult(Generic[_T]):
method __init__ (line 17) | def __init__(
method get (line 20) | def get(self, timeout: float | None = None) -> _T: ...
method wait (line 21) | def wait(self, timeout: float | None = None) -> None: ...
method ready (line 22) | def ready(self) -> bool: ...
method successful (line 23) | def successful(self) -> bool: ...
method __class_getitem__ (line 25) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class MapResult (line 30) | class MapResult(ApplyResult[list[_T]]):
method __init__ (line 31) | def __init__(
class IMapIterator (line 40) | class IMapIterator(Iterator[_T]):
method __init__ (line 41) | def __init__(self, pool: Pool) -> None: ...
method __iter__ (line 42) | def __iter__(self) -> Self: ...
method next (line 43) | def next(self, timeout: float | None = None) -> _T: ...
method __next__ (line 44) | def __next__(self, timeout: float | None = None) -> _T: ...
class IMapUnorderedIterator (line 46) | class IMapUnorderedIterator(IMapIterator[_T]): ...
class Pool (line 48) | class Pool:
method __init__ (line 49) | def __init__(
method Process (line 58) | def Process(ctx: DefaultContext, *args: Any, **kwds: Any) -> Process: ...
method apply (line 59) | def apply(self, func: Callable[..., _T], args: Iterable[Any] = (), kwd...
method apply_async (line 60) | def apply_async(
method map (line 68) | def map(self, func: Callable[[_S], _T], iterable: Iterable[_S], chunks...
method map_async (line 69) | def map_async(
method imap (line 77) | def imap(self, func: Callable[[_S], _T], iterable: Iterable[_S], chunk...
method imap_unordered (line 78) | def imap_unordered(self, func: Callable[[_S], _T], iterable: Iterable[...
method starmap (line 79) | def starmap(self, func: Callable[..., _T], iterable: Iterable[Iterable...
method starmap_async (line 80) | def starmap_async(
method close (line 88) | def close(self) -> None: ...
method terminate (line 89) | def terminate(self) -> None: ...
method join (line 90) | def join(self) -> None: ...
method __enter__ (line 91) | def __enter__(self) -> Self: ...
method __exit__ (line 92) | def __exit__(
method __del__ (line 95) | def __del__(self) -> None: ...
class ThreadPool (line 97) | class ThreadPool(Pool):
method __init__ (line 98) | def __init__(
FILE: mypy/typeshed/stdlib/multiprocessing/popen_fork.pyi
class Popen (line 10) | class Popen:
method __init__ (line 17) | def __init__(self, process_obj: BaseProcess) -> None: ...
method duplicate_for_child (line 18) | def duplicate_for_child(self, fd: int) -> int: ...
method poll (line 19) | def poll(self, flag: int = 1) -> int | None: ...
method wait (line 20) | def wait(self, timeout: float | None = None) -> int | None: ...
method terminate (line 21) | def terminate(self) -> None: ...
method kill (line 22) | def kill(self) -> None: ...
method close (line 23) | def close(self) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/popen_forkserver.pyi
class _DupFd (line 10) | class _DupFd:
method __init__ (line 11) | def __init__(self, ind: int) -> None: ...
method detach (line 12) | def detach(self) -> int: ...
class Popen (line 14) | class Popen(popen_fork.Popen):
FILE: mypy/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi
class _DupFd (line 10) | class _DupFd:
method __init__ (line 13) | def __init__(self, fd: int) -> None: ...
method detach (line 14) | def detach(self) -> int: ...
class Popen (line 16) | class Popen(popen_fork.Popen):
FILE: mypy/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi
class Popen (line 15) | class Popen:
method __init__ (line 22) | def __init__(self, process_obj: BaseProcess) -> None: ...
method duplicate_for_child (line 23) | def duplicate_for_child(self, handle: int) -> int: ...
method wait (line 24) | def wait(self, timeout: float | None = None) -> int | None: ...
method poll (line 25) | def poll(self) -> int | None: ...
method terminate (line 26) | def terminate(self) -> None: ...
method close (line 30) | def close(self) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/process.pyi
class BaseProcess (line 6) | class BaseProcess:
method __init__ (line 11) | def __init__(
method run (line 21) | def run(self) -> None: ...
method start (line 22) | def start(self) -> None: ...
method terminate (line 23) | def terminate(self) -> None: ...
method kill (line 24) | def kill(self) -> None: ...
method close (line 25) | def close(self) -> None: ...
method join (line 26) | def join(self, timeout: float | None = None) -> None: ...
method is_alive (line 27) | def is_alive(self) -> bool: ...
method exitcode (line 29) | def exitcode(self) -> int | None: ...
method ident (line 31) | def ident(self) -> int | None: ...
method pid (line 33) | def pid(self) -> int | None: ...
method sentinel (line 35) | def sentinel(self) -> int: ...
function current_process (line 37) | def current_process() -> BaseProcess: ...
function active_children (line 38) | def active_children() -> list[BaseProcess]: ...
function parent_process (line 39) | def parent_process() -> BaseProcess | None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/queues.pyi
class Queue (line 11) | class Queue(Generic[_T]):
method __init__ (line 14) | def __init__(self, maxsize: int = 0, *, ctx: Any = ...) -> None: ...
method put (line 15) | def put(self, obj: _T, block: bool = True, timeout: float | None = Non...
method get (line 16) | def get(self, block: bool = True, timeout: float | None = None) -> _T:...
method qsize (line 17) | def qsize(self) -> int: ...
method empty (line 18) | def empty(self) -> bool: ...
method full (line 19) | def full(self) -> bool: ...
method get_nowait (line 20) | def get_nowait(self) -> _T: ...
method put_nowait (line 21) | def put_nowait(self, obj: _T) -> None: ...
method close (line 22) | def close(self) -> None: ...
method join_thread (line 23) | def join_thread(self) -> None: ...
method cancel_join_thread (line 24) | def cancel_join_thread(self) -> None: ...
method __class_getitem__ (line 26) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class JoinableQueue (line 28) | class JoinableQueue(Queue[_T]):
method task_done (line 29) | def task_done(self) -> None: ...
method join (line 30) | def join(self) -> None: ...
class SimpleQueue (line 32) | class SimpleQueue(Generic[_T]):
method __init__ (line 33) | def __init__(self, *, ctx: Any = ...) -> None: ...
method close (line 35) | def close(self) -> None: ...
method empty (line 37) | def empty(self) -> bool: ...
method get (line 38) | def get(self) -> _T: ...
method put (line 39) | def put(self, obj: _T) -> None: ...
method __class_getitem__ (line 41) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
FILE: mypy/typeshed/stdlib/multiprocessing/reduction.pyi
class ForkingPickler (line 20) | class ForkingPickler(pickle.Pickler):
method __init__ (line 22) | def __init__(self, file: SupportsWrite[bytes], protocol: int | None = ...
method register (line 24) | def register(cls, type: Type, reduce: Callable[[Any], _ReducedType]) -...
method dumps (line 26) | def dumps(cls, obj: Any, protocol: int | None = None) -> memoryview: ...
function dump (line 31) | def dump(obj: Any, file: SupportsWrite[bytes], protocol: int | None = No...
function duplicate (line 34) | def duplicate(
function steal_handle (line 37) | def steal_handle(source_pid: int, handle: int) -> int: ...
function send_handle (line 38) | def send_handle(conn: connection.PipeConnection[DupHandle, Any], handle:...
function recv_handle (line 39) | def recv_handle(conn: connection.PipeConnection[Any, DupHandle]) -> int:...
class DupHandle (line 41) | class DupHandle:
method __init__ (line 42) | def __init__(self, handle: int, access: int, pid: int | None = None) -...
method detach (line 43) | def detach(self) -> int: ...
function recvfds (line 48) | def recvfds(sock: socket, size: int) -> list[int]: ...
function send_handle (line 49) | def send_handle(conn: HasFileno, handle: int, destination_pid: Unused) -...
function recv_handle (line 50) | def recv_handle(conn: HasFileno) -> int: ...
function sendfds (line 51) | def sendfds(sock: socket, fds: list[int]) -> None: ...
function DupFd (line 52) | def DupFd(fd: int) -> Any: ... # Return type is really hard to get right
class AbstractReducer (line 72) | class AbstractReducer(metaclass=ABCMeta):
method __init__ (line 87) | def __init__(self, *args: Unused) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/resource_sharer.pyi
class DupSocket (line 9) | class DupSocket:
method __init__ (line 10) | def __init__(self, sock: socket) -> None: ...
method detach (line 11) | def detach(self) -> socket: ...
class DupFd (line 16) | class DupFd:
method __init__ (line 17) | def __init__(self, fd: int) -> None: ...
method detach (line 18) | def detach(self) -> int: ...
function stop (line 20) | def stop(timeout: float | None = None) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/resource_tracker.pyi
class ResourceTracker (line 6) | class ResourceTracker:
method getfd (line 7) | def getfd(self) -> int | None: ...
method ensure_running (line 8) | def ensure_running(self) -> None: ...
method register (line 9) | def register(self, name: Sized, rtype: str) -> None: ...
method unregister (line 10) | def unregister(self, name: Sized, rtype: str) -> None: ...
function main (line 18) | def main(fd: FileDescriptorOrPath) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/shared_memory.pyi
class SharedMemory (line 13) | class SharedMemory:
method __init__ (line 15) | def __init__(self, name: str | None = None, create: bool = False, size...
method __init__ (line 17) | def __init__(self, name: str | None = None, create: bool = False, size...
method buf (line 20) | def buf(self) -> memoryview: ...
method name (line 22) | def name(self) -> str: ...
method size (line 24) | def size(self) -> int: ...
method close (line 25) | def close(self) -> None: ...
method unlink (line 26) | def unlink(self) -> None: ...
method __del__ (line 27) | def __del__(self) -> None: ...
class ShareableList (line 29) | class ShareableList(Generic[_SLT]):
method __init__ (line 32) | def __init__(self, sequence: None = None, *, name: str | None = None) ...
method __init__ (line 34) | def __init__(self, sequence: Iterable[_SLT], *, name: str | None = Non...
method __getitem__ (line 35) | def __getitem__(self, position: int) -> _SLT: ...
method __setitem__ (line 36) | def __setitem__(self, position: int, value: _SLT) -> None: ...
method __reduce__ (line 37) | def __reduce__(self) -> tuple[Self, tuple[_SLT, ...]]: ...
method __len__ (line 38) | def __len__(self) -> int: ...
method format (line 40) | def format(self) -> str: ...
method count (line 41) | def count(self, value: _SLT) -> int: ...
method index (line 42) | def index(self, value: _SLT) -> int: ...
method __class_getitem__ (line 44) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
FILE: mypy/typeshed/stdlib/multiprocessing/sharedctypes.pyi
function RawValue (line 16) | def RawValue(typecode_or_type: type[_CT], *args: Any) -> _CT: ...
function RawValue (line 18) | def RawValue(typecode_or_type: str, *args: Any) -> Any: ...
function RawArray (line 20) | def RawArray(typecode_or_type: type[_CT], size_or_initializer: int | Seq...
function RawArray (line 22) | def RawArray(typecode_or_type: str, size_or_initializer: int | Sequence[...
function Value (line 24) | def Value(typecode_or_type: type[_CT], *args: Any, lock: Literal[False],...
function Value (line 26) | def Value(
function Value (line 30) | def Value(
function Value (line 34) | def Value(
function Array (line 38) | def Array(
function Array (line 42) | def Array(
function Array (line 50) | def Array(
function Array (line 58) | def Array(
function Array (line 66) | def Array(
function copy (line 73) | def copy(obj: _CT) -> _CT: ...
function synchronized (line 75) | def synchronized(obj: _SimpleCData[_T], lock: _LockLike | None = None, c...
function synchronized (line 77) | def synchronized(obj: ctypes.Array[c_char], lock: _LockLike | None = Non...
function synchronized (line 79) | def synchronized(
function synchronized (line 83) | def synchronized(obj: _CT, lock: _LockLike | None = None, ctx: Any | Non...
class _AcquireFunc (line 85) | class _AcquireFunc(Protocol):
method __call__ (line 86) | def __call__(self, block: bool = ..., timeout: float | None = ..., /) ...
class SynchronizedBase (line 88) | class SynchronizedBase(Generic[_CT]):
method __init__ (line 91) | def __init__(self, obj: Any, lock: _LockLike | None = None, ctx: Any |...
method __reduce__ (line 92) | def __reduce__(self) -> tuple[Callable[[Any, _LockLike], SynchronizedB...
method get_obj (line 93) | def get_obj(self) -> _CT: ...
method get_lock (line 94) | def get_lock(self) -> _LockLike: ...
method __enter__ (line 95) | def __enter__(self) -> bool: ...
method __exit__ (line 96) | def __exit__(
class Synchronized (line 100) | class Synchronized(SynchronizedBase[_SimpleCData[_T]], Generic[_T]):
class SynchronizedArray (line 103) | class SynchronizedArray(SynchronizedBase[ctypes.Array[_SimpleCData[_T]]]...
method __len__ (line 104) | def __len__(self) -> int: ...
method __getitem__ (line 106) | def __getitem__(self, i: slice) -> list[_T]: ...
method __getitem__ (line 108) | def __getitem__(self, i: int) -> _T: ...
method __setitem__ (line 110) | def __setitem__(self, i: slice, value: Iterable[_T]) -> None: ...
method __setitem__ (line 112) | def __setitem__(self, i: int, value: _T) -> None: ...
method __getslice__ (line 113) | def __getslice__(self, start: int, stop: int) -> list[_T]: ...
method __setslice__ (line 114) | def __setslice__(self, start: int, stop: int, values: Iterable[_T]) ->...
class SynchronizedString (line 116) | class SynchronizedString(SynchronizedArray[bytes]):
method __getitem__ (line 118) | def __getitem__(self, i: slice) -> bytes: ...
method __getitem__ (line 120) | def __getitem__(self, i: int) -> bytes: ...
method __setitem__ (line 122) | def __setitem__(self, i: slice, value: bytes) -> None: ...
method __setitem__ (line 124) | def __setitem__(self, i: int, value: bytes) -> None: ...
method __getslice__ (line 125) | def __getslice__(self, start: int, stop: int) -> bytes: ... # type: i...
method __setslice__ (line 126) | def __setslice__(self, start: int, stop: int, values: bytes) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/spawn.pyi
function set_executable (line 18) | def set_executable(exe: str) -> None: ...
function get_executable (line 19) | def get_executable() -> str: ...
function is_forking (line 20) | def is_forking(argv: Sequence[str]) -> bool: ...
function freeze_support (line 21) | def freeze_support() -> None: ...
function get_command_line (line 22) | def get_command_line(**kwds: Any) -> list[str]: ...
function spawn_main (line 23) | def spawn_main(pipe_handle: int, parent_pid: int | None = None, tracker_...
function _main (line 26) | def _main(fd: int, parent_sentinel: int) -> int: ...
function get_preparation_data (line 27) | def get_preparation_data(name: str) -> dict[str, Any]: ...
function prepare (line 31) | def prepare(data: Mapping[str, Any]) -> None: ...
function import_main_path (line 32) | def import_main_path(main_path: str) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/synchronize.pyi
class Barrier (line 11) | class Barrier(threading.Barrier):
method __init__ (line 12) | def __init__(
class Condition (line 16) | class Condition:
method __init__ (line 17) | def __init__(self, lock: _LockLike | None = None, *, ctx: BaseContext)...
method notify (line 18) | def notify(self, n: int = 1) -> None: ...
method notify_all (line 19) | def notify_all(self) -> None: ...
method wait (line 20) | def wait(self, timeout: float | None = None) -> bool: ...
method wait_for (line 21) | def wait_for(self, predicate: Callable[[], bool], timeout: float | Non...
method __enter__ (line 22) | def __enter__(self) -> bool: ...
method __exit__ (line 23) | def __exit__(
method acquire (line 28) | def acquire(self, block: bool = True, timeout: float | None = None) ->...
method release (line 29) | def release(self) -> None: ...
class Event (line 31) | class Event:
method __init__ (line 32) | def __init__(self, *, ctx: BaseContext) -> None: ...
method is_set (line 33) | def is_set(self) -> bool: ...
method set (line 34) | def set(self) -> None: ...
method clear (line 35) | def clear(self) -> None: ...
method wait (line 36) | def wait(self, timeout: float | None = None) -> bool: ...
class SemLock (line 39) | class SemLock:
method __init__ (line 40) | def __init__(self, kind: int, value: int, maxvalue: int, *, ctx: BaseC...
method __enter__ (line 41) | def __enter__(self) -> bool: ...
method __exit__ (line 42) | def __exit__(
method acquire (line 46) | def acquire(self, block: bool = True, timeout: float | None = None) ->...
method release (line 47) | def release(self) -> None: ...
class Lock (line 49) | class Lock(SemLock):
method __init__ (line 50) | def __init__(self, *, ctx: BaseContext) -> None: ...
class RLock (line 52) | class RLock(SemLock):
method __init__ (line 53) | def __init__(self, *, ctx: BaseContext) -> None: ...
class Semaphore (line 55) | class Semaphore(SemLock):
method __init__ (line 56) | def __init__(self, value: int = 1, *, ctx: BaseContext) -> None: ...
method get_value (line 57) | def get_value(self) -> int: ...
class BoundedSemaphore (line 59) | class BoundedSemaphore(Semaphore):
method __init__ (line 60) | def __init__(self, value: int = 1, *, ctx: BaseContext) -> None: ...
FILE: mypy/typeshed/stdlib/multiprocessing/util.pyi
function sub_debug (line 37) | def sub_debug(msg: object, *args: object) -> None: ...
function debug (line 38) | def debug(msg: object, *args: object) -> None: ...
function info (line 39) | def info(msg: object, *args: object) -> None: ...
function sub_warning (line 40) | def sub_warning(msg: object, *args: object) -> None: ...
function get_logger (line 41) | def get_logger() -> Logger: ...
function log_to_stderr (line 42) | def log_to_stderr(level: _LoggingLevel | None = None) -> Logger: ...
function is_abstract_socket_namespace (line 43) | def is_abstract_socket_namespace(address: str | bytes | None) -> bool: ...
function get_temp_dir (line 47) | def get_temp_dir() -> str: ...
function register_after_fork (line 48) | def register_after_fork(obj: _T, func: Callable[[_T], object]) -> None: ...
class Finalize (line 50) | class Finalize(Generic[_R_co]):
method __init__ (line 53) | def __init__(
method __init__ (line 63) | def __init__(
method __init__ (line 67) | def __init__(
method __call__ (line 75) | def __call__(
method cancel (line 82) | def cancel(self) -> None: ...
method still_active (line 83) | def still_active(self) -> bool: ...
function is_exiting (line 85) | def is_exiting() -> bool: ...
class ForkAwareThreadLock (line 87) | class ForkAwareThreadLock:
method __enter__ (line 90) | def __enter__(self) -> bool: ...
method __exit__ (line 91) | def __exit__(self, *args: Unused) -> None: ...
class ForkAwareLocal (line 93) | class ForkAwareLocal(threading.local): ...
function close_all_fds_except (line 97) | def close_all_fds_except(fds: Iterable[int]) -> None: ...
function spawnv_passfds (line 98) | def spawnv_passfds(path: bytes, args: Sequence[ConvertibleToInt], passfd...
FILE: mypy/typeshed/stdlib/netrc.pyi
class NetrcParseError (line 7) | class NetrcParseError(Exception):
method __init__ (line 11) | def __init__(self, msg: str, filename: StrOrBytesPath | None = None, l...
class netrc (line 19) | class netrc:
method __init__ (line 22) | def __init__(self, file: StrOrBytesPath | None = None) -> None: ...
method authenticators (line 23) | def authenticators(self, host: str) -> _NetrcTuple | None: ...
FILE: mypy/typeshed/stdlib/nis.pyi
function cat (line 4) | def cat(map: str, domain: str = ...) -> dict[str, str]: ...
function get_default_domain (line 5) | def get_default_domain() -> str: ...
function maps (line 6) | def maps(domain: str = ...) -> list[str]: ...
function match (line 7) | def match(key: str, map: str, domain: str = ...) -> str: ...
class error (line 9) | class error(Exception): ...
FILE: mypy/typeshed/stdlib/nntplib.pyi
class NNTPError (line 25) | class NNTPError(Exception):
class NNTPReplyError (line 28) | class NNTPReplyError(NNTPError): ...
class NNTPTemporaryError (line 29) | class NNTPTemporaryError(NNTPError): ...
class NNTPPermanentError (line 30) | class NNTPPermanentError(NNTPError): ...
class NNTPProtocolError (line 31) | class NNTPProtocolError(NNTPError): ...
class NNTPDataError (line 32) | class NNTPDataError(NNTPError): ...
class GroupInfo (line 37) | class GroupInfo(NamedTuple):
class ArticleInfo (line 43) | class ArticleInfo(NamedTuple):
function decode_header (line 48) | def decode_header(header_str: str) -> str: ...
class NNTP (line 50) | class NNTP:
method __init__ (line 65) | def __init__(
method __enter__ (line 75) | def __enter__(self) -> Self: ...
method __exit__ (line 76) | def __exit__(self, *args: Unused) -> None: ...
method getwelcome (line 77) | def getwelcome(self) -> str: ...
method getcapabilities (line 78) | def getcapabilities(self) -> dict[str, _list[str]]: ...
method set_debuglevel (line 79) | def set_debuglevel(self, level: int) -> None: ...
method debug (line 80) | def debug(self, level: int) -> None: ...
method capabilities (line 81) | def capabilities(self) -> tuple[str, dict[str, _list[str]]]: ...
method newgroups (line 82) | def newgroups(self, date: datetime.date | datetime.datetime, *, file: ...
method newnews (line 83) | def newnews(self, group: str, date: datetime.date | datetime.datetime,...
method list (line 84) | def list(self, group_pattern: str | None = None, *, file: _File = None...
method description (line 85) | def description(self, group: str) -> str: ...
method descriptions (line 86) | def descriptions(self, group_pattern: str) -> tuple[str, dict[str, str...
method group (line 87) | def group(self, name: str) -> tuple[str, int, int, int, str]: ...
method help (line 88) | def help(self, *, file: _File = None) -> tuple[str, _list[str]]: ...
method stat (line 89) | def stat(self, message_spec: Any = None) -> tuple[str, int, str]: ...
method next (line 90) | def next(self) -> tuple[str, int, str]: ...
method last (line 91) | def last(self) -> tuple[str, int, str]: ...
method head (line 92) | def head(self, message_spec: Any = None, *, file: _File = None) -> tup...
method body (line 93) | def body(self, message_spec: Any = None, *, file: _File = None) -> tup...
method article (line 94) | def article(self, message_spec: Any = None, *, file: _File = None) -> ...
method slave (line 95) | def slave(self) -> str: ...
method xhdr (line 96) | def xhdr(self, hdr: str, str: Any, *, file: _File = None) -> tuple[str...
method xover (line 97) | def xover(self, start: int, end: int, *, file: _File = None) -> tuple[...
method over (line 98) | def over(
method xgtitle (line 102) | def xgtitle(self, group: str, *, file: _File = None) -> tuple[str, _li...
method xpath (line 103) | def xpath(self, id: Any) -> tuple[str, str]: ...
method date (line 105) | def date(self) -> tuple[str, datetime.datetime]: ...
method post (line 106) | def post(self, data: bytes | Iterable[bytes]) -> str: ...
method ihave (line 107) | def ihave(self, message_id: Any, data: bytes | Iterable[bytes]) -> str...
method quit (line 108) | def quit(self) -> str: ...
method login (line 109) | def login(self, user: str | None = None, password: str | None = None, ...
method starttls (line 110) | def starttls(self, context: ssl.SSLContext | None = None) -> None: ...
class NNTP_SSL (line 112) | class NNTP_SSL(NNTP):
method __init__ (line 115) | def __init__(
FILE: mypy/typeshed/stdlib/ntpath.pyi
function join (line 104) | def join(path: LiteralString, /, *paths: LiteralString) -> LiteralString...
function join (line 106) | def join(path: StrPath, /, *paths: StrPath) -> str: ...
function join (line 108) | def join(path: BytesPath, /, *paths: BytesPath) -> bytes: ...
function realpath (line 113) | def realpath(path: PathLike[AnyStr], *, strict: bool = False) -> AnyStr:...
function realpath (line 115) | def realpath(path: AnyStr, *, strict: bool = False) -> AnyStr: ...
function realpath (line 118) | def realpath(path: PathLike[AnyStr]) -> AnyStr: ...
function realpath (line 120) | def realpath(path: AnyStr) -> AnyStr: ...
function isreserved (line 126) | def isreserved(path: StrOrBytesPath) -> bool: ...
FILE: mypy/typeshed/stdlib/nturl2path.pyi
function url2pathname (line 1) | def url2pathname(url: str) -> str: ...
function pathname2url (line 2) | def pathname2url(p: str) -> str: ...
FILE: mypy/typeshed/stdlib/numbers.pyi
class _ComplexLike (line 26) | class _ComplexLike(Protocol):
method __neg__ (line 27) | def __neg__(self) -> _ComplexLike: ...
method __pos__ (line 28) | def __pos__(self) -> _ComplexLike: ...
method __abs__ (line 29) | def __abs__(self) -> _RealLike: ...
class _RealLike (line 33) | class _RealLike(_ComplexLike, Protocol):
method __trunc__ (line 34) | def __trunc__(self) -> _IntegralLike: ...
method __floor__ (line 35) | def __floor__(self) -> _IntegralLike: ...
method __ceil__ (line 36) | def __ceil__(self) -> _IntegralLike: ...
method __float__ (line 37) | def __float__(self) -> float: ...
method __neg__ (line 40) | def __neg__(self) -> _RealLike: ...
method __pos__ (line 41) | def __pos__(self) -> _RealLike: ...
class _IntegralLike (line 45) | class _IntegralLike(_RealLike, Protocol):
method __invert__ (line 46) | def __invert__(self) -> _IntegralLike: ...
method __int__ (line 47) | def __int__(self) -> int: ...
method __index__ (line 48) | def __index__(self) -> int: ...
method __abs__ (line 51) | def __abs__(self) -> _IntegralLike: ...
method __neg__ (line 54) | def __neg__(self) -> _IntegralLike: ...
method __pos__ (line 55) | def __pos__(self) -> _IntegralLike: ...
class Number (line 61) | class Number(metaclass=ABCMeta):
method __hash__ (line 63) | def __hash__(self) -> int: ...
class Complex (line 67) | class Complex(Number, _ComplexLike):
method __complex__ (line 69) | def __complex__(self) -> complex: ...
method __bool__ (line 70) | def __bool__(self) -> bool: ...
method real (line 73) | def real(self) -> _RealLike: ...
method imag (line 76) | def imag(self) -> _RealLike: ...
method __add__ (line 78) | def __add__(self, other) -> _ComplexLike: ...
method __radd__ (line 80) | def __radd__(self, other) -> _ComplexLike: ...
method __neg__ (line 82) | def __neg__(self) -> _ComplexLike: ...
method __pos__ (line 84) | def __pos__(self) -> _ComplexLike: ...
method __sub__ (line 85) | def __sub__(self, other) -> _ComplexLike: ...
method __rsub__ (line 86) | def __rsub__(self, other) -> _ComplexLike: ...
method __mul__ (line 88) | def __mul__(self, other) -> _ComplexLike: ...
method __rmul__ (line 90) | def __rmul__(self, other) -> _ComplexLike: ...
method __truediv__ (line 92) | def __truediv__(self, other) -> _ComplexLike: ...
method __rtruediv__ (line 94) | def __rtruediv__(self, other) -> _ComplexLike: ...
method __pow__ (line 96) | def __pow__(self, exponent) -> _ComplexLike: ...
method __rpow__ (line 98) | def __rpow__(self, base) -> _ComplexLike: ...
method __abs__ (line 100) | def __abs__(self) -> _RealLike: ...
method conjugate (line 102) | def conjugate(self) -> _ComplexLike: ...
method __eq__ (line 104) | def __eq__(self, other: object) -> bool: ...
class Real (line 109) | class Real(Complex, _RealLike):
method __float__ (line 111) | def __float__(self) -> float: ...
method __trunc__ (line 113) | def __trunc__(self) -> _IntegralLike: ...
method __floor__ (line 115) | def __floor__(self) -> _IntegralLike: ...
method __ceil__ (line 117) | def __ceil__(self) -> _IntegralLike: ...
method __round__ (line 120) | def __round__(self, ndigits: None = None) -> _IntegralLike: ...
method __round__ (line 123) | def __round__(self, ndigits: int) -> _RealLike: ...
method __divmod__ (line 124) | def __divmod__(self, other) -> tuple[_RealLike, _RealLike]: ...
method __rdivmod__ (line 125) | def __rdivmod__(self, other) -> tuple[_RealLike, _RealLike]: ...
method __floordiv__ (line 127) | def __floordiv__(self, other) -> _RealLike: ...
method __rfloordiv__ (line 129) | def __rfloordiv__(self, other) -> _RealLike: ...
method __mod__ (line 131) | def __mod__(self, other) -> _RealLike: ...
method __rmod__ (line 133) | def __rmod__(self, other) -> _RealLike: ...
method __lt__ (line 135) | def __lt__(self, other) -> bool: ...
method __le__ (line 137) | def __le__(self, other) -> bool: ...
method __complex__ (line 138) | def __complex__(self) -> complex: ...
method real (line 140) | def real(self) -> _RealLike: ...
method imag (line 142) | def imag(self) -> Literal[0]: ...
method conjugate (line 143) | def conjugate(self) -> _RealLike: ...
method __pos__ (line 147) | def __pos__(self) -> _RealLike: ...
method __neg__ (line 149) | def __neg__(self) -> _RealLike: ...
class Rational (line 153) | class Rational(Real):
method numerator (line 156) | def numerator(self) -> _IntegralLike: ...
method denominator (line 159) | def denominator(self) -> _IntegralLike: ...
method __float__ (line 160) | def __float__(self) -> float: ...
class Integral (line 164) | class Integral(Rational, _IntegralLike):
method __int__ (line 166) | def __int__(self) -> int: ...
method __index__ (line 167) | def __index__(self) -> int: ...
method __pow__ (line 169) | def __pow__(self, exponent, modulus: Incomplete | None = None) -> _Int...
method __lshift__ (line 171) | def __lshift__(self, other) -> _IntegralLike: ...
method __rlshift__ (line 173) | def __rlshift__(self, other) -> _IntegralLike: ...
method __rshift__ (line 175) | def __rshift__(self, other) -> _IntegralLike: ...
method __rrshift__ (line 177) | def __rrshift__(self, other) -> _IntegralLike: ...
method __and__ (line 179) | def __and__(self, other) -> _IntegralLike: ...
method __rand__ (line 181) | def __rand__(self, other) -> _IntegralLike: ...
method __xor__ (line 183) | def __xor__(self, other) -> _IntegralLike: ...
method __rxor__ (line 185) | def __rxor__(self, other) -> _IntegralLike: ...
method __or__ (line 187) | def __or__(self, other) -> _IntegralLike: ...
method __ror__ (line 189) | def __ror__(self, other) -> _IntegralLike: ...
method __invert__ (line 191) | def __invert__(self) -> _IntegralLike: ...
method __float__ (line 192) | def __float__(self) -> float: ...
method numerator (line 194) | def numerator(self) -> _IntegralLike: ...
method denominator (line 196) | def denominator(self) -> Literal[1]: ...
method __pos__ (line 200) | def __pos__(self) -> _IntegralLike: ...
method __neg__ (line 202) | def __neg__(self) -> _IntegralLike: ...
method __abs__ (line 204) | def __abs__(self) -> _IntegralLike: ...
method __round__ (line 207) | def __round__(self, ndigits: None = None) -> _IntegralLike: ...
method __round__ (line 210) | def __round__(self, ndigits: int) -> _IntegralLike: ...
FILE: mypy/typeshed/stdlib/opcode.pyi
function stack_effect (line 63) | def stack_effect(opcode: int, oparg: int | None = None, /, *, jump: bool...
FILE: mypy/typeshed/stdlib/operator.pyi
class attrgetter (line 184) | class attrgetter(Generic[_T_co]):
method __new__ (line 186) | def __new__(cls, attr: str, /) -> attrgetter[object]: ...
method __new__ (line 188) | def __new__(cls, attr: str, attr2: str, /) -> attrgetter[tuple[object,...
method __new__ (line 190) | def __new__(cls, attr: str, attr2: str, attr3: str, /) -> attrgetter[t...
method __new__ (line 192) | def __new__(cls, attr: str, attr2: str, attr3: str, attr4: str, /) -> ...
method __new__ (line 194) | def __new__(cls, attr: str, /, *attrs: str) -> attrgetter[tuple[object...
method __call__ (line 195) | def __call__(self, obj: Any, /) -> _T_co: ...
class itemgetter (line 198) | class itemgetter(Generic[_T_co]):
method __new__ (line 200) | def __new__(cls, item: _T, /) -> itemgetter[_T]: ...
method __new__ (line 202) | def __new__(cls, item1: _T1, item2: _T2, /, *items: Unpack[_Ts]) -> it...
method __call__ (line 210) | def __call__(self, obj: SupportsGetItem[Any, Any]) -> Any: ...
class methodcaller (line 213) | class methodcaller:
method __new__ (line 214) | def __new__(cls, name: str, /, *args: Any, **kwargs: Any) -> Self: ...
method __call__ (line 215) | def __call__(self, obj: Any) -> Any: ...
FILE: mypy/typeshed/stdlib/optparse.pyi
function check_builtin (line 33) | def check_builtin(option: Option, opt: str, value: str) -> complex: ...
function check_choice (line 34) | def check_choice(option: Option, opt: str, value: str) -> str: ...
class OptParseError (line 36) | class OptParseError(Exception):
method __init__ (line 38) | def __init__(self, msg: str) -> None: ...
class BadOptionError (line 40) | class BadOptionError(OptParseError):
method __init__ (line 42) | def __init__(self, opt_str: str) -> None: ...
class AmbiguousOptionError (line 44) | class AmbiguousOptionError(BadOptionError):
method __init__ (line 46) | def __init__(self, opt_str: str, possibilities: Sequence[str]) -> None...
class OptionError (line 48) | class OptionError(OptParseError):
method __init__ (line 50) | def __init__(self, msg: str, option: Option) -> None: ...
class OptionConflictError (line 52) | class OptionConflictError(OptionError): ...
class OptionValueError (line 53) | class OptionValueError(OptParseError): ...
class HelpFormatter (line 55) | class HelpFormatter:
method __init__ (line 70) | def __init__(
method dedent (line 73) | def dedent(self) -> None: ...
method expand_default (line 74) | def expand_default(self, option: Option) -> str: ...
method format_description (line 75) | def format_description(self, description: str | None) -> str: ...
method format_epilog (line 76) | def format_epilog(self, epilog: str | None) -> str: ...
method format_heading (line 78) | def format_heading(self, heading: str) -> str: ...
method format_option (line 79) | def format_option(self, option: Option) -> str: ...
method format_option_strings (line 80) | def format_option_strings(self, option: Option) -> str: ...
method format_usage (line 82) | def format_usage(self, usage: str) -> str: ...
method indent (line 83) | def indent(self) -> None: ...
method set_long_opt_delimiter (line 84) | def set_long_opt_delimiter(self, delim: str) -> None: ...
method set_parser (line 85) | def set_parser(self, parser: OptionParser) -> None: ...
method set_short_opt_delimiter (line 86) | def set_short_opt_delimiter(self, delim: str) -> None: ...
method store_option_strings (line 87) | def store_option_strings(self, parser: OptionParser) -> None: ...
class IndentedHelpFormatter (line 89) | class IndentedHelpFormatter(HelpFormatter):
method __init__ (line 90) | def __init__(
method format_heading (line 97) | def format_heading(self, heading: str) -> str: ...
method format_usage (line 98) | def format_usage(self, usage: str) -> str: ...
class TitledHelpFormatter (line 100) | class TitledHelpFormatter(HelpFormatter):
method __init__ (line 101) | def __init__(
method format_heading (line 108) | def format_heading(self, heading: str) -> str: ...
method format_usage (line 109) | def format_usage(self, usage: str) -> str: ...
class Option (line 111) | class Option:
method __init__ (line 137) | def __init__(
method _check_action (line 155) | def _check_action(self) -> None: ...
method _check_callback (line 156) | def _check_callback(self) -> None: ...
method _check_choice (line 157) | def _check_choice(self) -> None: ...
method _check_const (line 158) | def _check_const(self) -> None: ...
method _check_dest (line 159) | def _check_dest(self) -> None: ...
method _check_nargs (line 160) | def _check_nargs(self) -> None: ...
method _check_opt_strings (line 161) | def _check_opt_strings(self, opts: Iterable[str | None]) -> list[str]:...
method _check_type (line 162) | def _check_type(self) -> None: ...
method _set_attrs (line 163) | def _set_attrs(self, attrs: dict[str, Any]) -> None: ... # accepted a...
method _set_opt_strings (line 164) | def _set_opt_strings(self, opts: Iterable[str]) -> None: ...
method check_value (line 165) | def check_value(self, opt: str, value: str) -> Any: ... # return type...
method convert_value (line 166) | def convert_value(self, opt: str, value: str | tuple[str, ...] | None)...
method get_opt_string (line 167) | def get_opt_string(self) -> str: ...
method process (line 168) | def process(self, opt: str, value: str | tuple[str, ...] | None, value...
method take_action (line 170) | def take_action(self, action: str, dest: str, opt: str, value: Any, va...
method takes_value (line 171) | def takes_value(self) -> bool: ...
class OptionContainer (line 175) | class OptionContainer:
method __init__ (line 182) | def __init__(
method _check_conflict (line 185) | def _check_conflict(self, option: Option) -> None: ...
method _create_option_mappings (line 186) | def _create_option_mappings(self) -> None: ...
method _share_option_mappings (line 187) | def _share_option_mappings(self, parser: OptionParser) -> None: ...
method add_option (line 189) | def add_option(self, opt: Option, /) -> Option: ...
method add_option (line 191) | def add_option(
method add_options (line 210) | def add_options(self, option_list: Iterable[Option]) -> None: ...
method destroy (line 211) | def destroy(self) -> None: ...
method format_option_help (line 212) | def format_option_help(self, formatter: HelpFormatter) -> str: ...
method format_description (line 213) | def format_description(self, formatter: HelpFormatter) -> str: ...
method format_help (line 214) | def format_help(self, formatter: HelpFormatter) -> str: ...
method get_description (line 215) | def get_description(self) -> str | None: ...
method get_option (line 216) | def get_option(self, opt_str: str) -> Option | None: ...
method has_option (line 217) | def has_option(self, opt_str: str) -> bool: ...
method remove_option (line 218) | def remove_option(self, opt_str: str) -> None: ...
method set_conflict_handler (line 219) | def set_conflict_handler(self, handler: Literal["error", "resolve"]) -...
method set_description (line 220) | def set_description(self, description: str | None) -> None: ...
class OptionGroup (line 222) | class OptionGroup(OptionContainer):
method __init__ (line 226) | def __init__(self, parser: OptionParser, title: str, description: str ...
method _create_option_list (line 227) | def _create_option_list(self) -> None: ...
method set_title (line 228) | def set_title(self, title: str) -> None: ...
class Values (line 230) | class Values:
method __init__ (line 231) | def __init__(self, defaults: Mapping[str, object] | None = None) -> No...
method _update (line 232) | def _update(self, dict: Mapping[str, object], mode: Literal["careful",...
method _update_careful (line 233) | def _update_careful(self, dict: Mapping[str, object]) -> None: ...
method _update_loose (line 234) | def _update_loose(self, dict: Mapping[str, object]) -> None: ...
method ensure_value (line 235) | def ensure_value(self, attr: str, value: object) -> Any: ... # return...
method read_file (line 236) | def read_file(self, filename: str, mode: Literal["careful", "loose"] =...
method read_module (line 237) | def read_module(self, modname: str, mode: Literal["careful", "loose"] ...
method __getattr__ (line 241) | def __getattr__(self, name: str) -> Any: ...
method __setattr__ (line 243) | def __setattr__(self, name: str, value: Any, /) -> None: ...
method __eq__ (line 244) | def __eq__(self, other: object) -> bool: ...
class OptionParser (line 246) | class OptionParser(OptionContainer):
method __init__ (line 260) | def __init__(
method _add_help_option (line 273) | def _add_help_option(self) -> None: ...
method _add_version_option (line 274) | def _add_version_option(self) -> None: ...
method _create_option_list (line 275) | def _create_option_list(self) -> None: ...
method _get_all_options (line 276) | def _get_all_options(self) -> list[Option]: ...
method _get_args (line 277) | def _get_args(self, args: Iterable[Incomplete]) -> list[Incomplete]: ...
method _init_parsing_state (line 278) | def _init_parsing_state(self) -> None: ...
method _match_long_opt (line 279) | def _match_long_opt(self, opt: str) -> str: ...
method _populate_option_list (line 280) | def _populate_option_list(self, option_list: Iterable[Option], add_hel...
method _process_args (line 281) | def _process_args(self, largs: list[Incomplete], rargs: list[Incomplet...
method _process_long_opt (line 282) | def _process_long_opt(self, rargs: list[Incomplete], values) -> None: ...
method _process_short_opts (line 283) | def _process_short_opts(self, rargs: list[Incomplete], values) -> None...
method add_option_group (line 285) | def add_option_group(self, opt_group: OptionGroup, /) -> OptionGroup: ...
method add_option_group (line 287) | def add_option_group(self, title: str, /, description: str | None = No...
method check_values (line 288) | def check_values(self, values: Values, args: list[str]) -> tuple[Value...
method disable_interspersed_args (line 289) | def disable_interspersed_args(self) -> None: ...
method enable_interspersed_args (line 290) | def enable_interspersed_args(self) -> None: ...
method error (line 291) | def error(self, msg: str) -> NoReturn: ...
method exit (line 292) | def exit(self, status: int = 0, msg: str | None = None) -> NoReturn: ...
method expand_prog_name (line 293) | def expand_prog_name(self, s: str) -> str: ...
method format_epilog (line 294) | def format_epilog(self, formatter: HelpFormatter) -> str: ...
method format_help (line 295) | def format_help(self, formatter: HelpFormatter | None = None) -> str: ...
method format_option_help (line 296) | def format_option_help(self, formatter: HelpFormatter | None = None) -...
method get_default_values (line 297) | def get_default_values(self) -> Values: ...
method get_option_group (line 298) | def get_option_group(self, opt_str: str) -> OptionGroup | None: ...
method get_prog_name (line 299) | def get_prog_name(self) -> str: ...
method get_usage (line 300) | def get_usage(self) -> str: ...
method get_version (line 301) | def get_version(self) -> str: ...
method parse_args (line 303) | def parse_args(self, args: None = None, values: Values | None = None) ...
method parse_args (line 305) | def parse_args(self, args: Sequence[AnyStr], values: Values | None = N...
method print_usage (line 306) | def print_usage(self, file: IO[str] | None = None) -> None: ...
method print_help (line 307) | def print_help(self, file: IO[str] | None = None) -> None: ...
method print_version (line 308) | def print_version(self, file: IO[str] | None = None) -> None: ...
method set_default (line 309) | def set_default(self, dest, value) -> None: ...
method set_defaults (line 310) | def set_defaults(self, **kwargs) -> None: ...
method set_process_default_values (line 311) | def set_process_default_values(self, process) -> None: ...
method set_usage (line 312) | def set_usage(self, usage: str) -> None: ...
FILE: mypy/typeshed/stdlib/os/__init__.pyi
class _Environ (line 694) | class _Environ(MutableMapping[AnyStr, AnyStr], Generic[AnyStr]):
method __init__ (line 700) | def __init__(
method __init__ (line 711) | def __init__(
method setdefault (line 722) | def setdefault(self, key: AnyStr, value: AnyStr) -> AnyStr: ...
method copy (line 723) | def copy(self) -> dict[AnyStr, AnyStr]: ...
method __delitem__ (line 724) | def __delitem__(self, key: AnyStr) -> None: ...
method __getitem__ (line 725) | def __getitem__(self, key: AnyStr) -> AnyStr: ...
method __setitem__ (line 726) | def __setitem__(self, key: AnyStr, value: AnyStr) -> None: ...
method __iter__ (line 727) | def __iter__(self) -> Iterator[AnyStr]: ...
method __len__ (line 728) | def __len__(self) -> int: ...
method __or__ (line 730) | def __or__(self, other: Mapping[_T1, _T2]) -> dict[AnyStr | _T1, AnySt...
method __ror__ (line 731) | def __ror__(self, other: Mapping[_T1, _T2]) -> dict[AnyStr | _T1, AnyS...
method __ior__ (line 736) | def __ior__(self, other: Mapping[AnyStr, AnyStr]) -> Self: ...
method __ior__ (line 738) | def __ior__(self, other: Iterable[tuple[AnyStr, AnyStr]]) -> Self: ...
class stat_result (line 789) | class stat_result(structseq[float], tuple[int, int, int, int, int, int, ...
method st_mode (line 804) | def st_mode(self) -> int: ... # protection bits,
method st_ino (line 806) | def st_ino(self) -> int: ... # inode number,
method st_dev (line 808) | def st_dev(self) -> int: ... # device,
method st_nlink (line 810) | def st_nlink(self) -> int: ... # number of hard links,
method st_uid (line 812) | def st_uid(self) -> int: ... # user id of owner,
method st_gid (line 814) | def st_gid(self) -> int: ... # group id of owner,
method st_size (line 816) | def st_size(self) -> int: ... # size of file, in bytes,
method st_atime (line 818) | def st_atime(self) -> float: ... # time of most recent access,
method st_mtime (line 820) | def st_mtime(self) -> float: ... # time of most recent content modifi...
method st_ctime (line 829) | def st_ctime(self) -> float: ...
method st_ctime (line 832) | def st_ctime(self) -> float: ...
method st_atime_ns (line 835) | def st_atime_ns(self) -> int: ... # time of most recent access, in na...
method st_mtime_ns (line 837) | def st_mtime_ns(self) -> int: ... # time of most recent content modif...
method st_ctime_ns (line 840) | def st_ctime_ns(self) -> int: ...
method st_file_attributes (line 843) | def st_file_attributes(self) -> int: ...
method st_reparse_tag (line 845) | def st_reparse_tag(self) -> int: ...
method st_birthtime (line 848) | def st_birthtime(self) -> float: ... # time of file creation in seconds
method st_birthtime_ns (line 850) | def st_birthtime_ns(self) -> int: ... # time of file creation in nano...
method st_blocks (line 853) | def st_blocks(self) -> int: ... # number of blocks allocated for file
method st_blksize (line 855) | def st_blksize(self) -> int: ... # filesystem blocksize
method st_rdev (line 857) | def st_rdev(self) -> int: ... # type of device if an inode device
method st_gen (line 863) | def st_gen(self) -> int: ... # file generation number
method st_birthtime (line 865) | def st_birthtime(self) -> float: ... # time of file creation in seconds
method st_flags (line 868) | def st_flags(self) -> int: ... # user defined flags for file
class PathLike (line 876) | class PathLike(ABC, Protocol[AnyStr]): # type: ignore[misc]
method __fspath__ (line 878) | def __fspath__(self) -> AnyStr: ...
function listdir (line 881) | def listdir(path: StrPath | None = None) -> list[str]: ...
function listdir (line 883) | def listdir(path: BytesPath) -> list[bytes]: ...
function listdir (line 885) | def listdir(path: int) -> list[str]: ...
class DirEntry (line 887) | class DirEntry(Generic[AnyStr]):
method name (line 892) | def name(self) -> AnyStr: ...
method path (line 894) | def path(self) -> AnyStr: ...
method inode (line 895) | def inode(self) -> int: ...
method is_dir (line 896) | def is_dir(self, *, follow_symlinks: bool = True) -> bool: ...
method is_file (line 897) | def is_file(self, *, follow_symlinks: bool = True) -> bool: ...
method is_symlink (line 898) | def is_symlink(self) -> bool: ...
method stat (line 899) | def stat(self, *, follow_symlinks: bool = True) -> stat_result: ...
method __fspath__ (line 900) | def __fspath__(self) -> AnyStr: ...
method __class_getitem__ (line 902) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
method is_junction (line 904) | def is_junction(self) -> bool: ...
class statvfs_result (line 907) | class statvfs_result(structseq[int], tuple[int, int, int, int, int, int,...
method f_bsize (line 923) | def f_bsize(self) -> int: ...
method f_frsize (line 925) | def f_frsize(self) -> int: ...
method f_blocks (line 927) | def f_blocks(self) -> int: ...
method f_bfree (line 929) | def f_bfree(self) -> int: ...
method f_bavail (line 931) | def f_bavail(self) -> int: ...
method f_files (line 933) | def f_files(self) -> int: ...
method f_ffree (line 935) | def f_ffree(self) -> int: ...
method f_favail (line 937) | def f_favail(self) -> int: ...
method f_flag (line 939) | def f_flag(self) -> int: ...
method f_namemax (line 941) | def f_namemax(self) -> int: ...
method f_fsid (line 943) | def f_fsid(self) -> int: ...
function fsencode (line 946) | def fsencode(filename: StrOrBytesPath) -> bytes: ...
function fsdecode (line 947) | def fsdecode(filename: StrOrBytesPath) -> str: ...
function fspath (line 949) | def fspath(path: str) -> str: ...
function fspath (line 951) | def fspath(path: bytes) -> bytes: ...
function fspath (line 953) | def fspath(path: PathLike[AnyStr]) -> AnyStr: ...
function get_exec_path (line 954) | def get_exec_path(env: Mapping[str, str] | None = None) -> list[str]: ...
function getlogin (line 955) | def getlogin() -> str: ...
function getpid (line 956) | def getpid() -> int: ...
function getppid (line 957) | def getppid() -> int: ...
function strerror (line 958) | def strerror(code: int, /) -> str: ...
function umask (line 959) | def umask(mask: int, /) -> int: ...
class uname_result (line 961) | class uname_result(structseq[str], tuple[str, str, str, str, str]):
method sysname (line 966) | def sysname(self) -> str: ...
method nodename (line 968) | def nodename(self) -> str: ...
method release (line 970) | def release(self) -> str: ...
method version (line 972) | def version(self) -> str: ...
method machine (line 974) | def machine(self) -> str: ...
function ctermid (line 977) | def ctermid() -> str: ...
function getegid (line 978) | def getegid() -> int: ...
function geteuid (line 979) | def geteuid() -> int: ...
function getgid (line 980) | def getgid() -> int: ...
function getgrouplist (line 981) | def getgrouplist(user: str, group: int, /) -> list[int]: ...
function getgroups (line 982) | def getgroups() -> list[int]: ... # Unix only, behaves differently on Mac
function initgroups (line 983) | def initgroups(username: str, gid: int, /) -> None: ...
function getpgid (line 984) | def getpgid(pid: int) -> int: ...
function getpgrp (line 985) | def getpgrp() -> int: ...
function getpriority (line 986) | def getpriority(which: int, who: int) -> int: ...
function setpriority (line 987) | def setpriority(which: int, who: int, priority: int) -> None: ...
function getresuid (line 989) | def getresuid() -> tuple[int, int, int]: ...
function getresgid (line 990) | def getresgid() -> tuple[int, int, int]: ...
function getuid (line 992) | def getuid() -> int: ...
function setegid (line 993) | def setegid(egid: int, /) -> None: ...
function seteuid (line 994) | def seteuid(euid: int, /) -> None: ...
function setgid (line 995) | def setgid(gid: int, /) -> None: ...
function setgroups (line 996) | def setgroups(groups: Sequence[int], /) -> None: ...
function setpgrp (line 997) | def setpgrp() -> None: ...
function setpgid (line 998) | def setpgid(pid: int, pgrp: int, /) -> None: ...
function setregid (line 999) | def setregid(rgid: int, egid: int, /) -> None: ...
function setresgid (line 1001) | def setresgid(rgid: int, egid: int, sgid: int, /) -> None: ...
function setresuid (line 1002) | def setresuid(ruid: int, euid: int, suid: int, /) -> None: ...
function setreuid (line 1004) | def setreuid(ruid: int, euid: int, /) -> None: ...
function getsid (line 1005) | def getsid(pid: int, /) -> int: ...
function setsid (line 1006) | def setsid() -> None: ...
function setuid (line 1007) | def setuid(uid: int, /) -> None: ...
function uname (line 1008) | def uname() -> uname_result: ...
function getenv (line 1011) | def getenv(key: str) -> str | None: ...
function getenv (line 1013) | def getenv(key: str, default: _T) -> str | _T: ...
function getenvb (line 1017) | def getenvb(key: bytes) -> bytes | None: ...
function getenvb (line 1019) | def getenvb(key: bytes, default: _T) -> bytes | _T: ...
function putenv (line 1020) | def putenv(name: StrOrBytesPath, value: StrOrBytesPath, /) -> None: ...
function unsetenv (line 1021) | def unsetenv(name: StrOrBytesPath, /) -> None: ...
function putenv (line 1024) | def putenv(name: str, value: str, /) -> None: ...
function unsetenv (line 1027) | def unsetenv(name: str, /) -> None: ...
function fdopen (line 1032) | def fdopen(
function fdopen (line 1043) | def fdopen(
function fdopen (line 1054) | def fdopen(
function fdopen (line 1065) | def fdopen(
function fdopen (line 1076) | def fdopen(
function fdopen (line 1087) | def fdopen(
function fdopen (line 1098) | def fdopen(
function close (line 1108) | def close(fd: int) -> None: ...
function closerange (line 1109) | def closerange(fd_low: int, fd_high: int, /) -> None: ...
function device_encoding (line 1110) | def device_encoding(fd: int) -> str | None: ...
function dup (line 1111) | def dup(fd: int, /) -> int: ...
function dup2 (line 1112) | def dup2(fd: int, fd2: int, inheritable: bool = True) -> int: ...
function fstat (line 1113) | def fstat(fd: int) -> stat_result: ...
function ftruncate (line 1114) | def ftruncate(fd: int, length: int, /) -> None: ...
function fsync (line 1115) | def fsync(fd: FileDescriptorLike) -> None: ...
function isatty (line 1116) | def isatty(fd: int, /) -> bool: ...
function login_tty (line 1119) | def login_tty(fd: int, /) -> None: ...
function lseek (line 1122) | def lseek(fd: int, position: int, whence: int, /) -> int: ...
function lseek (line 1125) | def lseek(fd: int, position: int, how: int, /) -> int: ...
function open (line 1127) | def open(path: StrOrBytesPath, flags: int, mode: int = 0o777, *, dir_fd:...
function pipe (line 1128) | def pipe() -> tuple[int, int]: ...
function read (line 1129) | def read(fd: int, length: int, /) -> bytes: ...
function get_blocking (line 1132) | def get_blocking(fd: int, /) -> bool: ...
function set_blocking (line 1133) | def set_blocking(fd: int, blocking: bool, /) -> None: ...
function fchown (line 1136) | def fchown(fd: int, uid: int, gid: int) -> None: ...
function fpathconf (line 1137) | def fpathconf(fd: int, name: str | int, /) -> int: ...
function fstatvfs (line 1138) | def fstatvfs(fd: int, /) -> statvfs_result: ...
function lockf (line 1139) | def lockf(fd: int, command: int, length: int, /) -> None: ...
function openpty (line 1140) | def openpty() -> tuple[int, int]: ... # some flavors of Unix
function fdatasync (line 1142) | def fdatasync(fd: FileDescriptorLike) -> None: ...
function pipe2 (line 1143) | def pipe2(flags: int, /) -> tuple[int, int]: ... # some flavors of Unix
function posix_fallocate (line 1144) | def posix_fallocate(fd: int, offset: int, length: int, /) -> None: ...
function posix_fadvise (line 1145) | def posix_fadvise(fd: int, offset: int, length: int, advice: int, /) -> ...
function pread (line 1147) | def pread(fd: int, length: int, offset: int, /) -> bytes: ...
function pwrite (line 1148) | def pwrite(fd: int, buffer: ReadableBuffer, offset: int, /) -> int: ...
function preadv (line 1150) | def preadv(fd: int, buffers: SupportsLenAndGetItem[WriteableBuffer], off...
function pwritev (line 1151) | def pwritev(fd: int, buffers: SupportsLenAndGetItem[ReadableBuffer], off...
function sendfile (line 1161) | def sendfile(out_fd: FileDescriptor, in_fd: FileDescriptor, offset: int ...
function sendfile (line 1163) | def sendfile(
function readv (line 1173) | def readv(fd: int, buffers: SupportsLenAndGetItem[WriteableBuffer], /) -...
function writev (line 1174) | def writev(fd: int, buffers: SupportsLenAndGetItem[ReadableBuffer], /) -...
class terminal_size (line 1177) | class terminal_size(structseq[int], tuple[int, int]):
method columns (line 1182) | def columns(self) -> int: ...
method lines (line 1184) | def lines(self) -> int: ...
function get_terminal_size (line 1186) | def get_terminal_size(fd: int = ..., /) -> terminal_size: ...
function get_inheritable (line 1187) | def get_inheritable(fd: int, /) -> bool: ...
function set_inheritable (line 1188) | def set_inheritable(fd: int, inheritable: bool, /) -> None: ...
function get_handle_inheritable (line 1191) | def get_handle_inheritable(handle: int, /) -> bool: ...
function set_handle_inheritable (line 1192) | def set_handle_inheritable(handle: int, inheritable: bool, /) -> None: ...
function tcgetpgrp (line 1196) | def tcgetpgrp(fd: int, /) -> int: ...
function tcsetpgrp (line 1197) | def tcsetpgrp(fd: int, pgid: int, /) -> None: ...
function ttyname (line 1198) | def ttyname(fd: int, /) -> str: ...
function write (line 1200) | def write(fd: int, data: ReadableBuffer, /) -> int: ...
function access (line 1201) | def access(
function chdir (line 1204) | def chdir(path: FileDescriptorOrPath) -> None: ...
function fchdir (line 1207) | def fchdir(fd: FileDescriptorLike) -> None: ...
function getcwd (line 1209) | def getcwd() -> str: ...
function getcwdb (line 1210) | def getcwdb() -> bytes: ...
function chmod (line 1211) | def chmod(path: FileDescriptorOrPath, mode: int, *, dir_fd: int | None =...
function chflags (line 1214) | def chflags(path: StrOrBytesPath, flags: int, follow_symlinks: bool = Tr...
function lchflags (line 1215) | def lchflags(path: StrOrBytesPath, flags: int) -> None: ...
function chroot (line 1218) | def chroot(path: StrOrBytesPath) -> None: ...
function chown (line 1219) | def chown(
function lchown (line 1222) | def lchown(path: StrOrBytesPath, uid: int, gid: int) -> None: ...
function link (line 1224) | def link(
function lstat (line 1232) | def lstat(path: StrOrBytesPath, *, dir_fd: int | None = None) -> stat_re...
function mkdir (line 1233) | def mkdir(path: StrOrBytesPath, mode: int = 0o777, *, dir_fd: int | None...
function mkfifo (line 1236) | def mkfifo(path: StrOrBytesPath, mode: int = 0o666, *, dir_fd: int | Non...
function makedirs (line 1238) | def makedirs(name: StrOrBytesPath, mode: int = 0o777, exist_ok: bool = F...
function mknod (line 1241) | def mknod(path: StrOrBytesPath, mode: int = 0o600, device: int = 0, *, d...
function major (line 1242) | def major(device: int, /) -> int: ...
function minor (line 1243) | def minor(device: int, /) -> int: ...
function makedev (line 1244) | def makedev(major: int, minor: int, /) -> int: ...
function pathconf (line 1245) | def pathconf(path: FileDescriptorOrPath, name: str | int) -> int: ... #...
function readlink (line 1247) | def readlink(path: GenericPath[AnyStr], *, dir_fd: int | None = None) ->...
function remove (line 1248) | def remove(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None: ...
function removedirs (line 1249) | def removedirs(name: StrOrBytesPath) -> None: ...
function rename (line 1250) | def rename(src: StrOrBytesPath, dst: StrOrBytesPath, *, src_dir_fd: int ...
function renames (line 1251) | def renames(old: StrOrBytesPath, new: StrOrBytesPath) -> None: ...
function replace (line 1252) | def replace(
function rmdir (line 1255) | def rmdir(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None: ...
class _ScandirIterator (line 1257) | class _ScandirIterator(Generic[AnyStr]):
method __del__ (line 1258) | def __del__(self) -> None: ...
method __iter__ (line 1259) | def __iter__(self) -> Self: ...
method __next__ (line 1260) | def __next__(self) -> DirEntry[AnyStr]: ...
method __enter__ (line 1261) | def __enter__(self) -> Self: ...
method __exit__ (line 1262) | def __exit__(self, *args: Unused) -> None: ...
method close (line 1263) | def close(self) -> None: ...
function scandir (line 1266) | def scandir(path: None = None) -> _ScandirIterator[str]: ...
function scandir (line 1268) | def scandir(path: int) -> _ScandirIterator[str]: ...
function scandir (line 1270) | def scandir(path: GenericPath[AnyStr]) -> _ScandirIterator[AnyStr]: ...
function stat (line 1271) | def stat(path: FileDescriptorOrPath, *, dir_fd: int | None = None, follo...
function statvfs (line 1274) | def statvfs(path: FileDescriptorOrPath) -> statvfs_result: ... # Unix only
function symlink (line 1276) | def symlink(
function sync (line 1281) | def sync() -> None: ... # Unix only
function truncate (line 1283) | def truncate(path: FileDescriptorOrPath, length: int) -> None: ... # Un...
function unlink (line 1284) | def unlink(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None: ...
function utime (line 1285) | def utime(
function walk (line 1296) | def walk(
function fwalk (line 1302) | def fwalk(
function fwalk (line 1311) | def fwalk(
function getxattr (line 1320) | def getxattr(path: FileDescriptorOrPath, attribute: StrOrBytesPath, *, f...
function listxattr (line 1321) | def listxattr(path: FileDescriptorOrPath | None = None, *, follow_symlin...
function removexattr (line 1322) | def removexattr(path: FileDescriptorOrPath, attribute: StrOrBytesPath, *...
function setxattr (line 1323) | def setxattr(
function abort (line 1332) | def abort() -> NoReturn: ...
function execl (line 1335) | def execl(file: StrOrBytesPath, *args: Unpack[tuple[StrOrBytesPath, Unpa...
function execlp (line 1336) | def execlp(file: StrOrBytesPath, *args: Unpack[tuple[StrOrBytesPath, Unp...
function execle (line 1339) | def execle(
function execlpe (line 1342) | def execlpe(
function execv (line 1367) | def execv(path: StrOrBytesPath, argv: _ExecVArgs, /) -> NoReturn: ...
function execve (line 1368) | def execve(path: FileDescriptorOrPath, argv: _ExecVArgs, env: _ExecEnv) ...
function execvp (line 1369) | def execvp(file: StrOrBytesPath, args: _ExecVArgs) -> NoReturn: ...
function execvpe (line 1370) | def execvpe(file: StrOrBytesPath, args: _ExecVArgs, env: _ExecEnv) -> No...
function _exit (line 1371) | def _exit(status: int) -> NoReturn: ...
function kill (line 1372) | def kill(pid: int, signal: int, /) -> None: ...
function fork (line 1376) | def fork() -> int: ...
function forkpty (line 1377) | def forkpty() -> tuple[int, int]: ... # some flavors of Unix
function killpg (line 1378) | def killpg(pgid: int, signal: int, /) -> None: ...
function nice (line 1379) | def nice(increment: int, /) -> int: ...
function plock (line 1381) | def plock(op: int, /) -> None: ...
class _wrap_close (line 1383) | class _wrap_close:
method __init__ (line 1384) | def __init__(self, stream: TextIOWrapper, proc: Popen[str]) -> None: ...
method close (line 1385) | def close(self) -> int | None: ...
method __enter__ (line 1386) | def __enter__(self) -> Self: ...
method __exit__ (line 1387) | def __exit__(
method __iter__ (line 1390) | def __iter__(self) -> Iterator[str]: ...
method read (line 1395) | def read(self, size: int | None = -1, /) -> str: ...
method readable (line 1396) | def readable(self) -> bool: ...
method readline (line 1397) | def readline(self, size: int = -1, /) -> str: ...
method readlines (line 1398) | def readlines(self, hint: int = -1, /) -> list[str]: ...
method writable (line 1399) | def writable(self) -> bool: ...
method write (line 1400) | def write(self, s: str, /) -> int: ...
method writelines (line 1401) | def writelines(self, lines: Iterable[str], /) -> None: ...
function popen (line 1403) | def popen(cmd: str, mode: str = "r", buffering: int = -1) -> _wrap_close...
function spawnl (line 1404) | def spawnl(mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args:...
function spawnle (line 1405) | def spawnle(mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args...
function spawnv (line 1408) | def spawnv(mode: int, file: StrOrBytesPath, args: _ExecVArgs) -> int: ...
function spawnve (line 1409) | def spawnve(mode: int, file: StrOrBytesPath, args: _ExecVArgs, env: _Exe...
function spawnv (line 1412) | def spawnv(mode: int, path: StrOrBytesPath, argv: _ExecVArgs, /) -> int:...
function spawnve (line 1413) | def spawnve(mode: int, path: StrOrBytesPath, argv: _ExecVArgs, env: _Exe...
function system (line 1415) | def system(command: StrOrBytesPath) -> int: ...
class times_result (line 1417) | class times_result(structseq[float], tuple[float, float, float, float, f...
method user (line 1422) | def user(self) -> float: ...
method system (line 1424) | def system(self) -> float: ...
method children_user (line 1426) | def children_user(self) -> float: ...
method children_system (line 1428) | def children_system(self) -> float: ...
method elapsed (line 1430) | def elapsed(self) -> float: ...
function times (line 1432) | def times() -> times_result: ...
function waitpid (line 1433) | def waitpid(pid: int, options: int, /) -> tuple[int, int]: ...
function startfile (line 1437) | def startfile(
function startfile (line 1445) | def startfile(filepath: StrOrBytesPath, operation: str = ...) -> None: ...
function spawnlp (line 1448) | def spawnlp(mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *args...
function spawnlpe (line 1449) | def spawnlpe(mode: int, file: StrOrBytesPath, arg0: StrOrBytesPath, *arg...
function spawnvp (line 1450) | def spawnvp(mode: int, file: StrOrBytesPath, args: _ExecVArgs) -> int: ...
function spawnvpe (line 1451) | def spawnvpe(mode: int, file: StrOrBytesPath, args: _ExecVArgs, env: _Ex...
function wait (line 1452) | def wait() -> tuple[int, int]: ... # Unix only
class waitid_result (line 1456) | class waitid_result(structseq[int], tuple[int, int, int, int, int]):
method si_pid (line 1461) | def si_pid(self) -> int: ...
method si_uid (line 1463) | def si_uid(self) -> int: ...
method si_signo (line 1465) | def si_signo(self) -> int: ...
method si_status (line 1467) | def si_status(self) -> int: ...
method si_code (line 1469) | def si_code(self) -> int: ...
function waitid (line 1471) | def waitid(idtype: int, ident: int, options: int, /) -> waitid_result | ...
function wait3 (line 1475) | def wait3(options: int) -> tuple[int, int, struct_rusage]: ...
function wait4 (line 1476) | def wait4(pid: int, options: int) -> tuple[int, int, struct_rusage]: ...
function WCOREDUMP (line 1477) | def WCOREDUMP(status: int, /) -> bool: ...
function WIFCONTINUED (line 1478) | def WIFCONTINUED(status: int) -> bool: ...
function WIFSTOPPED (line 1479) | def WIFSTOPPED(status: int) -> bool: ...
function WIFSIGNALED (line 1480) | def WIFSIGNALED(status: int) -> bool: ...
function WIFEXITED (line 1481) | def WIFEXITED(status: int) -> bool: ...
function WEXITSTATUS (line 1482) | def WEXITSTATUS(status: int) -> int: ...
function WSTOPSIG (line 1483) | def WSTOPSIG(status: int) -> int: ...
function WTERMSIG (line 1484) | def WTERMSIG(status: int) -> int: ...
function posix_spawn (line 1485) | def posix_spawn(
function posix_spawnp (line 1499) | def posix_spawnp(
class sched_param (line 1519) | class sched_param(structseq[int], tuple[int]):
method __new__ (line 1523) | def __new__(cls, sched_priority: int) -> Self: ...
method sched_priority (line 1525) | def sched_priority(self) -> int: ...
function sched_get_priority_min (line 1527) | def sched_get_priority_min(policy: int) -> int: ... # some flavors of Unix
function sched_get_priority_max (line 1528) | def sched_get_priority_max(policy: int) -> int: ... # some flavors of Unix
function sched_yield (line 1529) | def sched_yield() -> None: ... # some flavors of Unix
function sched_setscheduler (line 1531) | def sched_setscheduler(pid: int, policy: int, param: sched_param, /) -> ...
function sched_getscheduler (line 1532) | def sched_getscheduler(pid: int, /) -> int: ... # some flavors of Unix
function sched_rr_get_interval (line 1533) | def sched_rr_get_interval(pid: int, /) -> float: ... # some flavors of ...
function sched_setparam (line 1534) | def sched_setparam(pid: int, param: sched_param, /) -> None: ... # some...
function sched_getparam (line 1535) | def sched_getparam(pid: int, /) -> sched_param: ... # some flavors of Unix
function sched_setaffinity (line 1536) | def sched_setaffinity(pid: int, mask: Iterable[int], /) -> None: ... # ...
function sched_getaffinity (line 1537) | def sched_getaffinity(pid: int, /) -> set[int]: ... # some flavors of Unix
function cpu_count (line 1539) | def cpu_count() -> int | None: ...
function process_cpu_count (line 1545) | def process_cpu_count() -> int: ...
function process_cpu_count (line 1547) | def process_cpu_count() -> int | None: ...
function confstr (line 1551) | def confstr(name: str | int, /) -> str | None: ...
function getloadavg (line 1552) | def getloadavg() -> tuple[float, float, float]: ...
function sysconf (line 1553) | def sysconf(name: str | int, /) -> int: ...
function getrandom (line 1556) | def getrandom(size: int, flags: int = 0) -> bytes: ...
function urandom (line 1558) | def urandom(size: int, /) -> bytes: ...
function register_at_fork (line 1561) | def register_at_fork(
class _AddedDllDirectory (line 1569) | class _AddedDllDirectory:
method __init__ (line 1571) | def __init__(self, path: str | None, cookie: _T, remove_dll_directory:...
method close (line 1572) | def close(self) -> None: ...
method __enter__ (line 1573) | def __enter__(self) -> Self: ...
method __exit__ (line 1574) | def __exit__(self, *args: Unused) -> None: ...
function add_dll_directory (line 1576) | def add_dll_directory(path: str) -> _AddedDllDirectory: ...
function memfd_create (line 1596) | def memfd_create(name: str, flags: int = ...) -> int: ...
function copy_file_range (line 1597) | def copy_file_range(src: int, dst: int, count: int, offset_src: int | No...
function waitstatus_to_exitcode (line 1600) | def waitstatus_to_exitcode(status: int) -> int: ...
function pidfd_open (line 1603) | def pidfd_open(pid: int, flags: int = ...) -> int: ...
function listdrives (line 1606) | def listdrives() -> list[str]: ...
function listmounts (line 1607) | def listmounts(volume: str) -> list[str]: ...
function listvolumes (line 1608) | def listvolumes() -> list[str]: ...
function eventfd (line 1617) | def eventfd(initval: int, flags: int = 524288) -> FileDescriptor: ...
function eventfd_read (line 1618) | def eventfd_read(fd: FileDescriptor) -> int: ...
function eventfd_write (line 1619) | def eventfd_write(fd: FileDescriptor, value: int) -> None: ...
function splice (line 1620) | def splice(
function unshare (line 1644) | def unshare(flags: int) -> None: ...
function setns (line 1645) | def setns(fd: FileDescriptorLike, nstype: int = 0) -> None: ...
function posix_openpt (line 1648) | def posix_openpt(oflag: int, /) -> int: ...
function grantpt (line 1649) | def grantpt(fd: FileDescriptorLike, /) -> None: ...
function unlockpt (line 1650) | def unlockpt(fd: FileDescriptorLike, /) -> None: ...
function ptsname (line 1651) | def ptsname(fd: FileDescriptorLike, /) -> str: ...
function timerfd_create (line 1660) | def timerfd_create(clockid: int, /, *, flags: int = 0) -> int: ...
function timerfd_settime (line 1661) | def timerfd_settime(
function timerfd_settime_ns (line 1664) | def timerfd_settime_ns(fd: FileDescriptor, /, *, flags: int = 0, initial...
function timerfd_gettime (line 1665) | def timerfd_gettime(fd: FileDescriptor, /) -> tuple[float, float]: ...
function timerfd_gettime_ns (line 1666) | def timerfd_gettime_ns(fd: FileDescriptor, /) -> tuple[int, int]: ...
function fchmod (line 1670) | def fchmod(fd: int, mode: int) -> None: ...
function lchmod (line 1675) | def lchmod(path: StrOrBytesPath, mode: int) -> None: ...
FILE: mypy/typeshed/stdlib/ossaudiodev.pyi
function open (line 123) | def open(mode: Literal["r", "w", "rw"]) -> Any: ...
function open (line 125) | def open(device: str, mode: Literal["r", "w", "rw"]) -> Any: ...
function openmixer (line 128) | def openmixer(device: str = ...) -> Any: ...
class OSSAudioError (line 130) | class OSSAudioError(Exception): ...
FILE: mypy/typeshed/stdlib/parser.pyi
function expr (line 6) | def expr(source: str) -> STType: ...
function suite (line 7) | def suite(source: str) -> STType: ...
function sequence2st (line 8) | def sequence2st(sequence: Sequence[Any]) -> STType: ...
function tuple2st (line 9) | def tuple2st(sequence: Sequence[Any]) -> STType: ...
function st2list (line 10) | def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> ...
function st2tuple (line 11) | def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) ->...
function compilest (line 12) | def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType: ...
function isexpr (line 13) | def isexpr(st: STType) -> bool: ...
function issuite (line 14) | def issuite(st: STType) -> bool: ...
class ParserError (line 16) | class ParserError(Exception): ...
class STType (line 19) | class STType:
method compile (line 21) | def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ...
method isexpr (line 22) | def isexpr(self) -> bool: ...
method issuite (line 23) | def issuite(self) -> bool: ...
method tolist (line 24) | def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[...
method totuple (line 25) | def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tupl...
FILE: mypy/typeshed/stdlib/pathlib.pyi
class PurePath (line 29) | class PurePath(PathLike[str]):
method full_match (line 32) | def full_match(self, pattern: StrPath, *, case_sensitive: bool | None ...
method parts (line 35) | def parts(self) -> tuple[str, ...]: ...
method drive (line 37) | def drive(self) -> str: ...
method root (line 39) | def root(self) -> str: ...
method anchor (line 41) | def anchor(self) -> str: ...
method name (line 43) | def name(self) -> str: ...
method suffix (line 45) | def suffix(self) -> str: ...
method suffixes (line 47) | def suffixes(self) -> list[str]: ...
method stem (line 49) | def stem(self) -> str: ...
method __new__ (line 51) | def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ...
method __init__ (line 52) | def __init__(self, *args: StrPath) -> None: ... # pyright: ignore[rep...
method __new__ (line 54) | def __new__(cls, *args: StrPath) -> Self: ...
method __hash__ (line 56) | def __hash__(self) -> int: ...
method __str__ (line 57) | def __str__(self) -> str: ...
method __fspath__ (line 58) | def __fspath__(self) -> str: ...
method __lt__ (line 59) | def __lt__(self, other: PurePath) -> bool: ...
method __le__ (line 60) | def __le__(self, other: PurePath) -> bool: ...
method __gt__ (line 61) | def __gt__(self, other: PurePath) -> bool: ...
method __ge__ (line 62) | def __ge__(self, other: PurePath) -> bool: ...
method __truediv__ (line 63) | def __truediv__(self, key: StrPath) -> Self: ...
method __rtruediv__ (line 64) | def __rtruediv__(self, key: StrPath) -> Self: ...
method __bytes__ (line 65) | def __bytes__(self) -> bytes: ...
method as_posix (line 66) | def as_posix(self) -> str: ...
method as_uri (line 67) | def as_uri(self) -> str: ...
method is_absolute (line 68) | def is_absolute(self) -> bool: ...
method is_reserved (line 69) | def is_reserved(self) -> bool: ...
method is_relative_to (line 71) | def is_relative_to(self, other: StrPath, /, *_deprecated: StrPath) -> ...
method is_relative_to (line 73) | def is_relative_to(self, *other: StrPath) -> bool: ...
method match (line 76) | def match(self, path_pattern: str, *, case_sensitive: bool | None = No...
method match (line 78) | def match(self, path_pattern: str) -> bool: ...
method relative_to (line 81) | def relative_to(self, other: StrPath, /, *_deprecated: StrPath, walk_u...
method relative_to (line 83) | def relative_to(self, *other: StrPath) -> Self: ...
method with_name (line 85) | def with_name(self, name: str) -> Self: ...
method with_stem (line 87) | def with_stem(self, stem: str) -> Self: ...
method with_suffix (line 89) | def with_suffix(self, suffix: str) -> Self: ...
method joinpath (line 90) | def joinpath(self, *other: StrPath) -> Self: ...
method parents (line 92) | def parents(self) -> Sequence[Self]: ...
method parent (line 94) | def parent(self) -> Self: ...
method __class_getitem__ (line 96) | def __class_getitem__(cls, type: Any) -> GenericAlias: ...
method with_segments (line 99) | def with_segments(self, *args: StrPath) -> Self: ...
class PurePosixPath (line 101) | class PurePosixPath(PurePath): ...
class PureWindowsPath (line 102) | class PureWindowsPath(PurePath): ...
class Path (line 104) | class Path(PurePath):
method __new__ (line 106) | def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ... # pyr...
method __new__ (line 108) | def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ...
method cwd (line 111) | def cwd(cls) -> Self: ...
method stat (line 113) | def stat(self, *, follow_symlinks: bool = True) -> stat_result: ...
method chmod (line 114) | def chmod(self, mode: int, *, follow_symlinks: bool = True) -> None: ...
method stat (line 116) | def stat(self) -> stat_result: ...
method chmod (line 117) | def chmod(self, mode: int) -> None: ...
method from_uri (line 121) | def from_uri(cls, uri: str) -> Self: ...
method is_dir (line 122) | def is_dir(self, *, follow_symlinks: bool = True) -> bool: ...
method is_file (line 123) | def is_file(self, *, follow_symlinks: bool = True) -> bool: ...
method read_text (line 124) | def read_text(self, encoding: str | None = None, errors: str | None = ...
method __enter__ (line 126) | def __enter__(self) -> Self: ...
method __exit__ (line 127) | def __exit__(self, t: type[BaseException] | None, v: BaseException | N...
method is_dir (line 128) | def is_dir(self) -> bool: ...
method is_file (line 129) | def is_file(self) -> bool: ...
method read_text (line 130) | def read_text(self, encoding: str | None = None, errors: str | None = ...
method glob (line 133) | def glob(
method rglob (line 136) | def rglob(
method glob (line 140) | def glob(self, pattern: str, *, case_sensitive: bool | None = None) ->...
method rglob (line 141) | def rglob(self, pattern: str, *, case_sensitive: bool | None = None) -...
method glob (line 143) | def glob(self, pattern: str) -> Generator[Self, None, None]: ...
method rglob (line 144) | def rglob(self, pattern: str) -> Generator[Self, None, None]: ...
method exists (line 147) | def exists(self, *, follow_symlinks: bool = True) -> bool: ...
method exists (line 149) | def exists(self) -> bool: ...
method is_symlink (line 151) | def is_symlink(self) -> bool: ...
method is_socket (line 152) | def is_socket(self) -> bool: ...
method is_fifo (line 153) | def is_fifo(self) -> bool: ...
method is_block_device (line 154) | def is_block_device(self) -> bool: ...
method is_char_device (line 155) | def is_char_device(self) -> bool: ...
method is_junction (line 157) | def is_junction(self) -> bool: ...
method iterdir (line 159) | def iterdir(self) -> Generator[Self, None, None]: ...
method lchmod (line 160) | def lchmod(self, mode: int) -> None: ...
method lstat (line 161) | def lstat(self) -> stat_result: ...
method mkdir (line 162) | def mkdir(self, mode: int = 0o777, parents: bool = False, exist_ok: bo...
method copy (line 165) | def copy(self, target: StrPath, *, follow_symlinks: bool = True, prese...
method copytree (line 166) | def copytree(
method open (line 181) | def open(
method open (line 191) | def open(
method open (line 196) | def open(
method open (line 205) | def open(
method open (line 214) | def open(
method open (line 224) | def open(
method open (line 229) | def open(
method owner (line 236) | def owner(self, *, follow_symlinks: bool = True) -> str: ...
method group (line 237) | def group(self, *, follow_symlinks: bool = True) -> str: ...
method owner (line 239) | def owner(self) -> str: ...
method group (line 240) | def group(self) -> str: ...
method is_mount (line 245) | def is_mount(self) -> bool: ...
method readlink (line 248) | def readlink(self) -> Self: ...
method rename (line 251) | def rename(self, target: StrPath) -> Self: ...
method replace (line 252) | def replace(self, target: StrPath) -> Self: ...
method rename (line 254) | def rename(self, target: str | PurePath) -> Self: ...
method replace (line 255) | def replace(self, target: str | PurePath) -> Self: ...
method resolve (line 257) | def resolve(self, strict: bool = False) -> Self: ...
method rmdir (line 258) | def rmdir(self) -> None: ...
method delete (line 260) | def delete(self, ignore_errors: bool = False, on_error: Callable[[OSEr...
method symlink_to (line 262) | def symlink_to(self, target: StrOrBytesPath, target_is_directory: bool...
method hardlink_to (line 264) | def hardlink_to(self, target: StrOrBytesPath) -> None: ...
method touch (line 266) | def touch(self, mode: int = 0o666, exist_ok: bool = True) -> None: ...
method unlink (line 267) | def unlink(self, missing_ok: bool = False) -> None: ...
method home (line 269) | def home(cls) -> Self: ...
method absolute (line 270) | def absolute(self) -> Self: ...
method expanduser (line 271) | def expanduser(self) -> Self: ...
method read_bytes (line 272) | def read_bytes(self) -> bytes: ...
method samefile (line 273) | def samefile(self, other_path: StrPath) -> bool: ...
method write_bytes (line 274) | def write_bytes(self, data: ReadableBuffer) -> int: ...
method write_text (line 276) | def write_text(
method write_text (line 280) | def write_text(self, data: str, encoding: str | None = None, errors: s...
method link_to (line 284) | def link_to(self, target: StrOrBytesPath) -> None: ...
method link_to (line 286) | def link_to(self, target: StrOrBytesPath) -> None: ...
method walk (line 288) | def walk(
method rmtree (line 293) | def rmtree(self, ignore_errors: bool = False, on_error: Callable[[OSEr...
class PosixPath (line 295) | class PosixPath(Path, PurePosixPath): ...
class WindowsPath (line 296) | class WindowsPath(Path, PureWindowsPath): ...
class UnsupportedOperation (line 299) | class UnsupportedOperation(NotImplementedError): ...
FILE: mypy/typeshed/stdlib/pdb.pyi
class Restart (line 18) | class Restart(Exception): ...
function run (line 20) | def run(statement: str, globals: dict[str, Any] | None = None, locals: M...
function runeval (line 21) | def runeval(expression: str, globals: dict[str, Any] | None = None, loca...
function runctx (line 22) | def runctx(statement: str, globals: dict[str, Any], locals: Mapping[str,...
function runcall (line 23) | def runcall(func: Callable[_P, _T], *args: _P.args, **kwds: _P.kwargs) -...
function set_trace (line 24) | def set_trace(*, header: str | None = None) -> None: ...
function post_mortem (line 25) | def post_mortem(t: TracebackType | None = None) -> None: ...
function pm (line 26) | def pm() -> None: ...
class Pdb (line 28) | class Pdb(Bdb, Cmd):
method __init__ (line 50) | def __init__(
method forget (line 59) | def forget(self) -> None: ...
method setup (line 60) | def setup(self, f: FrameType | None, tb: TracebackType | None) -> None...
method execRcLines (line 62) | def execRcLines(self) -> None: ...
method bp_commands (line 67) | def bp_commands(self, frame: FrameType) -> bool: ...
method interaction (line 70) | def interaction(self, frame: FrameType | None, tb_or_exc: TracebackTyp...
method interaction (line 72) | def interaction(self, frame: FrameType | None, traceback: TracebackTyp...
method displayhook (line 74) | def displayhook(self, obj: object) -> None: ...
method handle_command_def (line 75) | def handle_command_def(self, line: str) -> bool: ...
method defaultFile (line 76) | def defaultFile(self) -> str: ...
method lineinfo (line 77) | def lineinfo(self, identifier: str) -> tuple[None, None, None] | tuple...
method checkline (line 78) | def checkline(self, filename: str, lineno: int) -> int: ...
method _getval (line 79) | def _getval(self, arg: str) -> object: ...
method print_stack_trace (line 80) | def print_stack_trace(self) -> None: ...
method print_stack_entry (line 81) | def print_stack_entry(self, frame_lineno: tuple[FrameType, int], promp...
method lookupmodule (line 82) | def lookupmodule(self, filename: str) -> str | None: ...
method _runscript (line 84) | def _runscript(self, filename: str) -> None: ...
method completedefault (line 87) | def completedefault(self, text: str, line: str, begidx: int, endidx: i...
method do_commands (line 89) | def do_commands(self, arg: str) -> bool | None: ...
method do_break (line 90) | def do_break(self, arg: str, temporary: bool = ...) -> bool | None: ...
method do_tbreak (line 91) | def do_tbreak(self, arg: str) -> bool | None: ...
method do_enable (line 92) | def do_enable(self, arg: str) -> bool | None: ...
method do_disable (line 93) | def do_disable(self, arg: str) -> bool | None: ...
method do_condition (line 94) | def do_condition(self, arg: str) -> bool | None: ...
method do_ignore (line 95) | def do_ignore(self, arg: str) -> bool | None: ...
method do_clear (line 96) | def do_clear(self, arg: str) -> bool | None: ...
method do_where (line 97) | def do_where(self, arg: str) -> bool | None: ...
method do_exceptions (line 99) | def do_exceptions(self, arg: str) -> bool | None: ...
method do_up (line 101) | def do_up(self, arg: str) -> bool | None: ...
method do_down (line 102) | def do_down(self, arg: str) -> bool | None: ...
method do_until (line 103) | def do_until(self, arg: str) -> bool | None: ...
method do_step (line 104) | def do_step(self, arg: str) -> bool | None: ...
method do_next (line 105) | def do_next(self, arg: str) -> bool | None: ...
method do_run (line 106) | def do_run(self, arg: str) -> bool | None: ...
method do_return (line 107) | def do_return(self, arg: str) -> bool | None: ...
method do_continue (line 108) | def do_continue(self, arg: str) -> bool | None: ...
method do_jump (line 109) | def do_jump(self, arg: str) -> bool | None: ...
method do_debug (line 110) | def do_debug(self, arg: str) -> bool | None: ...
method do_quit (line 111) | def do_quit(self, arg: str) -> bool | None: ...
method do_EOF (line 112) | def do_EOF(self, arg: str) -> bool | None: ...
method do_args (line 113) | def do_args(self, arg: str) -> bool | None: ...
method do_retval (line 114) | def do_retval(self, arg: str) -> bool | None: ...
method do_p (line 115) | def do_p(self, arg: str) -> bool | None: ...
method do_pp (line 116) | def do_pp(self, arg: str) -> bool | None: ...
method do_list (line 117) | def do_list(self, arg: str) -> bool | None: ...
method do_whatis (line 118) | def do_whatis(self, arg: str) -> bool | None: ...
method do_alias (line 119) | def do_alias(self, arg: str) -> bool | None: ...
method do_unalias (line 120) | def do_unalias(self, arg: str) -> bool | None: ...
method do_help (line 121) | def do_help(self, arg: str) -> bool | None: ...
method help_exec (line 142) | def help_exec(self) -> None: ...
method help_pdb (line 143) | def help_pdb(self) -> None: ...
method sigint_handler (line 144) | def sigint_handler(self, signum: signal.Signals, frame: FrameType) -> ...
method message (line 146) | def message(self, msg: str, end: str = "\n") -> None: ...
method message (line 148) | def message(self, msg: str) -> None: ...
method error (line 150) | def error(self, msg: str) -> None: ...
method completenames (line 152) | def completenames(self, text: str, line: str, begidx: int, endidx: int...
method set_convenience_variable (line 154) | def set_convenience_variable(self, frame: FrameType, name: str, value:...
method _select_frame (line 156) | def _select_frame(self, number: int) -> None: ...
method _getval_except (line 157) | def _getval_except(self, arg: str, frame: FrameType | None = None) -> ...
method _print_lines (line 158) | def _print_lines(
method _cmdloop (line 161) | def _cmdloop(self) -> None: ...
method do_display (line 162) | def do_display(self, arg: str) -> bool | None: ...
method do_interact (line 163) | def do_interact(self, arg: str) -> bool | None: ...
method do_longlist (line 164) | def do_longlist(self, arg: str) -> bool | None: ...
method do_source (line 165) | def do_source(self, arg: str) -> bool | None: ...
method do_undisplay (line 166) | def do_undisplay(self, arg: str) -> bool | None: ...
method _complete_location (line 168) | def _complete_location(self, text: str, line: str, begidx: int, endidx...
method _complete_bpnumber (line 169) | def _complete_bpnumber(self, text: str, line: str, begidx: int, endidx...
method _complete_expression (line 170) | def _complete_expression(self, text: str, line: str, begidx: int, endi...
method complete_undisplay (line 171) | def complete_undisplay(self, text: str, line: str, begidx: int, endidx...
method complete_unalias (line 172) | def complete_unalias(self, text: str, line: str, begidx: int, endidx: ...
method _runmodule (line 192) | def _runmodule(self, module_name: str) -> None: ...
function find_function (line 196) | def find_function(funcname: str, filename: str) -> tuple[str, str, int] ...
function main (line 197) | def main() -> None: ...
function help (line 198) | def help() -> None: ...
function getsourcelines (line 201) | def getsourcelines(obj: _SourceObjectType) -> tuple[list[str], int]: ...
function lasti2lineno (line 203) | def lasti2lineno(code: CodeType, lasti: int) -> int: ...
class _rstr (line 205) | class _rstr(str):
method __repr__ (line 206) | def __repr__(self) -> Self: ...
FILE: mypy/typeshed/stdlib/pickle.pyi
class PickleBuffer (line 111) | class PickleBuffer:
method __new__ (line 112) | def __new__(cls, buffer: ReadableBuffer) -> Self: ...
method raw (line 113) | def raw(self) -> memoryview: ...
method release (line 114) | def release(self) -> None: ...
method __buffer__ (line 115) | def __buffer__(self, flags: int, /) -> memoryview: ...
method __release_buffer__ (line 116) | def __release_buffer__(self, buffer: memoryview, /) -> None: ...
function encode_long (line 198) | def encode_long(x: int) -> bytes: ... # undocumented
function decode_long (line 199) | def decode_long(data: Iterable[SupportsIndex] | SupportsBytes | Readable...
class _Pickler (line 202) | class _Pickler:
method __init__ (line 208) | def __init__(
method dump (line 216) | def dump(self, obj: Any) -> None: ...
method clear_memo (line 217) | def clear_memo(self) -> None: ...
method persistent_id (line 218) | def persistent_id(self, obj: Any) -> Any: ...
class _Unpickler (line 220) | class _Unpickler:
method __init__ (line 222) | def __init__(
method load (line 231) | def load(self) -> Any: ...
method find_class (line 232) | def find_class(self, module: str, name: str) -> Any: ...
method persistent_load (line 233) | def persistent_load(self, pid: Any) -> Any: ...
FILE: mypy/typeshed/stdlib/pickletools.pyi
class ArgumentDescriptor (line 17) | class ArgumentDescriptor:
method __init__ (line 22) | def __init__(self, name: str, n: int, reader: _Reader, doc: str) -> No...
function read_uint1 (line 24) | def read_uint1(f: IO[bytes]) -> int: ...
function read_uint2 (line 28) | def read_uint2(f: IO[bytes]) -> int: ...
function read_int4 (line 32) | def read_int4(f: IO[bytes]) -> int: ...
function read_uint4 (line 36) | def read_uint4(f: IO[bytes]) -> int: ...
function read_uint8 (line 40) | def read_uint8(f: IO[bytes]) -> int: ...
function read_stringnl (line 45) | def read_stringnl(
function read_stringnl (line 50) | def read_stringnl(f: IO[bytes], decode: bool = True, stripquotes: bool =...
function read_stringnl_noescape (line 54) | def read_stringnl_noescape(f: IO[bytes]) -> str: ...
function read_stringnl_noescape_pair (line 58) | def read_stringnl_noescape_pair(f: IO[bytes]) -> str: ...
function read_string1 (line 62) | def read_string1(f: IO[bytes]) -> str: ...
function read_string4 (line 66) | def read_string4(f: IO[bytes]) -> str: ...
function read_bytes1 (line 70) | def read_bytes1(f: IO[bytes]) -> bytes: ...
function read_bytes4 (line 74) | def read_bytes4(f: IO[bytes]) -> bytes: ...
function read_bytes8 (line 78) | def read_bytes8(f: IO[bytes]) -> bytes: ...
function read_unicodestringnl (line 82) | def read_unicodestringnl(f: IO[bytes]) -> str: ...
function read_unicodestring1 (line 86) | def read_unicodestring1(f: IO[bytes]) -> str: ...
function read_unicodestring4 (line 90) | def read_unicodestring4(f: IO[bytes]) -> str: ...
function read_unicodestring8 (line 94) | def read_unicodestring8(f: IO[bytes]) -> str: ...
function read_decimalnl_short (line 98) | def read_decimalnl_short(f: IO[bytes]) -> int: ...
function read_decimalnl_long (line 99) | def read_decimalnl_long(f: IO[bytes]) -> int: ...
function read_floatnl (line 104) | def read_floatnl(f: IO[bytes]) -> float: ...
function read_float8 (line 108) | def read_float8(f: IO[bytes]) -> float: ...
function read_long1 (line 112) | def read_long1(f: IO[bytes]) -> int: ...
function read_long4 (line 116) | def read_long4(f: IO[bytes]) -> int: ...
class StackObject (line 120) | class StackObject:
method __init__ (line 124) | def __init__(self, name: str, obtype: type[Any] | tuple[type[Any], ......
class OpcodeInfo (line 145) | class OpcodeInfo:
method __init__ (line 153) | def __init__(
function genops (line 166) | def genops(pickle: bytes | bytearray | IO[bytes]) -> Iterator[tuple[Opco...
function optimize (line 167) | def optimize(p: bytes | bytearray | IO[bytes]) -> bytes: ...
function dis (line 168) | def dis(
FILE: mypy/typeshed/stdlib/pipes.pyi
class Template (line 5) | class Template:
method reset (line 6) | def reset(self) -> None: ...
method clone (line 7) | def clone(self) -> Template: ...
method debug (line 8) | def debug(self, flag: bool) -> None: ...
method append (line 9) | def append(self, cmd: str, kind: str) -> None: ...
method prepend (line 10) | def prepend(self, cmd: str, kind: str) -> None: ...
method open (line 11) | def open(self, file: str, rw: str) -> os._wrap_close: ...
method copy (line 12) | def copy(self, infile: str, outfile: str) -> int: ...
function quote (line 16) | def quote(s: str) -> str: ...
FILE: mypy/typeshed/stdlib/pkgutil.pyi
class ModuleInfo (line 25) | class ModuleInfo(NamedTuple):
function extend_path (line 30) | def extend_path(path: _PathT, name: str) -> _PathT: ...
class ImpImporter (line 33) | class ImpImporter:
method __init__ (line 34) | def __init__(self, path: str | None = None) -> None: ...
class ImpLoader (line 36) | class ImpLoader:
method __init__ (line 37) | def __init__(self, fullname: str, file: IO[str], filename: str, etc: t...
function find_loader (line 40) | def find_loader(fullname: str) -> LoaderProtocol | None: ...
function get_importer (line 41) | def get_importer(path_item: str) -> PathEntryFinderProtocol | None: ...
function get_loader (line 43) | def get_loader(module_or_name: str) -> LoaderProtocol | None: ...
function iter_importers (line 44) | def iter_importers(fullname: str = "") -> Iterator[MetaPathFinderProtoco...
function iter_modules (line 45) | def iter_modules(path: Iterable[str] | None = None, prefix: str = "") ->...
function read_code (line 46) | def read_code(stream: SupportsRead[bytes]) -> Any: ... # undocumented
function walk_packages (line 47) | def walk_packages(
function get_data (line 50) | def get_data(package: str, resource: str) -> bytes | None: ...
function resolve_name (line 53) | def resolve_name(name: str) -> Any: ...
FILE: mypy/typeshed/stdlib/platform.pyi
function libc_ver (line 5) | def libc_ver(executable: str | None = None, lib: str = "", version: str ...
function win32_ver (line 6) | def win32_ver(release: str = "", version: str = "", csd: str = "", ptype...
function win32_edition (line 7) | def win32_edition() -> str: ...
function win32_is_iot (line 8) | def win32_is_iot() -> bool: ...
function mac_ver (line 9) | def mac_ver(
function java_ver (line 12) | def java_ver(
function system_alias (line 15) | def system_alias(system: str, release: str, version: str) -> tuple[str, ...
function architecture (line 16) | def architecture(executable: str = sys.executable, bits: str = "", linka...
class _uname_result_base (line 22) | class _uname_result_base(NamedTuple):
class uname_result (line 35) | class uname_result(_uname_result_base):
method __new__ (line 39) | def __new__(_cls, system: str, node: str, release: str, version: str, ...
method processor (line 41) | def processor(self) -> str: ...
class uname_result (line 45) | class uname_result(NamedTuple):
method __new__ (line 39) | def __new__(_cls, system: str, node: str, release: str, version: str, ...
method processor (line 41) | def processor(self) -> str: ...
function uname (line 53) | def uname() -> uname_result: ...
function system (line 54) | def system() -> str: ...
function node (line 55) | def node() -> str: ...
function release (line 56) | def release() -> str: ...
function version (line 57) | def version() -> str: ...
function machine (line 58) | def machine() -> str: ...
function processor (line 59) | def processor() -> str: ...
function python_implementation (line 60) | def python_implementation() -> str: ...
function python_version (line 61) | def python_version() -> str: ...
function python_version_tuple (line 62) | def python_version_tuple() -> tuple[str, str, str]: ...
function python_branch (line 63) | def python_branch() -> str: ...
function python_revision (line 64) | def python_revision() -> str: ...
function python_build (line 65) | def python_build() -> tuple[str, str]: ...
function python_compiler (line 66) | def python_compiler() -> str: ...
function platform (line 67) | def platform(aliased: bool = ..., terse: bool = ...) -> str: ...
function freedesktop_os_release (line 70) | def freedesktop_os_release() -> dict[str, str]: ...
class AndroidVer (line 73) | class AndroidVer(NamedTuple):
class IOSVersionInfo (line 81) | class IOSVersionInfo(NamedTuple):
function android_ver (line 87) | def android_ver(
function ios_ver (line 95) | def ios_ver(system: str = "", release: str = "", model: str = "", is_sim...
FILE: mypy/typeshed/stdlib/plistlib.pyi
class PlistFormat (line 13) | class PlistFormat(Enum):
function load (line 20) | def load(
function loads (line 27) | def loads(
function load (line 36) | def load(fp: IO[bytes], *, fmt: PlistFormat | None = None, dict_type: ty...
function loads (line 37) | def loads(
function load (line 42) | def load(
function loads (line 49) | def loads(
function dump (line 58) | def dump(
function dumps (line 67) | def dumps(
function dump (line 77) | def dump(
function dumps (line 85) | def dumps(
function readPlist (line 94) | def readPlist(pathOrFile: str | IO[bytes]) -> Any: ...
function writePlist (line 95) | def writePlist(value: Mapping[str, Any], pathOrFile: str | IO[bytes]) ->...
function readPlistFromBytes (line 96) | def readPlistFromBytes(data: ReadableBuffer) -> Any: ...
function writePlistToBytes (line 97) | def writePlistToBytes(value: Mapping[str, Any]) -> bytes: ...
class Data (line 100) | class Data:
method __init__ (line 102) | def __init__(self, data: bytes) -> None: ...
class UID (line 105) | class UID:
method __init__ (line 107) | def __init__(self, data: int) -> None: ...
method __index__ (line 108) | def __index__(self) -> int: ...
method __reduce__ (line 109) | def __reduce__(self) -> tuple[type[Self], tuple[int]]: ...
method __hash__ (line 110) | def __hash__(self) -> int: ...
method __eq__ (line 111) | def __eq__(self, other: object) -> bool: ...
class InvalidFileException (line 113) | class InvalidFileException(ValueError):
method __init__ (line 114) | def __init__(self, message: str = "Invalid file") -> None: ...
FILE: mypy/typeshed/stdlib/poplib.pyi
class error_proto (line 13) | class error_proto(Exception): ...
class POP3 (line 22) | class POP3:
method __init__ (line 29) | def __init__(self, host: str, port: int = 110, timeout: float = ...) -...
method getwelcome (line 30) | def getwelcome(self) -> bytes: ...
method set_debuglevel (line 31) | def set_debuglevel(self, level: int) -> None: ...
method user (line 32) | def user(self, user: str) -> bytes: ...
method pass_ (line 33) | def pass_(self, pswd: str) -> bytes: ...
method stat (line 34) | def stat(self) -> tuple[int, int]: ...
method list (line 35) | def list(self, which: Any | None = None) -> _LongResp: ...
method retr (line 36) | def retr(self, which: Any) -> _LongResp: ...
method dele (line 37) | def dele(self, which: Any) -> bytes: ...
method noop (line 38) | def noop(self) -> bytes: ...
method rset (line 39) | def rset(self) -> bytes: ...
method quit (line 40) | def quit(self) -> bytes: ...
method close (line 41) | def close(self) -> None: ...
method rpop (line 42) | def rpop(self, user: str) -> bytes: ...
method apop (line 44) | def apop(self, user: str, password: str) -> bytes: ...
method top (line 45) | def top(self, which: Any, howmuch: int) -> _LongResp: ...
method uidl (line 47) | def uidl(self) -> _LongResp: ...
method uidl (line 49) | def uidl(self, which: Any) -> bytes: ...
method utf8 (line 50) | def utf8(self) -> bytes: ...
method capa (line 51) | def capa(self) -> dict[str, _list[str]]: ...
method stls (line 52) | def stls(self, context: ssl.SSLContext | None = None) -> bytes: ...
class POP3_SSL (line 54) | class POP3_SSL(POP3):
method __init__ (line 56) | def __init__(
method stls (line 59) | def stls(self, context: Any = None) -> NoReturn: ...
method __init__ (line 61) | def __init__(
method stls (line 72) | def stls(self, context: Any = None, keyfile: Any = None, certfile: Any...
FILE: mypy/typeshed/stdlib/posixpath.pyi
function abspath (line 82) | def abspath(path: PathLike[AnyStr]) -> AnyStr: ...
function abspath (line 84) | def abspath(path: AnyStr) -> AnyStr: ...
function basename (line 86) | def basename(p: PathLike[AnyStr]) -> AnyStr: ...
function basename (line 88) | def basename(p: AnyOrLiteralStr) -> AnyOrLiteralStr: ...
function dirname (line 90) | def dirname(p: PathLike[AnyStr]) -> AnyStr: ...
function dirname (line 92) | def dirname(p: AnyOrLiteralStr) -> AnyOrLiteralStr: ...
function expanduser (line 94) | def expanduser(path: PathLike[AnyStr]) -> AnyStr: ...
function expanduser (line 96) | def expanduser(path: AnyStr) -> AnyStr: ...
function expandvars (line 98) | def expandvars(path: PathLike[AnyStr]) -> AnyStr: ...
function expandvars (line 100) | def expandvars(path: AnyStr) -> AnyStr: ...
function normcase (line 102) | def normcase(s: PathLike[AnyStr]) -> AnyStr: ...
function normcase (line 104) | def normcase(s: AnyOrLiteralStr) -> AnyOrLiteralStr: ...
function normpath (line 106) | def normpath(path: PathLike[AnyStr]) -> AnyStr: ...
function normpath (line 108) | def normpath(path: AnyOrLiteralStr) -> AnyOrLiteralStr: ...
function commonpath (line 110) | def commonpath(paths: Iterable[LiteralString]) -> LiteralString: ...
function commonpath (line 112) | def commonpath(paths: Iterable[StrPath]) -> str: ...
function commonpath (line 114) | def commonpath(paths: Iterable[BytesPath]) -> bytes: ...
function join (line 120) | def join(a: LiteralString, /, *paths: LiteralString) -> LiteralString: ...
function join (line 122) | def join(a: StrPath, /, *paths: StrPath) -> str: ...
function join (line 124) | def join(a: BytesPath, /, *paths: BytesPath) -> bytes: ...
function realpath (line 128) | def realpath(filename: PathLike[AnyStr], *, strict: bool = False) -> Any...
function realpath (line 130) | def realpath(filename: AnyStr, *, strict: bool = False) -> AnyStr: ...
function realpath (line 134) | def realpath(filename: PathLike[AnyStr]) -> AnyStr: ...
function realpath (line 136) | def realpath(filename: AnyStr) -> AnyStr: ...
function relpath (line 139) | def relpath(path: LiteralString, start: LiteralString | None = None) -> ...
function relpath (line 141) | def relpath(path: BytesPath, start: BytesPath | None = None) -> bytes: ...
function relpath (line 143) | def relpath(path: StrPath, start: StrPath | None = None) -> str: ...
function split (line 145) | def split(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr]: ...
function split (line 147) | def split(p: AnyOrLiteralStr) -> tuple[AnyOrLiteralStr, AnyOrLiteralStr]...
function splitdrive (line 149) | def splitdrive(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr]: ...
function splitdrive (line 151) | def splitdrive(p: AnyOrLiteralStr) -> tuple[AnyOrLiteralStr, AnyOrLitera...
function splitext (line 153) | def splitext(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr]: ...
function splitext (line 155) | def splitext(p: AnyOrLiteralStr) -> tuple[AnyOrLiteralStr, AnyOrLiteralS...
function isabs (line 156) | def isabs(s: StrOrBytesPath) -> bool: ...
function islink (line 157) | def islink(path: FileDescriptorOrPath) -> bool: ...
function ismount (line 158) | def ismount(path: FileDescriptorOrPath) -> bool: ...
function lexists (line 159) | def lexists(path: FileDescriptorOrPath) -> bool: ...
function isjunction (line 162) | def isjunction(path: StrOrBytesPath) -> bool: ...
function splitroot (line 164) | def splitroot(p: AnyOrLiteralStr) -> tuple[AnyOrLiteralStr, AnyOrLiteral...
function splitroot (line 166) | def splitroot(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr, AnyStr]: ...
FILE: mypy/typeshed/stdlib/pprint.pyi
function pformat (line 7) | def pformat(
function pformat (line 19) | def pformat(
function pp (line 30) | def pp(
function pp (line 43) | def pp(
function pprint (line 55) | def pprint(
function pprint (line 68) | def pprint(
function isreadable (line 79) | def isreadable(object: object) -> bool: ...
function isrecursive (line 80) | def isrecursive(object: object) -> bool: ...
function saferepr (line 81) | def saferepr(object: object) -> str: ...
class PrettyPrinter (line 83) | class PrettyPrinter:
method __init__ (line 85) | def __init__(
method __init__ (line 97) | def __init__(
method pformat (line 108) | def pformat(self, object: object) -> str: ...
method pprint (line 109) | def pprint(self, object: object) -> None: ...
method isreadable (line 110) | def isreadable(self, object: object) -> bool: ...
method isrecursive (line 111) | def isrecursive(self, object: object) -> bool: ...
method format (line 112) | def format(self, object: object, context: dict[int, int], maxlevels: i...
FILE: mypy/typeshed/stdlib/profile.pyi
function run (line 8) | def run(statement: str, filename: str | None = None, sort: str | int = -...
function runctx (line 9) | def runctx(
class Profile (line 17) | class Profile:
method __init__ (line 20) | def __init__(self, timer: Callable[[], float] | None = None, bias: int...
method set_cmd (line 21) | def set_cmd(self, cmd: str) -> None: ...
method simulate_call (line 22) | def simulate_call(self, name: str) -> None: ...
method simulate_cmd_complete (line 23) | def simulate_cmd_complete(self) -> None: ...
method print_stats (line 24) | def print_stats(self, sort: str | int = -1) -> None: ...
method dump_stats (line 25) | def dump_stats(self, file: StrOrBytesPath) -> None: ...
method create_stats (line 26) | def create_stats(self) -> None: ...
method snapshot_stats (line 27) | def snapshot_stats(self) -> None: ...
method run (line 28) | def run(self, cmd: str) -> Self: ...
method runctx (line 29) | def runctx(self, cmd: str, globals: dict[str, Any], locals: Mapping[st...
method runcall (line 30) | def runcall(self, func: Callable[_P, _T], /, *args: _P.args, **kw: _P....
method calibrate (line 31) | def calibrate(self, m: int, verbose: int = 0) -> float: ...
FILE: mypy/typeshed/stdlib/pstats.pyi
class SortKey (line 22) | class SortKey(StrEnum):
class SortKey (line 34) | class SortKey(str, Enum):
class FunctionProfile (line 49) | class FunctionProfile:
class StatsProfile (line 59) | class StatsProfile:
class Stats (line 65) | class Stats:
method __init__ (line 67) | def __init__(
method init (line 74) | def init(self, arg: None | str | Profile | _cProfile) -> None: ...
method load_stats (line 75) | def load_stats(self, arg: None | str | Profile | _cProfile) -> None: ...
method get_top_level_stats (line 76) | def get_top_level_stats(self) -> None: ...
method add (line 77) | def add(self, *arg_list: None | str | Profile | _cProfile | Self) -> S...
method dump_stats (line 78) | def dump_stats(self, filename: StrOrBytesPath) -> None: ...
method get_sort_arg_defs (line 79) | def get_sort_arg_defs(self) -> _SortArgDict: ...
method sort_stats (line 81) | def sort_stats(self, field: Literal[-1, 0, 1, 2]) -> Self: ...
method sort_stats (line 83) | def sort_stats(self, *field: str) -> Self: ...
method reverse_order (line 84) | def reverse_order(self) -> Self: ...
method strip_dirs (line 85) | def strip_dirs(self) -> Self: ...
method calc_callees (line 86) | def calc_callees(self) -> None: ...
method eval_print_amount (line 87) | def eval_print_amount(self, sel: _Selector, list: list[str], msg: str)...
method get_stats_profile (line 89) | def get_stats_profile(self) -> StatsProfile: ...
method get_print_list (line 91) | def get_print_list(self, sel_list: Iterable[_Selector]) -> tuple[int, ...
method print_stats (line 92) | def print_stats(self, *amount: _Selector) -> Self: ...
method print_callees (line 93) | def print_callees(self, *amount: _Selector) -> Self: ...
method print_callers (line 94) | def print_callers(self, *amount: _Selector) -> Self: ...
method print_call_heading (line 95) | def print_call_heading(self, name_size: int, column_title: str) -> Non...
method print_call_line (line 96) | def print_call_line(self, name_size: int, source: str, call_dict: dict...
method print_title (line 97) | def print_title(self) -> None: ...
method print_line (line 98) | def print_line(self, func: str) -> None: ...
FILE: mypy/typeshed/stdlib/pty.pyi
function openpty (line 15) | def openpty() -> tuple[int, int]: ...
function master_open (line 19) | def master_open() -> tuple[int, str]: ...
function slave_open (line 21) | def slave_open(tty_name: str) -> int: ...
function fork (line 23) | def fork() -> tuple[int, int]: ...
function spawn (line 24) | def spawn(argv: str | Iterable[str], master_read: _Reader = ..., stdin_r...
FILE: mypy/typeshed/stdlib/pwd.pyi
class struct_passwd (line 7) | class struct_passwd(structseq[Any], tuple[str, str, int, int, str, str, ...
method pw_name (line 12) | def pw_name(self) -> str: ...
method pw_passwd (line 14) | def pw_passwd(self) -> str: ...
method pw_uid (line 16) | def pw_uid(self) -> int: ...
method pw_gid (line 18) | def pw_gid(self) -> int: ...
method pw_gecos (line 20) | def pw_gecos(self) -> str: ...
method pw_dir (line 22) | def pw_dir(self) -> str: ...
method pw_shell (line 24) | def pw_shell(self) -> str: ...
function getpwall (line 26) | def getpwall() -> list[struct_passwd]: ...
function getpwuid (line 27) | def getpwuid(uid: int, /) -> struct_passwd: ...
function getpwnam (line 28) | def getpwnam(name: str, /) -> struct_passwd: ...
FILE: mypy/typeshed/stdlib/py_compile.pyi
class PyCompileError (line 7) | class PyCompileError(Exception):
method __init__ (line 12) | def __init__(self, exc_type: type[BaseException], exc_value: BaseExcep...
class PycInvalidationMode (line 14) | class PycInvalidationMode(enum.Enum):
function _get_default_invalidation_mode (line 19) | def _get_default_invalidation_mode() -> PycInvalidationMode: ...
function compile (line 20) | def compile(
function main (line 31) | def main() -> None: ...
function main (line 34) | def main(args: list[str] | None = None) -> int: ...
FILE: mypy/typeshed/stdlib/pyclbr.pyi
class _Object (line 6) | class _Object:
method __init__ (line 22) | def __init__(
method __init__ (line 26) | def __init__(self, module: str, name: str, file: str, lineno: int, par...
class Function (line 28) | class Function(_Object):
method __init__ (line 36) | def __init__(
method __init__ (line 48) | def __init__(self, module: str, name: str, file: str, lineno: int, par...
class Class (line 50) | class Class(_Object):
method __init__ (line 57) | def __init__(
method __init__ (line 69) | def __init__(
function readmodule (line 73) | def readmodule(module: str, path: Sequence[str] | None = None) -> dict[s...
function readmodule_ex (line 74) | def readmodule_ex(module: str, path: Sequence[str] | None = None) -> dic...
FILE: mypy/typeshed/stdlib/pydoc.pyi
class _Pager (line 20) | class _Pager(Protocol):
method __call__ (line 21) | def __call__(self, text: str, title: str = "") -> None: ...
function pathdirs (line 23) | def pathdirs() -> list[str]: ...
function getdoc (line 24) | def getdoc(object: object) -> str: ...
function splitdoc (line 25) | def splitdoc(doc: AnyStr) -> tuple[AnyStr, AnyStr]: ...
function classname (line 26) | def classname(object: object, modname: str) -> str: ...
function isdata (line 27) | def isdata(object: object) -> bool: ...
function replace (line 28) | def replace(text: AnyStr, *pairs: AnyStr) -> AnyStr: ...
function cram (line 29) | def cram(text: str, maxlen: int) -> str: ...
function stripid (line 30) | def stripid(text: str) -> str: ...
function allmethods (line 31) | def allmethods(cl: type) -> MutableMapping[str, MethodType]: ...
function visiblename (line 32) | def visiblename(name: str, all: Container[str] | None = None, obj: objec...
function classify_class_attrs (line 33) | def classify_class_attrs(object: object) -> list[tuple[str, str, type, s...
function ispackage (line 34) | def ispackage(path: str) -> bool: ...
function source_synopsis (line 35) | def source_synopsis(file: IO[AnyStr]) -> AnyStr | None: ...
function synopsis (line 36) | def synopsis(filename: str, cache: MutableMapping[str, tuple[int, str]] ...
class ErrorDuringImport (line 38) | class ErrorDuringImport(Exception):
method __init__ (line 43) | def __init__(self, filename: str, exc_info: OptExcInfo) -> None: ...
function importfile (line 45) | def importfile(path: str) -> ModuleType: ...
function safeimport (line 46) | def safeimport(path: str, forceload: bool = ..., cache: MutableMapping[s...
class Doc (line 48) | class Doc:
method document (line 50) | def document(self, object: object, name: str | None = None, *args: Any...
method fail (line 51) | def fail(self, object: object, name: str | None = None, *args: Any) ->...
method docmodule (line 53) | def docmodule(self, object: object, name: str | None = None, *args: An...
method docclass (line 55) | def docclass(self, object: object, name: str | None = None, *args: Any...
method docroutine (line 57) | def docroutine(self, object: object, name: str | None = None, *args: A...
method docother (line 59) | def docother(self, object: object, name: str | None = None, *args: Any...
method docproperty (line 61) | def docproperty(self, object: object, name: str | None = None, *args: ...
method docdata (line 63) | def docdata(self, object: object, name: str | None = None, *args: Any)...
method getdocloc (line 64) | def getdocloc(self, object: object, basedir: str = ...) -> str | None:...
class HTMLRepr (line 66) | class HTMLRepr(Repr):
method __init__ (line 67) | def __init__(self) -> None: ...
method escape (line 68) | def escape(self, text: str) -> str: ...
method repr (line 69) | def repr(self, object: object) -> str: ...
method repr1 (line 70) | def repr1(self, x: object, level: complex) -> str: ...
method repr_string (line 71) | def repr_string(self, x: str, level: complex) -> str: ...
method repr_str (line 72) | def repr_str(self, x: str, level: complex) -> str: ...
method repr_instance (line 73) | def repr_instance(self, x: object, level: complex) -> str: ...
method repr_unicode (line 74) | def repr_unicode(self, x: AnyStr, level: complex) -> str: ...
class HTMLDoc (line 76) | class HTMLDoc(Doc):
method page (line 80) | def page(self, title: str, contents: str) -> str: ...
method heading (line 82) | def heading(self, title: str, extras: str = "") -> str: ...
method section (line 83) | def section(
method multicolumn (line 93) | def multicolumn(self, list: list[_T], format: Callable[[_T], str]) -> ...
method heading (line 95) | def heading(self, title: str, fgcol: str, bgcol: str, extras: str = ""...
method section (line 96) | def section(
method multicolumn (line 107) | def multicolumn(self, list: list[_T], format: Callable[[_T], str], col...
method bigsection (line 109) | def bigsection(self, title: str, *args: Any) -> str: ...
method preformat (line 110) | def preformat(self, text: str) -> str: ...
method grey (line 111) | def grey(self, text: str) -> str: ...
method namelink (line 112) | def namelink(self, name: str, *dicts: MutableMapping[str, str]) -> str...
method classlink (line 113) | def classlink(self, object: object, modname: str) -> str: ...
method modulelink (line 114) | def modulelink(self, object: object) -> str: ...
method modpkglink (line 115) | def modpkglink(self, modpkginfo: tuple[str, str, bool, bool]) -> str: ...
method markup (line 116) | def markup(
method formattree (line 124) | def formattree(
method docmodule (line 127) | def docmodule(self, object: object, name: str | None = None, mod: str ...
method docclass (line 128) | def docclass(
method formatvalue (line 137) | def formatvalue(self, object: object) -> str: ...
method docother (line 138) | def docother(self, object: object, name: str | None = None, mod: Any |...
method docroutine (line 140) | def docroutine( # type: ignore[override]
method docproperty (line 151) | def docproperty(
method docdata (line 154) | def docdata(
method docroutine (line 158) | def docroutine( # type: ignore[override]
method docproperty (line 168) | def docproperty(self, object: object, name: str | None = None, mod: st...
method docdata (line 169) | def docdata(self, object: object, name: str | None = None, mod: Any | ...
method parentlink (line 171) | def parentlink(self, object: type | ModuleType, modname: str) -> str: ...
method index (line 173) | def index(self, dir: str, shadowed: MutableMapping[str, bool] | None =...
method filelink (line 174) | def filelink(self, url: str, path: str) -> str: ...
class TextRepr (line 176) | class TextRepr(Repr):
method __init__ (line 177) | def __init__(self) -> None: ...
method repr1 (line 178) | def repr1(self, x: object, level: complex) -> str: ...
method repr_string (line 179) | def repr_string(self, x: str, level: complex) -> str: ...
method repr_str (line 180) | def repr_str(self, x: str, level: complex) -> str: ...
method repr_instance (line 181) | def repr_instance(self, x: object, level: complex) -> str: ...
class TextDoc (line 183) | class TextDoc(Doc):
method bold (line 186) | def bold(self, text: str) -> str: ...
method indent (line 187) | def indent(self, text: str, prefix: str = " ") -> str: ...
method section (line 188) | def section(self, title: str, contents: str) -> str: ...
method formattree (line 189) | def formattree(
method docclass (line 192) | def docclass(self, object: object, name: str | None = None, mod: str |...
method formatvalue (line 193) | def formatvalue(self, object: object) -> str: ...
method docroutine (line 195) | def docroutine( # type: ignore[override]
method docmodule (line 203) | def docmodule(self, object: object, name: str | None = None, mod: Any ...
method docproperty (line 204) | def docproperty(
method docdata (line 207) | def docdata(
method docother (line 210) | def docother(
method docroutine (line 221) | def docroutine(self, object: object, name: str | None = None, mod: str...
method docmodule (line 222) | def docmodule(self, object: object, name: str | None = None, mod: Any ...
method docproperty (line 223) | def docproperty(self, object: object, name: str | None = None, mod: An...
method docdata (line 224) | def docdata(self, object: object, name: str | None = None, mod: str | ...
method docother (line 225) | def docother( # type: ignore[override]
function pager (line 236) | def pager(text: str, title: str = "") -> None: ...
function pager (line 239) | def pager(text: str) -> None: ...
function plain (line 241) | def plain(text: str) -> str: ...
function describe (line 242) | def describe(thing: Any) -> str: ...
function locate (line 243) | def locate(path: str, forceload: bool = ...) -> object: ...
function get_pager (line 246) | def get_pager() -> _Pager: ...
function pipe_pager (line 247) | def pipe_pager(text: str, cmd: str, title: str = "") -> None: ...
function tempfile_pager (line 248) | def tempfile_pager(text: str, cmd: str, title: str = "") -> None: ...
function tty_pager (line 249) | def tty_pager(text: str, title: str = "") -> None: ...
function plain_pager (line 250) | def plain_pager(text: str, title: str = "") -> None: ...
function getpager (line 259) | def getpager() -> Callable[[str], None]: ...
function pipepager (line 260) | def pipepager(text: str, cmd: str) -> None: ...
function tempfilepager (line 261) | def tempfilepager(text: str, cmd: str) -> None: ...
function ttypager (line 262) | def ttypager(text: str) -> None: ...
function plainpager (line 263) | def plainpager(text: str) -> None: ...
function resolve (line 268) | def resolve(thing: str | object, forceload: bool = ...) -> tuple[object,...
function render_doc (line 269) | def render_doc(
function doc (line 274) | def doc(
function doc (line 283) | def doc(
function writedoc (line 290) | def writedoc(thing: str | object, forceload: bool = ...) -> None: ...
function writedocs (line 291) | def writedocs(dir: str, pkgpath: str = "", done: Any | None = None) -> N...
class Helper (line 293) | class Helper:
method __init__ (line 297) | def __init__(self, input: IO[str] | None = None, output: IO[str] | Non...
method input (line 299) | def input(self) -> IO[str]: ...
method output (line 301) | def output(self) -> IO[str]: ...
method __call__ (line 302) | def __call__(self, request: str | Helper | object = ...) -> None: ...
method interact (line 303) | def interact(self) -> None: ...
method getline (line 304) | def getline(self, prompt: str) -> str: ...
method help (line 306) | def help(self, request: Any, is_cli: bool = False) -> None: ...
method help (line 308) | def help(self, request: Any) -> None: ...
method intro (line 310) | def intro(self) -> None: ...
method list (line 311) | def list(self, items: _list[str], columns: int = 4, width: int = 80) -...
method listkeywords (line 312) | def listkeywords(self) -> None: ...
method listsymbols (line 313) | def listsymbols(self) -> None: ...
method listtopics (line 314) | def listtopics(self) -> None: ...
method showtopic (line 315) | def showtopic(self, topic: str, more_xrefs: str = "") -> None: ...
method showsymbol (line 316) | def showsymbol(self, symbol: str) -> None: ...
method listmodules (line 317) | def listmodules(self, key: str = "") -> None: ...
class ModuleScanner (line 321) | class ModuleScanner:
method run (line 323) | def run(
function apropos (line 331) | def apropos(key: str) -> None: ...
function ispath (line 332) | def ispath(x: object) -> TypeGuard[str]: ...
function cli (line 333) | def cli() -> None: ...
FILE: mypy/typeshed/stdlib/pyexpat/__init__.pyi
class XMLParserType (line 21) | class XMLParserType:
method Parse (line 22) | def Parse(self, data: str | ReadableBuffer, isfinal: bool = False, /) ...
method ParseFile (line 23) | def ParseFile(self, file: SupportsRead[bytes], /) -> int: ...
method SetBase (line 24) | def SetBase(self, base: str, /) -> None: ...
method GetBase (line 25) | def GetBase(self) -> str | None: ...
method GetInputContext (line 26) | def GetInputContext(self) -> bytes | None: ...
method ExternalEntityParserCreate (line 27) | def ExternalEntityParserCreate(self, context: str | None, encoding: st...
method SetParamEntityParsing (line 28) | def SetParamEntityParsing(self, flag: int, /) -> int: ...
method UseForeignDTD (line 29) | def UseForeignDTD(self, flag: bool = True, /) -> None: ...
method GetReparseDeferralEnabled (line 30) | def GetReparseDeferralEnabled(self) -> bool: ...
method SetReparseDeferralEnabled (line 31) | def SetReparseDeferralEnabled(self, enabled: bool, /) -> None: ...
method intern (line 33) | def intern(self) -> dict[str, str]: ...
function ErrorString (line 75) | def ErrorString(code: int, /) -> str: ...
function ParserCreate (line 78) | def ParserCreate(
FILE: mypy/typeshed/stdlib/queue.pyi
class Full (line 15) | class Full(Exception): ...
class ShutDown (line 18) | class ShutDown(Exception): ...
class Queue (line 20) | class Queue(Generic[_T]):
method __init__ (line 33) | def __init__(self, maxsize: int = 0) -> None: ...
method _init (line 34) | def _init(self, maxsize: int) -> None: ...
method empty (line 35) | def empty(self) -> bool: ...
method full (line 36) | def full(self) -> bool: ...
method get (line 37) | def get(self, block: bool = True, timeout: float | None = None) -> _T:...
method get_nowait (line 38) | def get_nowait(self) -> _T: ...
method shutdown (line 40) | def shutdown(self, immediate: bool = False) -> None: ...
method _get (line 42) | def _get(self) -> _T: ...
method put (line 43) | def put(self, item: _T, block: bool = True, timeout: float | None = No...
method put_nowait (line 44) | def put_nowait(self, item: _T) -> None: ...
method _put (line 45) | def _put(self, item: _T) -> None: ...
method join (line 46) | def join(self) -> None: ...
method qsize (line 47) | def qsize(self) -> int: ...
method _qsize (line 48) | def _qsize(self) -> int: ...
method task_done (line 49) | def task_done(self) -> None: ...
method __class_getitem__ (line 51) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class PriorityQueue (line 53) | class PriorityQueue(Queue[_T]):
class LifoQueue (line 56) | class LifoQueue(Queue[_T]):
FILE: mypy/typeshed/stdlib/quopri.pyi
class _Input (line 6) | class _Input(SupportsRead[bytes], SupportsNoArgReadline[bytes], Protocol...
function encode (line 8) | def encode(input: _Input, output: SupportsWrite[bytes], quotetabs: int, ...
function encodestring (line 9) | def encodestring(s: ReadableBuffer, quotetabs: bool = False, header: boo...
function decode (line 10) | def decode(input: _Input, output: SupportsWrite[bytes], header: bool = F...
function decodestring (line 11) | def decodestring(s: str | ReadableBuffer, header: bool = False) -> bytes...
FILE: mypy/typeshed/stdlib/random.pyi
class Random (line 42) | class Random(_random.Random):
method __init__ (line 45) | def __init__(self, x: int | float | str | bytes | bytearray | None = N...
method __init__ (line 47) | def __init__(self, x: Any = None) -> None: ...
method seed (line 52) | def seed(self, a: int | float | str | bytes | bytearray | None = None,...
method seed (line 54) | def seed(self, a: Any = None, version: int = 2) -> None: ...
method getstate (line 56) | def getstate(self) -> tuple[Any, ...]: ...
method setstate (line 57) | def setstate(self, state: tuple[Any, ...]) -> None: ...
method randrange (line 58) | def randrange(self, start: int, stop: int | None = None, step: int = 1...
method randint (line 59) | def randint(self, a: int, b: int) -> int: ...
method randbytes (line 61) | def randbytes(self, n: int) -> bytes: ...
method choice (line 63) | def choice(self, seq: SupportsLenAndGetItem[_T]) -> _T: ...
method choices (line 64) | def choices(
method shuffle (line 73) | def shuffle(self, x: MutableSequence[Any]) -> None: ...
method shuffle (line 75) | def shuffle(self, x: MutableSequence[Any], random: Callable[[], float]...
method sample (line 77) | def sample(self, population: Sequence[_T], k: int, *, counts: Iterable...
method sample (line 79) | def sample(
method sample (line 83) | def sample(self, population: Sequence[_T] | AbstractSet[_T], k: int) -...
method uniform (line 85) | def uniform(self, a: float, b: float) -> float: ...
method triangular (line 86) | def triangular(self, low: float = 0.0, high: float = 1.0, mode: float ...
method binomialvariate (line 88) | def binomialvariate(self, n: int = 1, p: float = 0.5) -> int: ...
method betavariate (line 90) | def betavariate(self, alpha: float, beta: float) -> float: ...
method expovariate (line 92) | def expovariate(self, lambd: float = 1.0) -> float: ...
method expovariate (line 94) | def expovariate(self, lambd: float) -> float: ...
method gammavariate (line 96) | def gammavariate(self, alpha: float, beta: float) -> float: ...
method gauss (line 98) | def gauss(self, mu: float = 0.0, sigma: float = 1.0) -> float: ...
method normalvariate (line 99) | def normalvariate(self, mu: float = 0.0, sigma: float = 1.0) -> float:...
method gauss (line 101) | def gauss(self, mu: float, sigma: float) -> float: ...
method normalvariate (line 102) | def normalvariate(self, mu: float, sigma: float) -> float: ...
method lognormvariate (line 104) | def lognormvariate(self, mu: float, sigma: float) -> float: ...
method vonmisesvariate (line 105) | def vonmisesvariate(self, mu: float, kappa: float) -> float: ...
method paretovariate (line 106) | def paretovariate(self, alpha: float) -> float: ...
method weibullvariate (line 107) | def weibullvariate(self, alpha: float, beta: float) -> float: ...
class SystemRandom (line 110) | class SystemRandom(Random):
method getrandbits (line 111) | def getrandbits(self, k: int) -> int: ... # k can be passed by keyword
method getstate (line 112) | def getstate(self, *args: Any, **kwds: Any) -> NoReturn: ...
method setstate (line 113) | def setstate(self, *args: Any, **kwds: Any) -> NoReturn: ...
FILE: mypy/typeshed/stdlib/re.pyi
class error (line 58) | class error(Exception):
method __init__ (line 64) | def __init__(self, msg: str, pattern: str | bytes | None = None, pos: ...
class Match (line 67) | class Match(Generic[AnyStr]):
method pos (line 69) | def pos(self) -> int: ...
method endpos (line 71) | def endpos(self) -> int: ...
method lastindex (line 73) | def lastindex(self) -> int | None: ...
method lastgroup (line 75) | def lastgroup(self) -> str | None: ...
method string (line 77) | def string(self) -> AnyStr: ...
method re (line 82) | def re(self) -> Pattern[AnyStr]: ...
method expand (line 84) | def expand(self: Match[str], template: str) -> str: ...
method expand (line 86) | def expand(self: Match[bytes], template: ReadableBuffer) -> bytes: ...
method expand (line 88) | def expand(self, template: AnyStr) -> AnyStr: ...
method group (line 92) | def group(self, group: Literal[0] = 0, /) -> AnyStr: ...
method group (line 94) | def group(self, group: str | int, /) -> AnyStr | None: ...
method group (line 96) | def group(self, group1: str | int, group2: str | int, /, *groups: str ...
method groups (line 101) | def groups(self) -> tuple[AnyStr | None, ...]: ...
method groups (line 103) | def groups(self, default: _T) -> tuple[AnyStr | _T, ...]: ...
method groupdict (line 108) | def groupdict(self) -> dict[str, AnyStr | None]: ...
method groupdict (line 110) | def groupdict(self, default: _T) -> dict[str, AnyStr | _T]: ...
method start (line 111) | def start(self, group: int | str = 0, /) -> int: ...
method end (line 112) | def end(self, group: int | str = 0, /) -> int: ...
method span (line 113) | def span(self, group: int | str = 0, /) -> tuple[int, int]: ...
method regs (line 115) | def regs(self) -> tuple[tuple[int, int], ...]: ... # undocumented
method __getitem__ (line 119) | def __getitem__(self, key: Literal[0], /) -> AnyStr: ...
method __getitem__ (line 121) | def __getitem__(self, key: int | str, /) -> AnyStr | None: ...
method __copy__ (line 122) | def __copy__(self) -> Match[AnyStr]: ...
method __deepcopy__ (line 123) | def __deepcopy__(self, memo: Any, /) -> Match[AnyStr]: ...
method __class_getitem__ (line 125) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
method __str__ (line 126) | def __str__(self) -> str: ...
class Pattern (line 128) | class Pattern(Generic[AnyStr]):
method flags (line 130) | def flags(self) -> int: ...
method groupindex (line 132) | def groupindex(self) -> Mapping[str, int]: ...
method groups (line 134) | def groups(self) -> int: ...
method pattern (line 136) | def pattern(self) -> AnyStr: ...
method search (line 138) | def search(self: Pattern[str], string: str, pos: int = 0, endpos: int ...
method search (line 140) | def search(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0,...
method search (line 142) | def search(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsi...
method match (line 144) | def match(self: Pattern[str], string: str, pos: int = 0, endpos: int =...
method match (line 146) | def match(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0, ...
method match (line 148) | def match(self, string: AnyStr, pos: int = 0, endpos: int = sys.maxsiz...
method fullmatch (line 150) | def fullmatch(self: Pattern[str], string: str, pos: int = 0, endpos: i...
method fullmatch (line 152) | def fullmatch(
method fullmatch (line 156) | def fullmatch(self, string: AnyStr, pos: int = 0, endpos: int = sys.ma...
method split (line 158) | def split(self: Pattern[str], string: str, maxsplit: int = 0) -> list[...
method split (line 160) | def split(self: Pattern[bytes], string: ReadableBuffer, maxsplit: int ...
method findall (line 163) | def findall(self: Pattern[str], string: str, pos: int = 0, endpos: int...
method findall (line 165) | def findall(self: Pattern[bytes], string: ReadableBuffer, pos: int = 0...
method finditer (line 167) | def finditer(self: Pattern[str], string: str, pos: int = 0, endpos: in...
method finditer (line 169) | def finditer(
method sub (line 173) | def sub(self: Pattern[str], repl: str | Callable[[Match[str]], str], s...
method sub (line 175) | def sub(
method sub (line 182) | def sub(self, repl: AnyStr | Callable[[Match[AnyStr]], AnyStr], string...
method subn (line 184) | def subn(self: Pattern[str], repl: str | Callable[[Match[str]], str], ...
method subn (line 186) | def subn(
method subn (line 193) | def subn(self, repl: AnyStr | Callable[[Match[AnyStr]], AnyStr], strin...
method __copy__ (line 194) | def __copy__(self) -> Pattern[AnyStr]: ...
method __deepcopy__ (line 195) | def __deepcopy__(self, memo: Any, /) -> Pattern[AnyStr]: ...
method __eq__ (line 196) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 197) | def __hash__(self) -> int: ...
method __class_getitem__ (line 199) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
method __str__ (line 200) | def __str__(self) -> str: ...
class RegexFlag (line 204) | class RegexFlag(enum.IntFlag):
function compile (line 256) | def compile(pattern: AnyStr, flags: _FlagsType = 0) -> Pattern[AnyStr]: ...
function compile (line 258) | def compile(pattern: Pattern[AnyStr], flags: _FlagsType = 0) -> Pattern[...
function search (line 260) | def search(pattern: str | Pattern[str], string: str, flags: _FlagsType =...
function search (line 262) | def search(pattern: bytes | Pattern[bytes], string: ReadableBuffer, flag...
function match (line 264) | def match(pattern: str | Pattern[str], string: str, flags: _FlagsType = ...
function match (line 266) | def match(pattern: bytes | Pattern[bytes], string: ReadableBuffer, flags...
function fullmatch (line 268) | def fullmatch(pattern: str | Pattern[str], string: str, flags: _FlagsTyp...
function fullmatch (line 270) | def fullmatch(pattern: bytes | Pattern[bytes], string: ReadableBuffer, f...
function split (line 273) | def split(pattern: str | Pattern[str], string: str, maxsplit: int = 0, f...
function split (line 275) | def split(
function findall (line 280) | def findall(pattern: str | Pattern[str], string: str, flags: _FlagsType ...
function findall (line 282) | def findall(pattern: bytes | Pattern[bytes], string: ReadableBuffer, fla...
function finditer (line 284) | def finditer(pattern: str | Pattern[str], string: str, flags: _FlagsType...
function finditer (line 286) | def finditer(pattern: bytes | Pattern[bytes], string: ReadableBuffer, fl...
function sub (line 288) | def sub(
function sub (line 292) | def sub(
function subn (line 301) | def subn(
function subn (line 305) | def subn(
function escape (line 312) | def escape(pattern: AnyStr) -> AnyStr: ...
function purge (line 313) | def purge() -> None: ...
function template (line 316) | def template(pattern: AnyStr | Pattern[AnyStr], flags: _FlagsType = 0) -...
FILE: mypy/typeshed/stdlib/readline.pyi
function parse_and_bind (line 11) | def parse_and_bind(string: str, /) -> None: ...
function read_init_file (line 12) | def read_init_file(filename: StrOrBytesPath | None = None, /) -> None: ...
function get_line_buffer (line 13) | def get_line_buffer() -> str: ...
function insert_text (line 14) | def insert_text(string: str, /) -> None: ...
function redisplay (line 15) | def redisplay() -> None: ...
function read_history_file (line 16) | def read_history_file(filename: StrOrBytesPath | None = None, /) -> None...
function write_history_file (line 17) | def write_history_file(filename: StrOrBytesPath | None = None, /) -> Non...
function append_history_file (line 18) | def append_history_file(nelements: int, filename: StrOrBytesPath | None ...
function get_history_length (line 19) | def get_history_length() -> int: ...
function set_history_length (line 20) | def set_history_length(length: int, /) -> None: ...
function clear_history (line 21) | def clear_history() -> None: ...
function get_current_history_length (line 22) | def get_current_history_length() -> int: ...
function get_history_item (line 23) | def get_history_item(index: int, /) -> str: ...
function remove_history_item (line 24) | def remove_history_item(pos: int, /) -> None: ...
function replace_history_item (line 25) | def replace_history_item(pos: int, line: str, /) -> None: ...
function add_history (line 26) | def add_history(string: str, /) -> None: ...
function set_auto_history (line 27) | def set_auto_history(enabled: bool, /) -> None: ...
function set_startup_hook (line 28) | def set_startup_hook(function: Callable[[], object] | None = None, /) ->...
function set_pre_input_hook (line 29) | def set_pre_input_hook(function: Callable[[], object] | None = None, /) ...
function set_completer (line 30) | def set_completer(function: _Completer | None = None, /) -> None: ...
function get_completer (line 31) | def get_completer() -> _Completer | None: ...
function get_completion_type (line 32) | def get_completion_type() -> int: ...
function get_begidx (line 33) | def get_begidx() -> int: ...
function get_endidx (line 34) | def get_endidx() -> int: ...
function set_completer_delims (line 35) | def set_completer_delims(string: str, /) -> None: ...
function get_completer_delims (line 36) | def get_completer_delims() -> str: ...
function set_completion_display_matches_hook (line 37) | def set_completion_display_matches_hook(function: _CompDisp | None = Non...
FILE: mypy/typeshed/stdlib/reprlib.pyi
function recursive_repr (line 12) | def recursive_repr(fillvalue: str = "...") -> Callable[[_ReprFunc], _Rep...
class Repr (line 14) | class Repr:
method __init__ (line 32) | def __init__(
method repr (line 50) | def repr(self, x: Any) -> str: ...
method repr1 (line 51) | def repr1(self, x: Any, level: int) -> str: ...
method repr_tuple (line 52) | def repr_tuple(self, x: tuple[Any, ...], level: int) -> str: ...
method repr_list (line 53) | def repr_list(self, x: list[Any], level: int) -> str: ...
method repr_array (line 54) | def repr_array(self, x: array[Any], level: int) -> str: ...
method repr_set (line 55) | def repr_set(self, x: set[Any], level: int) -> str: ...
method repr_frozenset (line 56) | def repr_frozenset(self, x: frozenset[Any], level: int) -> str: ...
method repr_deque (line 57) | def repr_deque(self, x: deque[Any], level: int) -> str: ...
method repr_dict (line 58) | def repr_dict(self, x: dict[Any, Any], level: int) -> str: ...
method repr_str (line 59) | def repr_str(self, x: str, level: int) -> str: ...
method repr_int (line 60) | def repr_int(self, x: int, level: int) -> str: ...
method repr_instance (line 61) | def repr_instance(self, x: Any, level: int) -> str: ...
function repr (line 65) | def repr(x: object) -> str: ...
FILE: mypy/typeshed/stdlib/resource.pyi
class struct_rusage (line 29) | class struct_rusage(
method ru_utime (line 53) | def ru_utime(self) -> float: ...
method ru_stime (line 55) | def ru_stime(self) -> float: ...
method ru_maxrss (line 57) | def ru_maxrss(self) -> int: ...
method ru_ixrss (line 59) | def ru_ixrss(self) -> int: ...
method ru_idrss (line 61) | def ru_idrss(self) -> int: ...
method ru_isrss (line 63) | def ru_isrss(self) -> int: ...
method ru_minflt (line 65) | def ru_minflt(self) -> int: ...
method ru_majflt (line 67) | def ru_majflt(self) -> int: ...
method ru_nswap (line 69) | def ru_nswap(self) -> int: ...
method ru_inblock (line 71) | def ru_inblock(self) -> int: ...
method ru_oublock (line 73) | def ru_oublock(self) -> int: ...
method ru_msgsnd (line 75) | def ru_msgsnd(self) -> int: ...
method ru_msgrcv (line 77) | def ru_msgrcv(self) -> int: ...
method ru_nsignals (line 79) | def ru_nsignals(self) -> int: ...
method ru_nvcsw (line 81) | def ru_nvcsw(self) -> int: ...
method ru_nivcsw (line 83) | def ru_nivcsw(self) -> int: ...
function getpagesize (line 85) | def getpagesize() -> int: ...
function getrlimit (line 86) | def getrlimit(resource: int, /) -> tuple[int, int]: ...
function getrusage (line 87) | def getrusage(who: int, /) -> struct_rusage: ...
function setrlimit (line 88) | def setrlimit(resource: int, limits: tuple[int, int], /) -> None: ...
function prlimit (line 91) | def prlimit(pid: int, resource: int, limits: tuple[int, int] | None = No...
function prlimit (line 93) | def prlimit(pid: int, resource: int, limits: tuple[int, int] = ..., /) -...
FILE: mypy/typeshed/stdlib/rlcompleter.pyi
class Completer (line 5) | class Completer:
method __init__ (line 6) | def __init__(self, namespace: dict[str, Any] | None = None) -> None: ...
method complete (line 7) | def complete(self, text: str, state: int) -> str | None: ...
method attr_matches (line 8) | def attr_matches(self, text: str) -> list[str]: ...
method global_matches (line 9) | def global_matches(self, text: str) -> list[str]: ...
FILE: mypy/typeshed/stdlib/runpy.pyi
class _TempModule (line 8) | class _TempModule:
method __init__ (line 11) | def __init__(self, mod_name: str) -> None: ...
method __enter__ (line 12) | def __enter__(self) -> Self: ...
method __exit__ (line 13) | def __exit__(self, *args: Unused) -> None: ...
class _ModifiedArgv0 (line 15) | class _ModifiedArgv0:
method __init__ (line 17) | def __init__(self, value: Any) -> None: ...
method __enter__ (line 18) | def __enter__(self) -> None: ...
method __exit__ (line 19) | def __exit__(self, *args: Unused) -> None: ...
function run_module (line 21) | def run_module(
function run_path (line 24) | def run_path(path_name: str, init_globals: dict[str, Any] | None = None,...
FILE: mypy/typeshed/stdlib/sched.pyi
class Event (line 11) | class Event(NamedTuple):
class _EventBase (line 21) | class _EventBase(NamedTuple):
class Event (line 28) | class Event(_EventBase):
class scheduler (line 31) | class scheduler:
method __init__ (line 35) | def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Cal...
method enterabs (line 36) | def enterabs(
method enter (line 39) | def enter(
method run (line 42) | def run(self, blocking: bool = True) -> float | None: ...
method cancel (line 43) | def cancel(self, event: Event) -> None: ...
method empty (line 44) | def empty(self) -> bool: ...
method queue (line 46) | def queue(self) -> list[Event]: ...
FILE: mypy/typeshed/stdlib/secrets.pyi
function randbelow (line 10) | def randbelow(exclusive_upper_bound: int) -> int: ...
function randbits (line 11) | def randbits(k: int) -> int: ...
function choice (line 12) | def choice(seq: SupportsLenAndGetItem[_T]) -> _T: ...
function token_bytes (line 13) | def token_bytes(nbytes: int | None = None) -> bytes: ...
function token_hex (line 14) | def token_hex(nbytes: int | None = None) -> str: ...
function token_urlsafe (line 15) | def token_urlsafe(nbytes: int | None = None) -> str: ...
FILE: mypy/typeshed/stdlib/select.pyi
class poll (line 27) | class poll:
method register (line 29) | def register(self, fd: FileDescriptorLike, eventmask: int = 7, /) -> N...
method modify (line 30) | def modify(self, fd: FileDescriptorLike, eventmask: int, /) -> None: ...
method unregister (line 31) | def unregister(self, fd: FileDescriptorLike, /) -> None: ...
method poll (line 32) | def poll(self, timeout: float | None = None, /) -> list[tuple[int, int...
function select (line 34) | def select(
class kevent (line 43) | class kevent:
method __init__ (line 50) | def __init__(
class kqueue (line 63) | class kqueue:
method __init__ (line 65) | def __init__(self) -> None: ...
method close (line 66) | def close(self) -> None: ...
method control (line 67) | def control(
method fileno (line 70) | def fileno(self) -> int: ...
method fromfd (line 72) | def fromfd(cls, fd: FileDescriptorLike, /) -> kqueue: ...
class epoll (line 116) | class epoll:
method __init__ (line 117) | def __init__(self, sizehint: int = ..., flags: int = ...) -> None: ...
method __enter__ (line 118) | def __enter__(self) -> Self: ...
method __exit__ (line 119) | def __exit__(
method close (line 126) | def close(self) -> None: ...
method fileno (line 128) | def fileno(self) -> int: ...
method register (line 129) | def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> No...
method modify (line 130) | def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...
method unregister (line 131) | def unregister(self, fd: FileDescriptorLike) -> None: ...
method poll (line 132) | def poll(self, timeout: float | None = None, maxevents: int = -1) -> l...
method fromfd (line 134) | def fromfd(cls, fd: FileDescriptorLike, /) -> epoll: ...
class devpoll (line 154) | class devpoll:
method close (line 155) | def close(self) -> None: ...
method fileno (line 157) | def fileno(self) -> int: ...
method register (line 158) | def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> No...
method modify (line 159) | def modify(self, fd: FileDescriptorLike, eventmask: int = ...) -> None...
method unregister (line 160) | def unregister(self, fd: FileDescriptorLike) -> None: ...
method poll (line 161) | def poll(self, timeout: float | None = ...) -> list[tuple[int, int]]: ...
FILE: mypy/typeshed/stdlib/selectors.pyi
class SelectorKey (line 13) | class SelectorKey(NamedTuple):
class BaseSelector (line 19) | class BaseSelector(metaclass=ABCMeta):
method register (line 21) | def register(self, fileobj: FileDescriptorLike, events: _EventMask, da...
method unregister (line 23) | def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
method modify (line 24) | def modify(self, fileobj: FileDescriptorLike, events: _EventMask, data...
method select (line 26) | def select(self, timeout: float | None = None) -> list[tuple[SelectorK...
method close (line 27) | def close(self) -> None: ...
method get_key (line 28) | def get_key(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
method get_map (line 30) | def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
method __enter__ (line 31) | def __enter__(self) -> Self: ...
method __exit__ (line 32) | def __exit__(self, *args: Unused) -> None: ...
class _BaseSelectorImpl (line 34) | class _BaseSelectorImpl(BaseSelector, metaclass=ABCMeta):
method register (line 35) | def register(self, fileobj: FileDescriptorLike, events: _EventMask, da...
method unregister (line 36) | def unregister(self, fileobj: FileDescriptorLike) -> SelectorKey: ...
method modify (line 37) | def modify(self, fileobj: FileDescriptorLike, events: _EventMask, data...
method get_map (line 38) | def get_map(self) -> Mapping[FileDescriptorLike, SelectorKey]: ...
class SelectSelector (line 40) | class SelectSelector(_BaseSelectorImpl):
method select (line 41) | def select(self, timeout: float | None = None) -> list[tuple[SelectorK...
class _PollLikeSelector (line 43) | class _PollLikeSelector(_BaseSelectorImpl):
method select (line 44) | def select(self, timeout: float | None = None) -> list[tuple[SelectorK...
class PollSelector (line 47) | class PollSelector(_PollLikeSelector): ...
class EpollSelector (line 50) | class EpollSelector(_PollLikeSelector):
method fileno (line 51) | def fileno(self) -> int: ...
class DevpollSelector (line 55) | class DevpollSelector(_PollLikeSelector):
method fileno (line 56) | def fileno(self) -> int: ...
class KqueueSelector (line 59) | class KqueueSelector(_BaseSelectorImpl):
method fileno (line 60) | def fileno(self) -> int: ...
method select (line 61) | def select(self, timeout: float | None = None) -> list[tuple[SelectorK...
class DefaultSelector (line 66) | class DefaultSelector(_BaseSelectorImpl):
method select (line 67) | def select(self, timeout: float | None = None) -> list[tuple[SelectorK...
method fileno (line 69) | def fileno(self) -> int: ...
FILE: mypy/typeshed/stdlib/shelve.pyi
class Shelf (line 14) | class Shelf(MutableMapping[str, _VT]):
method __init__ (line 15) | def __init__(
method __iter__ (line 18) | def __iter__(self) -> Iterator[str]: ...
method __len__ (line 19) | def __len__(self) -> int: ...
method get (line 21) | def get(self, key: str, default: None = None) -> _VT | None: ...
method get (line 23) | def get(self, key: str, default: _VT) -> _VT: ...
method get (line 25) | def get(self, key: str, default: _T) -> _VT | _T: ...
method __getitem__ (line 26) | def __getitem__(self, key: str) -> _VT: ...
method __setitem__ (line 27) | def __setitem__(self, key: str, value: _VT) -> None: ...
method __delitem__ (line 28) | def __delitem__(self, key: str) -> None: ...
method __contains__ (line 29) | def __contains__(self, key: str) -> bool: ... # type: ignore[override]
method __enter__ (line 30) | def __enter__(self) -> Self: ...
method __exit__ (line 31) | def __exit__(
method __del__ (line 34) | def __del__(self) -> None: ...
method close (line 35) | def close(self) -> None: ...
method sync (line 36) | def sync(self) -> None: ...
class BsdDbShelf (line 38) | class BsdDbShelf(Shelf[_VT]):
method set_location (line 39) | def set_location(self, key: str) -> tuple[str, _VT]: ...
method next (line 40) | def next(self) -> tuple[str, _VT]: ...
method previous (line 41) | def previous(self) -> tuple[str, _VT]: ...
method first (line 42) | def first(self) -> tuple[str, _VT]: ...
method last (line 43) | def last(self) -> tuple[str, _VT]: ...
class DbfilenameShelf (line 45) | class DbfilenameShelf(Shelf[_VT]):
method __init__ (line 47) | def __init__(
method __init__ (line 51) | def __init__(self, filename: str, flag: _TFlags = "c", protocol: int |...
function open (line 54) | def open(
function open (line 59) | def open(filename: str, flag: _TFlags = "c", protocol: int | None = None...
FILE: mypy/typeshed/stdlib/shlex.pyi
class _ShlexInstream (line 11) | class _ShlexInstream(Protocol):
method read (line 12) | def read(self, size: Literal[1], /) -> str: ...
method readline (line 13) | def readline(self) -> object: ...
method close (line 14) | def close(self) -> object: ...
function split (line 17) | def split(s: str | _ShlexInstream, comments: bool = False, posix: bool =...
function split (line 21) | def split(s: str | _ShlexInstream, comments: bool = False, posix: bool =...
function split (line 24) | def split(s: None, comments: bool = False, posix: bool = True) -> list[s...
function join (line 26) | def join(split_command: Iterable[str]) -> str: ...
function quote (line 27) | def quote(s: str) -> str: ...
class shlex (line 30) | class shlex:
method punctuation_chars (line 47) | def punctuation_chars(self) -> str: ...
method __init__ (line 48) | def __init__(
method get_token (line 55) | def get_token(self) -> str | None: ...
method push_token (line 56) | def push_token(self, tok: str) -> None: ...
method read_token (line 57) | def read_token(self) -> str | None: ...
method sourcehook (line 58) | def sourcehook(self, newfile: str) -> tuple[str, TextIOWrapper] | None...
method push_source (line 59) | def push_source(self, newstream: str | _ShlexInstream, newfile: str | ...
method pop_source (line 60) | def pop_source(self) -> None: ...
method error_leader (line 61) | def error_leader(self, infile: str | None = None, lineno: int | None =...
method __iter__ (line 62) | def __iter__(self) -> Self: ...
method __next__ (line 63) | def __next__(self) -> str: ...
FILE: mypy/typeshed/stdlib/shutil.pyi
class Error (line 44) | class Error(OSError): ...
class SameFileError (line 45) | class SameFileError(Error): ...
class SpecialFileError (line 46) | class SpecialFileError(OSError): ...
class ExecError (line 47) | class ExecError(OSError): ...
class ReadError (line 48) | class ReadError(OSError): ...
class RegistryError (line 49) | class RegistryError(Exception): ...
function copyfileobj (line 51) | def copyfileobj(fsrc: SupportsRead[AnyStr], fdst: SupportsWrite[AnyStr],...
function copyfile (line 52) | def copyfile(src: StrOrBytesPath, dst: _StrOrBytesPathT, *, follow_symli...
function copymode (line 53) | def copymode(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlink...
function copystat (line 54) | def copystat(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlink...
function copy (line 56) | def copy(src: StrPath, dst: StrPath, *, follow_symlinks: bool = True) ->...
function copy (line 58) | def copy(src: BytesPath, dst: BytesPath, *, follow_symlinks: bool = True...
function copy2 (line 60) | def copy2(src: StrPath, dst: StrPath, *, follow_symlinks: bool = True) -...
function copy2 (line 62) | def copy2(src: BytesPath, dst: BytesPath, *, follow_symlinks: bool = Tru...
function ignore_patterns (line 63) | def ignore_patterns(*patterns: StrPath) -> Callable[[Any, list[str]], se...
function copytree (line 64) | def copytree(
class _RmtreeType (line 77) | class _RmtreeType(Protocol):
method __call__ (line 82) | def __call__(
method __call__ (line 93) | def __call__(
method __call__ (line 103) | def __call__(
method __call__ (line 112) | def __call__(
method __call__ (line 122) | def __call__(
function move (line 134) | def move(src: StrPath, dst: StrPath, copy_function: _CopyFn = ...) -> _P...
function move (line 138) | def move(src: str, dst: StrPath, copy_function: _CopyFn = ...) -> _PathR...
class _ntuple_diskusage (line 140) | class _ntuple_diskusage(NamedTuple):
function disk_usage (line 145) | def disk_usage(path: FileDescriptorOrPath) -> _ntuple_diskusage: ...
function chown (line 152) | def chown(
function chown (line 161) | def chown(
function chown (line 170) | def chown(
function chown (line 174) | def chown(
function chown (line 180) | def chown(path: FileDescriptorOrPath, user: str | int, group: None = Non...
function chown (line 182) | def chown(path: FileDescriptorOrPath, user: None = None, *, group: str |...
function chown (line 184) | def chown(path: FileDescriptorOrPath, user: None, group: str | int) -> N...
function chown (line 186) | def chown(path: FileDescriptorOrPath, user: str | int, group: str | int)...
function which (line 189) | def which(cmd: _StrPathT, mode: int = 1, path: StrPath | None = None) ->...
function which (line 191) | def which(cmd: bytes, mode: int = 1, path: StrPath | None = None) -> byt...
function make_archive (line 192) | def make_archive(
function get_archive_formats (line 203) | def get_archive_formats() -> list[tuple[str, str]]: ...
function register_archive_format (line 205) | def register_archive_format(
function register_archive_format (line 209) | def register_archive_format(
function unregister_archive_format (line 212) | def unregister_archive_format(name: str) -> None: ...
function unpack_archive (line 213) | def unpack_archive(
function register_unpack_format (line 217) | def register_unpack_format(
function register_unpack_format (line 225) | def register_unpack_format(
function unregister_unpack_format (line 228) | def unregister_unpack_format(name: str) -> None: ...
function get_unpack_formats (line 229) | def get_unpack_formats() -> list[tuple[str, list[str], str]]: ...
function get_terminal_size (line 230) | def get_terminal_size(fallback: tuple[int, int] = (80, 24)) -> os.termin...
FILE: mypy/typeshed/stdlib/signal.pyi
class Signals (line 11) | class Signals(IntEnum):
class Handlers (line 60) | class Handlers(IntEnum):
function default_int_handler (line 70) | def default_int_handler(signalnum: int, frame: FrameType | None, /) -> N...
function getsignal (line 73) | def getsignal(signalnum: _SIGNUM) -> _HANDLER: ...
function signal (line 74) | def signal(signalnum: _SIGNUM, handler: _HANDLER) -> _HANDLER: ...
function getsignal (line 77) | def getsignal(signalnum: _SIGNUM, /) -> _HANDLER: ...
function signal (line 78) | def signal(signalnum: _SIGNUM, handler: _HANDLER, /) -> _HANDLER: ...
class ItimerError (line 120) | class ItimerError(OSError): ...
class Sigmasks (line 125) | class Sigmasks(IntEnum):
function alarm (line 133) | def alarm(seconds: int, /) -> int: ...
function getitimer (line 134) | def getitimer(which: int, /) -> tuple[float, float]: ...
function pause (line 135) | def pause() -> None: ...
function pthread_kill (line 136) | def pthread_kill(thread_id: int, signalnum: int, /) -> None: ...
function pthread_sigmask (line 138) | def pthread_sigmask(how: int, mask: Iterable[int]) -> set[_SIGNUM]: ...
function pthread_sigmask (line 140) | def pthread_sigmask(how: int, mask: Iterable[int], /) -> set[_SIGNUM]: ...
function setitimer (line 142) | def setitimer(which: int, seconds: float, interval: float = 0.0, /) -> t...
function siginterrupt (line 143) | def siginterrupt(signalnum: int, flag: bool, /) -> None: ...
function sigpending (line 144) | def sigpending() -> Any: ...
function sigwait (line 146) | def sigwait(sigset: Iterable[int]) -> _SIGNUM: ...
function sigwait (line 148) | def sigwait(sigset: Iterable[int], /) -> _SIGNUM: ...
class struct_siginfo (line 159) | class struct_siginfo(structseq[int], tuple[int, int, int, int, int, int,...
method si_signo (line 164) | def si_signo(self) -> int: ...
method si_code (line 166) | def si_code(self) -> int: ...
method si_errno (line 168) | def si_errno(self) -> int: ...
method si_pid (line 170) | def si_pid(self) -> int: ...
method si_uid (line 172) | def si_uid(self) -> int: ...
method si_status (line 174) | def si_status(self) -> int: ...
method si_band (line 176) | def si_band(self) -> int: ...
function sigtimedwait (line 178) | def sigtimedwait(sigset: Iterable[int], timeout: float, /) -> struct_sig...
function sigwaitinfo (line 179) | def sigwaitinfo(sigset: Iterable[int], /) -> struct_siginfo: ...
function strsignal (line 181) | def strsignal(signalnum: _SIGNUM, /) -> str | None: ...
function valid_signals (line 182) | def valid_signals() -> set[Signals]: ...
function raise_signal (line 183) | def raise_signal(signalnum: _SIGNUM, /) -> None: ...
function set_wakeup_fd (line 184) | def set_wakeup_fd(fd: int, /, *, warn_on_full_buffer: bool = ...) -> int...
function pidfd_send_signal (line 188) | def pidfd_send_signal(pidfd: int, sig: int, siginfo: None = None, flags:...
FILE: mypy/typeshed/stdlib/site.pyi
function main (line 10) | def main() -> None: ...
function abs_paths (line 11) | def abs_paths() -> None: ... # undocumented
function addpackage (line 12) | def addpackage(sitedir: StrPath, name: StrPath, known_paths: set[str] | ...
function addsitedir (line 13) | def addsitedir(sitedir: str, known_paths: set[str] | None = None) -> Non...
function addsitepackages (line 14) | def addsitepackages(known_paths: set[str] | None, prefixes: Iterable[str...
function addusersitepackages (line 15) | def addusersitepackages(known_paths: set[str] | None) -> set[str] | None...
function check_enableusersite (line 16) | def check_enableusersite() -> bool | None: ... # undocumented
function gethistoryfile (line 19) | def gethistoryfile() -> str: ... # undocumented
function enablerlcompleter (line 21) | def enablerlcompleter() -> None: ... # undocumented
function register_readline (line 24) | def register_readline() -> None: ... # undocumented
function execsitecustomize (line 26) | def execsitecustomize() -> None: ... # undocumented
function execusercustomize (line 27) | def execusercustomize() -> None: ... # undocumented
function getsitepackages (line 28) | def getsitepackages(prefixes: Iterable[str] | None = None) -> list[str]:...
function getuserbase (line 29) | def getuserbase() -> str: ...
function getusersitepackages (line 30) | def getusersitepackages() -> str: ...
function makepath (line 31) | def makepath(*paths: StrPath) -> tuple[str, str]: ... # undocumented
function removeduppaths (line 32) | def removeduppaths() -> set[str]: ... # undocumented
function setcopyright (line 33) | def setcopyright() -> None: ... # undocumented
function sethelper (line 34) | def sethelper() -> None: ... # undocumented
function setquit (line 35) | def setquit() -> None: ... # undocumented
function venv (line 36) | def venv(known_paths: set[str] | None) -> set[str] | None: ... # undocu...
FILE: mypy/typeshed/stdlib/smtpd.pyi
class SMTPChannel (line 16) | class SMTPChannel(asynchat.async_chat):
method max_command_size_limit (line 38) | def max_command_size_limit(self) -> int: ...
method __init__ (line 39) | def __init__(
method push (line 50) | def push(self, msg: str) -> None: ... # type: ignore[override]
method collect_incoming_data (line 51) | def collect_incoming_data(self, data: bytes) -> None: ...
method found_terminator (line 52) | def found_terminator(self) -> None: ...
method smtp_HELO (line 53) | def smtp_HELO(self, arg: str) -> None: ...
method smtp_NOOP (line 54) | def smtp_NOOP(self, arg: str) -> None: ...
method smtp_QUIT (line 55) | def smtp_QUIT(self, arg: str) -> None: ...
method smtp_MAIL (line 56) | def smtp_MAIL(self, arg: str) -> None: ...
method smtp_RCPT (line 57) | def smtp_RCPT(self, arg: str) -> None: ...
method smtp_RSET (line 58) | def smtp_RSET(self, arg: str) -> None: ...
method smtp_DATA (line 59) | def smtp_DATA(self, arg: str) -> None: ...
method smtp_EHLO (line 60) | def smtp_EHLO(self, arg: str) -> None: ...
method smtp_HELP (line 61) | def smtp_HELP(self, arg: str) -> None: ...
method smtp_VRFY (line 62) | def smtp_VRFY(self, arg: str) -> None: ...
method smtp_EXPN (line 63) | def smtp_EXPN(self, arg: str) -> None: ...
class SMTPServer (line 65) | class SMTPServer(asyncore.dispatcher):
method __init__ (line 70) | def __init__(
method handle_accepted (line 79) | def handle_accepted(self, conn: socket.socket, addr: Any) -> None: ...
method process_message (line 80) | def process_message(
class DebuggingServer (line 84) | class DebuggingServer(SMTPServer): ...
class PureProxy (line 86) | class PureProxy(SMTPServer):
method process_message (line 87) | def process_message(self, peer: _Address, mailfrom: str, rcpttos: list...
class MailmanProxy (line 90) | class MailmanProxy(PureProxy):
method process_message (line 91) | def process_message(self, peer: _Address, mailfrom: str, rcpttos: list...
FILE: mypy/typeshed/stdlib/smtplib.pyi
class SMTPException (line 40) | class SMTPException(OSError): ...
class SMTPNotSupportedError (line 41) | class SMTPNotSupportedError(SMTPException): ...
class SMTPServerDisconnected (line 42) | class SMTPServerDisconnected(SMTPException): ...
class SMTPResponseException (line 44) | class SMTPResponseException(SMTPException):
method __init__ (line 48) | def __init__(self, code: int, msg: bytes | str) -> None: ...
class SMTPSenderRefused (line 50) | class SMTPSenderRefused(SMTPResponseException):
method __init__ (line 54) | def __init__(self, code: int, msg: bytes, sender: str) -> None: ...
class SMTPRecipientsRefused (line 56) | class SMTPRecipientsRefused(SMTPException):
method __init__ (line 59) | def __init__(self, recipients: _SendErrs) -> None: ...
class SMTPDataError (line 61) | class SMTPDataError(SMTPResponseException): ...
class SMTPConnectError (line 62) | class SMTPConnectError(SMTPResponseException): ...
class SMTPHeloError (line 63) | class SMTPHeloError(SMTPResponseException): ...
class SMTPAuthenticationError (line 64) | class SMTPAuthenticationError(SMTPResponseException): ...
function quoteaddr (line 66) | def quoteaddr(addrstring: str) -> str: ...
function quotedata (line 67) | def quotedata(data: str) -> str: ...
class _AuthObject (line 69) | class _AuthObject(Protocol):
method __call__ (line 71) | def __call__(self, challenge: None = None, /) -> str | None: ...
method __call__ (line 73) | def __call__(self, challenge: bytes, /) -> str: ...
class SMTP (line 75) | class SMTP:
method __init__ (line 90) | def __init__(
method __enter__ (line 98) | def __enter__(self) -> Self: ...
method __exit__ (line 99) | def __exit__(
method set_debuglevel (line 102) | def set_debuglevel(self, debuglevel: int) -> None: ...
method connect (line 103) | def connect(self, host: str = "localhost", port: int = 0, source_addre...
method send (line 104) | def send(self, s: ReadableBuffer | str) -> None: ...
method putcmd (line 105) | def putcmd(self, cmd: str, args: str = "") -> None: ...
method getreply (line 106) | def getreply(self) -> _Reply: ...
method docmd (line 107) | def docmd(self, cmd: str, args: str = "") -> _Reply: ...
method helo (line 108) | def helo(self, name: str = "") -> _Reply: ...
method ehlo (line 109) | def ehlo(self, name: str = "") -> _Reply: ...
method has_extn (line 110) | def has_extn(self, opt: str) -> bool: ...
method help (line 111) | def help(self, args: str = "") -> bytes: ...
method rset (line 112) | def rset(self) -> _Reply: ...
method noop (line 113) | def noop(self) -> _Reply: ...
method mail (line 114) | def mail(self, sender: str, options: Sequence[str] = ()) -> _Reply: ...
method rcpt (line 115) | def rcpt(self, recip: str, options: Sequence[str] = ()) -> _Reply: ...
method data (line 116) | def data(self, msg: ReadableBuffer | str) -> _Reply: ...
method verify (line 117) | def verify(self, address: str) -> _Reply: ...
method expn (line 119) | def expn(self, address: str) -> _Reply: ...
method ehlo_or_helo_if_needed (line 120) | def ehlo_or_helo_if_needed(self) -> None: ...
method auth (line 123) | def auth(self, mechanism: str, authobject: _AuthObject, *, initial_res...
method auth_cram_md5 (line 125) | def auth_cram_md5(self, challenge: None = None) -> None: ...
method auth_cram_md5 (line 127) | def auth_cram_md5(self, challenge: ReadableBuffer) -> str: ...
method auth_plain (line 128) | def auth_plain(self, challenge: ReadableBuffer | None = None) -> str: ...
method auth_login (line 129) | def auth_login(self, challenge: ReadableBuffer | None = None) -> str: ...
method login (line 130) | def login(self, user: str, password: str, *, initial_response_ok: bool...
method starttls (line 132) | def starttls(self, *, context: SSLContext | None = None) -> _Reply: ...
method starttls (line 134) | def starttls(
method sendmail (line 138) | def sendmail(
method send_message (line 146) | def send_message(
method close (line 154) | def close(self) -> None: ...
method quit (line 155) | def quit(self) -> _Reply: ...
class SMTP_SSL (line 157) | class SMTP_SSL(SMTP):
method __init__ (line 162) | def __init__(
method __init__ (line 173) | def __init__(
class LMTP (line 187) | class LMTP(SMTP):
method __init__ (line 189) | def __init__(
method __init__ (line 198) | def __init__(
FILE: mypy/typeshed/stdlib/sndhdr.pyi
class SndHeaders (line 6) | class SndHeaders(NamedTuple):
function what (line 13) | def what(filename: StrOrBytesPath) -> SndHeaders | None: ...
function whathdr (line 14) | def whathdr(filename: StrOrBytesPath) -> SndHeaders | None: ...
FILE: mypy/typeshed/stdlib/socket.pyi
class herror (line 1040) | class herror(error): ...
class gaierror (line 1041) | class gaierror(error): ...
class timeout (line 1046) | class timeout(error): ...
class AddressFamily (line 1048) | class AddressFamily(IntEnum):
class SocketKind (line 1155) | class SocketKind(IntEnum):
class MsgFlag (line 1174) | class MsgFlag(IntFlag):
class AddressInfo (line 1235) | class AddressInfo(IntFlag):
class _SendableFile (line 1264) | class _SendableFile(Protocol):
method read (line 1265) | def read(self, size: int, /) -> bytes: ...
method seek (line 1266) | def seek(self, offset: int, /) -> object: ...
class socket (line 1274) | class socket(_socket.socket):
method __init__ (line 1275) | def __init__(
method __enter__ (line 1278) | def __enter__(self) -> Self: ...
method __exit__ (line 1279) | def __exit__(self, *args: Unused) -> None: ...
method dup (line 1280) | def dup(self) -> Self: ...
method accept (line 1281) | def accept(self) -> tuple[socket, _RetAddress]: ...
method makefile (line 1285) | def makefile(
method makefile (line 1295) | def makefile(
method makefile (line 1305) | def makefile(
method makefile (line 1315) | def makefile(
method makefile (line 1325) | def makefile(
method makefile (line 1335) | def makefile(
method sendfile (line 1344) | def sendfile(self, file: _SendableFile, offset: int = 0, count: int | ...
method family (line 1346) | def family(self) -> AddressFamily: ...
method type (line 1348) | def type(self) -> SocketKind: ...
method get_inheritable (line 1349) | def get_inheritable(self) -> bool: ...
method set_inheritable (line 1350) | def set_inheritable(self, inheritable: bool) -> None: ...
function fromfd (line 1352) | def fromfd(fd: SupportsIndex, family: AddressFamily | int, type: SocketK...
function send_fds (line 1356) | def send_fds(
function recv_fds (line 1359) | def recv_fds(sock: socket, bufsize: int, maxfds: int, flags: int = 0) ->...
function fromshare (line 1362) | def fromshare(info: bytes) -> socket: ...
function socketpair (line 1365) | def socketpair(family: int = ..., type: int = ..., proto: int = 0) -> tu...
function socketpair (line 1368) | def socketpair(
class SocketIO (line 1372) | class SocketIO(RawIOBase):
method __init__ (line 1373) | def __init__(self, sock: socket, mode: Literal["r", "w", "rw", "rb", "...
method readinto (line 1374) | def readinto(self, b: WriteableBuffer) -> int | None: ...
method write (line 1375) | def write(self, b: ReadableBuffer) -> int | None: ...
method name (line 1377) | def name(self) -> int: ... # return value is really "int"
method mode (line 1379) | def mode(self) -> Literal["rb", "wb", "rwb"]: ...
function getfqdn (line 1381) | def getfqdn(name: str = "") -> str: ...
function create_connection (line 1384) | def create_connection(
function create_connection (line 1393) | def create_connection(
function has_dualstack_ipv6 (line 1397) | def has_dualstack_ipv6() -> bool: ...
function create_server (line 1398) | def create_server(
function getaddrinfo (line 1403) | def getaddrinfo(
FILE: mypy/typeshed/stdlib/socketserver.pyi
class BaseServer (line 40) | class BaseServer:
method __init__ (line 49) | def __init__(
method fileno (line 52) | def fileno(self) -> int: ...
method handle_request (line 53) | def handle_request(self) -> None: ...
method serve_forever (line 54) | def serve_forever(self, poll_interval: float = 0.5) -> None: ...
method shutdown (line 55) | def shutdown(self) -> None: ...
method server_close (line 56) | def server_close(self) -> None: ...
method finish_request (line 57) | def finish_request(self, request: _RequestType, client_address: _RetAd...
method get_request (line 58) | def get_request(self) -> tuple[Any, Any]: ...
method handle_error (line 59) | def handle_error(self, request: _RequestType, client_address: _RetAddr...
method handle_timeout (line 60) | def handle_timeout(self) -> None: ...
method process_request (line 61) | def process_request(self, request: _RequestType, client_address: _RetA...
method server_activate (line 62) | def server_activate(self) -> None: ...
method server_bind (line 63) | def server_bind(self) -> None: ...
method verify_request (line 64) | def verify_request(self, request: _RequestType, client_address: _RetAd...
method __enter__ (line 65) | def __enter__(self) -> Self: ...
method __exit__ (line 66) | def __exit__(
method service_actions (line 69) | def service_actions(self) -> None: ...
method shutdown_request (line 70) | def shutdown_request(self, request: _RequestType) -> None: ... # undo...
method close_request (line 71) | def close_request(self, request: _RequestType) -> None: ... # undocum...
class TCPServer (line 73) | class TCPServer(BaseServer):
method __init__ (line 77) | def __init__(
method get_request (line 83) | def get_request(self) -> tuple[_socket, _RetAddress]: ...
class UDPServer (line 85) | class UDPServer(TCPServer):
method get_request (line 87) | def get_request(self) -> tuple[tuple[bytes, _socket], _RetAddress]: .....
class UnixStreamServer (line 90) | class UnixStreamServer(TCPServer):
method __init__ (line 92) | def __init__(
class UnixDatagramServer (line 99) | class UnixDatagramServer(UDPServer):
method __init__ (line 101) | def __init__(
class ForkingMixIn (line 109) | class ForkingMixIn:
method collect_children (line 114) | def collect_children(self, *, blocking: bool = False) -> None: ... # ...
method handle_timeout (line 115) | def handle_timeout(self) -> None: ... # undocumented
method service_actions (line 116) | def service_actions(self) -> None: ... # undocumented
method process_request (line 117) | def process_request(self, request: _RequestType, client_address: _RetA...
method server_close (line 118) | def server_close(self) -> None: ...
class ThreadingMixIn (line 120) | class ThreadingMixIn:
method process_request_thread (line 123) | def process_request_thread(self, request: _RequestType, client_address...
method process_request (line 124) | def process_request(self, request: _RequestType, client_address: _RetA...
method server_close (line 125) | def server_close(self) -> None: ...
class ForkingTCPServer (line 128) | class ForkingTCPServer(ForkingMixIn, TCPServer): ...
class ForkingUDPServer (line 129) | class ForkingUDPServer(ForkingMixIn, UDPServer): ...
class ForkingUnixStreamServer (line 131) | class ForkingUnixStreamServer(ForkingMixIn, UnixStreamServer): ...
class ForkingUnixDatagramServer (line 132) | class ForkingUnixDatagramServer(ForkingMixIn, UnixDatagramServer): ...
class ThreadingTCPServer (line 134) | class ThreadingTCPServer(ThreadingMixIn, TCPServer): ...
class ThreadingUDPServer (line 135) | class ThreadingUDPServer(ThreadingMixIn, UDPServer): ...
class ThreadingUnixStreamServer (line 138) | class ThreadingUnixStreamServer(ThreadingMixIn, UnixStreamServer): ...
class ThreadingUnixDatagramServer (line 139) | class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): ...
class BaseRequestHandler (line 141) | class BaseRequestHandler:
method __init__ (line 151) | def __init__(self, request: _RequestType, client_address: _RetAddress,...
method setup (line 152) | def setup(self) -> None: ...
method handle (line 153) | def handle(self) -> None: ...
method finish (line 154) | def finish(self) -> None: ...
class StreamRequestHandler (line 156) | class StreamRequestHandler(BaseRequestHandler):
class DatagramRequestHandler (line 165) | class DatagramRequestHandler(BaseRequestHandler):
FILE: mypy/typeshed/stdlib/spwd.pyi
class struct_spwd (line 7) | class struct_spwd(structseq[Any], tuple[str, str, int, int, int, int, in...
method sp_namp (line 22) | def sp_namp(self) -> str: ...
method sp_pwdp (line 24) | def sp_pwdp(self) -> str: ...
method sp_lstchg (line 26) | def sp_lstchg(self) -> int: ...
method sp_min (line 28) | def sp_min(self) -> int: ...
method sp_max (line 30) | def sp_max(self) -> int: ...
method sp_warn (line 32) | def sp_warn(self) -> int: ...
method sp_inact (line 34) | def sp_inact(self) -> int: ...
method sp_expire (line 36) | def sp_expire(self) -> int: ...
method sp_flag (line 38) | def sp_flag(self) -> int: ...
method sp_nam (line 41) | def sp_nam(self) -> str: ...
method sp_pwd (line 43) | def sp_pwd(self) -> str: ...
function getspall (line 45) | def getspall() -> list[struct_spwd]: ...
function getspnam (line 46) | def getspnam(arg: str, /) -> struct_spwd: ...
FILE: mypy/typeshed/stdlib/sqlite3/__init__.pyi
class _AnyParamWindowAggregateClass (line 222) | class _AnyParamWindowAggregateClass(Protocol):
method step (line 223) | def step(self, *args: Any) -> object: ...
method inverse (line 224) | def inverse(self, *args: Any) -> object: ...
method value (line 225) | def value(self) -> _SqliteData: ...
method finalize (line 226) | def finalize(self) -> _SqliteData: ...
class _WindowAggregateClass (line 228) | class _WindowAggregateClass(Protocol):
method value (line 231) | def value(self) -> _SqliteData: ...
method finalize (line 232) | def finalize(self) -> _SqliteData: ...
class _AggregateProtocol (line 234) | class _AggregateProtocol(Protocol):
method step (line 235) | def step(self, value: int, /) -> object: ...
method finalize (line 236) | def finalize(self) -> int: ...
class _SingleParamWindowAggregateClass (line 238) | class _SingleParamWindowAggregateClass(Protocol):
method step (line 239) | def step(self, param: Any, /) -> object: ...
method inverse (line 240) | def inverse(self, param: Any, /) -> object: ...
method value (line 241) | def value(self) -> _SqliteData: ...
method finalize (line 242) | def finalize(self) -> _SqliteData: ...
class Error (line 248) | class Error(Exception):
class DatabaseError (line 253) | class DatabaseError(Error): ...
class DataError (line 254) | class DataError(DatabaseError): ...
class IntegrityError (line 255) | class IntegrityError(DatabaseError): ...
class InterfaceError (line 256) | class InterfaceError(Error): ...
class InternalError (line 257) | class InternalError(DatabaseError): ...
class NotSupportedError (line 258) | class NotSupportedError(DatabaseError): ...
class OperationalError (line 259) | class OperationalError(DatabaseError): ...
class ProgrammingError (line 260) | class ProgrammingError(DatabaseError): ...
class Warning (line 261) | class Warning(Exception): ...
class Connection (line 263) | class Connection:
method DataError (line 265) | def DataError(self) -> type[DataError]: ...
method DatabaseError (line 267) | def DatabaseError(self) -> type[DatabaseError]: ...
method Error (line 269) | def Error(self) -> type[Error]: ...
method IntegrityError (line 271) | def IntegrityError(self) -> type[IntegrityError]: ...
method InterfaceError (line 273) | def InterfaceError(self) -> type[InterfaceError]: ...
method InternalError (line 275) | def InternalError(self) -> type[InternalError]: ...
method NotSupportedError (line 277) | def NotSupportedError(self) -> type[NotSupportedError]: ...
method OperationalError (line 279) | def OperationalError(self) -> type[OperationalError]: ...
method ProgrammingError (line 281) | def ProgrammingError(self) -> type[ProgrammingError]: ...
method Warning (line 283) | def Warning(self) -> type[Warning]: ...
method in_transaction (line 285) | def in_transaction(self) -> bool: ...
method total_changes (line 288) | def total_changes(self) -> int: ...
method autocommit (line 291) | def autocommit(self) -> int: ...
method autocommit (line 293) | def autocommit(self, val: int) -> None: ...
method __init__ (line 297) | def __init__(
method __init__ (line 310) | def __init__(
method close (line 322) | def close(self) -> None: ...
method blobopen (line 324) | def blobopen(self, table: str, column: str, row: int, /, *, readonly: ...
method commit (line 326) | def commit(self) -> None: ...
method create_aggregate (line 327) | def create_aggregate(self, name: str, n_arg: int, aggregate_class: Cal...
method create_window_function (line 332) | def create_window_function(
method create_window_function (line 337) | def create_window_function(
method create_window_function (line 341) | def create_window_function(
method create_collation (line 345) | def create_collation(self, name: str, callback: Callable[[str, str], i...
method create_function (line 346) | def create_function(
method cursor (line 350) | def cursor(self, factory: None = None) -> Cursor: ...
method cursor (line 352) | def cursor(self, factory: Callable[[Connection], _CursorT]) -> _Cursor...
method execute (line 353) | def execute(self, sql: str, parameters: _Parameters = ..., /) -> Curso...
method executemany (line 354) | def executemany(self, sql: str, parameters: Iterable[_Parameters], /) ...
method executescript (line 355) | def executescript(self, sql_script: str, /) -> Cursor: ...
method interrupt (line 356) | def interrupt(self) -> None: ...
method iterdump (line 358) | def iterdump(self, *, filter: str | None = None) -> Generator[str, Non...
method iterdump (line 360) | def iterdump(self) -> Generator[str, None, None]: ...
method rollback (line 362) | def rollback(self) -> None: ...
method set_authorizer (line 363) | def set_authorizer(
method set_progress_handler (line 366) | def set_progress_handler(self, progress_handler: Callable[[], int | No...
method set_trace_callback (line 367) | def set_trace_callback(self, trace_callback: Callable[[str], object] |...
method enable_load_extension (line 370) | def enable_load_extension(self, enable: bool, /) -> None: ...
method load_extension (line 372) | def load_extension(self, name: str, /, *, entrypoint: str | None = Non...
method load_extension (line 374) | def load_extension(self, name: str, /) -> None: ...
method backup (line 376) | def backup(
method setlimit (line 386) | def setlimit(self, category: int, limit: int, /) -> int: ...
method getlimit (line 387) | def getlimit(self, category: int, /) -> int: ...
method serialize (line 388) | def serialize(self, *, name: str = "main") -> bytes: ...
method deserialize (line 389) | def deserialize(self, data: ReadableBuffer, /, *, name: str = "main") ...
method getconfig (line 391) | def getconfig(self, op: int, /) -> bool: ...
method setconfig (line 392) | def setconfig(self, op: int, enable: bool = True, /) -> bool: ...
method __call__ (line 394) | def __call__(self, sql: str, /) -> _Statement: ...
method __enter__ (line 395) | def __enter__(self) -> Self: ...
method __exit__ (line 396) | def __exit__(
class Cursor (line 400) | class Cursor(Iterator[Any]):
method connection (line 403) | def connection(self) -> Connection: ...
method description (line 406) | def description(self) -> tuple[tuple[str, None, None, None, None, None...
method lastrowid (line 408) | def lastrowid(self) -> int | None: ...
method rowcount (line 411) | def rowcount(self) -> int: ...
method __init__ (line 412) | def __init__(self, cursor: Connection, /) -> None: ...
method close (line 413) | def close(self) -> None: ...
method execute (line 414) | def execute(self, sql: str, parameters: _Parameters = (), /) -> Self: ...
method executemany (line 415) | def executemany(self, sql: str, seq_of_parameters: Iterable[_Parameter...
method executescript (line 416) | def executescript(self, sql_script: str, /) -> Cursor: ...
method fetchall (line 417) | def fetchall(self) -> list[Any]: ...
method fetchmany (line 418) | def fetchmany(self, size: int | None = 1) -> list[Any]: ...
method fetchone (line 421) | def fetchone(self) -> Any: ...
method setinputsizes (line 422) | def setinputsizes(self, sizes: Unused, /) -> None: ... # does nothing
method setoutputsize (line 423) | def setoutputsize(self, size: Unused, column: Unused = None, /) -> Non...
method __iter__ (line 424) | def __iter__(self) -> Self: ...
method __next__ (line 425) | def __next__(self) -> Any: ...
class PrepareProtocol (line 428) | class PrepareProtocol:
method __init__ (line 429) | def __init__(self, *args: object, **kwargs: object) -> None: ...
class Row (line 431) | class Row(Sequence[Any]):
method __new__ (line 432) | def __new__(cls, cursor: Cursor, data: tuple[Any, ...], /) -> Self: ...
method keys (line 433) | def keys(self) -> list[str]: ...
method __getitem__ (line 435) | def __getitem__(self, key: int | str, /) -> Any: ...
method __getitem__ (line 437) | def __getitem__(self, key: slice, /) -> tuple[Any, ...]: ...
method __hash__ (line 438) | def __hash__(self) -> int: ...
method __iter__ (line 439) | def __iter__(self) -> Iterator[Any]: ...
method __len__ (line 440) | def __len__(self) -> int: ...
method __eq__ (line 442) | def __eq__(self, value: object, /) -> bool: ...
method __ge__ (line 443) | def __ge__(self, value: object, /) -> bool: ...
method __gt__ (line 444) | def __gt__(self, value: object, /) -> bool: ...
method __le__ (line 445) | def __le__(self, value: object, /) -> bool: ...
method __lt__ (line 446) | def __lt__(self, value: object, /) -> bool: ...
method __ne__ (line 447) | def __ne__(self, value: object, /) -> bool: ...
class _Statement (line 452) | class _Statement: ...
class Blob (line 456) | class Blob:
method close (line 457) | def close(self) -> None: ...
method read (line 458) | def read(self, length: int = -1, /) -> bytes: ...
method write (line 459) | def write(self, data: ReadableBuffer, /) -> None: ...
method tell (line 460) | def tell(self) -> int: ...
method seek (line 462) | def seek(self, offset: int, origin: int = 0, /) -> None: ...
method __len__ (line 463) | def __len__(self) -> int: ...
method __enter__ (line 464) | def __enter__(self) -> Self: ...
method __exit__ (line 465) | def __exit__(self, type: object, val: object, tb: object, /) -> Litera...
method __getitem__ (line 466) | def __getitem__(self, key: SupportsIndex | slice, /) -> int: ...
method __setitem__ (line 467) | def __setitem__(self, key: SupportsIndex | slice, value: int, /) -> No...
FILE: mypy/typeshed/stdlib/sqlite3/dbapi2.pyi
function enable_shared_cache (line 218) | def enable_shared_cache(enable: int) -> None: ...
function DateFromTicks (line 232) | def DateFromTicks(ticks: float) -> Date: ...
function TimeFromTicks (line 233) | def TimeFromTicks(ticks: float) -> Time: ...
function TimestampFromTicks (line 234) | def TimestampFromTicks(ticks: float) -> Timestamp: ...
FILE: mypy/typeshed/stdlib/sre_compile.pyi
function dis (line 9) | def dis(code: list[_NamedIntConstant]) -> None: ...
function isstring (line 10) | def isstring(obj: Any) -> bool: ...
function compile (line 11) | def compile(p: str | bytes | SubPattern, flags: int = 0) -> Pattern[Any]...
FILE: mypy/typeshed/stdlib/sre_constants.pyi
class _NamedIntConstant (line 10) | class _NamedIntConstant(int):
method __new__ (line 12) | def __new__(cls, value: int, name: str) -> Self: ...
FILE: mypy/typeshed/stdlib/sre_parse.pyi
class Verbose (line 26) | class Verbose(Exception): ...
class State (line 35) | class State:
method groups (line 41) | def groups(self) -> int: ...
method opengroup (line 42) | def opengroup(self, name: str | None = ...) -> int: ...
method closegroup (line 43) | def closegroup(self, gid: int, p: SubPattern) -> None: ...
method checkgroup (line 44) | def checkgroup(self, gid: int) -> bool: ...
method checklookbehindgroup (line 45) | def checklookbehindgroup(self, gid: int, source: Tokenizer) -> None: ...
class SubPattern (line 47) | class SubPattern:
method __init__ (line 52) | def __init__(self, state: State, data: list[_CodeType] | None = None) ...
method dump (line 53) | def dump(self, level: int = 0) -> None: ...
method __len__ (line 54) | def __len__(self) -> int: ...
method __delitem__ (line 55) | def __delitem__(self, index: int | slice) -> None: ...
method __getitem__ (line 56) | def __getitem__(self, index: int | slice) -> SubPattern | _CodeType: ...
method __setitem__ (line 57) | def __setitem__(self, index: int | slice, code: _CodeType) -> None: ...
method insert (line 58) | def insert(self, index: int, code: _CodeType) -> None: ...
method append (line 59) | def append(self, code: _CodeType) -> None: ...
method getwidth (line 60) | def getwidth(self) -> tuple[int, int]: ...
class Tokenizer (line 62) | class Tokenizer:
method __init__ (line 68) | def __init__(self, string: Any) -> None: ...
method match (line 69) | def match(self, char: str) -> bool: ...
method get (line 70) | def get(self) -> str | None: ...
method getwhile (line 71) | def getwhile(self, n: int, charset: Iterable[str]) -> str: ...
method getuntil (line 72) | def getuntil(self, terminator: str, name: str) -> str: ...
method pos (line 74) | def pos(self) -> int: ...
method tell (line 75) | def tell(self) -> int: ...
method seek (line 76) | def seek(self, index: int) -> None: ...
method error (line 77) | def error(self, msg: str, offset: int = 0) -> _Error: ...
method checkgroupname (line 80) | def checkgroupname(self, name: str, offset: int) -> None: ...
method checkgroupname (line 82) | def checkgroupname(self, name: str, offset: int, nested: int) -> None:...
function fix_flags (line 84) | def fix_flags(src: str | bytes, flags: int) -> int: ...
function parse_template (line 91) | def parse_template(source: str, pattern: _Pattern[Any]) -> _TemplateType...
function parse_template (line 93) | def parse_template(source: bytes, pattern: _Pattern[Any]) -> _TemplateBy...
function parse_template (line 97) | def parse_template(source: str, state: _Pattern[Any]) -> _TemplateType: ...
function parse_template (line 99) | def parse_template(source: bytes, state: _Pattern[Any]) -> _TemplateByte...
function parse (line 101) | def parse(str: str, flags: int = 0, state: State | None = None) -> SubPa...
function expand_template (line 104) | def expand_template(template: _TemplateType, match: Match[Any]) -> str: ...
FILE: mypy/typeshed/stdlib/ssl.pyi
class _Cipher (line 53) | class _Cipher(TypedDict):
class SSLError (line 66) | class SSLError(OSError):
class SSLZeroReturnError (line 70) | class SSLZeroReturnError(SSLError): ...
class SSLWantReadError (line 71) | class SSLWantReadError(SSLError): ...
class SSLWantWriteError (line 72) | class SSLWantWriteError(SSLError): ...
class SSLSyscallError (line 73) | class SSLSyscallError(SSLError): ...
class SSLEOFError (line 74) | class SSLEOFError(SSLError): ...
class SSLCertVerificationError (line 76) | class SSLCertVerificationError(SSLError, ValueError):
function wrap_socket (line 83) | def wrap_socket(
function create_default_context (line 96) | def create_default_context(
function _create_unverified_context (line 105) | def _create_unverified_context(
function _create_unverified_context (line 119) | def _create_unverified_context(
function match_hostname (line 135) | def match_hostname(cert: _PeerCertRetDictType, hostname: str) -> None: ...
function cert_time_to_seconds (line 137) | def cert_time_to_seconds(cert_time: str) -> int: ...
function get_server_certificate (line 140) | def get_server_certificate(
function get_server_certificate (line 145) | def get_server_certificate(addr: tuple[str, int], ssl_version: int = ......
function DER_cert_to_PEM_cert (line 147) | def DER_cert_to_PEM_cert(der_cert_bytes: ReadableBuffer) -> str: ...
function PEM_cert_to_DER_cert (line 148) | def PEM_cert_to_DER_cert(pem_cert_string: str) -> bytes: ...
class DefaultVerifyPaths (line 150) | class DefaultVerifyPaths(NamedTuple):
function get_default_verify_paths (line 158) | def get_default_verify_paths() -> DefaultVerifyPaths: ...
class VerifyMode (line 160) | class VerifyMode(enum.IntEnum):
class VerifyFlags (line 169) | class VerifyFlags(enum.IntFlag):
class _SSLMethod (line 189) | class _SSLMethod(enum.IntEnum):
class Options (line 210) | class Options(enum.IntFlag):
class AlertDescription (line 255) | class AlertDescription(enum.IntEnum):
class _ASN1ObjectBase (line 314) | class _ASN1ObjectBase(NamedTuple):
class _ASN1Object (line 320) | class _ASN1Object(_ASN1ObjectBase):
method __new__ (line 321) | def __new__(cls, oid: str) -> Self: ...
method fromnid (line 323) | def fromnid(cls, nid: int) -> Self: ...
method fromname (line 325) | def fromname(cls, name: str) -> Self: ...
class Purpose (line 327) | class Purpose(_ASN1Object, enum.Enum):
method __new__ (line 331) | def __new__(cls, value: object) -> Self: ...
class SSLSocket (line 335) | class SSLSocket(socket.socket):
method session_reused (line 341) | def session_reused(self) -> bool | None: ...
method __init__ (line 342) | def __init__(self, *args: Any, **kwargs: Any) -> None: ...
method connect (line 343) | def connect(self, addr: socket._Address) -> None: ...
method connect_ex (line 344) | def connect_ex(self, addr: socket._Address) -> int: ...
method recv (line 345) | def recv(self, buflen: int = 1024, flags: int = 0) -> bytes: ...
method recv_into (line 346) | def recv_into(self, buffer: WriteableBuffer, nbytes: int | None = None...
method recvfrom (line 347) | def recvfrom(self, buflen: int = 1024, flags: int = 0) -> tuple[bytes,...
method recvfrom_into (line 348) | def recvfrom_into(
method send (line 351) | def send(self, data: ReadableBuffer, flags: int = 0) -> int: ...
method sendall (line 352) | def sendall(self, data: ReadableBuffer, flags: int = 0) -> None: ...
method sendto (line 354) | def sendto(self, data: ReadableBuffer, flags_or_addr: socket._Address,...
method sendto (line 356) | def sendto(self, data: ReadableBuffer, flags_or_addr: int, addr: socke...
method shutdown (line 357) | def shutdown(self, how: int) -> None: ...
method read (line 358) | def read(self, len: int = 1024, buffer: bytearray | None = None) -> by...
method write (line 359) | def write(self, data: ReadableBuffer) -> int: ...
method do_handshake (line 360) | def do_handshake(self, block: bool = False) -> None: ... # block is u...
method getpeercert (line 362) | def getpeercert(self, binary_form: Literal[False] = False) -> _PeerCer...
method getpeercert (line 364) | def getpeercert(self, binary_form: Literal[True]) -> bytes | None: ...
method getpeercert (line 366) | def getpeercert(self, binary_form: bool) -> _PeerCertRetType: ...
method cipher (line 367) | def cipher(self) -> tuple[str, str, int] | None: ...
method shared_ciphers (line 368) | def shared_ciphers(self) -> list[tuple[str, str, int]] | None: ...
method compression (line 369) | def compression(self) -> str | None: ...
method get_channel_binding (line 370) | def get_channel_binding(self, cb_type: str = "tls-unique") -> bytes | ...
method selected_alpn_protocol (line 371) | def selected_alpn_protocol(self) -> str | None: ...
method selected_npn_protocol (line 372) | def selected_npn_protocol(self) -> str | None: ...
method accept (line 373) | def accept(self) -> tuple[SSLSocket, socket._RetAddress]: ...
method unwrap (line 374) | def unwrap(self) -> socket.socket: ...
method version (line 375) | def version(self) -> str | None: ...
method pending (line 376) | def pending(self) -> int: ...
method verify_client_post_handshake (line 377) | def verify_client_post_handshake(self) -> None: ...
method recvmsg (line 379) | def recvmsg(self, *args: Never, **kwargs: Never) -> Never: ... # type...
method recvmsg_into (line 380) | def recvmsg_into(self, *args: Never, **kwargs: Never) -> Never: ... #...
method sendmsg (line 381) | def sendmsg(self, *args: Never, **kwargs: Never) -> Never: ... # type...
method get_verified_chain (line 383) | def get_verified_chain(self) -> list[bytes]: ...
method get_unverified_chain (line 384) | def get_unverified_chain(self) -> list[bytes]: ...
class TLSVersion (line 386) | class TLSVersion(enum.IntEnum):
class SSLContext (line 395) | class SSLContext(_SSLContext):
method protocol (line 400) | def protocol(self) -> _SSLMethod: ... # type: ignore[override]
method __new__ (line 416) | def __new__(cls, protocol: int | None = None, *args: Any, **kwargs: An...
method __new__ (line 418) | def __new__(cls, protocol: int = ..., *args: Any, **kwargs: Any) -> Se...
method load_default_certs (line 420) | def load_default_certs(self, purpose: Purpose = ...) -> None: ...
method load_verify_locations (line 421) | def load_verify_locations(
method get_ca_certs (line 428) | def get_ca_certs(self, binary_form: Literal[False] = False) -> list[_P...
method get_ca_certs (line 430) | def get_ca_certs(self, binary_form: Literal[True]) -> list[bytes]: ...
method get_ca_certs (line 432) | def get_ca_certs(self, binary_form: bool = False) -> Any: ...
method get_ciphers (line 433) | def get_ciphers(self) -> list[_Cipher]: ...
method set_default_verify_paths (line 434) | def set_default_verify_paths(self) -> None: ...
method set_ciphers (line 435) | def set_ciphers(self, cipherlist: str, /) -> None: ...
method set_alpn_protocols (line 436) | def set_alpn_protocols(self, alpn_protocols: Iterable[str]) -> None: ...
method set_npn_protocols (line 437) | def set_npn_protocols(self, npn_protocols: Iterable[str]) -> None: ...
method set_servername_callback (line 438) | def set_servername_callback(self, server_name_callback: _SrvnmeCbType ...
method load_dh_params (line 439) | def load_dh_params(self, path: str, /) -> None: ...
method set_ecdh_curve (line 440) | def set_ecdh_curve(self, name: str, /) -> None: ...
method wrap_socket (line 441) | def wrap_socket(
method wrap_bio (line 450) | def wrap_bio(
class SSLObject (line 459) | class SSLObject:
method server_side (line 462) | def server_side(self) -> bool: ...
method server_hostname (line 464) | def server_hostname(self) -> str | None: ...
method session_reused (line 467) | def session_reused(self) -> bool: ...
method __init__ (line 468) | def __init__(self, *args: Any, **kwargs: Any) -> None: ...
method read (line 469) | def read(self, len: int = 1024, buffer: bytearray | None = None) -> by...
method write (line 470) | def write(self, data: ReadableBuffer) -> int: ...
method getpeercert (line 472) | def getpeercert(self, binary_form: Literal[False] = False) -> _PeerCer...
method getpeercert (line 474) | def getpeercert(self, binary_form: Literal[True]) -> bytes | None: ...
method getpeercert (line 476) | def getpeercert(self, binary_form: bool) -> _PeerCertRetType: ...
method selected_alpn_protocol (line 477) | def selected_alpn_protocol(self) -> str | None: ...
method selected_npn_protocol (line 478) | def selected_npn_protocol(self) -> str | None: ...
method cipher (line 479) | def cipher(self) -> tuple[str, str, int] | None: ...
method shared_ciphers (line 480) | def shared_ciphers(self) -> list[tuple[str, str, int]] | None: ...
method compression (line 481) | def compression(self) -> str | None: ...
method pending (line 482) | def pending(self) -> int: ...
method do_handshake (line 483) | def do_handshake(self) -> None: ...
method unwrap (line 484) | def unwrap(self) -> None: ...
method version (line 485) | def version(self) -> str | None: ...
method get_channel_binding (line 486) | def get_channel_binding(self, cb_type: str = "tls-unique") -> bytes | ...
method verify_client_post_handshake (line 487) | def verify_client_post_handshake(self) -> None: ...
method get_verified_chain (line 489) | def get_verified_chain(self) -> list[bytes]: ...
method get_unverified_chain (line 490) | def get_unverified_chain(self) -> list[bytes]: ...
class SSLErrorNumber (line 492) | class SSLErrorNumber(enum.IntEnum):
function get_protocol_name (line 513) | def get_protocol_name(protocol_code: int) -> str: ...
FILE: mypy/typeshed/stdlib/statistics.pyi
class StatisticsError (line 41) | class StatisticsError(ValueError): ...
function fmean (line 44) | def fmean(data: Iterable[SupportsFloat], weights: Iterable[SupportsFloat...
function fmean (line 47) | def fmean(data: Iterable[SupportsFloat]) -> float: ...
function geometric_mean (line 49) | def geometric_mean(data: Iterable[SupportsFloat]) -> float: ...
function mean (line 50) | def mean(data: Iterable[_NumberT]) -> _NumberT: ...
function harmonic_mean (line 53) | def harmonic_mean(data: Iterable[_NumberT], weights: Iterable[_Number] |...
function harmonic_mean (line 56) | def harmonic_mean(data: Iterable[_NumberT]) -> _NumberT: ...
function median (line 58) | def median(data: Iterable[_NumberT]) -> _NumberT: ...
function median_low (line 59) | def median_low(data: Iterable[SupportsRichComparisonT]) -> SupportsRichC...
function median_high (line 60) | def median_high(data: Iterable[SupportsRichComparisonT]) -> SupportsRich...
function median_grouped (line 63) | def median_grouped(data: Iterable[SupportsFloat], interval: SupportsFloa...
function median_grouped (line 66) | def median_grouped(data: Iterable[_NumberT], interval: _NumberT | float ...
function mode (line 68) | def mode(data: Iterable[_HashableT]) -> _HashableT: ...
function multimode (line 69) | def multimode(data: Iterable[_HashableT]) -> list[_HashableT]: ...
function pstdev (line 70) | def pstdev(data: Iterable[_NumberT], mu: _NumberT | None = None) -> _Num...
function pvariance (line 71) | def pvariance(data: Iterable[_NumberT], mu: _NumberT | None = None) -> _...
function quantiles (line 72) | def quantiles(
function stdev (line 75) | def stdev(data: Iterable[_NumberT], xbar: _NumberT | None = None) -> _Nu...
function variance (line 76) | def variance(data: Iterable[_NumberT], xbar: _NumberT | None = None) -> ...
class NormalDist (line 78) | class NormalDist:
method __init__ (line 79) | def __init__(self, mu: float = 0.0, sigma: float = 1.0) -> None: ...
method mean (line 81) | def mean(self) -> float: ...
method median (line 83) | def median(self) -> float: ...
method mode (line 85) | def mode(self) -> float: ...
method stdev (line 87) | def stdev(self) -> float: ...
method variance (line 89) | def variance(self) -> float: ...
method from_samples (line 91) | def from_samples(cls, data: Iterable[SupportsFloat]) -> Self: ...
method samples (line 92) | def samples(self, n: int, *, seed: Any | None = None) -> list[float]: ...
method pdf (line 93) | def pdf(self, x: float) -> float: ...
method cdf (line 94) | def cdf(self, x: float) -> float: ...
method inv_cdf (line 95) | def inv_cdf(self, p: float) -> float: ...
method overlap (line 96) | def overlap(self, other: NormalDist) -> float: ...
method quantiles (line 97) | def quantiles(self, n: int = 4) -> list[float]: ...
method zscore (line 99) | def zscore(self, x: float) -> float: ...
method __eq__ (line 101) | def __eq__(self, x2: object) -> bool: ...
method __add__ (line 102) | def __add__(self, x2: float | NormalDist) -> NormalDist: ...
method __sub__ (line 103) | def __sub__(self, x2: float | NormalDist) -> NormalDist: ...
method __mul__ (line 104) | def __mul__(self, x2: float) -> NormalDist: ...
method __truediv__ (line 105) | def __truediv__(self, x2: float) -> NormalDist: ...
method __pos__ (line 106) | def __pos__(self) -> NormalDist: ...
method __neg__ (line 107) | def __neg__(self) -> NormalDist: ...
method __rsub__ (line 109) | def __rsub__(self, x2: float | NormalDist) -> NormalDist: ...
method __hash__ (line 111) | def __hash__(self) -> int: ...
function correlation (line 114) | def correlation(
function correlation (line 119) | def correlation(x: Sequence[_Number], y: Sequence[_Number], /) -> float:...
function covariance (line 122) | def covariance(x: Sequence[_Number], y: Sequence[_Number], /) -> float: ...
class LinearRegression (line 124) | class LinearRegression(NamedTuple):
function linear_regression (line 129) | def linear_regression(
function linear_regression (line 134) | def linear_regression(regressor: Sequence[_Number], dependent_variable: ...
function kde (line 152) | def kde(
function kde_random (line 155) | def kde_random(
FILE: mypy/typeshed/stdlib/string.pyi
function capwords (line 33) | def capwords(s: StrOrLiteralStr, sep: StrOrLiteralStr | None = None) -> ...
class _TemplateMetaclass (line 38) | class _TemplateMetaclass(type):
method __init__ (line 40) | def __init__(cls, name: str, bases: tuple[type, ...], dct: dict[str, A...
class Template (line 42) | class Template(metaclass=_TemplateMetaclass):
method __init__ (line 49) | def __init__(self, template: str) -> None: ...
method substitute (line 50) | def substitute(self, mapping: Mapping[str, object] = {}, /, **kwds: ob...
method safe_substitute (line 51) | def safe_substitute(self, mapping: Mapping[str, object] = {}, /, **kwd...
method get_identifiers (line 53) | def get_identifiers(self) -> list[str]: ...
method is_valid (line 54) | def is_valid(self) -> bool: ...
class Formatter (line 56) | class Formatter:
method format (line 58) | def format(self, format_string: LiteralString, /, *args: LiteralString...
method format (line 60) | def format(self, format_string: str, /, *args: Any, **kwargs: Any) -> ...
method vformat (line 62) | def vformat(
method vformat (line 66) | def vformat(self, format_string: str, args: Sequence[Any], kwargs: Map...
method _vformat (line 67) | def _vformat( # undocumented
method parse (line 76) | def parse(
method get_field (line 79) | def get_field(self, field_name: str, args: Sequence[Any], kwargs: Mapp...
method get_value (line 80) | def get_value(self, key: int | str, args: Sequence[Any], kwargs: Mappi...
method check_unused_args (line 81) | def check_unused_args(self, used_args: set[int | str], args: Sequence[...
method format_field (line 82) | def format_field(self, value: Any, format_spec: str) -> Any: ...
method convert_field (line 83) | def convert_field(self, value: Any, conversion: str | None) -> Any: ...
FILE: mypy/typeshed/stdlib/stringprep.pyi
function in_table_a1 (line 9) | def in_table_a1(code: str) -> bool: ...
function in_table_b1 (line 10) | def in_table_b1(code: str) -> bool: ...
function map_table_b3 (line 11) | def map_table_b3(code: str) -> str: ...
function map_table_b2 (line 12) | def map_table_b2(a: str) -> str: ...
function in_table_c11 (line 13) | def in_table_c11(code: str) -> bool: ...
function in_table_c12 (line 14) | def in_table_c12(code: str) -> bool: ...
function in_table_c11_c12 (line 15) | def in_table_c11_c12(code: str) -> bool: ...
function in_table_c21 (line 16) | def in_table_c21(code: str) -> bool: ...
function in_table_c22 (line 17) | def in_table_c22(code: str) -> bool: ...
function in_table_c21_c22 (line 18) | def in_table_c21_c22(code: str) -> bool: ...
function in_table_c3 (line 19) | def in_table_c3(code: str) -> bool: ...
function in_table_c4 (line 20) | def in_table_c4(code: str) -> bool: ...
function in_table_c5 (line 21) | def in_table_c5(code: str) -> bool: ...
function in_table_c6 (line 22) | def in_table_c6(code: str) -> bool: ...
function in_table_c7 (line 23) | def in_table_c7(code: str) -> bool: ...
function in_table_c8 (line 24) | def in_table_c8(code: str) -> bool: ...
function in_table_c9 (line 25) | def in_table_c9(code: str) -> bool: ...
function in_table_d1 (line 26) | def in_table_d1(code: str) -> bool: ...
function in_table_d2 (line 27) | def in_table_d2(code: str) -> bool: ...
FILE: mypy/typeshed/stdlib/struct.pyi
class error (line 5) | class error(Exception): ...
FILE: mypy/typeshed/stdlib/subprocess.pyi
class CompletedProcess (line 80) | class CompletedProcess(Generic[_T]):
method __init__ (line 88) | def __init__(self, args: _CMD, returncode: int, stdout: _T | None = No...
method check_returncode (line 89) | def check_returncode(self) -> None: ...
method __class_getitem__ (line 91) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function run (line 96) | def run(
function run (line 130) | def run(
function run (line 164) | def run(
function run (line 198) | def run(
function run (line 233) | def run(
function run (line 267) | def run(
function run (line 304) | def run(
function run (line 337) | def run(
function run (line 370) | def run(
function run (line 403) | def run(
function run (line 437) | def run(
function run (line 470) | def run(
function run (line 506) | def run(
function run (line 538) | def run(
function run (line 570) | def run(
function run (line 602) | def run(
function run (line 635) | def run(
function run (line 667) | def run(
function run (line 701) | def run(
function run (line 729) | def run(
function run (line 757) | def run(
function run (line 785) | def run(
function run (line 814) | def run(
function run (line 842) | def run(
function call (line 873) | def call(
function call (line 905) | def call(
function call (line 936) | def call(
function call (line 965) | def call(
function check_call (line 992) | def check_call(
function check_call (line 1024) | def check_call(
function check_call (line 1055) | def check_call(
function check_call (line 1084) | def check_call(
function check_output (line 1111) | def check_output(
function check_output (line 1142) | def check_output(
function check_output (line 1173) | def check_output(
function check_output (line 1204) | def check_output(
function check_output (line 1236) | def check_output(
function check_output (line 1267) | def check_output(
function check_output (line 1301) | def check_output(
function check_output (line 1331) | def check_output(
function check_output (line 1361) | def check_output(
function check_output (line 1391) | def check_output(
function check_output (line 1422) | def check_output(
function check_output (line 1452) | def check_output(
function check_output (line 1485) | def check_output(
function check_output (line 1514) | def check_output(
function check_output (line 1543) | def check_output(
function check_output (line 1572) | def check_output(
function check_output (line 1602) | def check_output(
function check_output (line 1631) | def check_output(
function check_output (line 1662) | def check_output(
function check_output (line 1687) | def check_output(
function check_output (line 1712) | def check_output(
function check_output (line 1737) | def check_output(
function check_output (line 1763) | def check_output(
function check_output (line 1788) | def check_output(
class SubprocessError (line 1817) | class SubprocessError(Exception): ...
class TimeoutExpired (line 1819) | class TimeoutExpired(SubprocessError):
method __init__ (line 1820) | def __init__(
class CalledProcessError (line 1831) | class CalledProcessError(SubprocessError):
method __init__ (line 1841) | def __init__(
class Popen (line 1845) | class Popen(Generic[AnyStr]):
method __init__ (line 1857) | def __init__(
method __init__ (line 1888) | def __init__(
method __init__ (line 1919) | def __init__(
method __init__ (line 1951) | def __init__(
method __init__ (line 1982) | def __init__(
method __init__ (line 2013) | def __init__(
method __init__ (line 2046) | def __init__(
method __init__ (line 2076) | def __init__(
method __init__ (line 2106) | def __init__(
method __init__ (line 2137) | def __init__(
method __init__ (line 2167) | def __init__(
method __init__ (line 2197) | def __init__(
method __init__ (line 2229) | def __init__(
method __init__ (line 2258) | def __init__(
method __init__ (line 2287) | def __init__(
method __init__ (line 2317) | def __init__(
method __init__ (line 2346) | def __init__(
method __init__ (line 2375) | def __init__(
method __init__ (line 2405) | def __init__(
method __init__ (line 2430) | def __init__(
method __init__ (line 2455) | def __init__(
method __init__ (line 2481) | def __init__(
method __init__ (line 2506) | def __init__(
method __init__ (line 2531) | def __init__(
method poll (line 2556) | def poll(self) -> int | None: ...
method wait (line 2557) | def wait(self, timeout: float | None = None) -> int: ...
method communicate (line 2561) | def communicate(self, input: AnyStr | None = None, timeout: float | No...
method send_signal (line 2562) | def send_signal(self, sig: int) -> None: ...
method terminate (line 2563) | def terminate(self) -> None: ...
method kill (line 2564) | def kill(self) -> None: ...
method __enter__ (line 2565) | def __enter__(self) -> Self: ...
method __exit__ (line 2566) | def __exit__(
method __del__ (line 2569) | def __del__(self) -> None: ...
method __class_getitem__ (line 2571) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function getstatusoutput (line 2575) | def getstatusoutput(cmd: _CMD, *, encoding: str | None = None, errors: s...
function getoutput (line 2576) | def getoutput(cmd: _CMD, *, encoding: str | None = None, errors: str | N...
function getstatusoutput (line 2579) | def getstatusoutput(cmd: _CMD) -> tuple[int, str]: ...
function getoutput (line 2580) | def getoutput(cmd: _CMD) -> str: ...
function list2cmdline (line 2582) | def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
class STARTUPINFO (line 2590) | class STARTUPINFO:
method __init__ (line 2591) | def __init__(
method copy (line 2607) | def copy(self) -> STARTUPINFO: ...
FILE: mypy/typeshed/stdlib/sunau.pyi
class Error (line 8) | class Error(Exception): ...
class _sunau_params (line 25) | class _sunau_params(NamedTuple):
class Au_read (line 33) | class Au_read:
method __init__ (line 34) | def __init__(self, f: _File) -> None: ...
method __enter__ (line 35) | def __enter__(self) -> Self: ...
method __exit__ (line 36) | def __exit__(self, *args: Unused) -> None: ...
method __del__ (line 37) | def __del__(self) -> None: ...
method getfp (line 38) | def getfp(self) -> IO[bytes] | None: ...
method rewind (line 39) | def rewind(self) -> None: ...
method close (line 40) | def close(self) -> None: ...
method tell (line 41) | def tell(self) -> int: ...
method getnchannels (line 42) | def getnchannels(self) -> int: ...
method getnframes (line 43) | def getnframes(self) -> int: ...
method getsampwidth (line 44) | def getsampwidth(self) -> int: ...
method getframerate (line 45) | def getframerate(self) -> int: ...
method getcomptype (line 46) | def getcomptype(self) -> str: ...
method getcompname (line 47) | def getcompname(self) -> str: ...
method getparams (line 48) | def getparams(self) -> _sunau_params: ...
method getmarkers (line 49) | def getmarkers(self) -> None: ...
method getmark (line 50) | def getmark(self, id: Any) -> NoReturn: ...
method setpos (line 51) | def setpos(self, pos: int) -> None: ...
method readframes (line 52) | def readframes(self, nframes: int) -> bytes | None: ...
class Au_write (line 54) | class Au_write:
method __init__ (line 55) | def __init__(self, f: _File) -> None: ...
method __enter__ (line 56) | def __enter__(self) -> Self: ...
method __exit__ (line 57) | def __exit__(self, *args: Unused) -> None: ...
method __del__ (line 58) | def __del__(self) -> None: ...
method setnchannels (line 59) | def setnchannels(self, nchannels: int) -> None: ...
method getnchannels (line 60) | def getnchannels(self) -> int: ...
method setsampwidth (line 61) | def setsampwidth(self, sampwidth: int) -> None: ...
method getsampwidth (line 62) | def getsampwidth(self) -> int: ...
method setframerate (line 63) | def setframerate(self, framerate: float) -> None: ...
method getframerate (line 64) | def getframerate(self) -> int: ...
method setnframes (line 65) | def setnframes(self, nframes: int) -> None: ...
method getnframes (line 66) | def getnframes(self) -> int: ...
method setcomptype (line 67) | def setcomptype(self, type: str, name: str) -> None: ...
method getcomptype (line 68) | def getcomptype(self) -> str: ...
method getcompname (line 69) | def getcompname(self) -> str: ...
method setparams (line 70) | def setparams(self, params: _sunau_params) -> None: ...
method getparams (line 71) | def getparams(self) -> _sunau_params: ...
method tell (line 72) | def tell(self) -> int: ...
method writeframesraw (line 74) | def writeframesraw(self, data: bytes) -> None: ...
method writeframes (line 75) | def writeframes(self, data: bytes) -> None: ...
method close (line 76) | def close(self) -> None: ...
function open (line 79) | def open(f: _File, mode: Literal["r", "rb"]) -> Au_read: ...
function open (line 81) | def open(f: _File, mode: Literal["w", "wb"]) -> Au_write: ...
function open (line 83) | def open(f: _File, mode: str | None = None) -> Any: ...
FILE: mypy/typeshed/stdlib/symtable.pyi
function symtable (line 12) | def symtable(code: str, filename: str, compile_type: str) -> SymbolTable...
class SymbolTableType (line 17) | class SymbolTableType(StrEnum):
class SymbolTable (line 26) | class SymbolTable:
method __init__ (line 27) | def __init__(self, raw_table: Any, filename: str) -> None: ...
method get_type (line 29) | def get_type(self) -> SymbolTableType: ...
method get_type (line 31) | def get_type(self) -> str: ...
method get_id (line 33) | def get_id(self) -> int: ...
method get_name (line 34) | def get_name(self) -> str: ...
method get_lineno (line 35) | def get_lineno(self) -> int: ...
method is_optimized (line 36) | def is_optimized(self) -> bool: ...
method is_nested (line 37) | def is_nested(self) -> bool: ...
method has_children (line 38) | def has_children(self) -> bool: ...
method has_exec (line 40) | def has_exec(self) -> bool: ...
method get_identifiers (line 42) | def get_identifiers(self) -> dict_keys[str, int]: ...
method lookup (line 43) | def lookup(self, name: str) -> Symbol: ...
method get_symbols (line 44) | def get_symbols(self) -> list[Symbol]: ...
method get_children (line 45) | def get_children(self) -> list[SymbolTable]: ...
class Function (line 47) | class Function(SymbolTable):
method get_parameters (line 48) | def get_parameters(self) -> tuple[str, ...]: ...
method get_locals (line 49) | def get_locals(self) -> tuple[str, ...]: ...
method get_globals (line 50) | def get_globals(self) -> tuple[str, ...]: ...
method get_frees (line 51) | def get_frees(self) -> tuple[str, ...]: ...
method get_nonlocals (line 52) | def get_nonlocals(self) -> tuple[str, ...]: ...
class Class (line 54) | class Class(SymbolTable):
method get_methods (line 57) | def get_methods(self) -> tuple[str, ...]: ...
class Symbol (line 59) | class Symbol:
method __init__ (line 60) | def __init__(
method is_nonlocal (line 63) | def is_nonlocal(self) -> bool: ...
method get_name (line 64) | def get_name(self) -> str: ...
method is_referenced (line 65) | def is_referenced(self) -> bool: ...
method is_parameter (line 66) | def is_parameter(self) -> bool: ...
method is_type_parameter (line 68) | def is_type_parameter(self) -> bool: ...
method is_global (line 70) | def is_global(self) -> bool: ...
method is_declared_global (line 71) | def is_declared_global(self) -> bool: ...
method is_local (line 72) | def is_local(self) -> bool: ...
method is_annotated (line 73) | def is_annotated(self) -> bool: ...
method is_free (line 74) | def is_free(self) -> bool: ...
method is_free_class (line 76) | def is_free_class(self) -> bool: ...
method is_imported (line 78) | def is_imported(self) -> bool: ...
method is_assigned (line 79) | def is_assigned(self) -> bool: ...
method is_comp_iter (line 81) | def is_comp_iter(self) -> bool: ...
method is_comp_cell (line 82) | def is_comp_cell(self) -> bool: ...
method is_namespace (line 84) | def is_namespace(self) -> bool: ...
method get_namespaces (line 85) | def get_namespaces(self) -> Sequence[SymbolTable]: ...
method get_namespace (line 86) | def get_namespace(self) -> SymbolTable: ...
class SymbolTableFactory (line 88) | class SymbolTableFactory:
method new (line 89) | def new(self, table: Any, filename: str) -> SymbolTable: ...
method __call__ (line 90) | def __call__(self, table: Any, filename: str) -> SymbolTable: ...
FILE: mypy/typeshed/stdlib/sys/__init__.pyi
class _flags (line 105) | class _flags(_UninstantiableStructseq, tuple[int, ...]):
method debug (line 150) | def debug(self) -> int: ...
method inspect (line 152) | def inspect(self) -> int: ...
method interactive (line 154) | def interactive(self) -> int: ...
method optimize (line 156) | def optimize(self) -> int: ...
method dont_write_bytecode (line 158) | def dont_write_bytecode(self) -> int: ...
method no_user_site (line 160) | def no_user_site(self) -> int: ...
method no_site (line 162) | def no_site(self) -> int: ...
method ignore_environment (line 164) | def ignore_environment(self) -> int: ...
method verbose (line 166) | def verbose(self) -> int: ...
method bytes_warning (line 168) | def bytes_warning(self) -> int: ...
method quiet (line 170) | def quiet(self) -> int: ...
method hash_randomization (line 172) | def hash_randomization(self) -> int: ...
method isolated (line 174) | def isolated(self) -> int: ...
method dev_mode (line 176) | def dev_mode(self) -> bool: ...
method utf8_mode (line 178) | def utf8_mode(self) -> int: ...
method warn_default_encoding (line 181) | def warn_default_encoding(self) -> int: ...
method safe_path (line 184) | def safe_path(self) -> bool: ...
method int_max_str_digits (line 191) | def int_max_str_digits(self) -> int: ...
class _float_info (line 198) | class _float_info(structseq[float], tuple[float, int, int, float, int, i...
method max (line 215) | def max(self) -> float: ... # DBL_MAX
method max_exp (line 217) | def max_exp(self) -> int: ... # DBL_MAX_EXP
method max_10_exp (line 219) | def max_10_exp(self) -> int: ... # DBL_MAX_10_EXP
method min (line 221) | def min(self) -> float: ... # DBL_MIN
method min_exp (line 223) | def min_exp(self) -> int: ... # DBL_MIN_EXP
method min_10_exp (line 225) | def min_10_exp(self) -> int: ... # DBL_MIN_10_EXP
method dig (line 227) | def dig(self) -> int: ... # DBL_DIG
method mant_dig (line 229) | def mant_dig(self) -> int: ... # DBL_MANT_DIG
method epsilon (line 231) | def epsilon(self) -> float: ... # DBL_EPSILON
method radix (line 233) | def radix(self) -> int: ... # FLT_RADIX
method rounds (line 235) | def rounds(self) -> int: ... # FLT_ROUNDS
class _hash_info (line 242) | class _hash_info(structseq[Any | int], tuple[int, int, int, int, int, st...
method width (line 247) | def width(self) -> int: ...
method modulus (line 249) | def modulus(self) -> int: ...
method inf (line 251) | def inf(self) -> int: ...
method nan (line 253) | def nan(self) -> int: ...
method imag (line 255) | def imag(self) -> int: ...
method algorithm (line 257) | def algorithm(self) -> str: ...
method hash_bits (line 259) | def hash_bits(self) -> int: ...
method seed_bits (line 261) | def seed_bits(self) -> int: ...
method cutoff (line 263) | def cutoff(self) -> int: ... # undocumented
class _implementation (line 270) | class _implementation:
method __getattr__ (line 278) | def __getattr__(self, name: str) -> Any: ...
class _int_info (line 285) | class _int_info(structseq[int], tuple[int, int, int, int]):
method bits_per_digit (line 290) | def bits_per_digit(self) -> int: ...
method sizeof_digit (line 292) | def sizeof_digit(self) -> int: ...
method default_max_str_digits (line 294) | def default_max_str_digits(self) -> int: ...
method str_digits_check_threshold (line 296) | def str_digits_check_threshold(self) -> int: ...
class _thread_info (line 304) | class _thread_info(_UninstantiableStructseq, tuple[_ThreadInfoName, _Thr...
method name (line 309) | def name(self) -> _ThreadInfoName: ...
method lock (line 311) | def lock(self) -> _ThreadInfoLock: ...
method version (line 313) | def version(self) -> str | None: ...
class _version_info (line 321) | class _version_info(_UninstantiableStructseq, tuple[int, int, int, _Rele...
method major (line 326) | def major(self) -> int: ...
method minor (line 328) | def minor(self) -> int: ...
method micro (line 330) | def micro(self) -> int: ...
method releaselevel (line 332) | def releaselevel(self) -> _ReleaseLevel: ...
method serial (line 334) | def serial(self) -> int: ...
function call_tracing (line 338) | def call_tracing(func: Callable[..., _T], args: Any, /) -> _T: ...
function _clear_type_cache (line 339) | def _clear_type_cache() -> None: ...
function _current_frames (line 340) | def _current_frames() -> dict[int, FrameType]: ...
function _getframe (line 341) | def _getframe(depth: int = 0, /) -> FrameType: ...
function _debugmallocstats (line 342) | def _debugmallocstats() -> None: ...
function __displayhook__ (line 343) | def __displayhook__(object: object, /) -> None: ...
function __excepthook__ (line 344) | def __excepthook__(exctype: type[BaseException], value: BaseException, t...
function exc_info (line 345) | def exc_info() -> OptExcInfo: ...
function exception (line 348) | def exception() -> BaseException | None: ...
function exit (line 350) | def exit(status: _ExitCode = None, /) -> NoReturn: ...
function getallocatedblocks (line 351) | def getallocatedblocks() -> int: ...
function getdefaultencoding (line 352) | def getdefaultencoding() -> str: ...
function getdlopenflags (line 355) | def getdlopenflags() -> int: ...
function getfilesystemencoding (line 357) | def getfilesystemencoding() -> str: ...
function getfilesystemencodeerrors (line 358) | def getfilesystemencodeerrors() -> str: ...
function getrefcount (line 359) | def getrefcount(object: Any, /) -> int: ...
function getrecursionlimit (line 360) | def getrecursionlimit() -> int: ...
function getsizeof (line 361) | def getsizeof(obj: object, default: int = ...) -> int: ...
function getswitchinterval (line 362) | def getswitchinterval() -> float: ...
function getprofile (line 363) | def getprofile() -> ProfileFunction | None: ...
function setprofile (line 364) | def setprofile(function: ProfileFunction | None, /) -> None: ...
function gettrace (line 365) | def gettrace() -> TraceFunction | None: ...
function settrace (line 366) | def settrace(function: TraceFunction | None, /) -> None: ...
class _WinVersion (line 371) | class _WinVersion(_UninstantiableStructseq, tuple[int, int, int, int, st...
method major (line 373) | def major(self) -> int: ...
method minor (line 375) | def minor(self) -> int: ...
method build (line 377) | def build(self) -> int: ...
method platform (line 379) | def platform(self) -> int: ...
method service_pack (line 381) | def service_pack(self) -> str: ...
method service_pack_minor (line 383) | def service_pack_minor(self) -> int: ...
method service_pack_major (line 385) | def service_pack_major(self) -> int: ...
method suite_mask (line 387) | def suite_mask(self) -> int: ...
method product_type (line 389) | def product_type(self) -> int: ...
method platform_version (line 391) | def platform_version(self) -> tuple[int, int, int]: ...
function getwindowsversion (line 393) | def getwindowsversion() -> _WinVersion: ...
function intern (line 395) | def intern(string: str, /) -> str: ...
function _is_gil_enabled (line 398) | def _is_gil_enabled() -> bool: ...
function is_finalizing (line 400) | def is_finalizing() -> bool: ...
function breakpointhook (line 401) | def breakpointhook(*args: Any, **kwargs: Any) -> Any: ...
function setdlopenflags (line 406) | def setdlopenflags(flags: int, /) -> None: ...
function setrecursionlimit (line 408) | def setrecursionlimit(limit: int, /) -> None: ...
function setswitchinterval (line 409) | def setswitchinterval(interval: float, /) -> None: ...
function gettotalrefcount (line 410) | def gettotalrefcount() -> int: ... # Debug builds only
function getcheckinterval (line 413) | def getcheckinterval() -> int: ... # deprecated
function setcheckinterval (line 414) | def setcheckinterval(n: int, /) -> None: ... # deprecated
function callstats (line 418) | def callstats() -> tuple[int, int, int, int, int, int, int, int, int, in...
class UnraisableHookArgs (line 422) | class UnraisableHookArgs(Protocol):
function __unraisablehook__ (line 431) | def __unraisablehook__(unraisable: UnraisableHookArgs, /) -> Any: ...
function addaudithook (line 432) | def addaudithook(hook: Callable[[str, tuple[Any, ...]], Any]) -> None: ...
function audit (line 433) | def audit(event: str, /, *args: Any) -> None: ...
class _asyncgen_hooks (line 440) | class _asyncgen_hooks(structseq[_AsyncgenHook], tuple[_AsyncgenHook, _As...
method firstiter (line 445) | def firstiter(self) -> _AsyncgenHook: ...
method finalizer (line 447) | def finalizer(self) -> _AsyncgenHook: ...
function get_asyncgen_hooks (line 449) | def get_asyncgen_hooks() -> _asyncgen_hooks: ...
function set_asyncgen_hooks (line 450) | def set_asyncgen_hooks(firstiter: _AsyncgenHook = ..., finalizer: _Async...
function _enablelegacywindowsfsencoding (line 453) | def _enablelegacywindowsfsencoding() -> None: ...
function get_coroutine_origin_tracking_depth (line 455) | def get_coroutine_origin_tracking_depth() -> int: ...
function set_coroutine_origin_tracking_depth (line 456) | def set_coroutine_origin_tracking_depth(depth: int) -> None: ...
function set_int_max_str_digits (line 460) | def set_int_max_str_digits(maxdigits: int) -> None: ...
function get_int_max_str_digits (line 461) | def get_int_max_str_digits() -> int: ...
function getunicodeinternedsize (line 465) | def getunicodeinternedsize(*, _only_immortal: bool = False) -> int: ...
function getunicodeinternedsize (line 467) | def getunicodeinternedsize() -> int: ...
function deactivate_stack_trampoline (line 469) | def deactivate_stack_trampoline() -> None: ...
function is_stack_trampoline_active (line 470) | def is_stack_trampoline_active() -> bool: ...
function activate_stack_trampoline (line 473) | def activate_stack_trampoline(backend: str, /) -> None: ...
function activate_stack_trampoline (line 475) | def activate_stack_trampoline(backend: str, /) -> NoReturn: ...
FILE: mypy/typeshed/stdlib/sys/_monitoring.pyi
function use_tool_id (line 17) | def use_tool_id(tool_id: int, name: str, /) -> None: ...
function free_tool_id (line 18) | def free_tool_id(tool_id: int, /) -> None: ...
function get_tool (line 19) | def get_tool(tool_id: int, /) -> str | None: ...
class _events (line 23) | class _events:
function get_events (line 43) | def get_events(tool_id: int, /) -> int: ...
function set_events (line 44) | def set_events(tool_id: int, event_set: int, /) -> None: ...
function get_local_events (line 45) | def get_local_events(tool_id: int, code: CodeType, /) -> int: ...
function set_local_events (line 46) | def set_local_events(tool_id: int, code: CodeType, event_set: int, /) ->...
function restart_events (line 47) | def restart_events() -> None: ...
function register_callback (line 52) | def register_callback(tool_id: int, event: int, func: Callable[..., Any]...
FILE: mypy/typeshed/stdlib/sysconfig.pyi
function get_config_var (line 21) | def get_config_var(name: Literal["SO"]) -> Any: ...
function get_config_var (line 23) | def get_config_var(name: str) -> Any: ...
function get_config_vars (line 25) | def get_config_vars() -> dict[str, Any]: ...
function get_config_vars (line 27) | def get_config_vars(arg: str, /, *args: str) -> list[Any]: ...
function get_scheme_names (line 28) | def get_scheme_names() -> tuple[str, ...]: ...
function get_default_scheme (line 31) | def get_default_scheme() -> str: ...
function get_preferred_scheme (line 32) | def get_preferred_scheme(key: Literal["prefix", "home", "user"]) -> str:...
function get_path_names (line 34) | def get_path_names() -> tuple[str, ...]: ...
function get_path (line 35) | def get_path(name: str, scheme: str = ..., vars: dict[str, Any] | None =...
function get_paths (line 36) | def get_paths(scheme: str = ..., vars: dict[str, Any] | None = None, exp...
function get_python_version (line 37) | def get_python_version() -> str: ...
function get_platform (line 38) | def get_platform() -> str: ...
function is_python_build (line 41) | def is_python_build(check_home: object = None) -> bool: ...
function is_python_build (line 44) | def is_python_build(check_home: bool = False) -> bool: ...
function parse_config_h (line 46) | def parse_config_h(fp: IO[Any], vars: dict[str, Any] | None = None) -> d...
function get_config_h_filename (line 47) | def get_config_h_filename() -> str: ...
function get_makefile_filename (line 48) | def get_makefile_filename() -> str: ...
FILE: mypy/typeshed/stdlib/syslog.pyi
function LOG_MASK (line 49) | def LOG_MASK(pri: int, /) -> int: ...
function LOG_UPTO (line 50) | def LOG_UPTO(pri: int, /) -> int: ...
function closelog (line 51) | def closelog() -> None: ...
function openlog (line 52) | def openlog(ident: str = ..., logoption: int = ..., facility: int = ...)...
function setlogmask (line 53) | def setlogmask(maskpri: int, /) -> int: ...
function syslog (line 55) | def syslog(priority: int, message: str) -> None: ...
function syslog (line 57) | def syslog(message: str) -> None: ...
FILE: mypy/typeshed/stdlib/tabnanny.pyi
class NannyNag (line 9) | class NannyNag(Exception):
method __init__ (line 10) | def __init__(self, lineno: int, msg: str, line: str) -> None: ...
method get_lineno (line 11) | def get_lineno(self) -> int: ...
method get_msg (line 12) | def get_msg(self) -> str: ...
method get_line (line 13) | def get_line(self) -> str: ...
function check (line 15) | def check(file: StrOrBytesPath) -> None: ...
function process_tokens (line 16) | def process_tokens(tokens: Iterable[tuple[int, str, tuple[int, int], tup...
FILE: mypy/typeshed/stdlib/tarfile.pyi
class _Fileobj (line 45) | class _Fileobj(Protocol):
method read (line 46) | def read(self, size: int, /) -> bytes: ...
method write (line 47) | def write(self, b: bytes, /) -> object: ...
method tell (line 48) | def tell(self) -> int: ...
method seek (line 49) | def seek(self, pos: int, /) -> object: ...
method close (line 50) | def close(self) -> object: ...
class _Bz2ReadableFileobj (line 55) | class _Bz2ReadableFileobj(bz2._ReadableFileobj):
method close (line 56) | def close(self) -> object: ...
class _Bz2WritableFileobj (line 58) | class _Bz2WritableFileobj(bz2._WritableFileobj):
method close (line 59) | def close(self) -> object: ...
function open (line 107) | def open(
function open (line 124) | def open(
function open (line 141) | def open(
function open (line 158) | def open(
function open (line 176) | def open(
function open (line 194) | def open(
function open (line 212) | def open(
function open (line 230) | def open(
function open (line 248) | def open(
class ExFileObject (line 266) | class ExFileObject(io.BufferedReader):
method __init__ (line 267) | def __init__(self, tarfile: TarFile, tarinfo: TarInfo) -> None: ...
class TarFile (line 269) | class TarFile:
method __init__ (line 288) | def __init__(
method __init__ (line 306) | def __init__(
method __enter__ (line 323) | def __enter__(self) -> Self: ...
method __exit__ (line 324) | def __exit__(
method __iter__ (line 327) | def __iter__(self) -> Iterator[TarInfo]: ...
method open (line 329) | def open(
method taropen (line 347) | def taropen(
method gzopen (line 365) | def gzopen(
method gzopen (line 383) | def gzopen(
method bz2open (line 401) | def bz2open(
method bz2open (line 419) | def bz2open(
method xzopen (line 436) | def xzopen(
method getmember (line 452) | def getmember(self, name: str) -> TarInfo: ...
method getmembers (line 453) | def getmembers(self) -> _list[TarInfo]: ...
method getnames (line 454) | def getnames(self) -> _list[str]: ...
method list (line 455) | def list(self, verbose: bool = True, *, members: _list[TarInfo] | None...
method next (line 456) | def next(self) -> TarInfo | None: ...
method extractall (line 459) | def extractall(
method extract (line 468) | def extract(
method _extract_member (line 477) | def _extract_member(
method extractfile (line 480) | def extractfile(self, member: str | TarInfo) -> IO[bytes] | None: ...
method makedir (line 481) | def makedir(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> Non...
method makefile (line 482) | def makefile(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> No...
method makeunknown (line 483) | def makeunknown(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) ->...
method makefifo (line 484) | def makefifo(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> No...
method makedev (line 485) | def makedev(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> Non...
method makelink (line 486) | def makelink(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> No...
method chown (line 487) | def chown(self, tarinfo: TarInfo, targetpath: StrOrBytesPath, numeric_...
method chmod (line 488) | def chmod(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> None:...
method utime (line 489) | def utime(self, tarinfo: TarInfo, targetpath: StrOrBytesPath) -> None:...
method add (line 490) | def add(
method addfile (line 498) | def addfile(self, tarinfo: TarInfo, fileobj: SupportsRead[bytes] | Non...
method gettarinfo (line 499) | def gettarinfo(
method close (line 502) | def close(self) -> None: ...
function is_tarfile (line 505) | def is_tarfile(name: StrOrBytesPath | IO[bytes]) -> bool: ...
function is_tarfile (line 508) | def is_tarfile(name: StrOrBytesPath) -> bool: ...
class TarError (line 510) | class TarError(Exception): ...
class ReadError (line 511) | class ReadError(TarError): ...
class CompressionError (line 512) | class CompressionError(TarError): ...
class StreamError (line 513) | class StreamError(TarError): ...
class ExtractError (line 514) | class ExtractError(TarError): ...
class HeaderError (line 515) | class HeaderError(TarError): ...
class FilterError (line 517) | class FilterError(TarError):
class AbsolutePathError (line 522) | class AbsolutePathError(FilterError):
method __init__ (line 523) | def __init__(self, tarinfo: TarInfo) -> None: ...
class OutsideDestinationError (line 525) | class OutsideDestinationError(FilterError):
method __init__ (line 526) | def __init__(self, tarinfo: TarInfo, path: str) -> None: ...
class SpecialFileError (line 528) | class SpecialFileError(FilterError):
method __init__ (line 529) | def __init__(self, tarinfo: TarInfo) -> None: ...
class AbsoluteLinkError (line 531) | class AbsoluteLinkError(FilterError):
method __init__ (line 532) | def __init__(self, tarinfo: TarInfo) -> None: ...
class LinkOutsideDestinationError (line 534) | class LinkOutsideDestinationError(FilterError):
method __init__ (line 535) | def __init__(self, tarinfo: TarInfo, path: str) -> None: ...
function fully_trusted_filter (line 537) | def fully_trusted_filter(member: TarInfo, dest_path: str) -> TarInfo: ...
function tar_filter (line 538) | def tar_filter(member: TarInfo, dest_path: str) -> TarInfo: ...
function data_filter (line 539) | def data_filter(member: TarInfo, dest_path: str) -> TarInfo: ...
class TarInfo (line 541) | class TarInfo:
method __init__ (line 561) | def __init__(self, name: str = "") -> None: ...
method frombuf (line 563) | def frombuf(cls, buf: bytes | bytearray, encoding: str, errors: str) -...
method fromtarfile (line 565) | def fromtarfile(cls, tarfile: TarFile) -> Self: ...
method linkpath (line 567) | def linkpath(self) -> str: ...
method linkpath (line 569) | def linkpath(self, linkname: str) -> None: ...
method replace (line 570) | def replace(
method get_info (line 583) | def get_info(self) -> Mapping[str, str | int | bytes | Mapping[str, st...
method tobuf (line 584) | def tobuf(self, format: int | None = 2, encoding: str | None = "utf-8"...
method create_ustar_header (line 585) | def create_ustar_header(
method create_gnu_header (line 588) | def create_gnu_header(
method create_pax_header (line 591) | def create_pax_header(self, info: Mapping[str, str | int | bytes | Map...
method create_pax_global_header (line 593) | def create_pax_global_header(cls, pax_headers: Mapping[str, str]) -> b...
method isfile (line 594) | def isfile(self) -> bool: ...
method isreg (line 595) | def isreg(self) -> bool: ...
method issparse (line 596) | def issparse(self) -> bool: ...
method isdir (line 597) | def isdir(self) -> bool: ...
method issym (line 598) | def issym(self) -> bool: ...
method islnk (line 599) | def islnk(self) -> bool: ...
method ischr (line 600) | def ischr(self) -> bool: ...
method isblk (line 601) | def isblk(self) -> bool: ...
method isfifo (line 602) | def isfifo(self) -> bool: ...
method isdev (line 603) | def isdev(self) -> bool: ...
FILE: mypy/typeshed/stdlib/telnetlib.pyi
class Telnet (line 89) | class Telnet:
method __init__ (line 92) | def __init__(self, host: str | None = None, port: int = 0, timeout: fl...
method open (line 93) | def open(self, host: str, port: int = 0, timeout: float = ...) -> None...
method msg (line 94) | def msg(self, msg: str, *args: Any) -> None: ...
method set_debuglevel (line 95) | def set_debuglevel(self, debuglevel: int) -> None: ...
method close (line 96) | def close(self) -> None: ...
method get_socket (line 97) | def get_socket(self) -> socket.socket: ...
method fileno (line 98) | def fileno(self) -> int: ...
method write (line 99) | def write(self, buffer: bytes) -> None: ...
method read_until (line 100) | def read_until(self, match: bytes, timeout: float | None = None) -> by...
method read_all (line 101) | def read_all(self) -> bytes: ...
method read_some (line 102) | def read_some(self) -> bytes: ...
method read_very_eager (line 103) | def read_very_eager(self) -> bytes: ...
method read_eager (line 104) | def read_eager(self) -> bytes: ...
method read_lazy (line 105) | def read_lazy(self) -> bytes: ...
method read_very_lazy (line 106) | def read_very_lazy(self) -> bytes: ...
method read_sb_data (line 107) | def read_sb_data(self) -> bytes: ...
method set_option_negotiation_callback (line 108) | def set_option_negotiation_callback(self, callback: Callable[[socket.s...
method process_rawq (line 109) | def process_rawq(self) -> None: ...
method rawq_getchar (line 110) | def rawq_getchar(self) -> bytes: ...
method fill_rawq (line 111) | def fill_rawq(self) -> None: ...
method sock_avail (line 112) | def sock_avail(self) -> bool: ...
method interact (line 113) | def interact(self) -> None: ...
method mt_interact (line 114) | def mt_interact(self) -> None: ...
method listener (line 115) | def listener(self) -> None: ...
method expect (line 116) | def expect(
method __enter__ (line 119) | def __enter__(self) -> Self: ...
method __exit__ (line 120) | def __exit__(
method __del__ (line 123) | def __del__(self) -> None: ...
FILE: mypy/typeshed/stdlib/tempfile.pyi
function NamedTemporaryFile (line 46) | def NamedTemporaryFile(
function NamedTemporaryFile (line 60) | def NamedTemporaryFile(
function NamedTemporaryFile (line 74) | def NamedTemporaryFile(
function NamedTemporaryFile (line 90) | def NamedTemporaryFile(
function NamedTemporaryFile (line 103) | def NamedTemporaryFile(
function NamedTemporaryFile (line 116) | def NamedTemporaryFile(
function TemporaryFile (line 134) | def TemporaryFile(
function TemporaryFile (line 146) | def TemporaryFile(
function TemporaryFile (line 158) | def TemporaryFile(
function TemporaryFile (line 169) | def TemporaryFile(
function TemporaryFile (line 181) | def TemporaryFile(
function TemporaryFile (line 193) | def TemporaryFile(
function TemporaryFile (line 205) | def TemporaryFile(
class _TemporaryFileWrapper (line 217) | class _TemporaryFileWrapper(IO[AnyStr]):
method __init__ (line 222) | def __init__(self, file: IO[AnyStr], name: str, delete: bool = True, d...
method __init__ (line 224) | def __init__(self, file: IO[AnyStr], name: str, delete: bool = True) -...
method __enter__ (line 226) | def __enter__(self) -> Self: ...
method __exit__ (line 227) | def __exit__(self, exc: type[BaseException] | None, value: BaseExcepti...
method __getattr__ (line 228) | def __getattr__(self, name: str) -> Any: ...
method close (line 229) | def close(self) -> None: ...
method __iter__ (line 233) | def __iter__(self) -> Iterator[AnyStr]: ...
method __next__ (line 242) | def __next__(self) -> AnyStr: ...
method fileno (line 243) | def fileno(self) -> int: ...
method flush (line 244) | def flush(self) -> None: ...
method isatty (line 245) | def isatty(self) -> bool: ...
method read (line 246) | def read(self, n: int = ...) -> AnyStr: ...
method readable (line 247) | def readable(self) -> bool: ...
method readline (line 248) | def readline(self, limit: int = ...) -> AnyStr: ...
method readlines (line 249) | def readlines(self, hint: int = ...) -> list[AnyStr]: ...
method seek (line 250) | def seek(self, offset: int, whence: int = ...) -> int: ...
method seekable (line 251) | def seekable(self) -> bool: ...
method tell (line 252) | def tell(self) -> int: ...
method truncate (line 253) | def truncate(self, size: int | None = ...) -> int: ...
method writable (line 254) | def writable(self) -> bool: ...
method write (line 256) | def write(self: _TemporaryFileWrapper[str], s: str, /) -> int: ...
method write (line 258) | def write(self: _TemporaryFileWrapper[bytes], s: ReadableBuffer, /) ->...
method write (line 260) | def write(self, s: AnyStr, /) -> int: ...
method writelines (line 262) | def writelines(self: _TemporaryFileWrapper[str], lines: Iterable[str])...
method writelines (line 264) | def writelines(self: _TemporaryFileWrapper[bytes], lines: Iterable[Rea...
method writelines (line 266) | def writelines(self, lines: Iterable[AnyStr]) -> None: ...
method closed (line 268) | def closed(self) -> bool: ...
class SpooledTemporaryFile (line 277) | class SpooledTemporaryFile(IO[AnyStr], _SpooledTemporaryFileBase):
method encoding (line 280) | def encoding(self) -> str: ... # undocumented
method newlines (line 282) | def newlines(self) -> str | tuple[str, ...] | None: ... # undocumented
method __init__ (line 285) | def __init__(
method __init__ (line 299) | def __init__(
method __init__ (line 313) | def __init__(
method __init__ (line 327) | def __init__(
method __init__ (line 341) | def __init__(
method errors (line 355) | def errors(self) -> str | None: ...
method rollover (line 356) | def rollover(self) -> None: ...
method __enter__ (line 357) | def __enter__(self) -> Self: ...
method __exit__ (line 358) | def __exit__(self, exc: type[BaseException] | None, value: BaseExcepti...
method close (line 362) | def close(self) -> None: ...
method fileno (line 363) | def fileno(self) -> int: ...
method flush (line 364) | def flush(self) -> None: ...
method isatty (line 365) | def isatty(self) -> bool: ...
method read1 (line 369) | def read1(self, size: int = ..., /) -> AnyStr: ...
method readinto (line 370) | def readinto(self, b: WriteableBuffer) -> int: ...
method readinto1 (line 371) | def readinto1(self, b: WriteableBuffer) -> int: ...
method detach (line 372) | def detach(self) -> io.RawIOBase: ...
method read (line 374) | def read(self, n: int = ..., /) -> AnyStr: ...
method readline (line 375) | def readline(self, limit: int | None = ..., /) -> AnyStr: ... # type:...
method readlines (line 376) | def readlines(self, hint: int = ..., /) -> list[AnyStr]: ... # type: ...
method seek (line 377) | def seek(self, offset: int, whence: int = ...) -> int: ...
method tell (line 378) | def tell(self) -> int: ...
method truncate (line 380) | def truncate(self, size: int | None = None) -> int: ...
method truncate (line 382) | def truncate(self, size: int | None = None) -> None: ... # type: igno...
method write (line 385) | def write(self: SpooledTemporaryFile[str], s: str) -> int: ...
method write (line 387) | def write(self: SpooledTemporaryFile[bytes], s: ReadableBuffer) -> int...
method write (line 389) | def write(self, s: AnyStr) -> int: ...
method writelines (line 391) | def writelines(self: SpooledTemporaryFile[str], iterable: Iterable[str...
method writelines (line 393) | def writelines(self: SpooledTemporaryFile[bytes], iterable: Iterable[R...
method writelines (line 395) | def writelines(self, iterable: Iterable[AnyStr]) -> None: ...
method __iter__ (line 396) | def __iter__(self) -> Iterator[AnyStr]: ... # type: ignore[override]
method readable (line 398) | def readable(self) -> bool: ...
method seekable (line 399) | def seekable(self) -> bool: ...
method writable (line 400) | def writable(self) -> bool: ...
method __next__ (line 401) | def __next__(self) -> AnyStr: ... # type: ignore[override]
method __class_getitem__ (line 403) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class TemporaryDirectory (line 405) | class TemporaryDirectory(Generic[AnyStr]):
method __init__ (line 409) | def __init__(
method __init__ (line 419) | def __init__(
method __init__ (line 430) | def __init__(
method __init__ (line 438) | def __init__(
method __init__ (line 447) | def __init__(
method __init__ (line 451) | def __init__(
method cleanup (line 458) | def cleanup(self) -> None: ...
method __enter__ (line 459) | def __enter__(self) -> AnyStr: ...
method __exit__ (line 460) | def __exit__(self, exc: type[BaseException] | None, value: BaseExcepti...
method __class_getitem__ (line 462) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
function mkstemp (line 466) | def mkstemp(
function mkstemp (line 470) | def mkstemp(
function mkdtemp (line 476) | def mkdtemp(suffix: str | None = None, prefix: str | None = None, dir: S...
function mkdtemp (line 478) | def mkdtemp(suffix: bytes | None = None, prefix: bytes | None = None, di...
function mktemp (line 479) | def mktemp(suffix: str = "", prefix: str = "tmp", dir: StrPath | None = ...
function gettempdirb (line 480) | def gettempdirb() -> bytes: ...
function gettempprefixb (line 481) | def gettempprefixb() -> bytes: ...
function gettempdir (line 482) | def gettempdir() -> str: ...
function gettempprefix (line 483) | def gettempprefix() -> str: ...
FILE: mypy/typeshed/stdlib/termios.pyi
function tcgetattr (line 293) | def tcgetattr(fd: FileDescriptorLike, /) -> _AttrReturn: ...
function tcsetattr (line 294) | def tcsetattr(fd: FileDescriptorLike, when: int, attributes: _Attr, /) -...
function tcsendbreak (line 295) | def tcsendbreak(fd: FileDescriptorLike, duration: int, /) -> None: ...
function tcdrain (line 296) | def tcdrain(fd: FileDescriptorLike, /) -> None: ...
function tcflush (line 297) | def tcflush(fd: FileDescriptorLike, queue: int, /) -> None: ...
function tcflow (line 298) | def tcflow(fd: FileDescriptorLike, action: int, /) -> None: ...
function tcgetwinsize (line 300) | def tcgetwinsize(fd: FileDescriptorLike, /) -> tuple[int, int]: ...
function tcsetwinsize (line 301) | def tcsetwinsize(fd: FileDescriptorLike, winsize: tuple[int, int], /) ->...
class error (line 303) | class error(Exception): ...
FILE: mypy/typeshed/stdlib/textwrap.pyi
class TextWrapper (line 6) | class TextWrapper:
method __init__ (line 28) | def __init__(
method _munge_whitespace (line 45) | def _munge_whitespace(self, text: str) -> str: ...
method _split (line 46) | def _split(self, text: str) -> list[str]: ...
method _fix_sentence_endings (line 47) | def _fix_sentence_endings(self, chunks: list[str]) -> None: ...
method _handle_long_word (line 48) | def _handle_long_word(self, reversed_chunks: list[str], cur_line: list...
method _wrap_chunks (line 49) | def _wrap_chunks(self, chunks: list[str]) -> list[str]: ...
method _split_chunks (line 50) | def _split_chunks(self, text: str) -> list[str]: ...
method wrap (line 51) | def wrap(self, text: str) -> list[str]: ...
method fill (line 52) | def fill(self, text: str) -> str: ...
function wrap (line 54) | def wrap(
function fill (line 70) | def fill(
function shorten (line 86) | def shorten(
function dedent (line 102) | def dedent(text: str) -> str: ...
function indent (line 103) | def indent(text: str, prefix: str, predicate: Callable[[str], bool] | No...
FILE: mypy/typeshed/stdlib/threading.pyi
function active_count (line 46) | def active_count() -> int: ...
function activeCount (line 47) | def activeCount() -> int: ... # deprecated alias for active_count()
function current_thread (line 48) | def current_thread() -> Thread: ...
function currentThread (line 49) | def currentThread() -> Thread: ... # deprecated alias for current_thread()
function get_ident (line 50) | def get_ident() -> int: ...
function enumerate (line 51) | def enumerate() -> list[Thread]: ...
function main_thread (line 52) | def main_thread() -> Thread: ...
function settrace (line 53) | def settrace(func: TraceFunction) -> None: ...
function setprofile (line 54) | def setprofile(func: ProfileFunction | None) -> None: ...
function setprofile_all_threads (line 57) | def setprofile_all_threads(func: ProfileFunction | None) -> None: ...
function settrace_all_threads (line 58) | def settrace_all_threads(func: TraceFunction) -> None: ...
function gettrace (line 61) | def gettrace() -> TraceFunction | None: ...
function getprofile (line 62) | def getprofile() -> ProfileFunction | None: ...
function stack_size (line 64) | def stack_size(size: int = 0, /) -> int: ...
class Thread (line 71) | class Thread:
method ident (line 74) | def ident(self) -> int | None: ...
method __init__ (line 76) | def __init__(
method start (line 86) | def start(self) -> None: ...
method run (line 87) | def run(self) -> None: ...
method join (line 88) | def join(self, timeout: float | None = None) -> None: ...
method native_id (line 90) | def native_id(self) -> int | None: ... # only available on some platf...
method is_alive (line 91) | def is_alive(self) -> bool: ...
method isAlive (line 93) | def isAlive(self) -> bool: ...
method getName (line 95) | def getName(self) -> str: ...
method setName (line 96) | def setName(self, name: str) -> None: ...
method isDaemon (line 97) | def isDaemon(self) -> bool: ...
method setDaemon (line 98) | def setDaemon(self, daemonic: bool) -> None: ...
class _DummyThread (line 100) | class _DummyThread(Thread):
method __init__ (line 101) | def __init__(self) -> None: ...
class _RLock (line 108) | class _RLock:
method acquire (line 110) | def acquire(self, blocking: bool = True, timeout: float = -1) -> bool:...
method release (line 111) | def release(self) -> None: ...
method __exit__ (line 113) | def __exit__(self, t: type[BaseException] | None, v: BaseException | N...
class Condition (line 117) | class Condition:
method __init__ (line 118) | def __init__(self, lock: Lock | _RLock | RLock | None = None) -> None:...
method __enter__ (line 119) | def __enter__(self) -> bool: ...
method __exit__ (line 120) | def __exit__(
method acquire (line 123) | def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool:...
method release (line 124) | def release(self) -> None: ...
method wait (line 125) | def wait(self, timeout: float | None = None) -> bool: ...
method wait_for (line 126) | def wait_for(self, predicate: Callable[[], _T], timeout: float | None ...
method notify (line 127) | def notify(self, n: int = 1) -> None: ...
method notify_all (line 128) | def notify_all(self) -> None: ...
method notifyAll (line 129) | def notifyAll(self) -> None: ... # deprecated alias for notify_all()
class Semaphore (line 131) | class Semaphore:
method __init__ (line 133) | def __init__(self, value: int = 1) -> None: ...
method __exit__ (line 134) | def __exit__(self, t: type[BaseException] | None, v: BaseException | N...
method acquire (line 135) | def acquire(self, blocking: bool = True, timeout: float | None = None)...
method __enter__ (line 136) | def __enter__(self, blocking: bool = True, timeout: float | None = Non...
method release (line 138) | def release(self, n: int = 1) -> None: ...
method release (line 140) | def release(self) -> None: ...
class BoundedSemaphore (line 142) | class BoundedSemaphore(Semaphore): ...
class Event (line 144) | class Event:
method is_set (line 145) | def is_set(self) -> bool: ...
method isSet (line 146) | def isSet(self) -> bool: ... # deprecated alias for is_set()
method set (line 147) | def set(self) -> None: ...
method clear (line 148) | def clear(self) -> None: ...
method wait (line 149) | def wait(self, timeout: float | None = None) -> bool: ...
class Timer (line 154) | class Timer(Thread):
method __init__ (line 161) | def __init__(
method cancel (line 168) | def cancel(self) -> None: ...
class Barrier (line 170) | class Barrier:
method parties (line 172) | def parties(self) -> int: ...
method n_waiting (line 174) | def n_waiting(self) -> int: ...
method broken (line 176) | def broken(self) -> bool: ...
method __init__ (line 177) | def __init__(self, parties: int, action: Callable[[], None] | None = N...
method wait (line 178) | def wait(self, timeout: float | None = None) -> int: ...
method reset (line 179) | def reset(self) -> None: ...
method abort (line 180) | def abort(self) -> None: ...
class BrokenBarrierError (line 182) | class BrokenBarrierError(RuntimeError): ...
FILE: mypy/typeshed/stdlib/time.pyi
class struct_time (line 42) | class struct_time(structseq[Any | int], _TimeTuple):
method tm_year (line 47) | def tm_year(self) -> int: ...
method tm_mon (line 49) | def tm_mon(self) -> int: ...
method tm_mday (line 51) | def tm_mday(self) -> int: ...
method tm_hour (line 53) | def tm_hour(self) -> int: ...
method tm_min (line 55) | def tm_min(self) -> int: ...
method tm_sec (line 57) | def tm_sec(self) -> int: ...
method tm_wday (line 59) | def tm_wday(self) -> int: ...
method tm_yday (line 61) | def tm_yday(self) -> int: ...
method tm_isdst (line 63) | def tm_isdst(self) -> int: ...
method tm_zone (line 66) | def tm_zone(self) -> str: ...
method tm_gmtoff (line 68) | def tm_gmtoff(self) -> int: ...
function asctime (line 70) | def asctime(time_tuple: _TimeTuple | struct_time = ..., /) -> str: ...
function ctime (line 71) | def ctime(seconds: float | None = None, /) -> str: ...
function gmtime (line 72) | def gmtime(seconds: float | None = None, /) -> struct_time: ...
function localtime (line 73) | def localtime(seconds: float | None = None, /) -> struct_time: ...
function mktime (line 74) | def mktime(time_tuple: _TimeTuple | struct_time, /) -> float: ...
function sleep (line 75) | def sleep(seconds: float, /) -> None: ...
function strftime (line 76) | def strftime(format: str, time_tuple: _TimeTuple | struct_time = ..., /)...
function strptime (line 77) | def strptime(data_string: str, format: str = "%a %b %d %H:%M:%S %Y", /) ...
function time (line 78) | def time() -> float: ...
function tzset (line 81) | def tzset() -> None: ... # Unix only
class _ClockInfo (line 83) | class _ClockInfo(Protocol):
function get_clock_info (line 89) | def get_clock_info(name: Literal["monotonic", "perf_counter", "process_t...
function monotonic (line 90) | def monotonic() -> float: ...
function perf_counter (line 91) | def perf_counter() -> float: ...
function process_time (line 92) | def process_time() -> float: ...
function clock_getres (line 95) | def clock_getres(clk_id: int, /) -> float: ... # Unix only
function clock_gettime (line 96) | def clock_gettime(clk_id: int, /) -> float: ... # Unix only
function clock_settime (line 97) | def clock_settime(clk_id: int, time: float, /) -> None: ... # Unix only
function clock_gettime_ns (line 100) | def clock_gettime_ns(clk_id: int, /) -> int: ...
function clock_settime_ns (line 101) | def clock_settime_ns(clock_id: int, time: int, /) -> int: ...
function pthread_getcpuclockid (line 104) | def pthread_getcpuclockid(thread_id: int, /) -> int: ...
function monotonic_ns (line 106) | def monotonic_ns() -> int: ...
function perf_counter_ns (line 107) | def perf_counter_ns() -> int: ...
function process_time_ns (line 108) | def process_time_ns() -> int: ...
function time_ns (line 109) | def time_ns() -> int: ...
function thread_time (line 110) | def thread_time() -> float: ...
function thread_time_ns (line 111) | def thread_time_ns() -> int: ...
FILE: mypy/typeshed/stdlib/timeit.pyi
class Timer (line 12) | class Timer:
method __init__ (line 13) | def __init__(
method print_exc (line 16) | def print_exc(self, file: IO[str] | None = None) -> None: ...
method timeit (line 17) | def timeit(self, number: int = 1000000) -> float: ...
method repeat (line 18) | def repeat(self, repeat: int = 5, number: int = 1000000) -> list[float...
method autorange (line 19) | def autorange(self, callback: Callable[[int, float], object] | None = ...
function timeit (line 21) | def timeit(
function repeat (line 24) | def repeat(
function main (line 32) | def main(args: Sequence[str] | None = None, *, _wrap_timer: Callable[[_T...
FILE: mypy/typeshed/stdlib/tkinter/__init__.pyi
class _VersionInfoTypeBase (line 195) | class _VersionInfoTypeBase(NamedTuple):
class _VersionInfoType (line 202) | class _VersionInfoType(_VersionInfoTypeBase): ...
class EventType (line 205) | class EventType(StrEnum):
class EventType (line 247) | class EventType(str, Enum):
class Event (line 292) | class Event(Generic[_W_co]):
function NoDefaultRoot (line 313) | def NoDefaultRoot() -> None: ...
class Variable (line 315) | class Variable:
method __init__ (line 316) | def __init__(self, master: Misc | None = None, value: Incomplete | Non...
method set (line 317) | def set(self, value) -> None: ...
method get (line 319) | def get(self): ...
method trace_add (line 320) | def trace_add(self, mode: Literal["array", "read", "write", "unset"], ...
method trace_remove (line 321) | def trace_remove(self, mode: Literal["array", "read", "write", "unset"...
method trace_info (line 322) | def trace_info(self) -> list[tuple[tuple[Literal["array", "read", "wri...
method trace (line 324) | def trace(self, mode, callback): ...
method trace_variable (line 326) | def trace_variable(self, mode, callback): ...
method trace_vdelete (line 328) | def trace_vdelete(self, mode, cbname) -> None: ...
method trace_vinfo (line 330) | def trace_vinfo(self): ...
method __eq__ (line 331) | def __eq__(self, other: object) -> bool: ...
method __del__ (line 332) | def __del__(self) -> None: ...
class StringVar (line 335) | class StringVar(Variable):
method __init__ (line 336) | def __init__(self, master: Misc | None = None, value: str | None = Non...
method set (line 337) | def set(self, value: str) -> None: ...
method get (line 339) | def get(self) -> str: ...
class IntVar (line 341) | class IntVar(Variable):
method __init__ (line 342) | def __init__(self, master: Misc | None = None, value: int | None = Non...
method set (line 343) | def set(self, value: int) -> None: ...
method get (line 345) | def get(self) -> int: ...
class DoubleVar (line 347) | class DoubleVar(Variable):
method __init__ (line 348) | def __init__(self, master: Misc | None = None, value: float | None = N...
method set (line 349) | def set(self, value: float) -> None: ...
method get (line 351) | def get(self) -> float: ...
class BooleanVar (line 353) | class BooleanVar(Variable):
method __init__ (line 354) | def __init__(self, master: Misc | None = None, value: bool | None = No...
method set (line 355) | def set(self, value: bool) -> None: ...
method get (line 357) | def get(self) -> bool: ...
function mainloop (line 359) | def mainloop(n: int = 0) -> None: ...
function getboolean (line 364) | def getboolean(s): ...
class _GridIndexInfo (line 368) | class _GridIndexInfo(TypedDict, total=False):
class _BusyInfo (line 374) | class _BusyInfo(TypedDict):
class Misc (line 377) | class Misc:
method destroy (line 381) | def destroy(self) -> None: ...
method deletecommand (line 382) | def deletecommand(self, name: str) -> None: ...
method tk_strictMotif (line 383) | def tk_strictMotif(self, boolean: Incomplete | None = None): ...
method tk_bisque (line 384) | def tk_bisque(self) -> None: ...
method tk_setPalette (line 385) | def tk_setPalette(self, *args, **kw) -> None: ...
method wait_variable (line 386) | def wait_variable(self, name: str | Variable = "PY_VAR") -> None: ...
method wait_window (line 388) | def wait_window(self, window: Misc | None = None) -> None: ...
method wait_visibility (line 389) | def wait_visibility(self, window: Misc | None = None) -> None: ...
method setvar (line 390) | def setvar(self, name: str = "PY_VAR", value: str = "1") -> None: ...
method getvar (line 391) | def getvar(self, name: str = "PY_VAR"): ...
method getint (line 392) | def getint(self, s): ...
method getdouble (line 393) | def getdouble(self, s): ...
method getboolean (line 394) | def getboolean(self, s): ...
method focus_set (line 395) | def focus_set(self) -> None: ...
method focus_force (line 397) | def focus_force(self) -> None: ...
method focus_get (line 398) | def focus_get(self) -> Misc | None: ...
method focus_displayof (line 399) | def focus_displayof(self) -> Misc | None: ...
method focus_lastfor (line 400) | def focus_lastfor(self) -> Misc | None: ...
method tk_focusFollowsMouse (line 401) | def tk_focusFollowsMouse(self) -> None: ...
method tk_focusNext (line 402) | def tk_focusNext(self) -> Misc | None: ...
method tk_focusPrev (line 403) | def tk_focusPrev(self) -> Misc | None: ...
method after (line 406) | def after(self, ms: int | Literal["idle"], func: Callable[[Unpack[_Ts]...
method after_idle (line 408) | def after_idle(self, func: Callable[[Unpack[_Ts]], object], *args: Unp...
method after_cancel (line 409) | def after_cancel(self, id: str) -> None: ...
method after_info (line 411) | def after_info(self, id: str | None = None) -> tuple[str, ...]: ...
method bell (line 413) | def bell(self, displayof: Literal[0] | Misc | None = 0) -> None: ...
method tk_busy_cget (line 416) | def tk_busy_cget(self, option: Literal["cursor"]) -> _Cursor: ...
method tk_busy_configure (line 418) | def tk_busy_configure(self, cnf: Any = None, **kw: Any) -> Any: ...
method tk_busy_current (line 422) | def tk_busy_current(self, pattern: str | None = None) -> list[Misc]: ...
method tk_busy_forget (line 424) | def tk_busy_forget(self) -> None: ...
method tk_busy_hold (line 426) | def tk_busy_hold(self, **kw: Unpack[_BusyInfo]) -> None: ...
method tk_busy_status (line 430) | def tk_busy_status(self) -> bool: ...
method clipboard_get (line 433) | def clipboard_get(self, *, displayof: Misc = ..., type: str = ...) -> ...
method clipboard_clear (line 434) | def clipboard_clear(self, *, displayof: Misc = ...) -> None: ...
method clipboard_append (line 435) | def clipboard_append(self, string: str, *, displayof: Misc = ..., form...
method grab_current (line 436) | def grab_current(self): ...
method grab_release (line 437) | def grab_release(self) -> None: ...
method grab_set (line 438) | def grab_set(self) -> None: ...
method grab_set_global (line 439) | def grab_set_global(self) -> None: ...
method grab_status (line 440) | def grab_status(self) -> Literal["local", "global"] | None: ...
method option_add (line 441) | def option_add(
method option_clear (line 444) | def option_clear(self) -> None: ...
method option_get (line 445) | def option_get(self, name, className): ...
method option_readfile (line 446) | def option_readfile(self, fileName, priority: Incomplete | None = None...
method selection_clear (line 447) | def selection_clear(self, **kw) -> None: ...
method selection_get (line 448) | def selection_get(self, **kw): ...
method selection_handle (line 449) | def selection_handle(self, command, **kw) -> None: ...
method selection_own (line 450) | def selection_own(self, **kw) -> None: ...
method selection_own_get (line 451) | def selection_own_get(self, **kw): ...
method send (line 452) | def send(self, interp, cmd, *args): ...
method lower (line 453) | def lower(self, belowThis: Incomplete | None = None) -> None: ...
method tkraise (line 454) | def tkraise(self, aboveThis: Incomplete | None = None) -> None: ...
method info_patchlevel (line 457) | def info_patchlevel(self) -> _VersionInfoType: ...
method winfo_atom (line 459) | def winfo_atom(self, name: str, displayof: Literal[0] | Misc | None = ...
method winfo_atomname (line 460) | def winfo_atomname(self, id: int, displayof: Literal[0] | Misc | None ...
method winfo_cells (line 461) | def winfo_cells(self) -> int: ...
method winfo_children (line 462) | def winfo_children(self) -> list[Widget]: ... # Widget because it can...
method winfo_class (line 463) | def winfo_class(self) -> str: ...
method winfo_colormapfull (line 464) | def winfo_colormapfull(self) -> bool: ...
method winfo_containing (line 465) | def winfo_containing(self, rootX: int, rootY: int, displayof: Literal[...
method winfo_depth (line 466) | def winfo_depth(self) -> int: ...
method winfo_exists (line 467) | def winfo_exists(self) -> bool: ...
method winfo_fpixels (line 468) | def winfo_fpixels(self, number: _ScreenUnits) -> float: ...
method winfo_geometry (line 469) | def winfo_geometry(self) -> str: ...
method winfo_height (line 470) | def winfo_height(self) -> int: ...
method winfo_id (line 471) | def winfo_id(self) -> int: ...
method winfo_interps (line 472) | def winfo_interps(self, displayof: Literal[0] | Misc | None = 0) -> tu...
method winfo_ismapped (line 473) | def winfo_ismapped(self) -> bool: ...
method winfo_manager (line 474) | def winfo_manager(self) -> str: ...
method winfo_name (line 475) | def winfo_name(self) -> str: ...
method winfo_parent (line 476) | def winfo_parent(self) -> str: ... # return value needs nametowidget()
method winfo_pathname (line 477) | def winfo_pathname(self, id: int, displayof: Literal[0] | Misc | None ...
method winfo_pixels (line 478) | def winfo_pixels(self, number: _ScreenUnits) -> int: ...
method winfo_pointerx (line 479) | def winfo_pointerx(self) -> int: ...
method winfo_pointerxy (line 480) | def winfo_pointerxy(self) -> tuple[int, int]: ...
method winfo_pointery (line 481) | def winfo_pointery(self) -> int: ...
method winfo_reqheight (line 482) | def winfo_reqheight(self) -> int: ...
method winfo_reqwidth (line 483) | def winfo_reqwidth(self) -> int: ...
method winfo_rgb (line 484) | def winfo_rgb(self, color: str) -> tuple[int, int, int]: ...
method winfo_rootx (line 485) | def winfo_rootx(self) -> int: ...
method winfo_rooty (line 486) | def winfo_rooty(self) -> int: ...
method winfo_screen (line 487) | def winfo_screen(self) -> str: ...
method winfo_screencells (line 488) | def winfo_screencells(self) -> int: ...
method winfo_screendepth (line 489) | def winfo_screendepth(self) -> int: ...
method winfo_screenheight (line 490) | def winfo_screenheight(self) -> int: ...
method winfo_screenmmheight (line 491) | def winfo_screenmmheight(self) -> int: ...
method winfo_screenmmwidth (line 492) | def winfo_screenmmwidth(self) -> int: ...
method winfo_screenvisual (line 493) | def winfo_screenvisual(self) -> str: ...
method winfo_screenwidth (line 494) | def winfo_screenwidth(self) -> int: ...
method winfo_server (line 495) | def winfo_server(self) -> str: ...
method winfo_toplevel (line 496) | def winfo_toplevel(self) -> Tk | Toplevel: ...
method winfo_viewable (line 497) | def winfo_viewable(self) -> bool: ...
method winfo_visual (line 498) | def winfo_visual(self) -> str: ...
method winfo_visualid (line 499) | def winfo_visualid(self) -> str: ...
method winfo_visualsavailable (line 500) | def winfo_visualsavailable(self, includeids: bool = False) -> list[tup...
method winfo_vrootheight (line 501) | def winfo_vrootheight(self) -> int: ...
method winfo_vrootwidth (line 502) | def winfo_vrootwidth(self) -> int: ...
method winfo_vrootx (line 503) | def winfo_vrootx(self) -> int: ...
method winfo_vrooty (line 504) | def winfo_vrooty(self) -> int: ...
method winfo_width (line 505) | def winfo_width(self) -> int: ...
method winfo_x (line 506) | def winfo_x(self) -> int: ...
method winfo_y (line 507) | def winfo_y(self) -> int: ...
method update (line 508) | def update(self) -> None: ...
method update_idletasks (line 509) | def update_idletasks(self) -> None: ...
method bindtags (line 511) | def bindtags(self, tagList: None = None) -> tuple[str, ...]: ...
method bindtags (line 513) | def bindtags(self, tagList: list[str] | tuple[str, ...]) -> None: ...
method bind (line 517) | def bind(
method bind (line 524) | def bind(self, sequence: str | None, func: str, add: Literal["", "+"] ...
method bind (line 526) | def bind(self, *, func: str, add: Literal["", "+"] | bool | None = Non...
method bind_all (line 530) | def bind_all(
method bind_all (line 537) | def bind_all(self, sequence: str | None, func: str, add: Literal["", "...
method bind_all (line 539) | def bind_all(self, *, func: str, add: Literal["", "+"] | bool | None =...
method bind_class (line 541) | def bind_class(
method bind_class (line 549) | def bind_class(self, className: str, sequence: str | None, func: str, ...
method bind_class (line 551) | def bind_class(self, className: str, *, func: str, add: Literal["", "+...
method unbind (line 552) | def unbind(self, sequence: str, funcid: str | None = None) -> None: ...
method unbind_all (line 553) | def unbind_all(self, sequence: str) -> None: ...
method unbind_class (line 554) | def unbind_class(self, className: str, sequence: str) -> None: ...
method mainloop (line 555) | def mainloop(self, n: int = 0) -> None: ...
method quit (line 556) | def quit(self) -> None: ...
method _windowingsystem (line 558) | def _windowingsystem(self) -> Literal["win32", "aqua", "x11"]: ...
method nametowidget (line 559) | def nametowidget(self, name: str | Misc | _tkinter.Tcl_Obj) -> Any: ...
method register (line 560) | def register(
method keys (line 563) | def keys(self) -> list[str]: ...
method pack_propagate (line 565) | def pack_propagate(self, flag: bool) -> bool | None: ...
method pack_propagate (line 567) | def pack_propagate(self) -> None: ...
method grid_anchor (line 569) | def grid_anchor(self, anchor: _Anchor | None = None) -> None: ...
method grid_bbox (line 572) | def grid_bbox(
method grid_bbox (line 576) | def grid_bbox(self, column: int, row: int, col2: None = None, row2: No...
method grid_bbox (line 578) | def grid_bbox(self, column: int, row: int, col2: int, row2: int) -> tu...
method grid_columnconfigure (line 580) | def grid_columnconfigure(
method grid_rowconfigure (line 590) | def grid_rowconfigure(
method grid_location (line 602) | def grid_location(self, x: _ScreenUnits, y: _ScreenUnits) -> tuple[int...
method grid_propagate (line 604) | def grid_propagate(self, flag: bool) -> None: ...
method grid_propagate (line 606) | def grid_propagate(self) -> bool: ...
method grid_size (line 607) | def grid_size(self) -> tuple[int, int]: ...
method pack_slaves (line 610) | def pack_slaves(self) -> list[Widget]: ...
method grid_slaves (line 611) | def grid_slaves(self, row: int | None = None, column: int | None = Non...
method place_slaves (line 612) | def place_slaves(self) -> list[Widget]: ...
method event_add (line 614) | def event_add(self, virtual: str, *sequences: str) -> None: ...
method event_delete (line 615) | def event_delete(self, virtual: str, *sequences: str) -> None: ...
method event_generate (line 616) | def event_generate(
method event_info (line 648) | def event_info(self, virtual: str | None = None) -> tuple[str, ...]: ...
method image_names (line 649) | def image_names(self) -> tuple[str, ...]: ...
method image_types (line 650) | def image_types(self) -> tuple[str, ...]: ...
method __setitem__ (line 652) | def __setitem__(self, key: str, value: Any) -> None: ...
method __getitem__ (line 653) | def __getitem__(self, key: str) -> Any: ...
method cget (line 654) | def cget(self, key: str) -> Any: ...
method configure (line 655) | def configure(self, cnf: Any = None) -> Any: ...
class CallWrapper (line 659) | class CallWrapper:
method __init__ (line 663) | def __init__(self, func, subst, widget) -> None: ...
method __call__ (line 664) | def __call__(self, *args): ...
class XView (line 666) | class XView:
method xview (line 668) | def xview(self) -> tuple[float, float]: ...
method xview (line 670) | def xview(self, *args): ...
method xview_moveto (line 671) | def xview_moveto(self, fraction: float) -> None: ...
method xview_scroll (line 673) | def xview_scroll(self, number: int, what: Literal["units", "pages"]) -...
method xview_scroll (line 675) | def xview_scroll(self, number: _ScreenUnits, what: Literal["pixels"]) ...
class YView (line 677) | class YView:
method yview (line 679) | def yview(self) -> tuple[float, float]: ...
method yview (line 681) | def yview(self, *args): ...
method yview_moveto (line 682) | def yview_moveto(self, fraction: float) -> None: ...
method yview_scroll (line 684) | def yview_scroll(self, number: int, what: Literal["units", "pages"]) -...
method yview_scroll (line 686) | def yview_scroll(self, number: _ScreenUnits, what: Literal["pixels"]) ...
class _WmAttributes (line 690) | class _WmAttributes(TypedDict):
class _WmAttributes (line 702) | class _WmAttributes(TypedDict):
class _WmAttributes (line 713) | class _WmAttributes(TypedDict):
class Wm (line 720) | class Wm:
method wm_aspect (line 722) | def wm_aspect(self, minNumer: int, minDenom: int, maxNumer: int, maxDe...
method wm_aspect (line 724) | def wm_aspect(
method wm_attributes (line 730) | def wm_attributes(self, *, return_python_dict: Literal[False] = False)...
method wm_attributes (line 732) | def wm_attributes(self, *, return_python_dict: Literal[True]) -> _WmAt...
method wm_attributes (line 736) | def wm_attributes(self) -> tuple[Any, ...]: ...
method wm_attributes (line 739) | def wm_attributes(self, option: Literal["-alpha"], /) -> float: ...
method wm_attributes (line 741) | def wm_attributes(self, option: Literal["-fullscreen"], /) -> bool: ...
method wm_attributes (line 743) | def wm_attributes(self, option: Literal["-topmost"], /) -> bool: ...
method wm_attributes (line 746) | def wm_attributes(self, option: Literal["-modified"], /) -> bool: ...
method wm_attributes (line 748) | def wm_attributes(self, option: Literal["-notify"], /) -> bool: ...
method wm_attributes (line 750) | def wm_attributes(self, option: Literal["-titlepath"], /) -> str: ...
method wm_attributes (line 752) | def wm_attributes(self, option: Literal["-transparent"], /) -> bool: ...
method wm_attributes (line 754) | def wm_attributes(self, option: Literal["-type"], /) -> str: ...
method wm_attributes (line 757) | def wm_attributes(self, option: Literal["-transparentcolor"], /) -> st...
method wm_attributes (line 759) | def wm_attributes(self, option: Literal["-disabled"], /) -> bool: ...
method wm_attributes (line 761) | def wm_attributes(self, option: Literal["-toolwindow"], /) -> bool: ...
method wm_attributes (line 765) | def wm_attributes(self, option: Literal["-zoomed"], /) -> bool: ...
method wm_attributes (line 767) | def wm_attributes(self, option: Literal["-type"], /) -> str: ...
method wm_attributes (line 770) | def wm_attributes(self, option: Literal["alpha"], /) -> float: ...
method wm_attributes (line 772) | def wm_attributes(self, option: Literal["fullscreen"], /) -> bool: ...
method wm_attributes (line 774) | def wm_attributes(self, option: Literal["topmost"], /) -> bool: ...
method wm_attributes (line 777) | def wm_attributes(self, option: Literal["modified"], /) -> bool: ...
method wm_attributes (line 779) | def wm_attributes(self, option: Literal["notify"], /) -> bool: ...
method wm_attributes (line 781) | def wm_attributes(self, option: Literal["titlepath"], /) -> str: ...
method wm_attributes (line 783) | def wm_attributes(self, option: Literal["transparent"], /) -> bool: ...
method wm_attributes (line 785) | def wm_attributes(self, option: Literal["type"], /) -> str: ...
method wm_attributes (line 788) | def wm_attributes(self, option: Literal["transparentcolor"], /) -> str...
method wm_attributes (line 790) | def wm_attributes(self, option: Literal["disabled"], /) -> bool: ...
method wm_attributes (line 792) | def wm_attributes(self, option: Literal["toolwindow"], /) -> bool: ...
method wm_attributes (line 796) | def wm_attributes(self, option: Literal["zoomed"], /) -> bool: ...
method wm_attributes (line 798) | def wm_attributes(self, option: Literal["type"], /) -> str: ...
method wm_attributes (line 801) | def wm_attributes(self, option: str, /): ...
method wm_attributes (line 803) | def wm_attributes(self, option: Literal["-alpha"], value: float, /) ->...
method wm_attributes (line 805) | def wm_attributes(self, option: Literal["-fullscreen"], value: bool, /...
method wm_attributes (line 807) | def wm_attributes(self, option: Literal["-topmost"], value: bool, /) -...
method wm_attributes (line 810) | def wm_attributes(self, option: Literal["-modified"], value: bool, /) ...
method wm_attributes (line 812) | def wm_attributes(self, option: Literal["-notify"], value: bool, /) ->...
method wm_attributes (line 814) | def wm_attributes(self, option: Literal["-titlepath"], value: str, /) ...
method wm_attributes (line 816) | def wm_attributes(self, option: Literal["-transparent"], value: bool, ...
method wm_attributes (line 819) | def wm_attributes(self, option: Literal["-transparentcolor"], value: s...
method wm_attributes (line 821) | def wm_attributes(self, option: Literal["-disabled"], value: bool, /) ...
method wm_attributes (line 823) | def wm_attributes(self, option: Literal["-toolwindow"], value: bool, /...
method wm_attributes (line 827) | def wm_attributes(self, option: Literal["-zoomed"], value: bool, /) ->...
method wm_attributes (line 829) | def wm_attributes(self, option: Literal["-type"], value: str, /) -> Li...
method wm_attributes (line 832) | def wm_attributes(self, option: str, value, /, *__other_option_value_p...
method wm_attributes (line 836) | def wm_attributes(
method wm_attributes (line 849) | def wm_attributes(
method wm_attributes (line 862) | def wm_attributes(
method wm_client (line 867) | def wm_client(self, name: str | None = None) -> str: ...
method wm_colormapwindows (line 870) | def wm_colormapwindows(self) -> list[Misc]: ...
method wm_colormapwindows (line 872) | def wm_colormapwindows(self, wlist: list[Misc] | tuple[Misc, ...], /) ...
method wm_colormapwindows (line 874) | def wm_colormapwindows(self, first_wlist_item: Misc, /, *other_wlist_i...
method wm_command (line 876) | def wm_command(self, value: str | None = None) -> str: ...
method wm_deiconify (line 879) | def wm_deiconify(self) -> None: ...
method wm_focusmodel (line 881) | def wm_focusmodel(self, model: Literal["active", "passive"] | None = N...
method wm_forget (line 883) | def wm_forget(self, window: Wm) -> None: ...
method wm_frame (line 885) | def wm_frame(self) -> str: ...
method wm_geometry (line 888) | def wm_geometry(self, newGeometry: None = None) -> str: ...
method wm_geometry (line 890) | def wm_geometry(self, newGeometry: str) -> None: ...
method wm_grid (line 892) | def wm_grid(
method wm_group (line 900) | def wm_group(self, pathName: Incomplete | None = None): ...
method wm_iconbitmap (line 902) | def wm_iconbitmap(self, bitmap: Incomplete | None = None, default: Inc...
method wm_iconify (line 904) | def wm_iconify(self) -> None: ...
method wm_iconmask (line 906) | def wm_iconmask(self, bitmap: Incomplete | None = None): ...
method wm_iconname (line 908) | def wm_iconname(self, newName: Incomplete | None = None) -> str: ...
method wm_iconphoto (line 910) | def wm_iconphoto(self, default: bool, image1: _PhotoImageLike | str, /...
method wm_iconposition (line 912) | def wm_iconposition(self, x: int | None = None, y: int | None = None) ...
method wm_iconwindow (line 914) | def wm_iconwindow(self, pathName: Incomplete | None = None): ...
method wm_manage (line 916) | def wm_manage(self, widget) -> None: ...
method wm_maxsize (line 919) | def wm_maxsize(self, width: None = None, height: None = None) -> tuple...
method wm_maxsize (line 921) | def wm_maxsize(self, width: int, height: int) -> None: ...
method wm_minsize (line 924) | def wm_minsize(self, width: None = None, height: None = None) -> tuple...
method wm_minsize (line 926) | def wm_minsize(self, width: int, height: int) -> None: ...
method wm_overrideredirect (line 929) | def wm_overrideredirect(self, boolean: None = None) -> bool | None: .....
method wm_overrideredirect (line 931) | def wm_overrideredirect(self, boolean: bool) -> None: ...
method wm_positionfrom (line 933) | def wm_positionfrom(self, who: Literal["program", "user"] | None = Non...
method wm_protocol (line 936) | def wm_protocol(self, name: str, func: Callable[[], object] | str) -> ...
method wm_protocol (line 938) | def wm_protocol(self, name: str, func: None = None) -> str: ...
method wm_protocol (line 940) | def wm_protocol(self, name: None = None, func: None = None) -> tuple[s...
method wm_resizable (line 943) | def wm_resizable(self, width: None = None, height: None = None) -> tup...
method wm_resizable (line 945) | def wm_resizable(self, width: bool, height: bool) -> None: ...
method wm_sizefrom (line 947) | def wm_sizefrom(self, who: Literal["program", "user"] | None = None) -...
method wm_state (line 950) | def wm_state(self, newstate: None = None) -> str: ...
method wm_state (line 952) | def wm_state(self, newstate: str) -> None: ...
method wm_title (line 955) | def wm_title(self, string: None = None) -> str: ...
method wm_title (line 957) | def wm_title(self, string: str) -> None: ...
method wm_transient (line 960) | def wm_transient(self, master: None = None) -> _tkinter.Tcl_Obj: ...
method wm_transient (line 962) | def wm_transient(self, master: Wm | _tkinter.Tcl_Obj) -> None: ...
method wm_withdraw (line 964) | def wm_withdraw(self) -> None: ...
class Tk (line 967) | class Tk(Misc, Wm):
method __init__ (line 969) | def __init__(
method configure (line 982) | def configure(
method configure (line 1004) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method destroy (line 1006) | def destroy(self) -> None: ...
method readprofile (line 1007) | def readprofile(self, baseName: str, className: str) -> None: ...
method adderrorinfo (line 1012) | def adderrorinfo(self, msg, /): ...
method call (line 1013) | def call(self, command: Any, /, *args: Any) -> Any: ...
method createcommand (line 1014) | def createcommand(self, name, func, /): ...
method createfilehandler (line 1016) | def createfilehandler(self, file, mask, func, /): ...
method deletefilehandler (line 1017) | def deletefilehandler(self, file, /): ...
method createtimerhandler (line 1019) | def createtimerhandler(self, milliseconds, func, /): ...
method dooneevent (line 1020) | def dooneevent(self, flags: int = ..., /): ...
method eval (line 1021) | def eval(self, script: str, /) -> str: ...
method evalfile (line 1022) | def evalfile(self, fileName, /): ...
method exprboolean (line 1023) | def exprboolean(self, s, /): ...
method exprdouble (line 1024) | def exprdouble(self, s, /): ...
method exprlong (line 1025) | def exprlong(self, s, /): ...
method exprstring (line 1026) | def exprstring(self, s, /): ...
method globalgetvar (line 1027) | def globalgetvar(self, *args, **kwargs): ...
method globalsetvar (line 1028) | def globalsetvar(self, *args, **kwargs): ...
method globalunsetvar (line 1029) | def globalunsetvar(self, *args, **kwargs): ...
method interpaddr (line 1030) | def interpaddr(self): ...
method loadtk (line 1031) | def loadtk(self) -> None: ...
method record (line 1032) | def record(self, script, /): ...
method split (line 1034) | def split(self, arg, /): ...
method splitlist (line 1036) | def splitlist(self, arg, /): ...
method unsetvar (line 1037) | def unsetvar(self, *args, **kwargs): ...
method wantobjects (line 1038) | def wantobjects(self, *args, **kwargs): ...
method willdispatch (line 1039) | def willdispatch(self): ...
function Tcl (line 1041) | def Tcl(screenName: str | None = None, baseName: str | None = None, clas...
class _PackInfo (line 1046) | class _PackInfo(_InMiscTotal):
class Pack (line 1059) | class Pack:
method pack_configure (line 1064) | def pack_configure(
method pack_forget (line 1081) | def pack_forget(self) -> None: ...
method pack_info (line 1082) | def pack_info(self) -> _PackInfo: ... # errors if widget hasn't been ...
class _PlaceInfo (line 1087) | class _PlaceInfo(_InMiscNonTotal): # empty dict if widget hasn't been p...
class Place (line 1099) | class Place:
method place_configure (line 1100) | def place_configure(
method place_forget (line 1118) | def place_forget(self) -> None: ...
method place_info (line 1119) | def place_info(self) -> _PlaceInfo: ...
class _GridInfo (line 1123) | class _GridInfo(_InMiscNonTotal): # empty dict if widget hasn't been gr...
class Grid (line 1134) | class Grid:
method grid_configure (line 1135) | def grid_configure(
method grid_forget (line 1151) | def grid_forget(self) -> None: ...
method grid_remove (line 1152) | def grid_remove(self) -> None: ...
method grid_info (line 1153) | def grid_info(self) -> _GridInfo: ...
class BaseWidget (line 1158) | class BaseWidget(Misc):
method __init__ (line 1161) | def __init__(self, master, widgetName, cnf={}, kw={}, extra=()) -> Non...
method destroy (line 1162) | def destroy(self) -> None: ...
class Widget (line 1165) | class Widget(BaseWidget, Pack, Place, Grid):
method bind (line 1170) | def bind(
method bind (line 1177) | def bind(self, sequence: str | None, func: str, add: Literal["", "+"] ...
method bind (line 1179) | def bind(self, *, func: str, add: Literal["", "+"] | bool | None = Non...
class Toplevel (line 1181) | class Toplevel(BaseWidget, Wm):
method __init__ (line 1185) | def __init__(
method configure (line 1215) | def configure(
method configure (line 1237) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Button (line 1240) | class Button(Widget):
method __init__ (line 1241) | def __init__(
method configure (line 1290) | def configure(
method configure (line 1332) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method flash (line 1334) | def flash(self) -> None: ...
method invoke (line 1335) | def invoke(self) -> Any: ...
class Canvas (line 1337) | class Canvas(Widget, XView, YView):
method __init__ (line 1338) | def __init__(
method configure (line 1381) | def configure(
method configure (line 1417) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method addtag (line 1419) | def addtag(self, *args): ... # internal method
method addtag_above (line 1420) | def addtag_above(self, newtag: str, tagOrId: str | int) -> None: ...
method addtag_all (line 1421) | def addtag_all(self, newtag: str) -> None: ...
method addtag_below (line 1422) | def addtag_below(self, newtag: str, tagOrId: str | int) -> None: ...
method addtag_closest (line 1423) | def addtag_closest(
method addtag_enclosed (line 1426) | def addtag_enclosed(self, newtag: str, x1: _ScreenUnits, y1: _ScreenUn...
method addtag_overlapping (line 1427) | def addtag_overlapping(self, newtag: str, x1: _ScreenUnits, y1: _Scree...
method addtag_withtag (line 1428) | def addtag_withtag(self, newtag: str, tagOrId: str | int) -> None: ...
method find (line 1429) | def find(self, *args): ... # internal method
method find_above (line 1430) | def find_above(self, tagOrId: str | int) -> tuple[int, ...]: ...
method find_all (line 1431) | def find_all(self) -> tuple[int, ...]: ...
method find_below (line 1432) | def find_below(self, tagOrId: str | int) -> tuple[int, ...]: ...
method find_closest (line 1433) | def find_closest(
method find_enclosed (line 1436) | def find_enclosed(self, x1: _ScreenUnits, y1: _ScreenUnits, x2: _Scree...
method find_overlapping (line 1437) | def find_overlapping(self, x1: _ScreenUnits, y1: _ScreenUnits, x2: _Sc...
method find_withtag (line 1438) | def find_withtag(self, tagOrId: str | int) -> tuple[int, ...]: ...
method bbox (line 1440) | def bbox(self, *args: str | int) -> tuple[int, int, int, int]: ... # ...
method tag_bind (line 1442) | def tag_bind(
method tag_bind (line 1450) | def tag_bind(
method tag_bind (line 1454) | def tag_bind(self, tagOrId: str | int, *, func: str, add: Literal["", ...
method tag_unbind (line 1455) | def tag_unbind(self, tagOrId: str | int, sequence: str, funcid: str | ...
method canvasx (line 1456) | def canvasx(self, screenx, gridspacing: Incomplete | None = None): ...
method canvasy (line 1457) | def canvasy(self, screeny, gridspacing: Incomplete | None = None): ...
method coords (line 1459) | def coords(self, tagOrId: str | int, /) -> list[float]: ...
method coords (line 1461) | def coords(self, tagOrId: str | int, args: list[int] | list[float] | t...
method coords (line 1463) | def coords(self, tagOrId: str | int, x1: float, y1: float, /, *args: f...
method create_arc (line 1467) | def create_arc(self, *args, **kw) -> int: ...
method create_bitmap (line 1468) | def create_bitmap(self, *args, **kw) -> int: ...
method create_image (line 1469) | def create_image(self, *args, **kw) -> int: ...
method create_line (line 1471) | def create_line(
method create_line (line 1503) | def create_line(
method create_line (line 1533) | def create_line(
method create_oval (line 1569) | def create_oval(
method create_oval (line 1602) | def create_oval(
method create_oval (line 1633) | def create_oval(
method create_polygon (line 1670) | def create_polygon(
method create_polygon (line 1706) | def create_polygon(
method create_polygon (line 1740) | def create_polygon(
method create_rectangle (line 1780) | def create_rectangle(
method create_rectangle (line 1813) | def create_rectangle(
method create_rectangle (line 1844) | def create_rectangle(
method create_text (line 1881) | def create_text(
method create_text (line 1904) | def create_text(
method create_window (line 1926) | def create_window(
method create_window (line 1940) | def create_window(
method dchars (line 1952) | def dchars(self, *args) -> None: ...
method delete (line 1953) | def delete(self, *tagsOrCanvasIds: str | int) -> None: ...
method dtag (line 1955) | def dtag(self, tag: str, tag_to_delete: str | None = ..., /) -> None: ...
method dtag (line 1957) | def dtag(self, id: int, tag_to_delete: str, /) -> None: ...
method focus (line 1958) | def focus(self, *args): ...
method gettags (line 1959) | def gettags(self, tagOrId: str | int, /) -> tuple[str, ...]: ...
method icursor (line 1960) | def icursor(self, *args) -> None: ...
method index (line 1961) | def index(self, *args): ...
method insert (line 1962) | def insert(self, *args) -> None: ...
method itemcget (line 1963) | def itemcget(self, tagOrId, option): ...
method itemconfigure (line 1965) | def itemconfigure(
method move (line 1969) | def move(self, *args) -> None: ...
method moveto (line 1970) | def moveto(self, tagOrId: str | int, x: Literal[""] | float = "", y: L...
method postscript (line 1971) | def postscript(self, cnf={}, **kw): ...
method tag_lower (line 1977) | def tag_lower(self, first: str | int, second: str | int | None = ..., ...
method lower (line 1978) | def lower(self, first: str | int, second: str | int | None = ..., /) -...
method tag_raise (line 1979) | def tag_raise(self, first: str | int, second: str | int | None = ..., ...
method tkraise (line 1980) | def tkraise(self, first: str | int, second: str | int | None = ..., /)...
method lift (line 1981) | def lift(self, first: str | int, second: str | int | None = ..., /) ->...
method scale (line 1982) | def scale(
method scan_mark (line 1985) | def scan_mark(self, x, y) -> None: ...
method scan_dragto (line 1986) | def scan_dragto(self, x, y, gain: int = 10) -> None: ...
method select_adjust (line 1987) | def select_adjust(self, tagOrId, index) -> None: ...
method select_clear (line 1988) | def select_clear(self) -> None: ...
method select_from (line 1989) | def select_from(self, tagOrId, index) -> None: ...
method select_item (line 1990) | def select_item(self): ...
method select_to (line 1991) | def select_to(self, tagOrId, index) -> None: ...
method type (line 1992) | def type(self, tagOrId: str | int) -> int | None: ...
class Checkbutton (line 1994) | class Checkbutton(Widget):
method __init__ (line 1995) | def __init__(
method configure (line 2055) | def configure(
method configure (line 2103) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method deselect (line 2105) | def deselect(self) -> None: ...
method flash (line 2106) | def flash(self) -> None: ...
method invoke (line 2107) | def invoke(self) -> Any: ...
method select (line 2108) | def select(self) -> None: ...
method toggle (line 2109) | def toggle(self) -> None: ...
class Entry (line 2111) | class Entry(Widget, XView):
method __init__ (line 2112) | def __init__(
method configure (line 2157) | def configure(
method configure (line 2200) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method delete (line 2202) | def delete(self, first: str | int, last: str | int | None = None) -> N...
method get (line 2203) | def get(self) -> str: ...
method icursor (line 2204) | def icursor(self, index: str | int) -> None: ...
method index (line 2205) | def index(self, index: str | int) -> int: ...
method insert (line 2206) | def insert(self, index: str | int, string: str) -> None: ...
method scan_mark (line 2207) | def scan_mark(self, x) -> None: ...
method scan_dragto (line 2208) | def scan_dragto(self, x) -> None: ...
method selection_adjust (line 2209) | def selection_adjust(self, index: str | int) -> None: ...
method selection_clear (line 2210) | def selection_clear(self) -> None: ... # type: ignore[override]
method selection_from (line 2211) | def selection_from(self, index: str | int) -> None: ...
method selection_present (line 2212) | def selection_present(self) -> bool: ...
method selection_range (line 2213) | def selection_range(self, start: str | int, end: str | int) -> None: ...
method selection_to (line 2214) | def selection_to(self, index: str | int) -> None: ...
class Frame (line 2222) | class Frame(Widget):
method __init__ (line 2223) | def __init__(
method configure (line 2250) | def configure(
method configure (line 2271) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Label (line 2274) | class Label(Widget):
method __init__ (line 2275) | def __init__(
method configure (line 2314) | def configure(
method configure (line 2351) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Listbox (line 2354) | class Listbox(Widget, XView, YView):
method __init__ (line 2355) | def __init__(
method configure (line 2407) | def configure(
method configure (line 2442) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method activate (line 2444) | def activate(self, index: str | int) -> None: ...
method bbox (line 2445) | def bbox(self, index: str | int) -> tuple[int, int, int, int] | None: ...
method curselection (line 2446) | def curselection(self): ...
method delete (line 2447) | def delete(self, first: str | int, last: str | int | None = None) -> N...
method get (line 2448) | def get(self, first: str | int, last: str | int | None = None): ...
method index (line 2449) | def index(self, index: str | int) -> int: ...
method insert (line 2450) | def insert(self, index: str | int, *elements: str | float) -> None: ...
method nearest (line 2451) | def nearest(self, y): ...
method scan_mark (line 2452) | def scan_mark(self, x, y) -> None: ...
method scan_dragto (line 2453) | def scan_dragto(self, x, y) -> None: ...
method see (line 2454) | def see(self, index: str | int) -> None: ...
method selection_anchor (line 2455) | def selection_anchor(self, index: str | int) -> None: ...
method selection_clear (line 2457) | def selection_clear(self, first: str | int, last: str | int | None = N...
method selection_includes (line 2459) | def selection_includes(self, index: str | int): ...
method selection_set (line 2461) | def selection_set(self, first: str | int, last: str | int | None = Non...
method size (line 2463) | def size(self) -> int: ... # type: ignore[override]
method itemcget (line 2464) | def itemcget(self, index: str | int, option): ...
method itemconfigure (line 2465) | def itemconfigure(self, index: str | int, cnf: Incomplete | None = Non...
class Menu (line 2468) | class Menu(Widget):
method __init__ (line 2469) | def __init__(
method configure (line 2501) | def configure(
method configure (line 2528) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method tk_popup (line 2530) | def tk_popup(self, x: int, y: int, entry: str | int = "") -> None: ...
method activate (line 2531) | def activate(self, index: str | int) -> None: ...
method add (line 2532) | def add(self, itemType, cnf={}, **kw): ... # docstring says "Internal...
method insert (line 2533) | def insert(self, index, itemType, cnf={}, **kw): ... # docstring says...
method add_cascade (line 2534) | def add_cascade(
method add_checkbutton (line 2555) | def add_checkbutton(
method add_command (line 2581) | def add_command(
method add_radiobutton (line 2601) | def add_radiobutton(
method add_separator (line 2626) | def add_separator(self, cnf: dict[str, Any] | None = {}, *, background...
method insert_cascade (line 2627) | def insert_cascade(
method insert_checkbutton (line 2649) | def insert_checkbutton(
method insert_command (line 2676) | def insert_command(
method insert_radiobutton (line 2697) | def insert_radiobutton(
method insert_separator (line 2723) | def insert_separator(self, index: str | int, cnf: dict[str, Any] | Non...
method delete (line 2724) | def delete(self, index1: str | int, index2: str | int | None = None) -...
method entrycget (line 2725) | def entrycget(self, index: str | int, option: str) -> Any: ...
method entryconfigure (line 2726) | def entryconfigure(
method index (line 2730) | def index(self, index: str | int) -> int | None: ...
method invoke (line 2731) | def invoke(self, index: str | int) -> Any: ...
method post (line 2732) | def post(self, x: int, y: int) -> None: ...
method type (line 2733) | def type(self, index: str | int) -> Literal["cascade", "checkbutton", ...
method unpost (line 2734) | def unpost(self) -> None: ...
method xposition (line 2735) | def xposition(self, index: str | int) -> int: ...
method yposition (line 2736) | def yposition(self, index: str | int) -> int: ...
class Menubutton (line 2738) | class Menubutton(Widget):
method __init__ (line 2739) | def __init__(
method configure (line 2781) | def configure(
method configure (line 2821) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Message (line 2824) | class Message(Widget):
method __init__ (line 2825) | def __init__(
method configure (line 2856) | def configure(
method configure (line 2884) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Radiobutton (line 2887) | class Radiobutton(Widget):
method __init__ (line 2888) | def __init__(
method configure (line 2937) | def configure(
method configure (line 2984) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method deselect (line 2986) | def deselect(self) -> None: ...
method flash (line 2987) | def flash(self) -> None: ...
method invoke (line 2988) | def invoke(self) -> Any: ...
method select (line 2989) | def select(self) -> None: ...
class Scale (line 2991) | class Scale(Widget):
method __init__ (line 2992) | def __init__(
method configure (line 3035) | def configure(
method configure (line 3075) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method get (line 3077) | def get(self) -> float: ...
method set (line 3078) | def set(self, value) -> None: ...
method coords (line 3079) | def coords(self, value: float | None = None) -> tuple[int, int]: ...
method identify (line 3080) | def identify(self, x, y) -> Literal["", "slider", "trough1", "trough2"...
class Scrollbar (line 3082) | class Scrollbar(Widget):
method __init__ (line 3083) | def __init__(
method configure (line 3116) | def configure(
method configure (line 3143) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method activate (line 3145) | def activate(self, index: Incomplete | None = None): ...
method delta (line 3146) | def delta(self, deltax: int, deltay: int) -> float: ...
method fraction (line 3147) | def fraction(self, x: int, y: int) -> float: ...
method identify (line 3148) | def identify(self, x: int, y: int) -> Literal["arrow1", "arrow2", "sli...
method get (line 3149) | def get(self) -> tuple[float, float, float, float] | tuple[float, floa...
method set (line 3150) | def set(self, first: float | str, last: float | str) -> None: ...
class Text (line 3157) | class Text(Widget, XView, YView):
method __init__ (line 3158) | def __init__(
method configure (line 3215) | def configure(
method configure (line 3266) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method bbox (line 3268) | def bbox(self, index: _TextIndex) -> tuple[int, int, int, int] | None:...
method compare (line 3269) | def compare(self, index1: _TextIndex, op: Literal["<", "<=", "==", ">=...
method count (line 3272) | def count(self, index1: _TextIndex, index2: _TextIndex, *, return_ints...
method count (line 3274) | def count(
method count (line 3278) | def count(
method count (line 3289) | def count(
method count (line 3300) | def count(
method count (line 3304) | def count(
method count (line 3316) | def count(self, index1: _TextIndex, index2: _TextIndex, *, return_ints...
method count (line 3318) | def count(
method count (line 3328) | def count(
method count (line 3339) | def count(
method count (line 3350) | def count(
method count (line 3361) | def count(
method count (line 3374) | def count(self, index1: _TextIndex, index2: _TextIndex) -> tuple[int] ...
method count (line 3376) | def count(
method count (line 3380) | def count(self, index1: _TextIndex, index2: _TextIndex, arg1: Literal[...
method count (line 3382) | def count(self, index1: _TextIndex, index2: _TextIndex, arg1: _WhatToC...
method count (line 3384) | def count(self, index1: _TextIndex, index2: _TextIndex, arg1: _WhatToC...
method count (line 3386) | def count(
method debug (line 3398) | def debug(self, boolean: None = None) -> bool: ...
method debug (line 3400) | def debug(self, boolean: bool) -> None: ...
method delete (line 3401) | def delete(self, index1: _TextIndex, index2: _TextIndex | None = None)...
method dlineinfo (line 3402) | def dlineinfo(self, index: _TextIndex) -> tuple[int, int, int, int, in...
method dump (line 3404) | def dump(
method dump (line 3418) | def dump(
method dump (line 3432) | def dump(
method edit (line 3445) | def edit(self, *args): ... # docstring says "Internal method"
method edit_modified (line 3447) | def edit_modified(self, arg: None = None) -> bool: ... # actually ret...
method edit_modified (line 3449) | def edit_modified(self, arg: bool) -> None: ... # actually returns em...
method edit_redo (line 3450) | def edit_redo(self) -> None: ... # actually returns empty string
method edit_reset (line 3451) | def edit_reset(self) -> None: ... # actually returns empty string
method edit_separator (line 3452) | def edit_separator(self) -> None: ... # actually returns empty string
method edit_undo (line 3453) | def edit_undo(self) -> None: ... # actually returns empty string
method get (line 3454) | def get(self, index1: _TextIndex, index2: _TextIndex | None = None) ->...
method image_cget (line 3456) | def image_cget(self, index: _TextIndex, option: Literal["image", "name...
method image_cget (line 3458) | def image_cget(self, index: _TextIndex, option: Literal["padx", "pady"...
method image_cget (line 3460) | def image_cget(self, index: _TextIndex, option: Literal["align"]) -> L...
method image_cget (line 3462) | def image_cget(self, index: _TextIndex, option: str) -> Any: ...
method image_configure (line 3464) | def image_configure(self, index: _TextIndex, cnf: str) -> tuple[str, s...
method image_configure (line 3466) | def image_configure(
method image_create (line 3477) | def image_create(
method image_names (line 3488) | def image_names(self) -> tuple[str, ...]: ...
method index (line 3489) | def index(self, index: _TextIndex) -> str: ...
method insert (line 3490) | def insert(self, index: _TextIndex, chars: str, *args: str | list[str]...
method mark_gravity (line 3492) | def mark_gravity(self, markName: str, direction: None = None) -> Liter...
method mark_gravity (line 3494) | def mark_gravity(self, markName: str, direction: Literal["left", "righ...
method mark_names (line 3495) | def mark_names(self) -> tuple[str, ...]: ...
method mark_set (line 3496) | def mark_set(self, markName: str, index: _TextIndex) -> None: ...
method mark_unset (line 3497) | def mark_unset(self, *markNames: str) -> None: ...
method mark_next (line 3498) | def mark_next(self, index: _TextIndex) -> str | None: ...
method mark_previous (line 3499) | def mark_previous(self, index: _TextIndex) -> str | None: ...
method peer_create (line 3501) | def peer_create(self, newPathName: str | Text, cnf: dict[str, Any] = {...
method peer_names (line 3502) | def peer_names(self) -> tuple[_tkinter.Tcl_Obj, ...]: ...
method replace (line 3503) | def replace(self, index1: _TextIndex, index2: _TextIndex, chars: str, ...
method scan_mark (line 3504) | def scan_mark(self, x: int, y: int) -> None: ...
method scan_dragto (line 3505) | def scan_dragto(self, x: int, y: int) -> None: ...
method search (line 3506) | def search(
method see (line 3519) | def see(self, index: _TextIndex) -> None: ...
method tag_add (line 3520) | def tag_add(self, tagName: str, index1: _TextIndex, *args: _TextIndex)...
method tag_bind (line 3523) | def tag_bind(
method tag_bind (line 3531) | def tag_bind(self, tagName: str, sequence: str | None, func: str, add:...
method tag_unbind (line 3532) | def tag_unbind(self, tagName: str, sequence: str, funcid: str | None =...
method tag_cget (line 3534) | def tag_cget(self, tagName: str, option: str): ...
method tag_configure (line 3536) | def tag_configure(
method tag_configure (line 3571) | def tag_configure(self, tagName: str, cnf: str) -> tuple[str, str, str...
method tag_delete (line 3573) | def tag_delete(self, first_tag_name: str, /, *tagNames: str) -> None: ...
method tag_lower (line 3574) | def tag_lower(self, tagName: str, belowThis: str | None = None) -> Non...
method tag_names (line 3575) | def tag_names(self, index: _TextIndex | None = None) -> tuple[str, ......
method tag_nextrange (line 3576) | def tag_nextrange(
method tag_prevrange (line 3579) | def tag_prevrange(
method tag_raise (line 3582) | def tag_raise(self, tagName: str, aboveThis: str | None = None) -> Non...
method tag_ranges (line 3583) | def tag_ranges(self, tagName: str) -> tuple[_tkinter.Tcl_Obj, ...]: ...
method tag_remove (line 3585) | def tag_remove(self, tagName: str, index1: _TextIndex, index2: _TextIn...
method window_cget (line 3587) | def window_cget(self, index: _TextIndex, option: Literal["padx", "pady...
method window_cget (line 3589) | def window_cget(self, index: _TextIndex, option: Literal["stretch"]) -...
method window_cget (line 3591) | def window_cget(self, index: _TextIndex, option: Literal["align"]) -> ...
method window_cget (line 3593) | def window_cget(self, index: _TextIndex, option: Literal["create", "wi...
method window_cget (line 3595) | def window_cget(self, index: _TextIndex, option: str) -> Any: ...
method window_configure (line 3597) | def window_configure(self, index: _TextIndex, cnf: str) -> tuple[str, ...
method window_configure (line 3599) | def window_configure(
method window_create (line 3612) | def window_create(
method window_names (line 3624) | def window_names(self) -> tuple[str, ...]: ...
method yview_pickplace (line 3625) | def yview_pickplace(self, *what): ... # deprecated
class _setit (line 3627) | class _setit:
method __init__ (line 3628) | def __init__(self, var, value, callback: Incomplete | None = None) -> ...
method __call__ (line 3629) | def __call__(self, *args) -> None: ...
class OptionMenu (line 3632) | class OptionMenu(Menubutton):
method __init__ (line 3635) | def __init__(
class _Image (line 3653) | class _Image(Protocol):
method width (line 3654) | def width(self) -> int: ...
method height (line 3655) | def height(self) -> int: ...
class _BitmapImageLike (line 3658) | class _BitmapImageLike(_Image): ...
class _PhotoImageLike (line 3661) | class _PhotoImageLike(_Image): ...
class Image (line 3663) | class Image(_Image):
method __init__ (line 3666) | def __init__(
method __del__ (line 3669) | def __del__(self) -> None: ...
method __setitem__ (line 3670) | def __setitem__(self, key, value) -> None: ...
method __getitem__ (line 3671) | def __getitem__(self, key): ...
method type (line 3674) | def type(self): ...
class PhotoImage (line 3676) | class PhotoImage(Image, _PhotoImageLike):
method __init__ (line 3678) | def __init__(
method configure (line 3692) | def configure(
method blank (line 3704) | def blank(self) -> None: ...
method cget (line 3705) | def cget(self, option: str) -> str: ...
method __getitem__ (line 3706) | def __getitem__(self, key: str) -> str: ... # always string: image['h...
method copy (line 3708) | def copy(
method subsample (line 3715) | def subsample(self, x: int, y: Literal[""] = "", *, from_coords: Itera...
method zoom (line 3716) | def zoom(self, x: int, y: Literal[""] = "", *, from_coords: Iterable[i...
method copy_replace (line 3717) | def copy_replace(
method copy (line 3730) | def copy(self) -> PhotoImage: ...
method zoom (line 3731) | def zoom(self, x: int, y: int | Literal[""] = "") -> PhotoImage: ...
method subsample (line 3732) | def subsample(self, x: int, y: int | Literal[""] = "") -> PhotoImage: ...
method get (line 3734) | def get(self, x: int, y: int) -> tuple[int, int, int]: ...
method put (line 3735) | def put(
method read (line 3749) | def read(
method write (line 3758) | def write(
method data (line 3768) | def data(
method data (line 3772) | def data(
method write (line 3782) | def write(
method transparency_get (line 3786) | def transparency_get(self, x: int, y: int) -> bool: ...
method transparency_set (line 3787) | def transparency_set(self, x: int, y: int, boolean: bool) -> None: ...
class BitmapImage (line 3789) | class BitmapImage(Image, _BitmapImageLike):
method __init__ (line 3791) | def __init__(
function image_names (line 3805) | def image_names() -> tuple[str, ...]: ...
function image_types (line 3806) | def image_types() -> tuple[str, ...]: ...
class Spinbox (line 3808) | class Spinbox(Widget, XView):
method __init__ (line 3809) | def __init__(
method configure (line 3868) | def configure(
method configure (line 3924) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method bbox (line 3926) | def bbox(self, index) -> tuple[int, int, int, int] | None: ... # type...
method delete (line 3927) | def delete(self, first, last: Incomplete | None = None) -> Literal[""]...
method get (line 3928) | def get(self) -> str: ...
method icursor (line 3929) | def icursor(self, index): ...
method identify (line 3930) | def identify(self, x: int, y: int) -> Literal["", "buttondown", "butto...
method index (line 3931) | def index(self, index: str | int) -> int: ...
method insert (line 3932) | def insert(self, index: str | int, s: str) -> Literal[""]: ...
method invoke (line 3934) | def invoke(self, element: Literal["none", "buttonup", "buttondown"]) -...
method scan (line 3935) | def scan(self, *args): ...
method scan_mark (line 3936) | def scan_mark(self, x): ...
method scan_dragto (line 3937) | def scan_dragto(self, x): ...
method selection (line 3938) | def selection(self, *args) -> tuple[int, ...]: ...
method selection_adjust (line 3939) | def selection_adjust(self, index): ...
method selection_clear (line 3940) | def selection_clear(self): ... # type: ignore[override]
method selection_element (line 3941) | def selection_element(self, element: Incomplete | None = None): ...
method selection_from (line 3942) | def selection_from(self, index: int) -> None: ...
method selection_present (line 3943) | def selection_present(self) -> None: ...
method selection_range (line 3944) | def selection_range(self, start: int, end: int) -> None: ...
method selection_to (line 3945) | def selection_to(self, index: int) -> None: ...
class LabelFrame (line 3947) | class LabelFrame(Widget):
method __init__ (line 3948) | def __init__(
method configure (line 3982) | def configure(
method configure (line 4009) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class PanedWindow (line 4012) | class PanedWindow(Widget):
method __init__ (line 4013) | def __init__(
method configure (line 4042) | def configure(
method configure (line 4069) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method add (line 4071) | def add(self, child: Widget, **kw) -> None: ...
method remove (line 4072) | def remove(self, child) -> None: ...
method identify (line 4074) | def identify(self, x: int, y: int): ...
method proxy (line 4075) | def proxy(self, *args): ...
method proxy_coord (line 4076) | def proxy_coord(self): ...
method proxy_forget (line 4077) | def proxy_forget(self): ...
method proxy_place (line 4078) | def proxy_place(self, x, y): ...
method sash (line 4079) | def sash(self, *args): ...
method sash_coord (line 4080) | def sash_coord(self, index): ...
method sash_mark (line 4081) | def sash_mark(self, index): ...
method sash_place (line 4082) | def sash_place(self, index, x, y): ...
method panecget (line 4083) | def panecget(self, child, option): ...
method paneconfigure (line 4084) | def paneconfigure(self, tagOrId, cnf: Incomplete | None = None, **kw):...
method panes (line 4086) | def panes(self): ...
function _test (line 4088) | def _test() -> None: ...
FILE: mypy/typeshed/stdlib/tkinter/colorchooser.pyi
class Chooser (line 9) | class Chooser(Dialog):
function askcolor (line 13) | def askcolor(
function askcolor (line 18) | def askcolor(
FILE: mypy/typeshed/stdlib/tkinter/commondialog.pyi
class Dialog (line 9) | class Dialog:
method __init__ (line 13) | def __init__(self, master: Incomplete | None = None, **options) -> Non...
method show (line 14) | def show(self, **options): ...
FILE: mypy/typeshed/stdlib/tkinter/dialog.pyi
class Dialog (line 12) | class Dialog(Widget):
method __init__ (line 15) | def __init__(self, master: Incomplete | None = None, cnf: Mapping[str,...
method destroy (line 16) | def destroy(self) -> None: ...
FILE: mypy/typeshed/stdlib/tkinter/dnd.pyi
class _DndSource (line 8) | class _DndSource(Protocol):
method dnd_end (line 9) | def dnd_end(self, target: Widget | None, event: Event[Misc] | None, /)...
class DndHandler (line 11) | class DndHandler:
method __init__ (line 13) | def __init__(self, source: _DndSource, event: Event[Misc]) -> None: ...
method cancel (line 14) | def cancel(self, event: Event[Misc] | None = None) -> None: ...
method finish (line 15) | def finish(self, event: Event[Misc] | None, commit: int = 0) -> None: ...
method on_motion (line 16) | def on_motion(self, event: Event[Misc]) -> None: ...
method on_release (line 17) | def on_release(self, event: Event[Misc]) -> None: ...
method __del__ (line 18) | def __del__(self) -> None: ...
function dnd_start (line 20) | def dnd_start(source: _DndSource, event: Event[Misc]) -> DndHandler | No...
FILE: mypy/typeshed/stdlib/tkinter/filedialog.pyi
class FileDialog (line 26) | class FileDialog:
method __init__ (line 42) | def __init__(
method go (line 46) | def go(self, dir_or_file=".", pattern: str = "*", default: str = "", k...
method quit (line 47) | def quit(self, how: Incomplete | None = None) -> None: ...
method dirs_double_event (line 48) | def dirs_double_event(self, event) -> None: ...
method dirs_select_event (line 49) | def dirs_select_event(self, event) -> None: ...
method files_double_event (line 50) | def files_double_event(self, event) -> None: ...
method files_select_event (line 51) | def files_select_event(self, event) -> None: ...
method ok_event (line 52) | def ok_event(self, event) -> None: ...
method ok_command (line 53) | def ok_command(self) -> None: ...
method filter_command (line 54) | def filter_command(self, event: Incomplete | None = None) -> None: ...
method get_filter (line 55) | def get_filter(self): ...
method get_selection (line 56) | def get_selection(self): ...
method cancel_command (line 57) | def cancel_command(self, event: Incomplete | None = None) -> None: ...
method set_filter (line 58) | def set_filter(self, dir, pat) -> None: ...
method set_selection (line 59) | def set_selection(self, file) -> None: ...
class LoadFileDialog (line 61) | class LoadFileDialog(FileDialog):
method ok_command (line 63) | def ok_command(self) -> None: ...
class SaveFileDialog (line 65) | class SaveFileDialog(FileDialog):
method ok_command (line 67) | def ok_command(self) -> None: ...
class _Dialog (line 69) | class _Dialog(commondialog.Dialog): ...
class Open (line 71) | class Open(_Dialog):
class SaveAs (line 74) | class SaveAs(_Dialog):
class Directory (line 77) | class Directory(commondialog.Dialog):
function asksaveasfilename (line 81) | def asksaveasfilename(
function askopenfilename (line 92) | def askopenfilename(
function askopenfilenames (line 102) | def askopenfilenames(
function askdirectory (line 112) | def askdirectory(
function asksaveasfile (line 117) | def asksaveasfile(
function askopenfile (line 129) | def askopenfile(
function askopenfiles (line 140) | def askopenfiles(
function test (line 151) | def test() -> None: ...
FILE: mypy/typeshed/stdlib/tkinter/font.pyi
class _FontDict (line 27) | class _FontDict(TypedDict):
class _MetricsDict (line 35) | class _MetricsDict(TypedDict):
class Font (line 41) | class Font:
method __init__ (line 45) | def __init__(
method __setitem__ (line 62) | def __setitem__(self, key: str, value: Any) -> None: ...
method cget (line 64) | def cget(self, option: Literal["family"]) -> str: ...
method cget (line 66) | def cget(self, option: Literal["size"]) -> int: ...
method cget (line 68) | def cget(self, option: Literal["weight"]) -> Literal["normal", "bold"]...
method cget (line 70) | def cget(self, option: Literal["slant"]) -> Literal["roman", "italic"]...
method cget (line 72) | def cget(self, option: Literal["underline", "overstrike"]) -> bool: ...
method cget (line 74) | def cget(self, option: str) -> Any: ...
method actual (line 77) | def actual(self, option: Literal["family"], displayof: tkinter.Misc | ...
method actual (line 79) | def actual(self, option: Literal["size"], displayof: tkinter.Misc | No...
method actual (line 81) | def actual(self, option: Literal["weight"], displayof: tkinter.Misc | ...
method actual (line 83) | def actual(self, option: Literal["slant"], displayof: tkinter.Misc | N...
method actual (line 85) | def actual(self, option: Literal["underline", "overstrike"], displayof...
method actual (line 87) | def actual(self, option: None, displayof: tkinter.Misc | None = None) ...
method actual (line 89) | def actual(self, *, displayof: tkinter.Misc | None = None) -> _FontDic...
method config (line 90) | def config(
method copy (line 101) | def copy(self) -> Font: ...
method metrics (line 103) | def metrics(self, option: Literal["ascent", "descent", "linespace"], /...
method metrics (line 105) | def metrics(self, option: Literal["fixed"], /, *, displayof: tkinter.M...
method metrics (line 107) | def metrics(self, *, displayof: tkinter.Misc | None = ...) -> _Metrics...
method measure (line 108) | def measure(self, text: str, displayof: tkinter.Misc | None = None) ->...
method __eq__ (line 109) | def __eq__(self, other: object) -> bool: ...
method __del__ (line 110) | def __del__(self) -> None: ...
function families (line 112) | def families(root: tkinter.Misc | None = None, displayof: tkinter.Misc |...
function names (line 113) | def names(root: tkinter.Misc | None = None) -> tuple[str, ...]: ...
function nametofont (line 116) | def nametofont(name: str, root: tkinter.Misc | None = None) -> Font: ...
function nametofont (line 119) | def nametofont(name: str) -> Font: ...
FILE: mypy/typeshed/stdlib/tkinter/messagebox.pyi
class Message (line 34) | class Message(Dialog):
function showinfo (line 37) | def showinfo(title: str | None = None, message: str | None = None, **opt...
function showwarning (line 38) | def showwarning(title: str | None = None, message: str | None = None, **...
function showerror (line 39) | def showerror(title: str | None = None, message: str | None = None, **op...
function askquestion (line 40) | def askquestion(title: str | None = None, message: str | None = None, **...
function askokcancel (line 41) | def askokcancel(title: str | None = None, message: str | None = None, **...
function askyesno (line 42) | def askyesno(title: str | None = None, message: str | None = None, **opt...
function askyesnocancel (line 43) | def askyesnocancel(title: str | None = None, message: str | None = None,...
function askretrycancel (line 44) | def askretrycancel(title: str | None = None, message: str | None = None,...
FILE: mypy/typeshed/stdlib/tkinter/scrolledtext.pyi
class ScrolledText (line 6) | class ScrolledText(Text):
method __init__ (line 9) | def __init__(self, master: Misc | None = None, **kwargs) -> None: ...
FILE: mypy/typeshed/stdlib/tkinter/simpledialog.pyi
class Dialog (line 3) | class Dialog(Toplevel):
method __init__ (line 4) | def __init__(self, parent: Misc | None, title: str | None = None) -> N...
method body (line 5) | def body(self, master: Frame) -> Misc | None: ...
method buttonbox (line 6) | def buttonbox(self) -> None: ...
method ok (line 7) | def ok(self, event: Event[Misc] | None = None) -> None: ...
method cancel (line 8) | def cancel(self, event: Event[Misc] | None = None) -> None: ...
method validate (line 9) | def validate(self) -> bool: ...
method apply (line 10) | def apply(self) -> None: ...
class SimpleDialog (line 12) | class SimpleDialog:
method __init__ (line 13) | def __init__(
method go (line 23) | def go(self) -> int | None: ...
method return_event (line 24) | def return_event(self, event: Event[Misc]) -> None: ...
method wm_delete_window (line 25) | def wm_delete_window(self) -> None: ...
method done (line 26) | def done(self, num: int) -> None: ...
function askfloat (line 28) | def askfloat(
function askinteger (line 37) | def askinteger(
function askstring (line 46) | def askstring(
FILE: mypy/typeshed/stdlib/tkinter/tix.pyi
class tixCommand (line 37) | class tixCommand:
method tix_addbitmapdir (line 38) | def tix_addbitmapdir(self, directory: str) -> None: ...
method tix_cget (line 39) | def tix_cget(self, option: str) -> Any: ...
method tix_configure (line 40) | def tix_configure(self, cnf: dict[str, Any] | None = None, **kw: Any) ...
method tix_filedialog (line 41) | def tix_filedialog(self, dlgclass: str | None = None) -> str: ...
method tix_getbitmap (line 42) | def tix_getbitmap(self, name: str) -> str: ...
method tix_getimage (line 43) | def tix_getimage(self, name: str) -> str: ...
method tix_option_get (line 44) | def tix_option_get(self, name: str) -> Any: ...
method tix_resetoptions (line 45) | def tix_resetoptions(self, newScheme: str, newFontSet: str, newScmPrio...
class Tk (line 47) | class Tk(tkinter.Tk, tixCommand):
method __init__ (line 48) | def __init__(self, screenName: str | None = None, baseName: str | None...
class TixWidget (line 50) | class TixWidget(tkinter.Widget):
method __init__ (line 51) | def __init__(
method __getattr__ (line 59) | def __getattr__(self, name: str): ...
method set_silent (line 60) | def set_silent(self, value: str) -> None: ...
method subwidget (line 61) | def subwidget(self, name: str) -> tkinter.Widget: ...
method subwidgets_all (line 62) | def subwidgets_all(self) -> list[tkinter.Widget]: ...
method config_all (line 63) | def config_all(self, option: Any, value: Any) -> None: ...
method image_create (line 64) | def image_create(self, imgtype: str, cnf: dict[str, Any] = {}, master:...
method image_delete (line 65) | def image_delete(self, imgname: str) -> None: ...
class TixSubWidget (line 67) | class TixSubWidget(TixWidget):
method __init__ (line 68) | def __init__(self, master: tkinter.Widget, name: str, destroy_physical...
class DisplayStyle (line 70) | class DisplayStyle:
method __init__ (line 71) | def __init__(self, itemtype: str, cnf: dict[str, Any] = {}, *, master:...
method __getitem__ (line 72) | def __getitem__(self, key: str): ...
method __setitem__ (line 73) | def __setitem__(self, key: str, value: Any) -> None: ...
method delete (line 74) | def delete(self) -> None: ...
method config (line 75) | def config(self, cnf: dict[str, Any] = {}, **kw): ...
class Balloon (line 77) | class Balloon(TixWidget):
method __init__ (line 78) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method bind_widget (line 79) | def bind_widget(self, widget: tkinter.Widget, cnf: dict[str, Any] = {}...
method unbind_widget (line 80) | def unbind_widget(self, widget: tkinter.Widget) -> None: ...
class ButtonBox (line 82) | class ButtonBox(TixWidget):
method __init__ (line 83) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method add (line 84) | def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Wi...
method invoke (line 85) | def invoke(self, name: str) -> None: ...
class ComboBox (line 87) | class ComboBox(TixWidget):
method __init__ (line 88) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method add_history (line 89) | def add_history(self, str: str) -> None: ...
method append_history (line 90) | def append_history(self, str: str) -> None: ...
method insert (line 91) | def insert(self, index: int, str: str) -> None: ...
method pick (line 92) | def pick(self, index: int) -> None: ...
class Control (line 94) | class Control(TixWidget):
method __init__ (line 95) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method decrement (line 96) | def decrement(self) -> None: ...
method increment (line 97) | def increment(self) -> None: ...
method invoke (line 98) | def invoke(self) -> None: ...
class LabelEntry (line 100) | class LabelEntry(TixWidget):
method __init__ (line 101) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
class LabelFrame (line 103) | class LabelFrame(TixWidget):
method __init__ (line 104) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
class Meter (line 106) | class Meter(TixWidget):
method __init__ (line 107) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
class OptionMenu (line 109) | class OptionMenu(TixWidget):
method __init__ (line 110) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method add_command (line 111) | def add_command(self, name: str, cnf: dict[str, Any] = {}, **kw) -> No...
method add_separator (line 112) | def add_separator(self, name: str, cnf: dict[str, Any] = {}, **kw) -> ...
method delete (line 113) | def delete(self, name: str) -> None: ...
method disable (line 114) | def disable(self, name: str) -> None: ...
method enable (line 115) | def enable(self, name: str) -> None: ...
class PopupMenu (line 117) | class PopupMenu(TixWidget):
method __init__ (line 118) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method bind_widget (line 119) | def bind_widget(self, widget: tkinter.Widget) -> None: ...
method unbind_widget (line 120) | def unbind_widget(self, widget: tkinter.Widget) -> None: ...
method post_widget (line 121) | def post_widget(self, widget: tkinter.Widget, x: int, y: int) -> None:...
class Select (line 123) | class Select(TixWidget):
method __init__ (line 124) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method add (line 125) | def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Wi...
method invoke (line 126) | def invoke(self, name: str) -> None: ...
class StdButtonBox (line 128) | class StdButtonBox(TixWidget):
method __init__ (line 129) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method invoke (line 130) | def invoke(self, name: str) -> None: ...
class DirList (line 132) | class DirList(TixWidget):
method __init__ (line 133) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method chdir (line 134) | def chdir(self, dir: str) -> None: ...
class DirTree (line 136) | class DirTree(TixWidget):
method __init__ (line 137) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method chdir (line 138) | def chdir(self, dir: str) -> None: ...
class DirSelectDialog (line 140) | class DirSelectDialog(TixWidget):
method __init__ (line 141) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method popup (line 142) | def popup(self) -> None: ...
method popdown (line 143) | def popdown(self) -> None: ...
class DirSelectBox (line 145) | class DirSelectBox(TixWidget):
method __init__ (line 146) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
class ExFileSelectBox (line 148) | class ExFileSelectBox(TixWidget):
method __init__ (line 149) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method filter (line 150) | def filter(self) -> None: ...
method invoke (line 151) | def invoke(self) -> None: ...
class FileSelectBox (line 153) | class FileSelectBox(TixWidget):
method __init__ (line 154) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method apply_filter (line 155) | def apply_filter(self) -> None: ...
method invoke (line 156) | def invoke(self) -> None: ...
class FileEntry (line 158) | class FileEntry(TixWidget):
method __init__ (line 159) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method invoke (line 160) | def invoke(self) -> None: ...
method file_dialog (line 161) | def file_dialog(self) -> None: ...
class HList (line 163) | class HList(TixWidget, tkinter.XView, tkinter.YView):
method __init__ (line 164) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method add (line 165) | def add(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.W...
method add_child (line 166) | def add_child(self, parent: str | None = None, cnf: dict[str, Any] = {...
method anchor_set (line 167) | def anchor_set(self, entry: str) -> None: ...
method anchor_clear (line 168) | def anchor_clear(self) -> None: ...
method column_width (line 170) | def column_width(self, col: int = 0, width: int | None = None, chars: ...
method delete_all (line 171) | def delete_all(self) -> None: ...
method delete_entry (line 172) | def delete_entry(self, entry: str) -> None: ...
method delete_offsprings (line 173) | def delete_offsprings(self, entry: str) -> None: ...
method delete_siblings (line 174) | def delete_siblings(self, entry: str) -> None: ...
method dragsite_set (line 175) | def dragsite_set(self, index: int) -> None: ...
method dragsite_clear (line 176) | def dragsite_clear(self) -> None: ...
method dropsite_set (line 177) | def dropsite_set(self, index: int) -> None: ...
method dropsite_clear (line 178) | def dropsite_clear(self) -> None: ...
method header_create (line 179) | def header_create(self, col: int, cnf: dict[str, Any] = {}, **kw) -> N...
method header_configure (line 180) | def header_configure(self, col: int, cnf: dict[str, Any] = {}, **kw) -...
method header_cget (line 181) | def header_cget(self, col: int, opt): ...
method header_exists (line 182) | def header_exists(self, col: int) -> bool: ...
method header_exist (line 183) | def header_exist(self, col: int) -> bool: ...
method header_delete (line 184) | def header_delete(self, col: int) -> None: ...
method header_size (line 185) | def header_size(self, col: int) -> int: ...
method hide_entry (line 186) | def hide_entry(self, entry: str) -> None: ...
method indicator_create (line 187) | def indicator_create(self, entry: str, cnf: dict[str, Any] = {}, **kw)...
method indicator_configure (line 188) | def indicator_configure(self, entry: str, cnf: dict[str, Any] = {}, **...
method indicator_cget (line 189) | def indicator_cget(self, entry: str, opt): ...
method indicator_exists (line 190) | def indicator_exists(self, entry: str) -> bool: ...
method indicator_delete (line 191) | def indicator_delete(self, entry: str) -> None: ...
method indicator_size (line 192) | def indicator_size(self, entry: str) -> int: ...
method info_anchor (line 193) | def info_anchor(self) -> str: ...
method info_bbox (line 194) | def info_bbox(self, entry: str) -> tuple[int, int, int, int]: ...
method info_children (line 195) | def info_children(self, entry: str | None = None) -> tuple[str, ...]: ...
method info_data (line 196) | def info_data(self, entry: str) -> Any: ...
method info_dragsite (line 197) | def info_dragsite(self) -> str: ...
method info_dropsite (line 198) | def info_dropsite(self) -> str: ...
method info_exists (line 199) | def info_exists(self, entry: str) -> bool: ...
method info_hidden (line 200) | def info_hidden(self, entry: str) -> bool: ...
method info_next (line 201) | def info_next(self, entry: str) -> str: ...
method info_parent (line 202) | def info_parent(self, entry: str) -> str: ...
method info_prev (line 203) | def info_prev(self, entry: str) -> str: ...
method info_selection (line 204) | def info_selection(self) -> tuple[str, ...]: ...
method item_cget (line 205) | def item_cget(self, entry: str, col: int, opt): ...
method item_configure (line 206) | def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = {...
method item_create (line 207) | def item_create(self, entry: str, col: int, cnf: dict[str, Any] = {}, ...
method item_exists (line 208) | def item_exists(self, entry: str, col: int) -> bool: ...
method item_delete (line 209) | def item_delete(self, entry: str, col: int) -> None: ...
method entrycget (line 210) | def entrycget(self, entry: str, opt): ...
method entryconfigure (line 211) | def entryconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -...
method nearest (line 212) | def nearest(self, y: int) -> str: ...
method see (line 213) | def see(self, entry: str) -> None: ...
method selection_clear (line 214) | def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
method selection_includes (line 215) | def selection_includes(self, entry: str) -> bool: ...
method selection_set (line 216) | def selection_set(self, first: str, last: str | None = None) -> None: ...
method show_entry (line 217) | def show_entry(self, entry: str) -> None: ...
class CheckList (line 219) | class CheckList(TixWidget):
method __init__ (line 220) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method autosetmode (line 221) | def autosetmode(self) -> None: ...
method close (line 222) | def close(self, entrypath: str) -> None: ...
method getmode (line 223) | def getmode(self, entrypath: str) -> str: ...
method open (line 224) | def open(self, entrypath: str) -> None: ...
method getselection (line 225) | def getselection(self, mode: str = "on") -> tuple[str, ...]: ...
method getstatus (line 226) | def getstatus(self, entrypath: str) -> str: ...
method setstatus (line 227) | def setstatus(self, entrypath: str, mode: str = "on") -> None: ...
class Tree (line 229) | class Tree(TixWidget):
method __init__ (line 230) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method autosetmode (line 231) | def autosetmode(self) -> None: ...
method close (line 232) | def close(self, entrypath: str) -> None: ...
method getmode (line 233) | def getmode(self, entrypath: str) -> str: ...
method open (line 234) | def open(self, entrypath: str) -> None: ...
method setmode (line 235) | def setmode(self, entrypath: str, mode: str = "none") -> None: ...
class TList (line 237) | class TList(TixWidget, tkinter.XView, tkinter.YView):
method __init__ (line 238) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method active_set (line 239) | def active_set(self, index: int) -> None: ...
method active_clear (line 240) | def active_clear(self) -> None: ...
method anchor_set (line 241) | def anchor_set(self, index: int) -> None: ...
method anchor_clear (line 242) | def anchor_clear(self) -> None: ...
method delete (line 243) | def delete(self, from_: int, to: int | None = None) -> None: ...
method dragsite_set (line 244) | def dragsite_set(self, index: int) -> None: ...
method dragsite_clear (line 245) | def dragsite_clear(self) -> None: ...
method dropsite_set (line 246) | def dropsite_set(self, index: int) -> None: ...
method dropsite_clear (line 247) | def dropsite_clear(self) -> None: ...
method insert (line 248) | def insert(self, index: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
method info_active (line 249) | def info_active(self) -> int: ...
method info_anchor (line 250) | def info_anchor(self) -> int: ...
method info_down (line 251) | def info_down(self, index: int) -> int: ...
method info_left (line 252) | def info_left(self, index: int) -> int: ...
method info_right (line 253) | def info_right(self, index: int) -> int: ...
method info_selection (line 254) | def info_selection(self) -> tuple[int, ...]: ...
method info_size (line 255) | def info_size(self) -> int: ...
method info_up (line 256) | def info_up(self, index: int) -> int: ...
method nearest (line 257) | def nearest(self, x: int, y: int) -> int: ...
method see (line 258) | def see(self, index: int) -> None: ...
method selection_clear (line 259) | def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
method selection_includes (line 260) | def selection_includes(self, index: int) -> bool: ...
method selection_set (line 261) | def selection_set(self, first: int, last: int | None = None) -> None: ...
class PanedWindow (line 263) | class PanedWindow(TixWidget):
method __init__ (line 264) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method add (line 265) | def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
method delete (line 266) | def delete(self, name: str) -> None: ...
method forget (line 267) | def forget(self, name: str) -> None: ... # type: ignore[override]
method panecget (line 268) | def panecget(self, entry: str, opt): ...
method paneconfigure (line 269) | def paneconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) ->...
method panes (line 270) | def panes(self) -> list[tkinter.Widget]: ...
class ListNoteBook (line 272) | class ListNoteBook(TixWidget):
method __init__ (line 273) | def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] ...
method add (line 274) | def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
method page (line 275) | def page(self, name: str) -> tkinter.Widget: ...
method pages (line 276) | def pages(self) -> list[tkinter.Widget]: ...
method raise_page (line 277) | def raise_page(self, name: str) -> None: ...
class NoteBook (line 279) | class NoteBook(TixWidget):
method __init__ (line 280) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
method add (line 281) | def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
method delete (line 282) | def delete(self, name: str) -> None: ...
method page (line 283) | def page(self, name: str) -> tkinter.Widget: ...
method pages (line 284) | def pages(self) -> list[tkinter.Widget]: ...
method raise_page (line 285) | def raise_page(self, name: str) -> None: ...
method raised (line 286) | def raised(self) -> bool: ...
class InputOnly (line 288) | class InputOnly(TixWidget):
method __init__ (line 289) | def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str...
class Form (line 291) | class Form:
method __setitem__ (line 292) | def __setitem__(self, key: str, value: Any) -> None: ...
method config (line 293) | def config(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
method form (line 294) | def form(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
method check (line 295) | def check(self) -> bool: ...
method forget (line 296) | def forget(self) -> None: ...
method grid (line 297) | def grid(self, xsize: int = 0, ysize: int = 0) -> tuple[int, int] | No...
method info (line 298) | def info(self, option: str | None = None): ...
method slaves (line 299) | def slaves(self) -> list[tkinter.Widget]: ...
FILE: mypy/typeshed/stdlib/tkinter/ttk.pyi
function tclobjs_to_py (line 37) | def tclobjs_to_py(adict: dict[Any, Any]) -> dict[Any, Any]: ...
function setup_master (line 38) | def setup_master(master: Incomplete | None = None): ...
class Style (line 51) | class Style:
method __init__ (line 54) | def __init__(self, master: tkinter.Misc | None = None) -> None: ...
method configure (line 55) | def configure(self, style, query_opt: Incomplete | None = None, **kw):...
method map (line 56) | def map(self, style, query_opt: Incomplete | None = None, **kw): ...
method lookup (line 57) | def lookup(self, style, option, state: Incomplete | None = None, defau...
method layout (line 58) | def layout(self, style, layoutspec: Incomplete | None = None): ...
method element_create (line 59) | def element_create(self, elementname, etype, *args, **kw) -> None: ...
method element_names (line 60) | def element_names(self): ...
method element_options (line 61) | def element_options(self, elementname): ...
method theme_create (line 62) | def theme_create(self, themename, parent: Incomplete | None = None, se...
method theme_settings (line 63) | def theme_settings(self, themename, settings) -> None: ...
method theme_names (line 64) | def theme_names(self) -> tuple[str, ...]: ...
method theme_use (line 66) | def theme_use(self, themename: str) -> None: ...
method theme_use (line 68) | def theme_use(self, themename: None = None) -> str: ...
class Widget (line 70) | class Widget(tkinter.Widget):
method __init__ (line 71) | def __init__(self, master: tkinter.Misc | None, widgetname, kw: Incomp...
method identify (line 72) | def identify(self, x: int, y: int) -> str: ...
method instate (line 73) | def instate(self, statespec, callback: Incomplete | None = None, *args...
method state (line 74) | def state(self, statespec: Incomplete | None = None): ...
class Button (line 76) | class Button(Widget):
method __init__ (line 77) | def __init__(
method configure (line 98) | def configure(
method configure (line 117) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method invoke (line 119) | def invoke(self) -> Any: ...
class Checkbutton (line 121) | class Checkbutton(Widget):
method __init__ (line 122) | def __init__(
method configure (line 148) | def configure(
method configure (line 169) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method invoke (line 171) | def invoke(self) -> Any: ...
class Entry (line 173) | class Entry(Widget, tkinter.Entry):
method __init__ (line 174) | def __init__(
method configure (line 199) | def configure(
method configure (line 221) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method config (line 224) | def config(
method config (line 246) | def config(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method bbox (line 247) | def bbox(self, index) -> tuple[int, int, int, int]: ... # type: ignor...
method identify (line 248) | def identify(self, x: int, y: int) -> str: ...
method validate (line 249) | def validate(self): ...
class Combobox (line 251) | class Combobox(Entry):
method __init__ (line 252) | def __init__(
method configure (line 279) | def configure(
method configure (line 304) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method config (line 307) | def config(
method config (line 332) | def config(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method current (line 333) | def current(self, newindex: int | None = None) -> int: ...
method set (line 334) | def set(self, value: Any) -> None: ...
class Frame (line 336) | class Frame(Widget):
method __init__ (line 339) | def __init__(
method configure (line 356) | def configure(
method configure (line 371) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Label (line 374) | class Label(Widget):
method __init__ (line 375) | def __init__(
method configure (line 403) | def configure(
method configure (line 429) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Labelframe (line 432) | class Labelframe(Widget):
method __init__ (line 433) | def __init__(
method configure (line 454) | def configure(
method configure (line 473) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Menubutton (line 478) | class Menubutton(Widget):
method __init__ (line 479) | def __init__(
method configure (line 500) | def configure(
method configure (line 519) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Notebook (line 522) | class Notebook(Widget):
method __init__ (line 523) | def __init__(
method configure (line 537) | def configure(
method configure (line 549) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method add (line 551) | def add(
method forget (line 565) | def forget(self, tab_id) -> None: ...
method hide (line 566) | def hide(self, tab_id) -> None: ...
method identify (line 567) | def identify(self, x: int, y: int) -> str: ...
method index (line 568) | def index(self, tab_id): ...
method insert (line 569) | def insert(self, pos, child, **kw) -> None: ...
method select (line 570) | def select(self, tab_id: Incomplete | None = None): ...
method tab (line 571) | def tab(self, tab_id, option: Incomplete | None = None, **kw): ...
method tabs (line 572) | def tabs(self): ...
method enable_traversal (line 573) | def enable_traversal(self) -> None: ...
class Panedwindow (line 575) | class Panedwindow(Widget, tkinter.PanedWindow):
method __init__ (line 576) | def __init__(
method add (line 590) | def add(self, child: tkinter.Widget, *, weight: int = ..., **kw) -> No...
method configure (line 592) | def configure(
method configure (line 603) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method config (line 606) | def config(
method config (line 617) | def config(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method insert (line 619) | def insert(self, pos, child, **kw) -> None: ...
method pane (line 620) | def pane(self, pane, option: Incomplete | None = None, **kw): ...
method sashpos (line 621) | def sashpos(self, index, newpos: Incomplete | None = None): ...
class Progressbar (line 625) | class Progressbar(Widget):
method __init__ (line 626) | def __init__(
method configure (line 644) | def configure(
method configure (line 660) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method start (line 662) | def start(self, interval: Literal["idle"] | int | None = None) -> None...
method step (line 663) | def step(self, amount: float | None = None) -> None: ...
method stop (line 664) | def stop(self) -> None: ...
class Radiobutton (line 666) | class Radiobutton(Widget):
method __init__ (line 667) | def __init__(
method configure (line 689) | def configure(
method configure (line 709) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method invoke (line 711) | def invoke(self) -> Any: ...
class Scale (line 714) | class Scale(Widget, tkinter.Scale): # type: ignore[misc]
method __init__ (line 715) | def __init__(
method configure (line 734) | def configure(
method configure (line 751) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method config (line 754) | def config(
method config (line 771) | def config(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method get (line 772) | def get(self, x: int | None = None, y: int | None = None) -> float: ...
class Scrollbar (line 775) | class Scrollbar(Widget, tkinter.Scrollbar): # type: ignore[misc]
method __init__ (line 776) | def __init__(
method configure (line 789) | def configure(
method configure (line 800) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method config (line 803) | def config(
method config (line 814) | def config(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Separator (line 816) | class Separator(Widget):
method __init__ (line 817) | def __init__(
method configure (line 829) | def configure(
method configure (line 839) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Sizegrip (line 842) | class Sizegrip(Widget):
method __init__ (line 843) | def __init__(
method configure (line 854) | def configure(
method configure (line 863) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
class Spinbox (line 866) | class Spinbox(Entry):
method __init__ (line 867) | def __init__(
method configure (line 898) | def configure(
method configure (line 927) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method set (line 929) | def set(self, value: Any) -> None: ...
class _TreeviewItemDict (line 931) | class _TreeviewItemDict(TypedDict):
class _TreeviewTagDict (line 938) | class _TreeviewTagDict(TypedDict):
class _TreeviewHeaderDict (line 945) | class _TreeviewHeaderDict(TypedDict):
class _TreeviewColumnDict (line 952) | class _TreeviewColumnDict(TypedDict):
class Treeview (line 959) | class Treeview(Widget, tkinter.XView, tkinter.YView):
method __init__ (line 960) | def __init__(
method configure (line 983) | def configure(
method configure (line 1000) | def configure(self, cnf: str) -> tuple[str, str, str, Any, Any]: ...
method bbox (line 1002) | def bbox(self, item: str | int, column: str | int | None = None) -> tu...
method get_children (line 1003) | def get_children(self, item: str | int | None = None) -> tuple[str, .....
method set_children (line 1004) | def set_children(self, item: str | int, *newchildren: str | int) -> No...
method column (line 1006) | def column(self, column: str | int, option: Literal["width", "minwidth...
method column (line 1008) | def column(self, column: str | int, option: Literal["stretch"]) -> boo...
method column (line 1010) | def column(self, column: str | int, option: Literal["anchor"]) -> _tki...
method column (line 1012) | def column(self, column: str | int, option: Literal["id"]) -> str: ...
method column (line 1014) | def column(self, column: str | int, option: str) -> Any: ...
method column (line 1016) | def column(
method delete (line 1027) | def delete(self, *items: str | int) -> None: ...
method detach (line 1028) | def detach(self, *items: str | int) -> None: ...
method exists (line 1029) | def exists(self, item: str | int) -> bool: ...
method focus (line 1031) | def focus(self, item: None = None) -> str: ... # can return empty string
method focus (line 1033) | def focus(self, item: str | int) -> Literal[""]: ...
method heading (line 1035) | def heading(self, column: str | int, option: Literal["text"]) -> str: ...
method heading (line 1037) | def heading(self, column: str | int, option: Literal["image"]) -> tupl...
method heading (line 1039) | def heading(self, column: str | int, option: Literal["anchor"]) -> _tk...
method heading (line 1041) | def heading(self, column: str | int, option: Literal["command"]) -> st...
method heading (line 1043) | def heading(self, column: str | int, option: str) -> Any: ...
method heading (line 1045) | def heading(self, column: str | int, option: None = None) -> _Treeview...
method heading (line 1047) | def heading(
method identify (line 1058) | def identify(self, component, x, y): ... # type: ignore[override]
method identify_row (line 1059) | def identify_row(self, y: int) -> str: ...
method identify_column (line 1060) | def identify_column(self, x: int) -> str: ...
method identify_region (line 1061) | def identify_region(self, x: int, y: int) -> Literal["heading", "separ...
method identify_element (line 1062) | def identify_element(self, x: int, y: int) -> str: ... # don't know w...
method index (line 1063) | def index(self, item: str | int) -> int: ...
method insert (line 1064) | def insert(
method item (line 1078) | def item(self, item: str | int, option: Literal["text"]) -> str: ...
method item (line 1080) | def item(self, item: str | int, option: Literal["image"]) -> tuple[str...
method item (line 1082) | def item(self, item: str | int, option: Literal["values"]) -> tuple[An...
method item (line 1084) | def item(self, item: str | int, option: Literal["open"]) -> bool: ... ...
method item (line 1086) | def item(self, item: str | int, option: Literal["tags"]) -> tuple[str,...
method item (line 1088) | def item(self, item: str | int, option: str) -> Any: ...
method item (line 1090) | def item(self, item: str | int, option: None = None) -> _TreeviewItemD...
method item (line 1092) | def item(
method move (line 1103) | def move(self, item: str | int, parent: str, index: int) -> None: ...
method next (line 1105) | def next(self, item: str | int) -> str: ... # returning empty string ...
method parent (line 1106) | def parent(self, item: str | int) -> str: ...
method prev (line 1107) | def prev(self, item: str | int) -> str: ... # returning empty string ...
method see (line 1108) | def see(self, item: str | int) -> None: ...
method selection (line 1109) | def selection(self) -> tuple[str, ...]: ...
method selection_set (line 1111) | def selection_set(self, items: list[str] | tuple[str, ...] | list[int]...
method selection_set (line 1113) | def selection_set(self, *items: str | int) -> None: ...
method selection_add (line 1115) | def selection_add(self, items: list[str] | tuple[str, ...] | list[int]...
method selection_add (line 1117) | def selection_add(self, *items: str | int) -> None: ...
method selection_remove (line 1119) | def selection_remove(self, items: list[str] | tuple[str, ...] | list[i...
method selection_remove (line 1121) | def selection_remove(self, *items: str | int) -> None: ...
method selection_toggle (line 1123) | def selection_toggle(self, items: list[str] | tuple[str, ...] | list[i...
method selection_toggle (line 1125) | def selection_toggle(self, *items: str | int) -> None: ...
method set (line 1127) | def set(self, item: str | int, column: None = None, value: None = None...
method set (line 1129) | def set(self, item: str | int, column: str | int, value: None = None) ...
method set (line 1131) | def set(self, item: str | int, column: str | int, value: Any) -> Liter...
method tag_bind (line 1135) | def tag_bind(
method tag_bind (line 1139) | def tag_bind(self, tagname: str, sequence: str | None, callback: str) ...
method tag_bind (line 1141) | def tag_bind(self, tagname: str, *, callback: str) -> None: ...
method tag_configure (line 1143) | def tag_configure(self, tagname: str, option: Literal["foreground", "b...
method tag_configure (line 1145) | def tag_configure(self, tagname: str, option: Literal["font"]) -> _Fon...
method tag_configure (line 1147) | def tag_configure(self, tagname: str, option: Literal["image"]) -> str...
method tag_configure (line 1149) | def tag_configure(
method tag_has (line 1161) | def tag_has(self, tagname: str, item: None = None) -> tuple[str, ...]:...
method tag_has (line 1163) | def tag_has(self, tagname: str, item: str | int) -> bool: ...
class LabeledScale (line 1165) | class LabeledScale(Frame):
method __init__ (line 1170) | def __init__(
class OptionMenu (line 1193) | class OptionMenu(Menubutton):
method __init__ (line 1194) | def __init__(
method set_menu (line 1207) | def set_menu(self, default: str | None = None, *values: str) -> None: ...
FILE: mypy/typeshed/stdlib/token.pyi
function ISTERMINAL (line 158) | def ISTERMINAL(x: int) -> bool: ...
function ISNONTERMINAL (line 159) | def ISNONTERMINAL(x: int) -> bool: ...
function ISEOF (line 160) | def ISEOF(x: int) -> bool: ...
FILE: mypy/typeshed/stdlib/tokenize.pyi
class _TokenInfo (line 103) | class _TokenInfo(NamedTuple):
class TokenInfo (line 110) | class TokenInfo(_TokenInfo):
method exact_type (line 112) | def exact_type(self) -> int: ...
class TokenError (line 117) | class TokenError(Exception): ...
class StopTokenizing (line 120) | class StopTokenizing(Exception): ... # undocumented
class Untokenizer (line 122) | class Untokenizer:
method add_whitespace (line 127) | def add_whitespace(self, start: _Position) -> None: ...
method untokenize (line 128) | def untokenize(self, iterable: Iterable[_Token]) -> str: ...
method compat (line 129) | def compat(self, token: Sequence[int | str], iterable: Iterable[_Token...
method escape_brackets (line 131) | def escape_brackets(self, token: str) -> str: ...
function untokenize (line 135) | def untokenize(iterable: Iterable[_Token]) -> Any: ...
function detect_encoding (line 136) | def detect_encoding(readline: Callable[[], bytes | bytearray]) -> tuple[...
function tokenize (line 137) | def tokenize(readline: Callable[[], bytes | bytearray]) -> Generator[Tok...
function generate_tokens (line 138) | def generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo,...
function open (line 139) | def open(filename: FileDescriptorOrPath) -> TextIO: ...
function group (line 140) | def group(*choices: str) -> str: ... # undocumented
function any (line 141) | def any(*choices: str) -> str: ... # undocumented
function maybe (line 142) | def maybe(*choices: str) -> str: ... # undocumented
function _all_string_prefixes (line 161) | def _all_string_prefixes() -> set[str]: ... # undocumented
FILE: mypy/typeshed/stdlib/tomllib.pyi
class TOMLDecodeError (line 7) | class TOMLDecodeError(ValueError): ...
function load (line 9) | def load(fp: SupportsRead[bytes], /, *, parse_float: Callable[[str], Any...
function loads (line 10) | def loads(s: str, /, *, parse_float: Callable[[str], Any] = ...) -> dict...
FILE: mypy/typeshed/stdlib/trace.pyi
class CoverageResults (line 14) | class CoverageResults:
method __init__ (line 21) | def __init__(
method update (line 29) | def update(self, other: CoverageResults) -> None: ...
method write_results (line 31) | def write_results(
method write_results (line 40) | def write_results(self, show_missing: bool = True, summary: bool = Fal...
method write_results_file (line 42) | def write_results_file(
method is_ignored_filename (line 45) | def is_ignored_filename(self, filename: str) -> bool: ... # undocumented
class _Ignore (line 47) | class _Ignore:
method __init__ (line 48) | def __init__(self, modules: Iterable[str] | None = None, dirs: Iterabl...
method names (line 49) | def names(self, filename: str, modulename: str) -> int: ...
class Trace (line 51) | class Trace:
method __init__ (line 62) | def __init__(
method run (line 74) | def run(self, cmd: str | types.CodeType) -> None: ...
method runctx (line 75) | def runctx(
method runfunc (line 79) | def runfunc(self, func: Callable[_P, _T], /, *args: _P.args, **kw: _P....
method runfunc (line 81) | def runfunc(self, func: Callable[_P, _T], *args: _P.args, **kw: _P.kwa...
method file_module_function_of (line 83) | def file_module_function_of(self, frame: types.FrameType) -> _FileModu...
method globaltrace_trackcallers (line 84) | def globaltrace_trackcallers(self, frame: types.FrameType, why: str, a...
method globaltrace_countfuncs (line 85) | def globaltrace_countfuncs(self, frame: types.FrameType, why: str, arg...
method globaltrace_lt (line 86) | def globaltrace_lt(self, frame: types.FrameType, why: str, arg: Any) -...
method localtrace_trace_and_count (line 87) | def localtrace_trace_and_count(self, frame: types.FrameType, why: str,...
method localtrace_trace (line 88) | def localtrace_trace(self, frame: types.FrameType, why: str, arg: Any)...
method localtrace_count (line 89) | def localtrace_count(self, frame: types.FrameType, why: str, arg: Any)...
method results (line 90) | def results(self) -> CoverageResults: ...
FILE: mypy/typeshed/stdlib/traceback.pyi
function print_tb (line 32) | def print_tb(tb: TracebackType | None, limit: int | None = None, file: S...
function print_exception (line 36) | def print_exception(
function print_exception (line 46) | def print_exception(
function format_exception (line 50) | def format_exception(
function format_exception (line 59) | def format_exception(exc: BaseException, /, *, limit: int | None = None,...
function print_exception (line 62) | def print_exception(
function format_exception (line 70) | def format_exception(
function print_exc (line 78) | def print_exc(limit: int | None = None, file: SupportsWrite[str] | None ...
function print_last (line 79) | def print_last(limit: int | None = None, file: SupportsWrite[str] | None...
function print_stack (line 80) | def print_stack(f: FrameType | None = None, limit: int | None = None, fi...
function extract_tb (line 81) | def extract_tb(tb: TracebackType | None, limit: int | None = None) -> St...
function extract_stack (line 82) | def extract_stack(f: FrameType | None = None, limit: int | None = None) ...
function format_list (line 83) | def format_list(extracted_list: Iterable[FrameSummary | _FrameSummaryTup...
function print_list (line 86) | def print_list(extracted_list: Iterable[FrameSummary | _FrameSummaryTupl...
function format_exception_only (line 90) | def format_exception_only(exc: BaseException | None, /, *, show_group: b...
function format_exception_only (line 92) | def format_exception_only(exc: Unused, /, value: BaseException | None, *...
function format_exception_only (line 96) | def format_exception_only(exc: BaseException | None, /) -> list[str]: ...
function format_exception_only (line 98) | def format_exception_only(exc: Unused, /, value: BaseException | None) -...
function format_exception_only (line 101) | def format_exception_only(etype: type[BaseException] | None, value: Base...
function format_exc (line 103) | def format_exc(limit: int | None = None, chain: bool = True) -> str: ...
function format_tb (line 104) | def format_tb(tb: TracebackType | None, limit: int | None = None) -> lis...
function format_stack (line 105) | def format_stack(f: FrameType | None = None, limit: int | None = None) -...
function clear_frames (line 106) | def clear_frames(tb: TracebackType | None) -> None: ...
function walk_stack (line 107) | def walk_stack(f: FrameType | None) -> Iterator[tuple[FrameType, int]]: ...
function walk_tb (line 108) | def walk_tb(tb: TracebackType | None) -> Iterator[tuple[FrameType, int]]...
class _ExceptionPrintContext (line 111) | class _ExceptionPrintContext:
method indent (line 112) | def indent(self) -> str: ...
method emit (line 113) | def emit(self, text_gen: str | Iterable[str], margin_char: str | None ...
class TracebackException (line 115) | class TracebackException:
method exc_type_str (line 138) | def exc_type_str(self) -> str: ...
method exc_type (line 141) | def exc_type(self) -> type[BaseException] | None: ...
method __init__ (line 145) | def __init__(
method __init__ (line 161) | def __init__(
method __init__ (line 176) | def __init__(
method __init__ (line 189) | def __init__(
method from_exception (line 203) | def from_exception(
method from_exception (line 216) | def from_exception(
method from_exception (line 227) | def from_exception(
method __eq__ (line 231) | def __eq__(self, other: object) -> bool: ...
method format (line 234) | def format(self, *, chain: bool = True, _ctx: _ExceptionPrintContext |...
method format (line 236) | def format(self, *, chain: bool = True) -> Generator[str, None, None]:...
method format_exception_only (line 239) | def format_exception_only(self, *, show_group: bool = False, _depth: i...
method format_exception_only (line 241) | def format_exception_only(self) -> Generator[str, None, None]: ...
method print (line 244) | def print(self, *, file: SupportsWrite[str] | None = None, chain: bool...
class FrameSummary (line 246) | class FrameSummary:
method __init__ (line 248) | def __init__(
method __init__ (line 265) | def __init__(
method line (line 280) | def line(self) -> str | None: ...
method __getitem__ (line 282) | def __getitem__(self, pos: Literal[0]) -> str: ...
method __getitem__ (line 284) | def __getitem__(self, pos: Literal[1]) -> int: ...
method __getitem__ (line 286) | def __getitem__(self, pos: Literal[2]) -> str: ...
method __getitem__ (line 288) | def __getitem__(self, pos: Literal[3]) -> str | None: ...
method __getitem__ (line 290) | def __getitem__(self, pos: int) -> Any: ...
method __getitem__ (line 292) | def __getitem__(self, pos: slice) -> tuple[Any, ...]: ...
method __iter__ (line 293) | def __iter__(self) -> Iterator[Any]: ...
method __eq__ (line 294) | def __eq__(self, other: object) -> bool: ...
method __len__ (line 295) | def __len__(self) -> Literal[4]: ...
class StackSummary (line 298) | class StackSummary(list[FrameSummary]):
method extract (line 300) | def extract(
method from_list (line 309) | def from_list(cls, a_list: Iterable[FrameSummary | _FrameSummaryTuple]...
method format_frame_summary (line 311) | def format_frame_summary(self, frame_summary: FrameSummary) -> str: ...
method format (line 313) | def format(self) -> list[str]: ...
FILE: mypy/typeshed/stdlib/tracemalloc.pyi
function get_object_traceback (line 7) | def get_object_traceback(obj: object) -> Traceback | None: ...
function take_snapshot (line 8) | def take_snapshot() -> Snapshot: ...
class BaseFilter (line 10) | class BaseFilter:
method __init__ (line 12) | def __init__(self, inclusive: bool) -> None: ...
class DomainFilter (line 14) | class DomainFilter(BaseFilter):
method domain (line 16) | def domain(self) -> int: ...
method __init__ (line 17) | def __init__(self, inclusive: bool, domain: int) -> None: ...
class Filter (line 19) | class Filter(BaseFilter):
method filename_pattern (line 23) | def filename_pattern(self) -> str: ...
method __init__ (line 25) | def __init__(
class Statistic (line 34) | class Statistic:
method __init__ (line 38) | def __init__(self, traceback: Traceback, size: int, count: int) -> Non...
method __eq__ (line 39) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 40) | def __hash__(self) -> int: ...
class StatisticDiff (line 42) | class StatisticDiff:
method __init__ (line 48) | def __init__(self, traceback: Traceback, size: int, size_diff: int, co...
method __eq__ (line 49) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 50) | def __hash__(self) -> int: ...
class Frame (line 54) | class Frame:
method filename (line 56) | def filename(self) -> str: ...
method lineno (line 58) | def lineno(self) -> int: ...
method __init__ (line 59) | def __init__(self, frame: _FrameTuple) -> None: ...
method __eq__ (line 60) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 61) | def __hash__(self) -> int: ...
method __lt__ (line 62) | def __lt__(self, other: Frame) -> bool: ...
method __gt__ (line 64) | def __gt__(self, other: Frame) -> bool: ...
method __ge__ (line 65) | def __ge__(self, other: Frame) -> bool: ...
method __le__ (line 66) | def __le__(self, other: Frame) -> bool: ...
method __gt__ (line 68) | def __gt__(self, other: Frame, NotImplemented: Any = ...) -> bool: ...
method __ge__ (line 69) | def __ge__(self, other: Frame, NotImplemented: Any = ...) -> bool: ...
method __le__ (line 70) | def __le__(self, other: Frame, NotImplemented: Any = ...) -> bool: ...
class Trace (line 77) | class Trace:
method domain (line 79) | def domain(self) -> int: ...
method size (line 81) | def size(self) -> int: ...
method traceback (line 83) | def traceback(self) -> Traceback: ...
method __init__ (line 84) | def __init__(self, trace: _TraceTuple) -> None: ...
method __eq__ (line 85) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 86) | def __hash__(self) -> int: ...
class Traceback (line 88) | class Traceback(Sequence[Frame]):
method total_nframe (line 91) | def total_nframe(self) -> int | None: ...
method __init__ (line 92) | def __init__(self, frames: Sequence[_FrameTuple], total_nframe: int | ...
method __init__ (line 94) | def __init__(self, frames: Sequence[_FrameTuple]) -> None: ...
method format (line 96) | def format(self, limit: int | None = None, most_recent_first: bool = F...
method __getitem__ (line 98) | def __getitem__(self, index: SupportsIndex) -> Frame: ...
method __getitem__ (line 100) | def __getitem__(self, index: slice) -> Sequence[Frame]: ...
method __contains__ (line 101) | def __contains__(self, frame: Frame) -> bool: ... # type: ignore[over...
method __len__ (line 102) | def __len__(self) -> int: ...
method __eq__ (line 103) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 104) | def __hash__(self) -> int: ...
method __lt__ (line 105) | def __lt__(self, other: Traceback) -> bool: ...
method __gt__ (line 107) | def __gt__(self, other: Traceback) -> bool: ...
method __ge__ (line 108) | def __ge__(self, other: Traceback) -> bool: ...
method __le__ (line 109) | def __le__(self, other: Traceback) -> bool: ...
method __gt__ (line 111) | def __gt__(self, other: Traceback, NotImplemented: Any = ...) -> bool:...
method __ge__ (line 112) | def __ge__(self, other: Traceback, NotImplemented: Any = ...) -> bool:...
method __le__ (line 113) | def __le__(self, other: Traceback, NotImplemented: Any = ...) -> bool:...
class Snapshot (line 115) | class Snapshot:
method __init__ (line 116) | def __init__(self, traces: Sequence[_TraceTuple], traceback_limit: int...
method compare_to (line 117) | def compare_to(self, old_snapshot: Snapshot, key_type: str, cumulative...
method dump (line 118) | def dump(self, filename: str) -> None: ...
method filter_traces (line 119) | def filter_traces(self, filters: Sequence[DomainFilter | Filter]) -> S...
method load (line 121) | def load(filename: str) -> Snapshot: ...
method statistics (line 122) | def statistics(self, key_type: str, cumulative: bool = False) -> list[...
FILE: mypy/typeshed/stdlib/tty.pyi
function setraw (line 25) | def setraw(fd: _FD, when: int = 2) -> _ModeSetterReturn: ...
function setcbreak (line 26) | def setcbreak(fd: _FD, when: int = 2) -> _ModeSetterReturn: ...
function cfmakeraw (line 29) | def cfmakeraw(mode: termios._Attr) -> None: ...
function cfmakecbreak (line 30) | def cfmakecbreak(mode: termios._Attr) -> None: ...
FILE: mypy/typeshed/stdlib/turtle.pyi
class _PenState (line 144) | class _PenState(TypedDict):
class Vec2D (line 160) | class Vec2D(tuple[float, float]):
method __new__ (line 161) | def __new__(cls, x: float, y: float) -> Self: ...
method __add__ (line 162) | def __add__(self, other: tuple[float, float]) -> Vec2D: ... # type: i...
method __mul__ (line 164) | def __mul__(self, other: Vec2D) -> float: ...
method __mul__ (line 166) | def __mul__(self, other: float) -> Vec2D: ...
method __rmul__ (line 167) | def __rmul__(self, other: float) -> Vec2D: ... # type: ignore[override]
method __sub__ (line 168) | def __sub__(self, other: tuple[float, float]) -> Vec2D: ...
method __neg__ (line 169) | def __neg__(self) -> Vec2D: ...
method __abs__ (line 170) | def __abs__(self) -> float: ...
method rotate (line 171) | def rotate(self, angle: float) -> Vec2D: ...
class ScrolledCanvas (line 174) | class ScrolledCanvas(Canvas, Frame): # type: ignore[misc]
method __init__ (line 178) | def __init__(
method reset (line 183) | def reset(self, canvwidth: int | None = None, canvheight: int | None =...
class TurtleScreenBase (line 185) | class TurtleScreenBase:
method __init__ (line 191) | def __init__(self, cv: Canvas) -> None: ...
method mainloop (line 192) | def mainloop(self) -> None: ...
method textinput (line 193) | def textinput(self, title: str, prompt: str) -> str | None: ...
method numinput (line 194) | def numinput(
class Terminator (line 198) | class Terminator(Exception): ...
class TurtleGraphicsError (line 199) | class TurtleGraphicsError(Exception): ...
class Shape (line 201) | class Shape:
method __init__ (line 202) | def __init__(self, type_: str, data: _PolygonCoords | PhotoImage | Non...
method addcomponent (line 203) | def addcomponent(self, poly: _PolygonCoords, fill: _Color, outline: _C...
class TurtleScreen (line 205) | class TurtleScreen(TurtleScreenBase):
method __init__ (line 206) | def __init__(self, cv: Canvas, mode: str = "standard", colormode: floa...
method clear (line 207) | def clear(self) -> None: ...
method mode (line 209) | def mode(self, mode: None = None) -> str: ...
method mode (line 211) | def mode(self, mode: str) -> None: ...
method setworldcoordinates (line 212) | def setworldcoordinates(self, llx: float, lly: float, urx: float, ury:...
method register_shape (line 213) | def register_shape(self, name: str, shape: _PolygonCoords | Shape | No...
method colormode (line 215) | def colormode(self, cmode: None = None) -> float: ...
method colormode (line 217) | def colormode(self, cmode: float) -> None: ...
method reset (line 218) | def reset(self) -> None: ...
method turtles (line 219) | def turtles(self) -> list[Turtle]: ...
method bgcolor (line 221) | def bgcolor(self) -> _AnyColor: ...
method bgcolor (line 223) | def bgcolor(self, color: _Color) -> None: ...
method bgcolor (line 225) | def bgcolor(self, r: float, g: float, b: float) -> None: ...
method tracer (line 227) | def tracer(self, n: None = None) -> int: ...
method tracer (line 229) | def tracer(self, n: int, delay: int | None = None) -> None: ...
method delay (line 231) | def delay(self, delay: None = None) -> int: ...
method delay (line 233) | def delay(self, delay: int) -> None: ...
method update (line 234) | def update(self) -> None: ...
method window_width (line 235) | def window_width(self) -> int: ...
method window_height (line 236) | def window_height(self) -> int: ...
method getcanvas (line 237) | def getcanvas(self) -> Canvas: ...
method getshapes (line 238) | def getshapes(self) -> list[str]: ...
method onclick (line 239) | def onclick(self, fun: Callable[[float, float], object], btn: int = 1,...
method onkey (line 240) | def onkey(self, fun: Callable[[], object], key: str) -> None: ...
method listen (line 241) | def listen(self, xdummy: float | None = None, ydummy: float | None = N...
method ontimer (line 242) | def ontimer(self, fun: Callable[[], object], t: int = 0) -> None: ...
method bgpic (line 244) | def bgpic(self, picname: None = None) -> str: ...
method bgpic (line 246) | def bgpic(self, picname: str) -> None: ...
method screensize (line 248) | def screensize(self, canvwidth: None = None, canvheight: None = None, ...
method screensize (line 251) | def screensize(self, canvwidth: int, canvheight: int, bg: _Color | Non...
method onkeypress (line 256) | def onkeypress(self, fun: Callable[[], object], key: str | None = None...
class TNavigator (line 259) | class TNavigator:
method __init__ (line 264) | def __init__(self, mode: str = "standard") -> None: ...
method reset (line 265) | def reset(self) -> None: ...
method degrees (line 266) | def degrees(self, fullcircle: float = 360.0) -> None: ...
method radians (line 267) | def radians(self) -> None: ...
method teleport (line 269) | def teleport(self, x: float | None = None, y: float | None = None, *, ...
method forward (line 271) | def forward(self, distance: float) -> None: ...
method back (line 272) | def back(self, distance: float) -> None: ...
method right (line 273) | def right(self, angle: float) -> None: ...
method left (line 274) | def left(self, angle: float) -> None: ...
method pos (line 275) | def pos(self) -> Vec2D: ...
method xcor (line 276) | def xcor(self) -> float: ...
method ycor (line 277) | def ycor(self) -> float: ...
method goto (line 279) | def goto(self, x: tuple[float, float], y: None = None) -> None: ...
method goto (line 281) | def goto(self, x: float, y: float) -> None: ...
method home (line 282) | def home(self) -> None: ...
method setx (line 283) | def setx(self, x: float) -> None: ...
method sety (line 284) | def sety(self, y: float) -> None: ...
method distance (line 286) | def distance(self, x: TNavigator | tuple[float, float], y: None = None...
method distance (line 288) | def distance(self, x: float, y: float) -> float: ...
method towards (line 290) | def towards(self, x: TNavigator | tuple[float, float], y: None = None)...
method towards (line 292) | def towards(self, x: float, y: float) -> float: ...
method heading (line 293) | def heading(self) -> float: ...
method setheading (line 294) | def setheading(self, to_angle: float) -> None: ...
method circle (line 295) | def circle(self, radius: float, extent: float | None = None, steps: in...
method speed (line 296) | def speed(self, s: int | None = 0) -> int | None: ...
class TPen (line 307) | class TPen:
method __init__ (line 308) | def __init__(self, resizemode: str = "noresize") -> None: ...
method resizemode (line 310) | def resizemode(self, rmode: None = None) -> str: ...
method resizemode (line 312) | def resizemode(self, rmode: str) -> None: ...
method pensize (line 314) | def pensize(self, width: None = None) -> int: ...
method pensize (line 316) | def pensize(self, width: int) -> None: ...
method penup (line 317) | def penup(self) -> None: ...
method pendown (line 318) | def pendown(self) -> None: ...
method isdown (line 319) | def isdown(self) -> bool: ...
method speed (line 321) | def speed(self, speed: None = None) -> int: ...
method speed (line 323) | def speed(self, speed: _Speed) -> None: ...
method pencolor (line 325) | def pencolor(self) -> _AnyColor: ...
method pencolor (line 327) | def pencolor(self, color: _Color) -> None: ...
method pencolor (line 329) | def pencolor(self, r: float, g: float, b: float) -> None: ...
method fillcolor (line 331) | def fillcolor(self) -> _AnyColor: ...
method fillcolor (line 333) | def fillcolor(self, color: _Color) -> None: ...
method fillcolor (line 335) | def fillcolor(self, r: float, g: float, b: float) -> None: ...
method color (line 337) | def color(self) -> tuple[_AnyColor, _AnyColor]: ...
method color (line 339) | def color(self, color: _Color) -> None: ...
method color (line 341) | def color(self, r: float, g: float, b: float) -> None: ...
method color (line 343) | def color(self, color1: _Color, color2: _Color) -> None: ...
method teleport (line 345) | def teleport(self, x: float | None = None, y: float | None = None, *, ...
method showturtle (line 347) | def showturtle(self) -> None: ...
method hideturtle (line 348) | def hideturtle(self) -> None: ...
method isvisible (line 349) | def isvisible(self) -> bool: ...
method pen (line 352) | def pen(self) -> _PenState: ...
method pen (line 354) | def pen(
class RawTurtle (line 377) | class RawTurtle(TPen, TNavigator): # type: ignore[misc] # Conflicting ...
method __init__ (line 380) | def __init__(
method reset (line 387) | def reset(self) -> None: ...
method setundobuffer (line 388) | def setundobuffer(self, size: int | None) -> None: ...
method undobufferentries (line 389) | def undobufferentries(self) -> int: ...
method clear (line 390) | def clear(self) -> None: ...
method clone (line 391) | def clone(self) -> Self: ...
method shape (line 393) | def shape(self, name: None = None) -> str: ...
method shape (line 395) | def shape(self, name: str) -> None: ...
method shapesize (line 398) | def shapesize(self) -> tuple[float, float, float]: ...
method shapesize (line 400) | def shapesize(
method shearfactor (line 404) | def shearfactor(self, shear: None = None) -> float: ...
method shearfactor (line 406) | def shearfactor(self, shear: float) -> None: ...
method shapetransform (line 409) | def shapetransform(self) -> tuple[float, float, float, float]: ...
method shapetransform (line 411) | def shapetransform(
method get_shapepoly (line 414) | def get_shapepoly(self) -> _PolygonCoords | None: ...
method settiltangle (line 417) | def settiltangle(self, angle: float) -> None: ...
method tiltangle (line 420) | def tiltangle(self, angle: None = None) -> float: ...
method tiltangle (line 422) | def tiltangle(self, angle: float) -> None: ...
method tilt (line 423) | def tilt(self, angle: float) -> None: ...
method stamp (line 427) | def stamp(self) -> Any: ...
method clearstamp (line 428) | def clearstamp(self, stampid: int | tuple[int, ...]) -> None: ...
method clearstamps (line 429) | def clearstamps(self, n: int | None = None) -> None: ...
method filling (line 430) | def filling(self) -> bool: ...
method begin_fill (line 431) | def begin_fill(self) -> None: ...
method end_fill (line 432) | def end_fill(self) -> None: ...
method dot (line 433) | def dot(self, size: int | None = None, *color: _Color) -> None: ...
method write (line 434) | def write(
method begin_poly (line 437) | def begin_poly(self) -> None: ...
method end_poly (line 438) | def end_poly(self) -> None: ...
method get_poly (line 439) | def get_poly(self) -> _PolygonCoords | None: ...
method getscreen (line 440) | def getscreen(self) -> TurtleScreen: ...
method getturtle (line 441) | def getturtle(self) -> Self: ...
method onclick (line 443) | def onclick(self, fun: Callable[[float, float], object], btn: int = 1,...
method onrelease (line 444) | def onrelease(self, fun: Callable[[float, float], object], btn: int = ...
method ondrag (line 445) | def ondrag(self, fun: Callable[[float, float], object], btn: int = 1, ...
method undo (line 446) | def undo(self) -> None: ...
class _Screen (line 449) | class _Screen(TurtleScreen):
method __init__ (line 450) | def __init__(self) -> None: ...
method setup (line 452) | def setup(
method title (line 459) | def title(self, titlestring: str) -> None: ...
method bye (line 460) | def bye(self) -> None: ...
method exitonclick (line 461) | def exitonclick(self) -> None: ...
class Turtle (line 463) | class Turtle(RawTurtle):
method __init__ (line 464) | def __init__(self, shape: str = "classic", undobuffersize: int = 1000,...
function write_docstringdict (line 469) | def write_docstringdict(filename: str = "turtle_docstringdict") -> None:...
function mainloop (line 484) | def mainloop() -> None: ...
function textinput (line 485) | def textinput(title: str, prompt: str) -> str | None: ...
function numinput (line 486) | def numinput(
function clear (line 492) | def clear() -> None: ...
function mode (line 494) | def mode(mode: None = None) -> str: ...
function mode (line 496) | def mode(mode: str) -> None: ...
function setworldcoordinates (line 497) | def setworldcoordinates(llx: float, lly: float, urx: float, ury: float) ...
function register_shape (line 498) | def register_shape(name: str, shape: _PolygonCoords | Shape | None = Non...
function colormode (line 500) | def colormode(cmode: None = None) -> float: ...
function colormode (line 502) | def colormode(cmode: float) -> None: ...
function reset (line 503) | def reset() -> None: ...
function turtles (line 504) | def turtles() -> list[Turtle]: ...
function bgcolor (line 506) | def bgcolor() -> _AnyColor: ...
function bgcolor (line 508) | def bgcolor(color: _Color) -> None: ...
function bgcolor (line 510) | def bgcolor(r: float, g: float, b: float) -> None: ...
function tracer (line 512) | def tracer(n: None = None) -> int: ...
function tracer (line 514) | def tracer(n: int, delay: int | None = None) -> None: ...
function delay (line 516) | def delay(delay: None = None) -> int: ...
function delay (line 518) | def delay(delay: int) -> None: ...
function update (line 519) | def update() -> None: ...
function window_width (line 520) | def window_width() -> int: ...
function window_height (line 521) | def window_height() -> int: ...
function getcanvas (line 522) | def getcanvas() -> Canvas: ...
function getshapes (line 523) | def getshapes() -> list[str]: ...
function onclick (line 524) | def onclick(fun: Callable[[float, float], object], btn: int = 1, add: An...
function onkey (line 525) | def onkey(fun: Callable[[], object], key: str) -> None: ...
function listen (line 526) | def listen(xdummy: float | None = None, ydummy: float | None = None) -> ...
function ontimer (line 527) | def ontimer(fun: Callable[[], object], t: int = 0) -> None: ...
function bgpic (line 529) | def bgpic(picname: None = None) -> str: ...
function bgpic (line 531) | def bgpic(picname: str) -> None: ...
function screensize (line 533) | def screensize(canvwidth: None = None, canvheight: None = None, bg: None...
function screensize (line 535) | def screensize(canvwidth: int, canvheight: int, bg: _Color | None = None...
function onkeypress (line 542) | def onkeypress(fun: Callable[[], object], key: str | None = None) -> Non...
function setup (line 548) | def setup(width: float = 0.5, height: float = 0.75, startx: int | None =...
function title (line 549) | def title(titlestring: str) -> None: ...
function bye (line 550) | def bye() -> None: ...
function exitonclick (line 551) | def exitonclick() -> None: ...
function Screen (line 552) | def Screen() -> _Screen: ...
function degrees (line 556) | def degrees(fullcircle: float = 360.0) -> None: ...
function radians (line 557) | def radians() -> None: ...
function forward (line 558) | def forward(distance: float) -> None: ...
function back (line 559) | def back(distance: float) -> None: ...
function right (line 560) | def right(angle: float) -> None: ...
function left (line 561) | def left(angle: float) -> None: ...
function pos (line 562) | def pos() -> Vec2D: ...
function xcor (line 563) | def xcor() -> float: ...
function ycor (line 564) | def ycor() -> float: ...
function goto (line 566) | def goto(x: tuple[float, float], y: None = None) -> None: ...
function goto (line 568) | def goto(x: float, y: float) -> None: ...
function home (line 569) | def home() -> None: ...
function setx (line 570) | def setx(x: float) -> None: ...
function sety (line 571) | def sety(y: float) -> None: ...
function distance (line 573) | def distance(x: TNavigator | tuple[float, float], y: None = None) -> flo...
function distance (line 575) | def distance(x: float, y: float) -> float: ...
function towards (line 577) | def towards(x: TNavigator | tuple[float, float], y: None = None) -> floa...
function towards (line 579) | def towards(x: float, y: float) -> float: ...
function heading (line 580) | def heading() -> float: ...
function setheading (line 581) | def setheading(to_angle: float) -> None: ...
function circle (line 582) | def circle(radius: float, extent: float | None = None, steps: int | None...
function resizemode (line 596) | def resizemode(rmode: None = None) -> str: ...
function resizemode (line 598) | def resizemode(rmode: str) -> None: ...
function pensize (line 600) | def pensize(width: None = None) -> int: ...
function pensize (line 602) | def pensize(width: int) -> None: ...
function penup (line 603) | def penup() -> None: ...
function pendown (line 604) | def pendown() -> None: ...
function isdown (line 605) | def isdown() -> bool: ...
function speed (line 607) | def speed(speed: None = None) -> int: ...
function speed (line 609) | def speed(speed: _Speed) -> None: ...
function pencolor (line 611) | def pencolor() -> _AnyColor: ...
function pencolor (line 613) | def pencolor(color: _Color) -> None: ...
function pencolor (line 615) | def pencolor(r: float, g: float, b: float) -> None: ...
function fillcolor (line 617) | def fillcolor() -> _AnyColor: ...
function fillcolor (line 619) | def fillcolor(color: _Color) -> None: ...
function fillcolor (line 621) | def fillcolor(r: float, g: float, b: float) -> None: ...
function color (line 623) | def color() -> tuple[_AnyColor, _AnyColor]: ...
function color (line 625) | def color(color: _Color) -> None: ...
function color (line 627) | def color(r: float, g: float, b: float) -> None: ...
function color (line 629) | def color(color1: _Color, color2: _Color) -> None: ...
function showturtle (line 630) | def showturtle() -> None: ...
function hideturtle (line 631) | def hideturtle() -> None: ...
function isvisible (line 632) | def isvisible() -> bool: ...
function pen (line 636) | def pen() -> _PenState: ...
function pen (line 638) | def pen(
function setundobuffer (line 663) | def setundobuffer(size: int | None) -> None: ...
function undobufferentries (line 664) | def undobufferentries() -> int: ...
function shape (line 666) | def shape(name: None = None) -> str: ...
function shape (line 668) | def shape(name: str) -> None: ...
function teleport (line 671) | def teleport(x: float | None = None, y: float | None = None, *, fill_gap...
function shapesize (line 675) | def shapesize() -> tuple[float, float, float]: ...
function shapesize (line 677) | def shapesize(stretch_wid: float | None = None, stretch_len: float | Non...
function shearfactor (line 679) | def shearfactor(shear: None = None) -> float: ...
function shearfactor (line 681) | def shearfactor(shear: float) -> None: ...
function shapetransform (line 685) | def shapetransform() -> tuple[float, float, float, float]: ...
function shapetransform (line 687) | def shapetransform(
function get_shapepoly (line 690) | def get_shapepoly() -> _PolygonCoords | None: ...
function settiltangle (line 693) | def settiltangle(angle: float) -> None: ...
function tiltangle (line 696) | def tiltangle(angle: None = None) -> float: ...
function tiltangle (line 698) | def tiltangle(angle: float) -> None: ...
function tilt (line 699) | def tilt(angle: float) -> None: ...
function stamp (line 704) | def stamp() -> Any: ...
function clearstamp (line 705) | def clearstamp(stampid: int | tuple[int, ...]) -> None: ...
function clearstamps (line 706) | def clearstamps(n: int | None = None) -> None: ...
function filling (line 707) | def filling() -> bool: ...
function begin_fill (line 708) | def begin_fill() -> None: ...
function end_fill (line 709) | def end_fill() -> None: ...
function dot (line 710) | def dot(size: int | None = None, *color: _Color) -> None: ...
function write (line 711) | def write(arg: object, move: bool = False, align: str = "left", font: tu...
function begin_poly (line 712) | def begin_poly() -> None: ...
function end_poly (line 713) | def end_poly() -> None: ...
function get_poly (line 714) | def get_poly() -> _PolygonCoords | None: ...
function getscreen (line 715) | def getscreen() -> TurtleScreen: ...
function getturtle (line 716) | def getturtle() -> Turtle: ...
function onrelease (line 720) | def onrelease(fun: Callable[[float, float], object], btn: int = 1, add: ...
function ondrag (line 721) | def ondrag(fun: Callable[[float, float], object], btn: int = 1, add: Any...
function undo (line 722) | def undo() -> None: ...
function clone (line 728) | def clone() -> Turtle: ...
FILE: mypy/typeshed/stdlib/types.pyi
class FunctionType (line 78) | class FunctionType:
method __closure__ (line 80) | def __closure__(self) -> tuple[CellType, ...] | None: ...
method __globals__ (line 85) | def __globals__(self) -> dict[str, Any]: ...
method __builtins__ (line 92) | def __builtins__(self) -> dict[str, Any]: ...
method __new__ (line 98) | def __new__(
method __new__ (line 108) | def __new__(
method __call__ (line 117) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
method __get__ (line 119) | def __get__(self, instance: None, owner: type, /) -> FunctionType: ...
method __get__ (line 121) | def __get__(self, instance: object, owner: type | None = None, /) -> M...
class CodeType (line 126) | class CodeType:
method __eq__ (line 127) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 128) | def __hash__(self) -> int: ...
method co_argcount (line 130) | def co_argcount(self) -> int: ...
method co_posonlyargcount (line 132) | def co_posonlyargcount(self) -> int: ...
method co_kwonlyargcount (line 134) | def co_kwonlyargcount(self) -> int: ...
method co_nlocals (line 136) | def co_nlocals(self) -> int: ...
method co_stacksize (line 138) | def co_stacksize(self) -> int: ...
method co_flags (line 140) | def co_flags(self) -> int: ...
method co_code (line 142) | def co_code(self) -> bytes: ...
method co_consts (line 144) | def co_consts(self) -> tuple[Any, ...]: ...
method co_names (line 146) | def co_names(self) -> tuple[str, ...]: ...
method co_varnames (line 148) | def co_varnames(self) -> tuple[str, ...]: ...
method co_filename (line 150) | def co_filename(self) -> str: ...
method co_name (line 152) | def co_name(self) -> str: ...
method co_firstlineno (line 154) | def co_firstlineno(self) -> int: ...
method co_lnotab (line 158) | def co_lnotab(self) -> bytes: ...
method co_lnotab (line 161) | def co_lnotab(self) -> bytes: ...
method co_freevars (line 164) | def co_freevars(self) -> tuple[str, ...]: ...
method co_cellvars (line 166) | def co_cellvars(self) -> tuple[str, ...]: ...
method co_linetable (line 169) | def co_linetable(self) -> bytes: ...
method co_lines (line 170) | def co_lines(self) -> Iterator[tuple[int, int, int | None]]: ...
method co_exceptiontable (line 173) | def co_exceptiontable(self) -> bytes: ...
method co_qualname (line 175) | def co_qualname(self) -> str: ...
method co_positions (line 176) | def co_positions(self) -> Iterable[tuple[int | None, int | None, int |...
method __new__ (line 179) | def __new__(
method __new__ (line 202) | def __new__(
method __new__ (line 223) | def __new__(
method replace (line 244) | def replace(
method replace (line 267) | def replace(
method replace (line 288) | def replace(
class MappingProxyType (line 313) | class MappingProxyType(Mapping[_KT_co, _VT_co]):
method __new__ (line 315) | def __new__(cls, mapping: SupportsKeysAndGetItem[_KT_co, _VT_co]) -> S...
method __getitem__ (line 316) | def __getitem__(self, key: _KT_co, /) -> _VT_co: ... # type: ignore[u...
method __iter__ (line 317) | def __iter__(self) -> Iterator[_KT_co]: ...
method __len__ (line 318) | def __len__(self) -> int: ...
method __eq__ (line 319) | def __eq__(self, value: object, /) -> bool: ...
method copy (line 320) | def copy(self) -> dict[_KT_co, _VT_co]: ...
method keys (line 321) | def keys(self) -> KeysView[_KT_co]: ...
method values (line 322) | def values(self) -> ValuesView[_VT_co]: ...
method items (line 323) | def items(self) -> ItemsView[_KT_co, _VT_co]: ...
method get (line 325) | def get(self, key: _KT_co, /) -> _VT_co | None: ... # type: ignore[un...
method get (line 327) | def get(self, key: _KT_co, default: _VT_co | _T2, /) -> _VT_co | _T2: ...
method __class_getitem__ (line 329) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
method __reversed__ (line 330) | def __reversed__(self) -> Iterator[_KT_co]: ...
method __or__ (line 331) | def __or__(self, value: Mapping[_T1, _T2], /) -> dict[_KT_co | _T1, _V...
method __ror__ (line 332) | def __ror__(self, value: Mapping[_T1, _T2], /) -> dict[_KT_co | _T1, _...
class SimpleNamespace (line 334) | class SimpleNamespace:
method __init__ (line 337) | def __init__(self, mapping_or_iterable: Mapping[str, Any] | Iterable[t...
method __init__ (line 339) | def __init__(self, **kwargs: Any) -> None: ...
method __eq__ (line 341) | def __eq__(self, value: object, /) -> bool: ...
method __getattribute__ (line 342) | def __getattribute__(self, name: str, /) -> Any: ...
method __setattr__ (line 343) | def __setattr__(self, name: str, value: Any, /) -> None: ...
method __delattr__ (line 344) | def __delattr__(self, name: str, /) -> None: ...
method __replace__ (line 346) | def __replace__(self, **kwargs: Any) -> Self: ...
class ModuleType (line 348) | class ModuleType:
method __dict__ (line 352) | def __dict__(self) -> dict[str, Any]: ... # type: ignore[override]
method __init__ (line 364) | def __init__(self, name: str, doc: str | None = ...) -> None: ...
method __getattr__ (line 368) | def __getattr__(self, name: str) -> Any: ...
class CellType (line 371) | class CellType:
method __new__ (line 372) | def __new__(cls, contents: object = ..., /) -> Self: ...
class GeneratorType (line 381) | class GeneratorType(Generator[_YieldT_co, _SendT_contra, _ReturnT_co]):
method gi_code (line 383) | def gi_code(self) -> CodeType: ...
method gi_frame (line 385) | def gi_frame(self) -> FrameType: ...
method gi_running (line 387) | def gi_running(self) -> bool: ...
method gi_yieldfrom (line 389) | def gi_yieldfrom(self) -> GeneratorType[_YieldT_co, _SendT_contra, Any...
method gi_suspended (line 392) | def gi_suspended(self) -> bool: ...
method __iter__ (line 395) | def __iter__(self) -> Self: ...
method __next__ (line 396) | def __next__(self) -> _YieldT_co: ...
method send (line 397) | def send(self, arg: _SendT_contra, /) -> _YieldT_co: ...
method throw (line 399) | def throw(
method throw (line 403) | def throw(self, typ: BaseException, val: None = None, tb: TracebackTyp...
method __class_getitem__ (line 405) | def __class_getitem__(cls, item: Any, /) -> Any: ...
class AsyncGeneratorType (line 408) | class AsyncGeneratorType(AsyncGenerator[_YieldT_co, _SendT_contra]):
method ag_await (line 410) | def ag_await(self) -> Awaitable[Any] | None: ...
method ag_code (line 412) | def ag_code(self) -> CodeType: ...
method ag_frame (line 414) | def ag_frame(self) -> FrameType: ...
method ag_running (line 416) | def ag_running(self) -> bool: ...
method ag_suspended (line 421) | def ag_suspended(self) -> bool: ...
method __aiter__ (line 423) | def __aiter__(self) -> Self: ...
method __anext__ (line 424) | def __anext__(self) -> Coroutine[Any, Any, _YieldT_co]: ...
method asend (line 425) | def asend(self, val: _SendT_contra, /) -> Coroutine[Any, Any, _YieldT_...
method athrow (line 427) | async def athrow(
method athrow (line 431) | async def athrow(self, typ: BaseException, val: None = None, tb: Trace...
method aclose (line 432) | def aclose(self) -> Coroutine[Any, Any, None]: ...
method __class_getitem__ (line 434) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class CoroutineType (line 437) | class CoroutineType(Coroutine[_YieldT_co, _SendT_contra, _ReturnT_co]):
method cr_await (line 441) | def cr_await(self) -> Any | None: ...
method cr_code (line 443) | def cr_code(self) -> CodeType: ...
method cr_frame (line 445) | def cr_frame(self) -> FrameType: ...
method cr_running (line 447) | def cr_running(self) -> bool: ...
method cr_origin (line 449) | def cr_origin(self) -> tuple[tuple[str, int, str], ...] | None: ...
method cr_suspended (line 452) | def cr_suspended(self) -> bool: ...
method close (line 454) | def close(self) -> None: ...
method __await__ (line 455) | def __await__(self) -> Generator[Any, None, _ReturnT_co]: ...
method send (line 456) | def send(self, arg: _SendT_contra, /) -> _YieldT_co: ...
method throw (line 458) | def throw(
method throw (line 462) | def throw(self, typ: BaseException, val: None = None, tb: TracebackTyp...
method __class_getitem__ (line 464) | def __class_getitem__(cls, item: Any, /) -> Any: ...
class MethodType (line 468) | class MethodType:
method __closure__ (line 470) | def __closure__(self) -> tuple[CellType, ...] | None: ... # inherited...
method __code__ (line 472) | def __code__(self) -> CodeType: ... # inherited from the added function
method __defaults__ (line 474) | def __defaults__(self) -> tuple[Any, ...] | None: ... # inherited fro...
method __func__ (line 476) | def __func__(self) -> Callable[..., Any]: ...
method __self__ (line 478) | def __self__(self) -> object: ...
method __name__ (line 480) | def __name__(self) -> str: ... # inherited from the added function
method __qualname__ (line 482) | def __qualname__(self) -> str: ... # inherited from the added function
method __new__ (line 483) | def __new__(cls, func: Callable[..., Any], instance: object, /) -> Sel...
method __call__ (line 484) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
method __eq__ (line 485) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 486) | def __hash__(self) -> int: ...
class BuiltinFunctionType (line 490) | class BuiltinFunctionType(Generic[_P, _out_T]):
method __self__ (line 492) | def __self__(self) -> object | ModuleType: ...
method __name__ (line 494) | def __name__(self) -> str: ...
method __qualname__ (line 496) | def __qualname__(self) -> str: ...
method __call__ (line 497) | def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _out_T: ...
method __eq__ (line 498) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 499) | def __hash__(self) -> int: ...
class WrapperDescriptorType (line 504) | class WrapperDescriptorType:
method __name__ (line 506) | def __name__(self) -> str: ...
method __qualname__ (line 508) | def __qualname__(self) -> str: ...
method __objclass__ (line 510) | def __objclass__(self) -> type: ...
method __call__ (line 511) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
method __get__ (line 512) | def __get__(self, instance: Any, owner: type | None = None, /) -> Any:...
class MethodWrapperType (line 515) | class MethodWrapperType:
method __self__ (line 517) | def __self__(self) -> object: ...
method __name__ (line 519) | def __name__(self) -> str: ...
method __qualname__ (line 521) | def __qualname__(self) -> str: ...
method __objclass__ (line 523) | def __objclass__(self) -> type: ...
method __call__ (line 524) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
method __eq__ (line 525) | def __eq__(self, value: object, /) -> bool: ...
method __ne__ (line 526) | def __ne__(self, value: object, /) -> bool: ...
method __hash__ (line 527) | def __hash__(self) -> int: ...
class MethodDescriptorType (line 530) | class MethodDescriptorType:
method __name__ (line 532) | def __name__(self) -> str: ...
method __qualname__ (line 534) | def __qualname__(self) -> str: ...
method __objclass__ (line 536) | def __objclass__(self) -> type: ...
method __call__ (line 537) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
method __get__ (line 538) | def __get__(self, instance: Any, owner: type | None = None, /) -> Any:...
class ClassMethodDescriptorType (line 541) | class ClassMethodDescriptorType:
method __name__ (line 543) | def __name__(self) -> str: ...
method __qualname__ (line 545) | def __qualname__(self) -> str: ...
method __objclass__ (line 547) | def __objclass__(self) -> type: ...
method __call__ (line 548) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
method __get__ (line 549) | def __get__(self, instance: Any, owner: type | None = None, /) -> Any:...
class TracebackType (line 552) | class TracebackType:
method __new__ (line 553) | def __new__(cls, tb_next: TracebackType | None, tb_frame: FrameType, t...
method tb_frame (line 557) | def tb_frame(self) -> FrameType: ...
method tb_lasti (line 559) | def tb_lasti(self) -> int: ...
method tb_lineno (line 561) | def tb_lineno(self) -> int: ...
class FrameType (line 564) | class FrameType:
method f_back (line 566) | def f_back(self) -> FrameType | None: ...
method f_builtins (line 568) | def f_builtins(self) -> dict[str, Any]: ...
method f_code (line 570) | def f_code(self) -> CodeType: ...
method f_globals (line 572) | def f_globals(self) -> dict[str, Any]: ...
method f_lasti (line 574) | def f_lasti(self) -> int: ...
method f_lineno (line 579) | def f_lineno(self) -> int | MaybeNone: ...
method f_locals (line 581) | def f_locals(self) -> dict[str, Any]: ...
method clear (line 585) | def clear(self) -> None: ...
class GetSetDescriptorType (line 588) | class GetSetDescriptorType:
method __name__ (line 590) | def __name__(self) -> str: ...
method __qualname__ (line 592) | def __qualname__(self) -> str: ...
method __objclass__ (line 594) | def __objclass__(self) -> type: ...
method __get__ (line 595) | def __get__(self, instance: Any, owner: type | None = None, /) -> Any:...
method __set__ (line 596) | def __set__(self, instance: Any, value: Any, /) -> None: ...
method __delete__ (line 597) | def __delete__(self, instance: Any, /) -> None: ...
class MemberDescriptorType (line 600) | class MemberDescriptorType:
method __name__ (line 602) | def __name__(self) -> str: ...
method __qualname__ (line 604) | def __qualname__(self) -> str: ...
method __objclass__ (line 606) | def __objclass__(self) -> type: ...
method __get__ (line 607) | def __get__(self, instance: Any, owner: type | None = None, /) -> Any:...
method __set__ (line 608) | def __set__(self, instance: Any, value: Any, /) -> None: ...
method __delete__ (line 609) | def __delete__(self, instance: Any, /) -> None: ...
function new_class (line 611) | def new_class(
function resolve_bases (line 617) | def resolve_bases(bases: Iterable[object]) -> tuple[Any, ...]: ...
function prepare_class (line 618) | def prepare_class(
function get_original_bases (line 623) | def get_original_bases(cls: type, /) -> tuple[Any, ...]: ...
function coroutine (line 633) | def coroutine(func: Callable[_P, Generator[Any, Any, _R]]) -> Callable[_...
function coroutine (line 635) | def coroutine(func: _Fn) -> _Fn: ...
class GenericAlias (line 638) | class GenericAlias:
method __origin__ (line 640) | def __origin__(self) -> type: ...
method __args__ (line 642) | def __args__(self) -> tuple[Any, ...]: ...
method __parameters__ (line 644) | def __parameters__(self) -> tuple[Any, ...]: ...
method __new__ (line 645) | def __new__(cls, origin: type, args: Any, /) -> Self: ...
method __getitem__ (line 646) | def __getitem__(self, typeargs: Any, /) -> GenericAlias: ...
method __eq__ (line 647) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 648) | def __hash__(self) -> int: ...
method __unpacked__ (line 651) | def __unpacked__(self) -> bool: ...
method __typing_unpacked_tuple_args__ (line 653) | def __typing_unpacked_tuple_args__(self) -> tuple[Any, ...] | None: ...
method __or__ (line 655) | def __or__(self, value: Any, /) -> UnionType: ...
method __ror__ (line 656) | def __ror__(self, value: Any, /) -> UnionType: ...
method __getattr__ (line 659) | def __getattr__(self, name: str) -> Any: ...
class UnionType (line 671) | class UnionType:
method __args__ (line 673) | def __args__(self) -> tuple[Any, ...]: ...
method __or__ (line 674) | def __or__(self, value: Any, /) -> UnionType: ...
method __ror__ (line 675) | def __ror__(self, value: Any, /) -> UnionType: ...
method __eq__ (line 676) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 677) | def __hash__(self) -> int: ...
class CapsuleType (line 681) | class CapsuleType: ...
FILE: mypy/typeshed/stdlib/typing.pyi
function final (line 136) | def final(f: _T) -> _T: ...
class TypeVar (line 138) | class TypeVar:
method __name__ (line 140) | def __name__(self) -> str: ...
method __bound__ (line 142) | def __bound__(self) -> Any | None: ...
method __constraints__ (line 144) | def __constraints__(self) -> tuple[Any, ...]: ...
method __covariant__ (line 146) | def __covariant__(self) -> bool: ...
method __contravariant__ (line 148) | def __contravariant__(self) -> bool: ...
method __infer_variance__ (line 151) | def __infer_variance__(self) -> bool: ...
method __default__ (line 154) | def __default__(self) -> Any: ...
method __new__ (line 156) | def __new__(
method __new__ (line 167) | def __new__(
method __new__ (line 177) | def __new__(
method __init__ (line 181) | def __init__(
method __or__ (line 185) | def __or__(self, right: Any) -> _SpecialForm: ...
method __ror__ (line 186) | def __ror__(self, left: Any) -> _SpecialForm: ...
method __typing_subst__ (line 188) | def __typing_subst__(self, arg: Any) -> Any: ...
method __typing_prepare_subst__ (line 190) | def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any...
method has_default (line 191) | def has_default(self) -> bool: ...
class _SpecialForm (line 198) | class _SpecialForm(_Final):
method __getitem__ (line 199) | def __getitem__(self, parameters: Any) -> object: ...
method __or__ (line 201) | def __or__(self, other: Any) -> _SpecialForm: ...
method __ror__ (line 202) | def __ror__(self, other: Any) -> _SpecialForm: ...
class Callable (line 210) | class Callable(Protocol[_P, _T_co]):
method __call__ (line 212) | def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _T_co: ...
class _NamedCallable (line 216) | class _NamedCallable(Callable, metaclass=ABCMeta):
class TypeVarTuple (line 242) | class TypeVarTuple:
method __name__ (line 244) | def __name__(self) -> str: ...
method __default__ (line 247) | def __default__(self) -> Any: ...
method has_default (line 248) | def has_default(self) -> bool: ...
method __new__ (line 250) | def __new__(cls, name: str, *, default: Any = ...) -> Self: ...
method __new__ (line 252) | def __new__(cls, name: str) -> Self: ...
method __init__ (line 254) | def __init__(self, name: str) -> None: ...
method __iter__ (line 256) | def __iter__(self) -> Any: ...
method __typing_subst__ (line 257) | def __typing_subst__(self, arg: Never) -> Never: ...
method __typing_prepare_subst__ (line 258) | def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any...
class ParamSpecArgs (line 262) | class ParamSpecArgs:
method __origin__ (line 264) | def __origin__(self) -> ParamSpec: ...
method __new__ (line 266) | def __new__(cls, origin: ParamSpec) -> Self: ...
method __init__ (line 268) | def __init__(self, origin: ParamSpec) -> None: ...
method __eq__ (line 270) | def __eq__(self, other: object) -> bool: ...
class ParamSpecKwargs (line 274) | class ParamSpecKwargs:
method __origin__ (line 276) | def __origin__(self) -> ParamSpec: ...
method __new__ (line 278) | def __new__(cls, origin: ParamSpec) -> Self: ...
method __init__ (line 280) | def __init__(self, origin: ParamSpec) -> None: ...
method __eq__ (line 282) | def __eq__(self, other: object) -> bool: ...
class ParamSpec (line 286) | class ParamSpec:
method __name__ (line 288) | def __name__(self) -> str: ...
method __bound__ (line 290) | def __bound__(self) -> Any | None: ...
method __covariant__ (line 292) | def __covariant__(self) -> bool: ...
method __contravariant__ (line 294) | def __contravariant__(self) -> bool: ...
method __infer_variance__ (line 297) | def __infer_variance__(self) -> bool: ...
method __default__ (line 300) | def __default__(self) -> Any: ...
method __new__ (line 302) | def __new__(
method __new__ (line 313) | def __new__(
method __new__ (line 323) | def __new__(
method __init__ (line 327) | def __init__(
method args (line 332) | def args(self) -> ParamSpecArgs: ...
method kwargs (line 334) | def kwargs(self) -> ParamSpecKwargs: ...
method __typing_subst__ (line 336) | def __typing_subst__(self, arg: Any) -> Any: ...
method __typing_prepare_subst__ (line 337) | def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any...
method __or__ (line 339) | def __or__(self, right: Any) -> _SpecialForm: ...
method __ror__ (line 340) | def __ror__(self, left: Any) -> _SpecialForm: ...
method has_default (line 342) | def has_default(self) -> bool: ...
class NewType (line 348) | class NewType:
method __init__ (line 349) | def __init__(self, name: str, tp: Any) -> None: ...
method __call__ (line 352) | def __call__(x: _T, /) -> _T: ...
method __call__ (line 354) | def __call__(self, x: _T) -> _T: ...
method __or__ (line 356) | def __or__(self, other: Any) -> _SpecialForm: ...
method __ror__ (line 357) | def __ror__(self, other: Any) -> _SpecialForm: ...
function NewType (line 361) | def NewType(name: str, tp: Any) -> Any: ...
method __init__ (line 349) | def __init__(self, name: str, tp: Any) -> None: ...
method __call__ (line 352) | def __call__(x: _T, /) -> _T: ...
method __call__ (line 354) | def __call__(self, x: _T) -> _T: ...
method __or__ (line 356) | def __or__(self, other: Any) -> _SpecialForm: ...
method __ror__ (line 357) | def __ror__(self, other: Any) -> _SpecialForm: ...
function overload (line 376) | def overload(func: _F) -> _F: ...
function no_type_check (line 377) | def no_type_check(arg: _F) -> _F: ...
function no_type_check_decorator (line 378) | def no_type_check_decorator(decorator: Callable[_P, _T]) -> Callable[_P,...
function type_check_only (line 381) | def type_check_only(func_or_cls: _F) -> _F: ...
class _Alias (line 385) | class _Alias:
method __getitem__ (line 387) | def __getitem__(self, typeargs: Any) -> Any: ...
class _ProtocolMeta (line 406) | class _ProtocolMeta(ABCMeta):
method __init__ (line 408) | def __init__(cls, *args: Any, **kwargs: Any) -> None: ...
function runtime_checkable (line 412) | def runtime_checkable(cls: _TC) -> _TC: ...
class SupportsInt (line 414) | class SupportsInt(Protocol, metaclass=ABCMeta):
method __int__ (line 416) | def __int__(self) -> int: ...
class SupportsFloat (line 419) | class SupportsFloat(Protocol, metaclass=ABCMeta):
method __float__ (line 421) | def __float__(self) -> float: ...
class SupportsComplex (line 424) | class SupportsComplex(Protocol, metaclass=ABCMeta):
method __complex__ (line 426) | def __complex__(self) -> complex: ...
class SupportsBytes (line 429) | class SupportsBytes(Protocol, metaclass=ABCMeta):
method __bytes__ (line 431) | def __bytes__(self) -> bytes: ...
class SupportsIndex (line 434) | class SupportsIndex(Protocol, metaclass=ABCMeta):
method __index__ (line 436) | def __index__(self) -> int: ...
class SupportsAbs (line 439) | class SupportsAbs(Protocol[_T_co]):
method __abs__ (line 441) | def __abs__(self) -> _T_co: ...
class SupportsRound (line 444) | class SupportsRound(Protocol[_T_co]):
method __round__ (line 447) | def __round__(self) -> int: ...
method __round__ (line 450) | def __round__(self, ndigits: int, /) -> _T_co: ...
class Sized (line 453) | class Sized(Protocol, metaclass=ABCMeta):
method __len__ (line 455) | def __len__(self) -> int: ...
class Hashable (line 458) | class Hashable(Protocol, metaclass=ABCMeta):
method __hash__ (line 463) | def __hash__(self) -> int: ...
class Iterable (line 466) | class Iterable(Protocol[_T_co]):
method __iter__ (line 468) | def __iter__(self) -> Iterator[_T_co]: ...
class Iterator (line 471) | class Iterator(Iterable[_T_co], Protocol[_T_co]):
method __next__ (line 473) | def __next__(self) -> _T_co: ...
method __iter__ (line 474) | def __iter__(self) -> Iterator[_T_co]: ...
class Reversible (line 477) | class Reversible(Iterable[_T_co], Protocol[_T_co]):
method __reversed__ (line 479) | def __reversed__(self) -> Iterator[_T_co]: ...
class Generator (line 486) | class Generator(Iterator[_YieldT_co], Protocol[_YieldT_co, _SendT_contra...
method __next__ (line 487) | def __next__(self) -> _YieldT_co: ...
method send (line 489) | def send(self, value: _SendT_contra, /) -> _YieldT_co: ...
method throw (line 492) | def throw(
method throw (line 497) | def throw(self, typ: BaseException, val: None = None, tb: TracebackTyp...
method close (line 499) | def close(self) -> _ReturnT_co | None: ...
method close (line 501) | def close(self) -> None: ...
method __iter__ (line 503) | def __iter__(self) -> Generator[_YieldT_co, _SendT_contra, _ReturnT_co...
class ContextManager (line 512) | class ContextManager(AbstractContextManager[_T_co, bool | None], Protoco...
class AsyncContextManager (line 515) | class AsyncContextManager(AbstractAsyncContextManager[_T_co, bool | None...
class Awaitable (line 518) | class Awaitable(Protocol[_T_co]):
method __await__ (line 520) | def __await__(self) -> Generator[Any, Any, _T_co]: ...
class Coroutine (line 526) | class Coroutine(Awaitable[_ReturnT_co_nd], Generic[_YieldT_co, _SendT_co...
method send (line 531) | def send(self, value: _SendT_contra_nd, /) -> _YieldT_co: ...
method throw (line 534) | def throw(
method throw (line 539) | def throw(self, typ: BaseException, val: None = None, tb: TracebackTyp...
method close (line 541) | def close(self) -> None: ...
class AwaitableGenerator (line 546) | class AwaitableGenerator(
class AsyncIterable (line 554) | class AsyncIterable(Protocol[_T_co]):
method __aiter__ (line 556) | def __aiter__(self) -> AsyncIterator[_T_co]: ...
class AsyncIterator (line 559) | class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]):
method __anext__ (line 561) | def __anext__(self) -> Awaitable[_T_co]: ...
method __aiter__ (line 562) | def __aiter__(self) -> AsyncIterator[_T_co]: ...
class AsyncGenerator (line 565) | class AsyncGenerator(AsyncIterator[_YieldT_co], Protocol[_YieldT_co, _Se...
method __anext__ (line 566) | def __anext__(self) -> Coroutine[Any, Any, _YieldT_co]: ...
method asend (line 568) | def asend(self, value: _SendT_contra, /) -> Coroutine[Any, Any, _Yield...
method athrow (line 571) | def athrow(
method athrow (line 576) | def athrow(
method aclose (line 579) | def aclose(self) -> Coroutine[Any, Any, None]: ...
class Container (line 582) | class Container(Protocol[_T_co]):
method __contains__ (line 585) | def __contains__(self, x: object, /) -> bool: ...
class Collection (line 588) | class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
method __len__ (line 591) | def __len__(self) -> int: ...
class Sequence (line 593) | class Sequence(Reversible[_T_co], Collection[_T_co]):
method __getitem__ (line 596) | def __getitem__(self, index: int) -> _T_co: ...
method __getitem__ (line 599) | def __getitem__(self, index: slice) -> Sequence[_T_co]: ...
method index (line 601) | def index(self, value: Any, start: int = 0, stop: int = ...) -> int: ...
method count (line 602) | def count(self, value: Any) -> int: ...
method __contains__ (line 603) | def __contains__(self, value: object) -> bool: ...
method __iter__ (line 604) | def __iter__(self) -> Iterator[_T_co]: ...
method __reversed__ (line 605) | def __reversed__(self) -> Iterator[_T_co]: ...
class MutableSequence (line 607) | class MutableSequence(Sequence[_T]):
method insert (line 609) | def insert(self, index: int, value: _T) -> None: ...
method __getitem__ (line 612) | def __getitem__(self, index: int) -> _T: ...
method __getitem__ (line 615) | def __getitem__(self, index: slice) -> MutableSequence[_T]: ...
method __setitem__ (line 618) | def __setitem__(self, index: int, value: _T) -> None: ...
method __setitem__ (line 621) | def __setitem__(self, index: slice, value: Iterable[_T]) -> None: ...
method __delitem__ (line 624) | def __delitem__(self, index: int) -> None: ...
method __delitem__ (line 627) | def __delitem__(self, index: slice) -> None: ...
method append (line 629) | def append(self, value: _T) -> None: ...
method clear (line 630) | def clear(self) -> None: ...
method extend (line 631) | def extend(self, values: Iterable[_T]) -> None: ...
method reverse (line 632) | def reverse(self) -> None: ...
method pop (line 633) | def pop(self, index: int = -1) -> _T: ...
method remove (line 634) | def remove(self, value: _T) -> None: ...
method __iadd__ (line 635) | def __iadd__(self, values: Iterable[_T]) -> typing_extensions.Self: ...
class AbstractSet (line 637) | class AbstractSet(Collection[_T_co]):
method __contains__ (line 639) | def __contains__(self, x: object) -> bool: ...
method _hash (line 640) | def _hash(self) -> int: ...
method __le__ (line 642) | def __le__(self, other: AbstractSet[Any]) -> bool: ...
method __lt__ (line 643) | def __lt__(self, other: AbstractSet[Any]) -> bool: ...
method __gt__ (line 644) | def __gt__(self, other: AbstractSet[Any]) -> bool: ...
method __ge__ (line 645) | def __ge__(self, other: AbstractSet[Any]) -> bool: ...
method __and__ (line 646) | def __and__(self, other: AbstractSet[Any]) -> AbstractSet[_T_co]: ...
method __or__ (line 647) | def __or__(self, other: AbstractSet[_T]) -> AbstractSet[_T_co | _T]: ...
method __sub__ (line 648) | def __sub__(self, other: AbstractSet[Any]) -> AbstractSet[_T_co]: ...
method __xor__ (line 649) | def __xor__(self, other: AbstractSet[_T]) -> AbstractSet[_T_co | _T]: ...
method __eq__ (line 650) | def __eq__(self, other: object) -> bool: ...
method isdisjoint (line 651) | def isdisjoint(self, other: Iterable[Any]) -> bool: ...
class MutableSet (line 653) | class MutableSet(AbstractSet[_T]):
method add (line 655) | def add(self, value: _T) -> None: ...
method discard (line 657) | def discard(self, value: _T) -> None: ...
method clear (line 659) | def clear(self) -> None: ...
method pop (line 660) | def pop(self) -> _T: ...
method remove (line 661) | def remove(self, value: _T) -> None: ...
method __ior__ (line 662) | def __ior__(self, it: AbstractSet[_T]) -> typing_extensions.Self: ... ...
method __iand__ (line 663) | def __iand__(self, it: AbstractSet[Any]) -> typing_extensions.Self: ...
method __ixor__ (line 664) | def __ixor__(self, it: AbstractSet[_T]) -> typing_extensions.Self: ......
method __isub__ (line 665) | def __isub__(self, it: AbstractSet[Any]) -> typing_extensions.Self: ...
class MappingView (line 667) | class MappingView(Sized):
method __init__ (line 668) | def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocum...
method __len__ (line 669) | def __len__(self) -> int: ...
class ItemsView (line 671) | class ItemsView(MappingView, AbstractSet[tuple[_KT_co, _VT_co]], Generic...
method __init__ (line 672) | def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # u...
method __and__ (line 673) | def __and__(self, other: Iterable[Any]) -> set[tuple[_KT_co, _VT_co]]:...
method __rand__ (line 674) | def __rand__(self, other: Iterable[_T]) -> set[_T]: ...
method __contains__ (line 675) | def __contains__(self, item: object) -> bool: ...
method __iter__ (line 676) | def __iter__(self) -> Iterator[tuple[_KT_co, _VT_co]]: ...
method __or__ (line 677) | def __or__(self, other: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _...
method __ror__ (line 678) | def __ror__(self, other: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | ...
method __sub__ (line 679) | def __sub__(self, other: Iterable[Any]) -> set[tuple[_KT_co, _VT_co]]:...
method __rsub__ (line 680) | def __rsub__(self, other: Iterable[_T]) -> set[_T]: ...
method __xor__ (line 681) | def __xor__(self, other: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | ...
method __rxor__ (line 682) | def __rxor__(self, other: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] |...
class KeysView (line 684) | class KeysView(MappingView, AbstractSet[_KT_co]):
method __init__ (line 685) | def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undo...
method __and__ (line 686) | def __and__(self, other: Iterable[Any]) -> set[_KT_co]: ...
method __rand__ (line 687) | def __rand__(self, other: Iterable[_T]) -> set[_T]: ...
method __contains__ (line 688) | def __contains__(self, key: object) -> bool: ...
method __iter__ (line 689) | def __iter__(self) -> Iterator[_KT_co]: ...
method __or__ (line 690) | def __or__(self, other: Iterable[_T]) -> set[_KT_co | _T]: ...
method __ror__ (line 691) | def __ror__(self, other: Iterable[_T]) -> set[_KT_co | _T]: ...
method __sub__ (line 692) | def __sub__(self, other: Iterable[Any]) -> set[_KT_co]: ...
method __rsub__ (line 693) | def __rsub__(self, other: Iterable[_T]) -> set[_T]: ...
method __xor__ (line 694) | def __xor__(self, other: Iterable[_T]) -> set[_KT_co | _T]: ...
method __rxor__ (line 695) | def __rxor__(self, other: Iterable[_T]) -> set[_KT_co | _T]: ...
class ValuesView (line 697) | class ValuesView(MappingView, Collection[_VT_co]):
method __init__ (line 698) | def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undo...
method __contains__ (line 699) | def __contains__(self, value: object) -> bool: ...
method __iter__ (line 700) | def __iter__(self) -> Iterator[_VT_co]: ...
class Mapping (line 702) | class Mapping(Collection[_KT_co], Generic[_KT_co, _VT_co]):
method __getitem__ (line 709) | def __getitem__(self, key: _KT_co, /) -> _VT_co: ... # type: ignore[u...
method get (line 713) | def get(self, key: _KT_co, /) -> _VT_co | None: ... # type: ignore[un...
method get (line 715) | def get(self, key: _KT_co, /, default: _VT_co | _T) -> _VT_co | _T: .....
method items (line 716) | def items(self) -> ItemsView[_KT_co, _VT_co]: ...
method keys (line 717) | def keys(self) -> KeysView[_KT_co]: ...
method values (line 718) | def values(self) -> ValuesView[_VT_co]: ...
method __contains__ (line 719) | def __contains__(self, key: object, /) -> bool: ...
method __eq__ (line 720) | def __eq__(self, other: object, /) -> bool: ...
class MutableMapping (line 722) | class MutableMapping(Mapping[_KT, _VT]):
method __setitem__ (line 724) | def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
method __delitem__ (line 726) | def __delitem__(self, key: _KT, /) -> None: ...
method clear (line 727) | def clear(self) -> None: ...
method pop (line 729) | def pop(self, key: _KT, /) -> _VT: ...
method pop (line 731) | def pop(self, key: _KT, /, default: _VT) -> _VT: ...
method pop (line 733) | def pop(self, key: _KT, /, default: _T) -> _VT | _T: ...
method popitem (line 734) | def popitem(self) -> tuple[_KT, _VT]: ...
method setdefault (line 742) | def setdefault(self: MutableMapping[_KT, _T | None], key: _KT, default...
method setdefault (line 744) | def setdefault(self, key: _KT, default: _VT, /) -> _VT: ...
method update (line 766) | def update(self, m: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs: _VT...
method update (line 768) | def update(self, m: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) -> No...
method update (line 770) | def update(self, **kwargs: _VT) -> None: ...
class IO (line 779) | class IO(Generic[AnyStr]):
method mode (line 784) | def mode(self) -> str: ...
method name (line 788) | def name(self) -> str | Any: ...
method close (line 790) | def close(self) -> None: ...
method closed (line 792) | def closed(self) -> bool: ...
method fileno (line 794) | def fileno(self) -> int: ...
method flush (line 796) | def flush(self) -> None: ...
method isatty (line 798) | def isatty(self) -> bool: ...
method read (line 800) | def read(self, n: int = -1, /) -> AnyStr: ...
method readable (line 802) | def readable(self) -> bool: ...
method readline (line 804) | def readline(self, limit: int = -1, /) -> AnyStr: ...
method readlines (line 806) | def readlines(self, hint: int = -1, /) -> list[AnyStr]: ...
method seek (line 808) | def seek(self, offset: int, whence: int = 0, /) -> int: ...
method seekable (line 810) | def seekable(self) -> bool: ...
method tell (line 812) | def tell(self) -> int: ...
method truncate (line 814) | def truncate(self, size: int | None = None, /) -> int: ...
method writable (line 816) | def writable(self) -> bool: ...
method write (line 819) | def write(self: IO[bytes], s: ReadableBuffer, /) -> int: ...
method write (line 822) | def write(self, s: AnyStr, /) -> int: ...
method writelines (line 825) | def writelines(self: IO[bytes], lines: Iterable[ReadableBuffer], /) ->...
method writelines (line 828) | def writelines(self, lines: Iterable[AnyStr], /) -> None: ...
method __next__ (line 830) | def __next__(self) -> AnyStr: ...
method __iter__ (line 832) | def __iter__(self) -> Iterator[AnyStr]: ...
method __enter__ (line 834) | def __enter__(self) -> IO[AnyStr]: ...
method __exit__ (line 836) | def __exit__(
class BinaryIO (line 840) | class BinaryIO(IO[bytes]):
method __enter__ (line 842) | def __enter__(self) -> BinaryIO: ...
class TextIO (line 844) | class TextIO(IO[str]):
method buffer (line 847) | def buffer(self) -> BinaryIO: ...
method encoding (line 849) | def encoding(self) -> str: ...
method errors (line 851) | def errors(self) -> str | None: ...
method line_buffering (line 853) | def line_buffering(self) -> int: ... # int on PyPy, bool on CPython
method newlines (line 855) | def newlines(self) -> Any: ... # None, str or tuple
method __enter__ (line 857) | def __enter__(self) -> TextIO: ...
function get_type_hints (line 877) | def get_type_hints(
function get_type_hints (line 885) | def get_type_hints(
function get_args (line 889) | def get_args(tp: Any) -> tuple[Any, ...]: ...
function get_origin (line 893) | def get_origin(tp: ParamSpecArgs | ParamSpecKwargs) -> ParamSpec: ...
function get_origin (line 895) | def get_origin(tp: UnionType) -> type[UnionType]: ...
function get_origin (line 899) | def get_origin(tp: GenericAlias) -> type: ...
function get_origin (line 901) | def get_origin(tp: Any) -> object: ...
function get_origin (line 904) | def get_origin(tp: Any) -> object: ...
function cast (line 907) | def cast(typ: type[_T], val: Any) -> _T: ...
function cast (line 909) | def cast(typ: str, val: Any) -> Any: ...
function cast (line 911) | def cast(typ: object, val: Any) -> Any: ...
function reveal_type (line 914) | def reveal_type(obj: _T, /) -> _T: ...
function assert_never (line 915) | def assert_never(arg: Never, /) -> Never: ...
function assert_type (line 916) | def assert_type(val: _T, typ: Any, /) -> _T: ...
function clear_overloads (line 917) | def clear_overloads() -> None: ...
function get_overloads (line 918) | def get_overloads(func: Callable[..., object]) -> Sequence[Callable[...,...
function dataclass_transform (line 919) | def dataclass_transform(
class NamedTuple (line 931) | class NamedTuple(tuple[Any, ...]):
method __init__ (line 942) | def __init__(self, typename: str, fields: Iterable[tuple[str, Any]], /...
method __init__ (line 947) | def __init__(self, typename: str, fields: None = None, /, **kwargs: An...
method _make (line 949) | def _make(cls, iterable: Iterable[Any]) -> typing_extensions.Self: ...
method _asdict (line 950) | def _asdict(self) -> dict[str, Any]: ...
method _replace (line 951) | def _replace(self, **kwargs: Any) -> typing_extensions.Self: ...
method __replace__ (line 953) | def __replace__(self, **kwargs: Any) -> typing_extensions.Self: ...
class _TypedDict (line 958) | class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
method copy (line 968) | def copy(self) -> typing_extensions.Self: ...
method setdefault (line 971) | def setdefault(self, k: _Never, default: object) -> object: ...
method pop (line 973) | def pop(self, k: _Never, default: _T = ...) -> object: ... # pyright:...
method update (line 974) | def update(self: _T, m: _T, /) -> None: ...
method __delitem__ (line 975) | def __delitem__(self, k: _Never) -> None: ...
method items (line 976) | def items(self) -> dict_items[str, object]: ...
method keys (line 977) | def keys(self) -> dict_keys[str, object]: ...
method values (line 978) | def values(self) -> dict_values[str, object]: ...
method __or__ (line 981) | def __or__(self, value: typing_extensions.Self, /) -> typing_extension...
method __or__ (line 983) | def __or__(self, value: dict[str, Any], /) -> dict[str, object]: ...
method __ror__ (line 985) | def __ror__(self, value: typing_extensions.Self, /) -> typing_extensio...
method __ror__ (line 987) | def __ror__(self, value: dict[str, Any], /) -> dict[str, object]: ...
method __ior__ (line 989) | def __ior__(self, value: typing_extensions.Self, /) -> typing_extensio...
class ForwardRef (line 992) | class ForwardRef(_Final):
method __init__ (line 1002) | def __init__(self, arg: str, is_argument: bool = True, module: Any | N...
method __init__ (line 1004) | def __init__(self, arg: str, is_argument: bool = True) -> None: ...
method _evaluate (line 1013) | def _evaluate(
method _evaluate (line 1017) | def _evaluate(
method _evaluate (line 1026) | def _evaluate(
method _evaluate (line 1035) | def _evaluate(
method _evaluate (line 1039) | def _evaluate(self, globalns: dict[str, Any] | None, localns: Mapping[...
method __eq__ (line 1041) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 1042) | def __hash__(self) -> int: ...
method __or__ (line 1044) | def __or__(self, other: Any) -> _SpecialForm: ...
method __ror__ (line 1045) | def __ror__(self, other: Any) -> _SpecialForm: ...
function is_typeddict (line 1048) | def is_typeddict(tp: object) -> bool: ...
class _Final (line 1050) | class _Final:
method __init_subclass__ (line 1053) | def __init_subclass__(__cls, *args: object, **kwds: object): ...
class _BaseGenericAlias (line 1056) | class _BaseGenericAlias(_Final, _root=True):
method __init__ (line 1058) | def __init__(self, origin: type, *, inst: bool = ..., name: str | None...
class _GenericAlias (line 1065) | class _GenericAlias(_BaseGenericAlias, _root=True):
method __init__ (line 1066) | def __init__(
method __hash__ (line 1083) | def __hash__(self) -> int: ...
method __or__ (line 1084) | def __or__(self, right: object) -> _SpecialForm: ...
method __ror__ (line 1085) | def __ror__(self, left: object) -> _SpecialForm: ...
method __getitem__ (line 1086) | def __getitem__(self: _T, params: _Params) -> _T: ...
method copy_with (line 1087) | def copy_with(self: _T, params: _Params) -> _T: ...
method __mro_entries__ (line 1097) | def __mro_entries__(self, bases: tuple[type, ...]) -> tuple[type, ...]...
function _type_repr (line 1099) | def _type_repr(obj: object) -> str: ...
function override (line 1102) | def override(method: _F, /) -> _F: ...
class TypeAliasType (line 1104) | class TypeAliasType:
method __new__ (line 1105) | def __new__(cls, name: str, value: Any, *, type_params: tuple[TypeVar ...
method __value__ (line 1107) | def __value__(self) -> Any: ...
method __type_params__ (line 1109) | def __type_params__(self) -> tuple[TypeVar | ParamSpec | TypeVarTuple,...
method __parameters__ (line 1111) | def __parameters__(self) -> tuple[Any, ...]: ...
method __name__ (line 1113) | def __name__(self) -> str: ...
method __module__ (line 1116) | def __module__(self) -> str | None: ... # type: ignore[override]
method __getitem__ (line 1117) | def __getitem__(self, parameters: Any) -> GenericAlias: ...
method __or__ (line 1118) | def __or__(self, right: Any) -> _SpecialForm: ...
method __ror__ (line 1119) | def __ror__(self, left: Any) -> _SpecialForm: ...
function is_protocol (line 1122) | def is_protocol(tp: type, /) -> bool: ...
function get_protocol_members (line 1123) | def get_protocol_members(tp: type, /) -> frozenset[str]: ...
class _NoDefaultType (line 1125) | class _NoDefaultType: ...
FILE: mypy/typeshed/stdlib/typing_extensions.pyi
class _Final (line 191) | class _Final: ... # This should be imported from typing but that breaks...
class _SpecialForm (line 194) | class _SpecialForm(_Final):
method __getitem__ (line 195) | def __getitem__(self, parameters: Any) -> object: ...
method __or__ (line 197) | def __or__(self, other: Any) -> _SpecialForm: ...
method __ror__ (line 198) | def __ror__(self, other: Any) -> _SpecialForm: ...
function runtime_checkable (line 207) | def runtime_checkable(cls: _TC) -> _TC: ...
function final (line 213) | def final(f: _F) -> _F: ...
function IntVar (line 217) | def IntVar(name: str) -> Any: ... # returns a new TypeVar
class _TypedDict (line 222) | class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
method copy (line 233) | def copy(self) -> Self: ...
method setdefault (line 236) | def setdefault(self, k: Never, default: object) -> object: ...
method pop (line 238) | def pop(self, k: Never, default: _T = ...) -> object: ... # pyright: ...
method update (line 239) | def update(self: _T, m: _T, /) -> None: ...
method items (line 240) | def items(self) -> dict_items[str, object]: ...
method keys (line 241) | def keys(self) -> dict_keys[str, object]: ...
method values (line 242) | def values(self) -> dict_values[str, object]: ...
method __delitem__ (line 243) | def __delitem__(self, k: Never) -> None: ...
method __or__ (line 246) | def __or__(self, value: Self, /) -> Self: ...
method __or__ (line 248) | def __or__(self, value: dict[str, Any], /) -> dict[str, object]: ...
method __ror__ (line 250) | def __ror__(self, value: Self, /) -> Self: ...
method __ror__ (line 252) | def __ror__(self, value: dict[str, Any], /) -> dict[str, object]: ...
method __ior__ (line 254) | def __ior__(self, value: Self, /) -> Self: ... # type: ignore[misc]
function get_type_hints (line 258) | def get_type_hints(
function get_args (line 264) | def get_args(tp: Any) -> tuple[Any, ...]: ...
function get_origin (line 268) | def get_origin(tp: UnionType) -> type[UnionType]: ...
function get_origin (line 272) | def get_origin(tp: GenericAlias) -> type: ...
function get_origin (line 275) | def get_origin(tp: ParamSpecArgs | ParamSpecKwargs) -> ParamSpec: ...
function get_origin (line 277) | def get_origin(tp: Any) -> Any | None: ...
class ParamSpecArgs (line 294) | class ParamSpecArgs:
method __origin__ (line 296) | def __origin__(self) -> ParamSpec: ...
method __init__ (line 297) | def __init__(self, origin: ParamSpec) -> None: ...
class ParamSpecKwargs (line 300) | class ParamSpecKwargs:
method __origin__ (line 302) | def __origin__(self) -> ParamSpec: ...
method __init__ (line 303) | def __init__(self, origin: ParamSpec) -> None: ...
function is_typeddict (line 308) | def is_typeddict(tp: object) -> bool: ...
function reveal_type (line 331) | def reveal_type(obj: _T, /) -> _T: ...
function assert_never (line 332) | def assert_never(arg: Never, /) -> Never: ...
function assert_type (line 333) | def assert_type(val: _T, typ: Any, /) -> _T: ...
function clear_overloads (line 334) | def clear_overloads() -> None: ...
function get_overloads (line 335) | def get_overloads(func: Callable[..., object]) -> Sequence[Callable[...,...
function dataclass_transform (line 342) | def dataclass_transform(
class NamedTuple (line 352) | class NamedTuple(tuple[Any, ...]):
method __init__ (line 359) | def __init__(self, typename: str, fields: Iterable[tuple[str, Any]] = ...
method __init__ (line 361) | def __init__(self, typename: str, fields: None = None, **kwargs: Any) ...
method _make (line 363) | def _make(cls, iterable: Iterable[Any]) -> Self: ...
method _asdict (line 364) | def _asdict(self) -> dict[str, Any]: ...
method _replace (line 365) | def _replace(self, **kwargs: Any) -> Self: ...
class NewType (line 367) | class NewType:
method __init__ (line 368) | def __init__(self, name: str, tp: Any) -> None: ...
method __call__ (line 369) | def __call__(self, obj: _T, /) -> _T: ...
method __or__ (line 372) | def __or__(self, other: Any) -> _SpecialForm: ...
method __ror__ (line 373) | def __ror__(self, other: Any) -> _SpecialForm: ...
function override (line 390) | def override(arg: _F, /) -> _F: ...
function get_original_bases (line 391) | def get_original_bases(cls: type, /) -> tuple[Any, ...]: ...
class TypeAliasType (line 393) | class TypeAliasType:
method __init__ (line 394) | def __init__(
method __value__ (line 398) | def __value__(self) -> Any: ...
method __type_params__ (line 400) | def __type_params__(self) -> tuple[TypeVar | ParamSpec | TypeVarTuple,...
method __parameters__ (line 402) | def __parameters__(self) -> tuple[Any, ...]: ...
method __name__ (line 404) | def __name__(self) -> str: ...
method __module__ (line 407) | def __module__(self) -> str | None: ... # type: ignore[override]
method __getitem__ (line 409) | def __getitem__(self, parameters: Any) -> Any: ...
method __or__ (line 411) | def __or__(self, right: Any) -> _SpecialForm: ...
method __ror__ (line 412) | def __ror__(self, left: Any) -> _SpecialForm: ...
class Buffer (line 418) | class Buffer(Protocol, abc.ABC): # type: ignore[misc] # pyright: ignor...
method __buffer__ (line 421) | def __buffer__(self, flags: int, /) -> memoryview: ...
class SupportsInt (line 424) | class SupportsInt(Protocol, metaclass=abc.ABCMeta):
method __int__ (line 426) | def __int__(self) -> int: ...
class SupportsFloat (line 429) | class SupportsFloat(Protocol, metaclass=abc.ABCMeta):
method __float__ (line 431) | def __float__(self) -> float: ...
class SupportsComplex (line 434) | class SupportsComplex(Protocol, metaclass=abc.ABCMeta):
method __complex__ (line 436) | def __complex__(self) -> complex: ...
class SupportsBytes (line 439) | class SupportsBytes(Protocol, metaclass=abc.ABCMeta):
method __bytes__ (line 441) | def __bytes__(self) -> bytes: ...
class SupportsIndex (line 444) | class SupportsIndex(Protocol, metaclass=abc.ABCMeta):
method __index__ (line 446) | def __index__(self) -> int: ...
class SupportsAbs (line 449) | class SupportsAbs(Protocol[_T_co]):
method __abs__ (line 451) | def __abs__(self) -> _T_co: ...
class SupportsRound (line 454) | class SupportsRound(Protocol[_T_co]):
method __round__ (line 457) | def __round__(self) -> int: ...
method __round__ (line 460) | def __round__(self, ndigits: int, /) -> _T_co: ...
function is_protocol (line 476) | def is_protocol(tp: type, /) -> bool: ...
function get_protocol_members (line 477) | def get_protocol_members(tp: type, /) -> frozenset[str]: ...
class _NoDefaultType (line 479) | class _NoDefaultType: ...
class CapsuleType (line 483) | class CapsuleType: ...
class deprecated (line 485) | class deprecated:
method __init__ (line 489) | def __init__(self, message: LiteralString, /, *, category: type[Warnin...
method __call__ (line 490) | def __call__(self, arg: _T, /) -> _T: ...
class TypeVar (line 493) | class TypeVar:
method __name__ (line 495) | def __name__(self) -> str: ...
method __bound__ (line 497) | def __bound__(self) -> Any | None: ...
method __constraints__ (line 499) | def __constraints__(self) -> tuple[Any, ...]: ...
method __covariant__ (line 501) | def __covariant__(self) -> bool: ...
method __contravariant__ (line 503) | def __contravariant__(self) -> bool: ...
method __infer_variance__ (line 505) | def __infer_variance__(self) -> bool: ...
method __default__ (line 507) | def __default__(self) -> Any: ...
method __init__ (line 508) | def __init__(
method has_default (line 518) | def has_default(self) -> bool: ...
method __typing_prepare_subst__ (line 519) | def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any...
method __or__ (line 521) | def __or__(self, right: Any) -> _SpecialForm: ...
method __ror__ (line 522) | def __ror__(self, left: Any) -> _SpecialForm: ...
method __typing_subst__ (line 524) | def __typing_subst__(self, arg: Any) -> Any: ...
class ParamSpec (line 527) | class ParamSpec:
method __name__ (line 529) | def __name__(self) -> str: ...
method __bound__ (line 531) | def __bound__(self) -> Any | None: ...
method __covariant__ (line 533) | def __covariant__(self) -> bool: ...
method __contravariant__ (line 535) | def __contravariant__(self) -> bool: ...
method __infer_variance__ (line 537) | def __infer_variance__(self) -> bool: ...
method __default__ (line 539) | def __default__(self) -> Any: ...
method __init__ (line 540) | def __init__(
method args (line 550) | def args(self) -> ParamSpecArgs: ...
method kwargs (line 552) | def kwargs(self) -> ParamSpecKwargs: ...
method has_default (line 553) | def has_default(self) -> bool: ...
method __typing_prepare_subst__ (line 554) | def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any...
method __or__ (line 556) | def __or__(self, right: Any) -> _SpecialForm: ...
method __ror__ (line 557) | def __ror__(self, left: Any) -> _SpecialForm: ...
class TypeVarTuple (line 560) | class TypeVarTuple:
method __name__ (line 562) | def __name__(self) -> str: ...
method __default__ (line 564) | def __default__(self) -> Any: ...
method __init__ (line 565) | def __init__(self, name: str, *, default: Any = ...) -> None: ...
method __iter__ (line 566) | def __iter__(self) -> Any: ... # Unpack[Self]
method has_default (line 567) | def has_default(self) -> bool: ...
method __typing_prepare_subst__ (line 568) | def __typing_prepare_subst__(self, alias: Any, args: Any) -> tuple[Any...
class Doc (line 573) | class Doc:
method __init__ (line 575) | def __init__(self, documentation: str, /) -> None: ...
method __hash__ (line 576) | def __hash__(self) -> int: ...
method __eq__ (line 577) | def __eq__(self, other: object) -> bool: ...
FILE: mypy/typeshed/stdlib/unicodedata.pyi
function bidirectional (line 16) | def bidirectional(chr: str, /) -> str: ...
function category (line 17) | def category(chr: str, /) -> str: ...
function combining (line 18) | def combining(chr: str, /) -> int: ...
function decimal (line 20) | def decimal(chr: str, /) -> int: ...
function decimal (line 22) | def decimal(chr: str, default: _T, /) -> int | _T: ...
function decomposition (line 23) | def decomposition(chr: str, /) -> str: ...
function digit (line 25) | def digit(chr: str, /) -> int: ...
function digit (line 27) | def digit(chr: str, default: _T, /) -> int | _T: ...
function east_asian_width (line 31) | def east_asian_width(chr: str, /) -> _EastAsianWidth: ...
function is_normalized (line 32) | def is_normalized(form: _NormalizationForm, unistr: str, /) -> bool: ...
function lookup (line 33) | def lookup(name: str | ReadOnlyBuffer, /) -> str: ...
function mirrored (line 34) | def mirrored(chr: str, /) -> int: ...
function name (line 36) | def name(chr: str, /) -> str: ...
function name (line 38) | def name(chr: str, default: _T, /) -> str | _T: ...
function normalize (line 39) | def normalize(form: _NormalizationForm, unistr: str, /) -> str: ...
function numeric (line 41) | def numeric(chr: str, /) -> float: ...
function numeric (line 43) | def numeric(chr: str, default: _T, /) -> float | _T: ...
class UCD (line 45) | class UCD:
method bidirectional (line 49) | def bidirectional(self, chr: str, /) -> str: ...
method category (line 50) | def category(self, chr: str, /) -> str: ...
method combining (line 51) | def combining(self, chr: str, /) -> int: ...
method decimal (line 53) | def decimal(self, chr: str, /) -> int: ...
method decimal (line 55) | def decimal(self, chr: str, default: _T, /) -> int | _T: ...
method decomposition (line 56) | def decomposition(self, chr: str, /) -> str: ...
method digit (line 58) | def digit(self, chr: str, /) -> int: ...
method digit (line 60) | def digit(self, chr: str, default: _T, /) -> int | _T: ...
method east_asian_width (line 61) | def east_asian_width(self, chr: str, /) -> _EastAsianWidth: ...
method is_normalized (line 62) | def is_normalized(self, form: _NormalizationForm, unistr: str, /) -> b...
method lookup (line 63) | def lookup(self, name: str | ReadOnlyBuffer, /) -> str: ...
method mirrored (line 64) | def mirrored(self, chr: str, /) -> int: ...
method name (line 66) | def name(self, chr: str, /) -> str: ...
method name (line 68) | def name(self, chr: str, default: _T, /) -> str | _T: ...
method normalize (line 69) | def normalize(self, form: _NormalizationForm, unistr: str, /) -> str: ...
method numeric (line 71) | def numeric(self, chr: str, /) -> float: ...
method numeric (line 73) | def numeric(self, chr: str, default: _T, /) -> float | _T: ...
FILE: mypy/typeshed/stdlib/unittest/__init__.pyi
function load_tests (line 61) | def load_tests(loader: TestLoader, tests: TestSuite, pattern: str | None...
function __dir__ (line 63) | def __dir__() -> set[str]: ...
FILE: mypy/typeshed/stdlib/unittest/_log.pyi
class _LoggingWatcher (line 9) | class _LoggingWatcher(NamedTuple):
class _AssertLogsContext (line 13) | class _AssertLogsContext(_BaseTestCaseContext, Generic[_L]):
method __init__ (line 19) | def __init__(self, test_case: TestCase, logger_name: str, level: int, ...
method __init__ (line 22) | def __init__(self, test_case: TestCase, logger_name: str, level: int) ...
method __enter__ (line 24) | def __enter__(self) -> _L: ...
method __exit__ (line 25) | def __exit__(
FILE: mypy/typeshed/stdlib/unittest/async_case.pyi
class IsolatedAsyncioTestCase (line 15) | class IsolatedAsyncioTestCase(TestCase):
method asyncSetUp (line 19) | async def asyncSetUp(self) -> None: ...
method asyncTearDown (line 20) | async def asyncTearDown(self) -> None: ...
method addAsyncCleanup (line 21) | def addAsyncCleanup(self, func: Callable[_P, Awaitable[object]], /, *a...
method enterAsyncContext (line 23) | async def enterAsyncContext(self, cm: AbstractAsyncContextManager[_T])...
method __del__ (line 25) | def __del__(self) -> None: ...
FILE: mypy/typeshed/stdlib/unittest/case.pyi
class _BaseTestCaseContext (line 40) | class _BaseTestCaseContext:
method __init__ (line 42) | def __init__(self, test_case: TestCase) -> None: ...
class _AssertRaisesBaseContext (line 44) | class _AssertRaisesBaseContext(_BaseTestCaseContext):
method __init__ (line 50) | def __init__(
method handle (line 59) | def handle(self, name: str, args: list[Any], kwargs: dict[str, Any]) -...
class _LoggingWatcher (line 69) | class _LoggingWatcher(NamedTuple):
class _AssertLogsContext (line 73) | class _AssertLogsContext(_BaseTestCaseContext, Generic[_L]):
method __init__ (line 78) | def __init__(self, test_case: TestCase, logger_name: str, level: int) ...
method __enter__ (line 79) | def __enter__(self) -> _LoggingWatcher: ...
method __exit__ (line 80) | def __exit__(
function addModuleCleanup (line 84) | def addModuleCleanup(function: Callable[_P, object], /, *args: _P.args, ...
function doModuleCleanups (line 85) | def doModuleCleanups() -> None: ...
function enterModuleContext (line 88) | def enterModuleContext(cm: AbstractContextManager[_T]) -> _T: ...
function expectedFailure (line 90) | def expectedFailure(test_item: _FT) -> _FT: ...
function skip (line 91) | def skip(reason: str) -> Callable[[_FT], _FT]: ...
function skipIf (line 92) | def skipIf(condition: object, reason: str) -> Callable[[_FT], _FT]: ...
function skipUnless (line 93) | def skipUnless(condition: object, reason: str) -> Callable[[_FT], _FT]: ...
class SkipTest (line 95) | class SkipTest(Exception):
method __init__ (line 96) | def __init__(self, reason: str) -> None: ...
class _SupportsAbsAndDunderGE (line 98) | class _SupportsAbsAndDunderGE(SupportsDunderGE[Any], SupportsAbs[Any], P...
class TestCase (line 108) | class TestCase:
method __init__ (line 116) | def __init__(self, methodName: str = "runTest") -> None: ...
method __eq__ (line 117) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 118) | def __hash__(self) -> int: ...
method setUp (line 119) | def setUp(self) -> None: ...
method tearDown (line 120) | def tearDown(self) -> None: ...
method setUpClass (line 122) | def setUpClass(cls) -> None: ...
method tearDownClass (line 124) | def tearDownClass(cls) -> None: ...
method run (line 125) | def run(self, result: unittest.result.TestResult | None = None) -> uni...
method __call__ (line 126) | def __call__(self, result: unittest.result.TestResult | None = ...) ->...
method skipTest (line 127) | def skipTest(self, reason: Any) -> NoReturn: ...
method subTest (line 128) | def subTest(self, msg: Any = ..., **params: Any) -> AbstractContextMan...
method debug (line 129) | def debug(self) -> None: ...
method _addSkip (line 131) | def _addSkip(self, result: unittest.result.TestResult, test_case: Test...
method assertEqual (line 133) | def assertEqual(self, first: Any, second: Any, msg: Any = None) -> Non...
method assertNotEqual (line 134) | def assertNotEqual(self, first: Any, second: Any, msg: Any = None) -> ...
method assertTrue (line 135) | def assertTrue(self, expr: Any, msg: Any = None) -> None: ...
method assertFalse (line 136) | def assertFalse(self, expr: Any, msg: Any = None) -> None: ...
method assertIs (line 137) | def assertIs(self, expr1: object, expr2: object, msg: Any = None) -> N...
method assertIsNot (line 138) | def assertIsNot(self, expr1: object, expr2: object, msg: Any = None) -...
method assertIsNone (line 139) | def assertIsNone(self, obj: object, msg: Any = None) -> None: ...
method assertIsNotNone (line 140) | def assertIsNotNone(self, obj: object, msg: Any = None) -> None: ...
method assertIn (line 141) | def assertIn(self, member: Any, container: Iterable[Any] | Container[A...
method assertNotIn (line 142) | def assertNotIn(self, member: Any, container: Iterable[Any] | Containe...
method assertIsInstance (line 143) | def assertIsInstance(self, obj: object, cls: _ClassInfo, msg: Any = No...
method assertNotIsInstance (line 144) | def assertNotIsInstance(self, obj: object, cls: _ClassInfo, msg: Any =...
method assertGreater (line 146) | def assertGreater(self, a: SupportsDunderGT[_T], b: _T, msg: Any = Non...
method assertGreater (line 148) | def assertGreater(self, a: _T, b: SupportsDunderLT[_T], msg: Any = Non...
method assertGreaterEqual (line 150) | def assertGreaterEqual(self, a: SupportsDunderGE[_T], b: _T, msg: Any ...
method assertGreaterEqual (line 152) | def assertGreaterEqual(self, a: _T, b: SupportsDunderLE[_T], msg: Any ...
method assertLess (line 154) | def assertLess(self, a: SupportsDunderLT[_T], b: _T, msg: Any = None) ...
method assertLess (line 156) | def assertLess(self, a: _T, b: SupportsDunderGT[_T], msg: Any = None) ...
method assertLessEqual (line 158) | def assertLessEqual(self, a: SupportsDunderLE[_T], b: _T, msg: Any = N...
method assertLessEqual (line 160) | def assertLessEqual(self, a: _T, b: SupportsDunderGE[_T], msg: Any = N...
method assertRaises (line 165) | def assertRaises(
method assertRaises (line 173) | def assertRaises(
method assertRaisesRegex (line 177) | def assertRaisesRegex(
method assertRaisesRegex (line 186) | def assertRaisesRegex(
method assertWarns (line 190) | def assertWarns(
method assertWarns (line 198) | def assertWarns(
method assertWarnsRegex (line 202) | def assertWarnsRegex(
method assertWarnsRegex (line 211) | def assertWarnsRegex(
method assertLogs (line 214) | def assertLogs(
method assertNoLogs (line 218) | def assertNoLogs(
method assertAlmostEqual (line 223) | def assertAlmostEqual(self, first: _S, second: _S, places: None, msg: ...
method assertAlmostEqual (line 225) | def assertAlmostEqual(
method assertAlmostEqual (line 229) | def assertAlmostEqual(
method assertAlmostEqual (line 238) | def assertAlmostEqual(
method assertNotAlmostEqual (line 247) | def assertNotAlmostEqual(self, first: _S, second: _S, places: None, ms...
method assertNotAlmostEqual (line 249) | def assertNotAlmostEqual(
method assertNotAlmostEqual (line 253) | def assertNotAlmostEqual(
method assertNotAlmostEqual (line 262) | def assertNotAlmostEqual(
method assertRegex (line 270) | def assertRegex(self, text: AnyStr, expected_regex: AnyStr | Pattern[A...
method assertNotRegex (line 271) | def assertNotRegex(self, text: AnyStr, unexpected_regex: AnyStr | Patt...
method assertCountEqual (line 272) | def assertCountEqual(self, first: Iterable[Any], second: Iterable[Any]...
method addTypeEqualityFunc (line 273) | def addTypeEqualityFunc(self, typeobj: type[Any], function: Callable[....
method assertMultiLineEqual (line 274) | def assertMultiLineEqual(self, first: str, second: str, msg: Any = Non...
method assertSequenceEqual (line 275) | def assertSequenceEqual(
method assertListEqual (line 278) | def assertListEqual(self, list1: list[Any], list2: list[Any], msg: Any...
method assertTupleEqual (line 279) | def assertTupleEqual(self, tuple1: tuple[Any, ...], tuple2: tuple[Any,...
method assertSetEqual (line 280) | def assertSetEqual(self, set1: AbstractSet[object], set2: AbstractSet[...
method assertDictEqual (line 283) | def assertDictEqual(self, d1: Mapping[Any, object], d2: Mapping[Any, o...
method fail (line 284) | def fail(self, msg: Any = None) -> NoReturn: ...
method countTestCases (line 285) | def countTestCases(self) -> int: ...
method defaultTestResult (line 286) | def defaultTestResult(self) -> unittest.result.TestResult: ...
method id (line 287) | def id(self) -> str: ...
method shortDescription (line 288) | def shortDescription(self) -> str | None: ...
method addCleanup (line 289) | def addCleanup(self, function: Callable[_P, object], /, *args: _P.args...
method enterContext (line 292) | def enterContext(self, cm: AbstractContextManager[_T]) -> _T: ...
method doCleanups (line 294) | def doCleanups(self) -> None: ...
method addClassCleanup (line 296) | def addClassCleanup(cls, function: Callable[_P, object], /, *args: _P....
method doClassCleanups (line 298) | def doClassCleanups(cls) -> None: ...
method enterClassContext (line 302) | def enterClassContext(cls, cm: AbstractContextManager[_T]) -> _T: ...
method _formatMessage (line 304) | def _formatMessage(self, msg: str | None, standardMsg: str) -> str: .....
method _getAssertEqualityFunc (line 305) | def _getAssertEqualityFunc(self, first: Any, second: Any) -> Callable[...
method assertDictContainsSubset (line 322) | def assertDictContainsSubset(
class FunctionTestCase (line 326) | class FunctionTestCase(TestCase):
method __init__ (line 327) | def __init__(
method runTest (line 334) | def runTest(self) -> None: ...
method __hash__ (line 335) | def __hash__(self) -> int: ...
method __eq__ (line 336) | def __eq__(self, other: object) -> bool: ...
class _AssertRaisesContext (line 338) | class _AssertRaisesContext(_AssertRaisesBaseContext, Generic[_E]):
method __enter__ (line 340) | def __enter__(self) -> Self: ...
method __exit__ (line 341) | def __exit__(
method __class_getitem__ (line 345) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class _AssertWarnsContext (line 347) | class _AssertWarnsContext(_AssertRaisesBaseContext):
method __enter__ (line 352) | def __enter__(self) -> Self: ...
method __exit__ (line 353) | def __exit__(
FILE: mypy/typeshed/stdlib/unittest/loader.pyi
class TestLoader (line 15) | class TestLoader:
method loadTestsFromTestCase (line 21) | def loadTestsFromTestCase(self, testCaseClass: type[unittest.case.Test...
method loadTestsFromModule (line 23) | def loadTestsFromModule(self, module: ModuleType, *, pattern: str | No...
method loadTestsFromModule (line 25) | def loadTestsFromModule(self, module: ModuleType, *args: Any, pattern:...
method loadTestsFromName (line 27) | def loadTestsFromName(self, name: str, module: ModuleType | None = Non...
method loadTestsFromNames (line 28) | def loadTestsFromNames(self, names: Sequence[str], module: ModuleType ...
method getTestCaseNames (line 29) | def getTestCaseNames(self, testCaseClass: type[unittest.case.TestCase]...
method discover (line 30) | def discover(
method _match_path (line 33) | def _match_path(self, path: str, full_path: str, pattern: str) -> bool...
function getTestCaseNames (line 39) | def getTestCaseNames(
function makeSuite (line 46) | def makeSuite(
function findTestCases (line 53) | def findTestCases(
FILE: mypy/typeshed/stdlib/unittest/main.pyi
class _TestRunner (line 14) | class _TestRunner(Protocol):
method run (line 15) | def run(self, test: unittest.suite.TestSuite | unittest.case.TestCase,...
class TestProgram (line 18) | class TestProgram:
method __init__ (line 30) | def __init__(
method __init__ (line 48) | def __init__(
method usageExit (line 67) | def usageExit(self, msg: Any = None) -> None: ...
method parseArgs (line 69) | def parseArgs(self, argv: list[str]) -> None: ...
method createTests (line 70) | def createTests(self, from_discovery: bool = False, Loader: unittest.l...
method runTests (line 71) | def runTests(self) -> None: ... # undocumented
FILE: mypy/typeshed/stdlib/unittest/mock.pyi
class _SentinelObject (line 59) | class _SentinelObject:
method __init__ (line 61) | def __init__(self, name: Any) -> None: ...
class _Sentinel (line 63) | class _Sentinel:
method __getattr__ (line 64) | def __getattr__(self, name: str) -> Any: ...
class _Call (line 73) | class _Call(tuple[Any, ...]):
method __new__ (line 74) | def __new__(
method __init__ (line 80) | def __init__(
method __eq__ (line 89) | def __eq__(self, other: object) -> bool: ...
method __ne__ (line 90) | def __ne__(self, value: object, /) -> bool: ...
method __call__ (line 91) | def __call__(self, *args: Any, **kwargs: Any) -> _Call: ...
method __getattr__ (line 92) | def __getattr__(self, attr: str) -> Any: ...
method __getattribute__ (line 93) | def __getattribute__(self, attr: str) -> Any: ...
method args (line 95) | def args(self) -> tuple[Any, ...]: ...
method kwargs (line 97) | def kwargs(self) -> Mapping[str, Any]: ...
method call_list (line 98) | def call_list(self) -> Any: ...
class _CallList (line 102) | class _CallList(list[_Call]):
method __contains__ (line 103) | def __contains__(self, value: Any) -> bool: ...
class Base (line 105) | class Base:
method __init__ (line 106) | def __init__(self, *args: Any, **kwargs: Any) -> None: ...
class NonCallableMock (line 110) | class NonCallableMock(Base, Any):
method __new__ (line 112) | def __new__(
method __new__ (line 128) | def __new__(cls, /, *args: Any, **kw: Any) -> Self: ...
method __init__ (line 130) | def __init__(
method __getattr__ (line 145) | def __getattr__(self, name: str) -> Any: ...
method __delattr__ (line 146) | def __delattr__(self, name: str) -> None: ...
method __setattr__ (line 147) | def __setattr__(self, name: str, value: Any) -> None: ...
method __dir__ (line 148) | def __dir__(self) -> list[str]: ...
method assert_called_with (line 149) | def assert_called_with(self, *args: Any, **kwargs: Any) -> None: ...
method assert_not_called (line 150) | def assert_not_called(self) -> None: ...
method assert_called_once_with (line 151) | def assert_called_once_with(self, *args: Any, **kwargs: Any) -> None: ...
method _format_mock_failure_message (line 152) | def _format_mock_failure_message(self, args: Any, kwargs: Any, action:...
method assert_called (line 153) | def assert_called(self) -> None: ...
method assert_called_once (line 154) | def assert_called_once(self) -> None: ...
method reset_mock (line 155) | def reset_mock(self, visited: Any = None, *, return_value: bool = Fals...
method _extract_mock_name (line 156) | def _extract_mock_name(self) -> str: ...
method _get_call_signature_from_name (line 157) | def _get_call_signature_from_name(self, name: str) -> Any: ...
method assert_any_call (line 158) | def assert_any_call(self, *args: Any, **kwargs: Any) -> None: ...
method assert_has_calls (line 159) | def assert_has_calls(self, calls: Sequence[_Call], any_order: bool = F...
method mock_add_spec (line 160) | def mock_add_spec(self, spec: Any, spec_set: bool = False) -> None: ...
method _mock_add_spec (line 161) | def _mock_add_spec(self, spec: Any, spec_set: bool, _spec_as_instance:...
method attach_mock (line 162) | def attach_mock(self, mock: NonCallableMock, attribute: str) -> None: ...
method configure_mock (line 163) | def configure_mock(self, **kwargs: Any) -> None: ...
method _format_mock_call_signature (line 171) | def _format_mock_call_signature(self, args: Any, kwargs: Any) -> str: ...
method _call_matcher (line 172) | def _call_matcher(self, _call: tuple[_Call, ...]) -> _Call: ...
method _get_child_mock (line 173) | def _get_child_mock(self, **kw: Any) -> NonCallableMock: ...
method _calls_repr (line 175) | def _calls_repr(self) -> str: ...
method _calls_repr (line 177) | def _calls_repr(self, prefix: str = "Calls") -> str: ...
class CallableMixin (line 179) | class CallableMixin(Base):
method __init__ (line 181) | def __init__(
method __call__ (line 195) | def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
class Mock (line 197) | class Mock(CallableMixin, NonCallableMock): ...
class _patch (line 199) | class _patch(Generic[_T]):
method __init__ (line 215) | def __init__(
method __init__ (line 230) | def __init__(
method copy (line 243) | def copy(self) -> _patch[_T]: ...
method __call__ (line 245) | def __call__(self, func: _TT) -> _TT: ...
method __call__ (line 249) | def __call__(self, func: Callable[_P, _R]) -> Callable[_P, _R]: ...
method decoration_helper (line 250) | def decoration_helper(
method decorate_class (line 253) | def decorate_class(self, klass: _TT) -> _TT: ...
method decorate_callable (line 254) | def decorate_callable(self, func: Callable[..., _R]) -> Callable[..., ...
method decorate_async_callable (line 255) | def decorate_async_callable(self, func: Callable[..., Awaitable[_R]]) ...
method get_original (line 256) | def get_original(self) -> tuple[Any, bool]: ...
method __enter__ (line 260) | def __enter__(self) -> _T: ...
method __exit__ (line 261) | def __exit__(
method start (line 264) | def start(self) -> _T: ...
method stop (line 265) | def stop(self) -> None: ...
class _patch_default_new (line 270) | class _patch_default_new(_patch[MagicMock | AsyncMock]):
method __call__ (line 272) | def __call__(self, func: _TT) -> _TT: ...
method __call__ (line 276) | def __call__(self, func: Callable[..., _R]) -> Callable[..., _R]: ...
class _patch_dict (line 278) | class _patch_dict:
method __init__ (line 282) | def __init__(self, in_dict: Any, values: Any = (), clear: Any = False,...
method __call__ (line 283) | def __call__(self, f: Any) -> Any: ...
method decorate_callable (line 285) | def decorate_callable(self, f: _F) -> _F: ...
method decorate_async_callable (line 286) | def decorate_async_callable(self, f: _AF) -> _AF: ...
method decorate_class (line 288) | def decorate_class(self, klass: Any) -> Any: ...
method __enter__ (line 289) | def __enter__(self) -> Any: ...
method __exit__ (line 290) | def __exit__(self, *args: object) -> Any: ...
class _patcher (line 296) | class _patcher:
method __call__ (line 303) | def __call__(
method __call__ (line 315) | def __call__(
method object (line 328) | def object(
method object (line 341) | def object(
method multiple (line 353) | def multiple(
method stopall (line 363) | def stopall() -> None: ...
class MagicMixin (line 367) | class MagicMixin(Base):
method __init__ (line 368) | def __init__(self, *args: Any, **kw: Any) -> None: ...
class NonCallableMagicMock (line 370) | class NonCallableMagicMock(MagicMixin, NonCallableMock): ...
class MagicMock (line 371) | class MagicMock(MagicMixin, Mock): ...
class AsyncMockMixin (line 373) | class AsyncMockMixin(Base):
method __init__ (line 374) | def __init__(self, *args: Any, **kwargs: Any) -> None: ...
method _execute_mock_call (line 375) | async def _execute_mock_call(self, *args: Any, **kwargs: Any) -> Any: ...
method assert_awaited (line 376) | def assert_awaited(self) -> None: ...
method assert_awaited_once (line 377) | def assert_awaited_once(self) -> None: ...
method assert_awaited_with (line 378) | def assert_awaited_with(self, *args: Any, **kwargs: Any) -> None: ...
method assert_awaited_once_with (line 379) | def assert_awaited_once_with(self, *args: Any, **kwargs: Any) -> None:...
method assert_any_await (line 380) | def assert_any_await(self, *args: Any, **kwargs: Any) -> None: ...
method assert_has_awaits (line 381) | def assert_has_awaits(self, calls: Iterable[_Call], any_order: bool = ...
method assert_not_awaited (line 382) | def assert_not_awaited(self) -> None: ...
method reset_mock (line 383) | def reset_mock(self, *args: Any, **kwargs: Any) -> None: ...
class AsyncMagicMixin (line 388) | class AsyncMagicMixin(MagicMixin):
method __init__ (line 389) | def __init__(self, *args: Any, **kw: Any) -> None: ...
class AsyncMock (line 391) | class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock):
method reset_mock (line 395) | def reset_mock(self, visited: Any = None, *, return_value: bool = Fals...
class MagicProxy (line 397) | class MagicProxy(Base):
method __init__ (line 400) | def __init__(self, name: str, parent: Any) -> None: ...
method create_mock (line 401) | def create_mock(self) -> Any: ...
method __get__ (line 402) | def __get__(self, obj: Any, _type: Any | None = None) -> Any: ...
class _ANY (line 404) | class _ANY:
method __eq__ (line 405) | def __eq__(self, other: object) -> Literal[True]: ...
method __ne__ (line 406) | def __ne__(self, other: object) -> Literal[False]: ...
function create_autospec (line 412) | def create_autospec(
function create_autospec (line 424) | def create_autospec(
class _SpecState (line 433) | class _SpecState:
method __init__ (line 440) | def __init__(
function mock_open (line 450) | def mock_open(mock: Any | None = None, read_data: Any = "") -> Any: ...
class PropertyMock (line 452) | class PropertyMock(Mock):
method __get__ (line 453) | def __get__(self, obj: _T, obj_type: type[_T] | None = None) -> Self: ...
method __set__ (line 454) | def __set__(self, obj: Any, val: Any) -> None: ...
class ThreadingMixin (line 457) | class ThreadingMixin(Base):
method __init__ (line 460) | def __init__(self, /, *args: Any, timeout: float | None | _SentinelObj...
method reset_mock (line 462) | def reset_mock(self, visited: Any = None, *, return_value: bool = Fals...
method wait_until_called (line 463) | def wait_until_called(self, *, timeout: float | None | _SentinelObject...
method wait_until_any_call_with (line 464) | def wait_until_any_call_with(self, *args: Any, **kwargs: Any) -> None:...
class ThreadingMock (line 466) | class ThreadingMock(ThreadingMixin, MagicMixin, Mock): ...
function seal (line 468) | def seal(mock: Any) -> None: ...
FILE: mypy/typeshed/stdlib/unittest/result.pyi
function failfast (line 15) | def failfast(method: _F) -> _F: ...
class TestResult (line 17) | class TestResult:
method __init__ (line 31) | def __init__(self, stream: TextIO | None = None, descriptions: bool | ...
method printErrors (line 32) | def printErrors(self) -> None: ...
method wasSuccessful (line 33) | def wasSuccessful(self) -> bool: ...
method stop (line 34) | def stop(self) -> None: ...
method startTest (line 35) | def startTest(self, test: unittest.case.TestCase) -> None: ...
method stopTest (line 36) | def stopTest(self, test: unittest.case.TestCase) -> None: ...
method startTestRun (line 37) | def startTestRun(self) -> None: ...
method stopTestRun (line 38) | def stopTestRun(self) -> None: ...
method addError (line 39) | def addError(self, test: unittest.case.TestCase, err: OptExcInfo) -> N...
method addFailure (line 40) | def addFailure(self, test: unittest.case.TestCase, err: OptExcInfo) ->...
method addSuccess (line 41) | def addSuccess(self, test: unittest.case.TestCase) -> None: ...
method addSkip (line 42) | def addSkip(self, test: unittest.case.TestCase, reason: str) -> None: ...
method addExpectedFailure (line 43) | def addExpectedFailure(self, test: unittest.case.TestCase, err: OptExc...
method addUnexpectedSuccess (line 44) | def addUnexpectedSuccess(self, test: unittest.case.TestCase) -> None: ...
method addSubTest (line 45) | def addSubTest(self, test: unittest.case.TestCase, subtest: unittest.c...
method addDuration (line 47) | def addDuration(self, test: unittest.case.TestCase, elapsed: float) ->...
FILE: mypy/typeshed/stdlib/unittest/runner.pyi
class _SupportsWriteAndFlush (line 13) | class _SupportsWriteAndFlush(SupportsWrite[str], SupportsFlush, Protocol...
class _TextTestStream (line 16) | class _TextTestStream(_SupportsWriteAndFlush, Protocol):
method writeln (line 17) | def writeln(self, arg: str | None = None, /) -> None: ...
class _WritelnDecorator (line 22) | class _WritelnDecorator:
method __init__ (line 23) | def __init__(self, stream: _SupportsWriteAndFlush) -> None: ...
method writeln (line 24) | def writeln(self, arg: str | None = None) -> None: ...
method __getattr__ (line 25) | def __getattr__(self, attr: str) -> Any: ... # Any attribute from the...
method flush (line 30) | def flush(self) -> object: ...
method write (line 31) | def write(self, s: str, /) -> object: ...
class TextTestResult (line 35) | class TextTestResult(unittest.result.TestResult, Generic[_StreamT]):
method __init__ (line 44) | def __init__(self, stream: _StreamT, descriptions: bool, verbosity: in...
method __init__ (line 46) | def __init__(self, stream: _StreamT, descriptions: bool, verbosity: in...
method getDescription (line 48) | def getDescription(self, test: unittest.case.TestCase) -> str: ...
method printErrorList (line 49) | def printErrorList(self, flavour: str, errors: Iterable[tuple[unittest...
class TextTestRunner (line 51) | class TextTestRunner:
method __init__ (line 63) | def __init__(
method __init__ (line 77) | def __init__(
method _makeResult (line 90) | def _makeResult(self) -> TextTestResult: ...
method run (line 91) | def run(self, test: unittest.suite.TestSuite | unittest.case.TestCase)...
FILE: mypy/typeshed/stdlib/unittest/signals.pyi
function installHandler (line 9) | def installHandler() -> None: ...
function registerResult (line 10) | def registerResult(result: unittest.result.TestResult) -> None: ...
function removeResult (line 11) | def removeResult(result: unittest.result.TestResult) -> bool: ...
function removeHandler (line 13) | def removeHandler(method: None = None) -> None: ...
function removeHandler (line 15) | def removeHandler(method: Callable[_P, _T]) -> Callable[_P, _T]: ...
FILE: mypy/typeshed/stdlib/unittest/suite.pyi
class BaseTestSuite (line 9) | class BaseTestSuite:
method __init__ (line 12) | def __init__(self, tests: Iterable[_TestType] = ()) -> None: ...
method __call__ (line 13) | def __call__(self, result: unittest.result.TestResult) -> unittest.res...
method addTest (line 14) | def addTest(self, test: _TestType) -> None: ...
method addTests (line 15) | def addTests(self, tests: Iterable[_TestType]) -> None: ...
method run (line 16) | def run(self, result: unittest.result.TestResult) -> unittest.result.T...
method debug (line 17) | def debug(self) -> None: ...
method countTestCases (line 18) | def countTestCases(self) -> int: ...
method __iter__ (line 19) | def __iter__(self) -> Iterator[_TestType]: ...
method __eq__ (line 20) | def __eq__(self, other: object) -> bool: ...
class TestSuite (line 23) | class TestSuite(BaseTestSuite):
method run (line 24) | def run(self, result: unittest.result.TestResult, debug: bool = False)...
FILE: mypy/typeshed/stdlib/unittest/util.pyi
function _shorten (line 15) | def _shorten(s: str, prefixlen: int, suffixlen: int) -> str: ...
function _common_shorten_repr (line 16) | def _common_shorten_repr(*args: str) -> tuple[str, ...]: ...
function safe_repr (line 17) | def safe_repr(obj: object, short: bool = False) -> str: ...
function strclass (line 18) | def strclass(cls: type) -> str: ...
function sorted_list_difference (line 19) | def sorted_list_difference(expected: Sequence[_T], actual: Sequence[_T])...
function unorderable_list_difference (line 20) | def unorderable_list_difference(expected: MutableSequence[_T], actual: M...
function three_way_cmp (line 21) | def three_way_cmp(x: Any, y: Any) -> int: ...
function _count_diff_all_purpose (line 22) | def _count_diff_all_purpose(actual: Sequence[_T], expected: Sequence[_T]...
function _count_diff_hashable (line 23) | def _count_diff_hashable(actual: Sequence[_T], expected: Sequence[_T]) -...
FILE: mypy/typeshed/stdlib/urllib/error.pyi
class URLError (line 7) | class URLError(OSError):
method __init__ (line 9) | def __init__(self, reason: str | BaseException, filename: str | None =...
class HTTPError (line 11) | class HTTPError(URLError, addinfourl):
method headers (line 13) | def headers(self) -> Message: ...
method headers (line 15) | def headers(self, headers: Message) -> None: ...
method reason (line 17) | def reason(self) -> str: ... # type: ignore[override]
method __init__ (line 19) | def __init__(self, url: str, code: int, msg: str, hdrs: Message, fp: I...
class ContentTooShortError (line 21) | class ContentTooShortError(URLError):
method __init__ (line 23) | def __init__(self, message: str, content: tuple[str, Message]) -> None...
FILE: mypy/typeshed/stdlib/urllib/parse.pyi
class _ResultMixinStr (line 43) | class _ResultMixinStr:
method encode (line 44) | def encode(self, encoding: str = "ascii", errors: str = "strict") -> _...
class _ResultMixinBytes (line 46) | class _ResultMixinBytes:
method decode (line 47) | def decode(self, encoding: str = "ascii", errors: str = "strict") -> _...
class _NetlocResultMixinBase (line 49) | class _NetlocResultMixinBase(Generic[AnyStr]):
method username (line 51) | def username(self) -> AnyStr | None: ...
method password (line 53) | def password(self) -> AnyStr | None: ...
method hostname (line 55) | def hostname(self) -> AnyStr | None: ...
method port (line 57) | def port(self) -> int | None: ...
method __class_getitem__ (line 59) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class _NetlocResultMixinStr (line 61) | class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr...
class _NetlocResultMixinBytes (line 62) | class _NetlocResultMixinBytes(_NetlocResultMixinBase[bytes], _ResultMixi...
class _DefragResultBase (line 64) | class _DefragResultBase(NamedTuple, Generic[AnyStr]):
class _SplitResultBase (line 68) | class _SplitResultBase(NamedTuple, Generic[AnyStr]):
class _ParseResultBase (line 75) | class _ParseResultBase(NamedTuple, Generic[AnyStr]):
class DefragResult (line 84) | class DefragResult(_DefragResultBase[str], _ResultMixinStr):
method geturl (line 85) | def geturl(self) -> str: ...
class SplitResult (line 87) | class SplitResult(_SplitResultBase[str], _NetlocResultMixinStr):
method geturl (line 88) | def geturl(self) -> str: ...
class ParseResult (line 90) | class ParseResult(_ParseResultBase[str], _NetlocResultMixinStr):
method geturl (line 91) | def geturl(self) -> str: ...
class DefragResultBytes (line 94) | class DefragResultBytes(_DefragResultBase[bytes], _ResultMixinBytes):
method geturl (line 95) | def geturl(self) -> bytes: ...
class SplitResultBytes (line 97) | class SplitResultBytes(_SplitResultBase[bytes], _NetlocResultMixinBytes):
method geturl (line 98) | def geturl(self) -> bytes: ...
class ParseResultBytes (line 100) | class ParseResultBytes(_ParseResultBase[bytes], _NetlocResultMixinBytes):
method geturl (line 101) | def geturl(self) -> bytes: ...
function parse_qs (line 103) | def parse_qs(
function parse_qsl (line 112) | def parse_qsl(
function quote (line 122) | def quote(string: str, safe: str | Iterable[int] = "/", encoding: str | ...
function quote (line 124) | def quote(string: bytes | bytearray, safe: str | Iterable[int] = "/") ->...
function quote_from_bytes (line 125) | def quote_from_bytes(bs: bytes | bytearray, safe: str | Iterable[int] = ...
function quote_plus (line 127) | def quote_plus(string: str, safe: str | Iterable[int] = "", encoding: st...
function quote_plus (line 129) | def quote_plus(string: bytes | bytearray, safe: str | Iterable[int] = ""...
function unquote (line 132) | def unquote(string: str | bytes, encoding: str = "utf-8", errors: str = ...
function unquote (line 135) | def unquote(string: str, encoding: str = "utf-8", errors: str = "replace...
function unquote_to_bytes (line 137) | def unquote_to_bytes(string: str | bytes | bytearray) -> bytes: ...
function unquote_plus (line 138) | def unquote_plus(string: str, encoding: str = "utf-8", errors: str = "re...
function urldefrag (line 140) | def urldefrag(url: str) -> DefragResult: ...
function urldefrag (line 142) | def urldefrag(url: bytes | bytearray | None) -> DefragResultBytes: ...
function urlencode (line 150) | def urlencode(
function urlencode (line 159) | def urlencode(
function urlencode (line 168) | def urlencode(
function urljoin (line 177) | def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = Tr...
function urlparse (line 179) | def urlparse(url: str, scheme: str = "", allow_fragments: bool = True) -...
function urlparse (line 181) | def urlparse(
function urlsplit (line 185) | def urlsplit(url: str, scheme: str = "", allow_fragments: bool = True) -...
function urlsplit (line 189) | def urlsplit(
function urlsplit (line 195) | def urlsplit(
function urlunparse (line 201) | def urlunparse(components: Iterable[None]) -> Literal[b""]: ... # type:...
function urlunparse (line 203) | def urlunparse(components: Iterable[AnyStr | None]) -> AnyStr: ...
function urlunsplit (line 207) | def urlunsplit(components: Iterable[None]) -> Literal[b""]: ... # type:...
function urlunsplit (line 209) | def urlunsplit(components: Iterable[AnyStr | None]) -> AnyStr: ...
function unwrap (line 210) | def unwrap(url: str) -> str: ...
FILE: mypy/typeshed/stdlib/urllib/request.pyi
function urlopen (line 56) | def urlopen(
function urlopen (line 61) | def urlopen(
function install_opener (line 72) | def install_opener(opener: OpenerDirector) -> None: ...
function build_opener (line 73) | def build_opener(*handlers: BaseHandler | Callable[[], BaseHandler]) -> ...
function url2pathname (line 78) | def url2pathname(pathname: str) -> str: ...
function pathname2url (line 79) | def pathname2url(pathname: str) -> str: ...
function getproxies (line 81) | def getproxies() -> dict[str, str]: ...
function getproxies_environment (line 82) | def getproxies_environment() -> dict[str, str]: ...
function parse_http_list (line 83) | def parse_http_list(s: str) -> list[str]: ...
function parse_keqv_list (line 84) | def parse_keqv_list(l: list[str]) -> dict[str, str]: ...
function proxy_bypass (line 87) | def proxy_bypass(host: str) -> Any: ... # undocumented
function proxy_bypass (line 90) | def proxy_bypass(host: str, proxies: Mapping[str, str] | None = None) ->...
class Request (line 92) | class Request:
method full_url (line 94) | def full_url(self) -> str: ...
method full_url (line 96) | def full_url(self, value: str) -> None: ...
method full_url (line 98) | def full_url(self) -> None: ...
method __init__ (line 109) | def __init__(
method get_method (line 118) | def get_method(self) -> str: ...
method add_header (line 119) | def add_header(self, key: str, val: str) -> None: ...
method add_unredirected_header (line 120) | def add_unredirected_header(self, key: str, val: str) -> None: ...
method has_header (line 121) | def has_header(self, header_name: str) -> bool: ...
method remove_header (line 122) | def remove_header(self, header_name: str) -> None: ...
method get_full_url (line 123) | def get_full_url(self) -> str: ...
method set_proxy (line 124) | def set_proxy(self, host: str, type: str) -> None: ...
method get_header (line 126) | def get_header(self, header_name: str) -> str | None: ...
method get_header (line 128) | def get_header(self, header_name: str, default: _T) -> str | _T: ...
method header_items (line 129) | def header_items(self) -> list[tuple[str, str]]: ...
method has_proxy (line 130) | def has_proxy(self) -> bool: ...
class OpenerDirector (line 132) | class OpenerDirector:
method add_handler (line 134) | def add_handler(self, handler: BaseHandler) -> None: ...
method open (line 135) | def open(self, fullurl: str | Request, data: _DataType = None, timeout...
method error (line 136) | def error(self, proto: str, *args: Any) -> _UrlopenRet: ...
method close (line 137) | def close(self) -> None: ...
class BaseHandler (line 139) | class BaseHandler:
method add_parent (line 142) | def add_parent(self, parent: OpenerDirector) -> None: ...
method close (line 143) | def close(self) -> None: ...
method __lt__ (line 144) | def __lt__(self, other: object) -> bool: ...
class HTTPDefaultErrorHandler (line 146) | class HTTPDefaultErrorHandler(BaseHandler):
method http_error_default (line 147) | def http_error_default(
class HTTPRedirectHandler (line 151) | class HTTPRedirectHandler(BaseHandler):
method redirect_request (line 155) | def redirect_request(
method http_error_301 (line 158) | def http_error_301(self, req: Request, fp: IO[bytes], code: int, msg: ...
method http_error_302 (line 159) | def http_error_302(self, req: Request, fp: IO[bytes], code: int, msg: ...
method http_error_303 (line 160) | def http_error_303(self, req: Request, fp: IO[bytes], code: int, msg: ...
method http_error_307 (line 161) | def http_error_307(self, req: Request, fp: IO[bytes], code: int, msg: ...
method http_error_308 (line 163) | def http_error_308(
class HTTPCookieProcessor (line 167) | class HTTPCookieProcessor(BaseHandler):
method __init__ (line 169) | def __init__(self, cookiejar: CookieJar | None = None) -> None: ...
method http_request (line 170) | def http_request(self, request: Request) -> Request: ... # undocumented
method http_response (line 171) | def http_response(self, request: Request, response: HTTPResponse) -> H...
method https_request (line 172) | def https_request(self, request: Request) -> Request: ... # undocumented
method https_response (line 173) | def https_response(self, request: Request, response: HTTPResponse) -> ...
class ProxyHandler (line 175) | class ProxyHandler(BaseHandler):
method __init__ (line 176) | def __init__(self, proxies: dict[str, str] | None = None) -> None: ...
method proxy_open (line 177) | def proxy_open(self, req: Request, proxy: str, type: str) -> _UrlopenR...
class HTTPPasswordMgr (line 180) | class HTTPPasswordMgr:
method add_password (line 181) | def add_password(self, realm: str, uri: str | Sequence[str], user: str...
method find_user_password (line 182) | def find_user_password(self, realm: str, authuri: str) -> tuple[str | ...
method is_suburi (line 183) | def is_suburi(self, base: str, test: str) -> bool: ... # undocumented
method reduce_uri (line 184) | def reduce_uri(self, uri: str, default_port: bool = True) -> tuple[str...
class HTTPPasswordMgrWithDefaultRealm (line 186) | class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr):
method add_password (line 187) | def add_password(self, realm: str | None, uri: str | Sequence[str], us...
method find_user_password (line 188) | def find_user_password(self, realm: str | None, authuri: str) -> tuple...
class HTTPPasswordMgrWithPriorAuth (line 190) | class HTTPPasswordMgrWithPriorAuth(HTTPPasswordMgrWithDefaultRealm):
method add_password (line 191) | def add_password(
method update_authenticated (line 194) | def update_authenticated(self, uri: str | Sequence[str], is_authentica...
method is_authenticated (line 195) | def is_authenticated(self, authuri: str) -> bool | None: ...
class AbstractBasicAuthHandler (line 197) | class AbstractBasicAuthHandler:
method __init__ (line 201) | def __init__(self, password_mgr: HTTPPasswordMgr | None = None) -> Non...
method http_error_auth_reqed (line 202) | def http_error_auth_reqed(self, authreq: str, host: str, req: Request,...
method http_request (line 203) | def http_request(self, req: Request) -> Request: ... # undocumented
method http_response (line 204) | def http_response(self, req: Request, response: HTTPResponse) -> HTTPR...
method https_request (line 205) | def https_request(self, req: Request) -> Request: ... # undocumented
method https_response (line 206) | def https_response(self, req: Request, response: HTTPResponse) -> HTTP...
method retry_http_basic_auth (line 207) | def retry_http_basic_auth(self, host: str, req: Request, realm: str) -...
class HTTPBasicAuthHandler (line 209) | class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
method http_error_401 (line 211) | def http_error_401(self, req: Request, fp: IO[bytes], code: int, msg: ...
class ProxyBasicAuthHandler (line 213) | class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
method http_error_407 (line 215) | def http_error_407(self, req: Request, fp: IO[bytes], code: int, msg: ...
class AbstractDigestAuthHandler (line 217) | class AbstractDigestAuthHandler:
method __init__ (line 218) | def __init__(self, passwd: HTTPPasswordMgr | None = None) -> None: ...
method reset_retry_count (line 219) | def reset_retry_count(self) -> None: ...
method http_error_auth_reqed (line 220) | def http_error_auth_reqed(self, auth_header: str, host: str, req: Requ...
method retry_http_digest_auth (line 221) | def retry_http_digest_auth(self, req: Request, auth: str) -> _UrlopenR...
method get_cnonce (line 222) | def get_cnonce(self, nonce: str) -> str: ...
method get_authorization (line 223) | def get_authorization(self, req: Request, chal: Mapping[str, str]) -> ...
method get_algorithm_impls (line 224) | def get_algorithm_impls(self, algorithm: str) -> tuple[Callable[[str],...
method get_entity_digest (line 225) | def get_entity_digest(self, data: ReadableBuffer | None, chal: Mapping...
class HTTPDigestAuthHandler (line 227) | class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
method http_error_401 (line 229) | def http_error_401(self, req: Request, fp: IO[bytes], code: int, msg: ...
class ProxyDigestAuthHandler (line 231) | class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
method http_error_407 (line 233) | def http_error_407(self, req: Request, fp: IO[bytes], code: int, msg: ...
class _HTTPConnectionProtocol (line 235) | class _HTTPConnectionProtocol(Protocol):
method __call__ (line 236) | def __call__(
class AbstractHTTPHandler (line 247) | class AbstractHTTPHandler(BaseHandler): # undocumented
method __init__ (line 249) | def __init__(self, debuglevel: int | None = None) -> None: ...
method __init__ (line 251) | def __init__(self, debuglevel: int = 0) -> None: ...
method set_http_debuglevel (line 253) | def set_http_debuglevel(self, level: int) -> None: ...
method do_request_ (line 254) | def do_request_(self, request: Request) -> Request: ...
method do_open (line 255) | def do_open(self, http_class: _HTTPConnectionProtocol, req: Request, *...
class HTTPHandler (line 257) | class HTTPHandler(AbstractHTTPHandler):
method http_open (line 258) | def http_open(self, req: Request) -> HTTPResponse: ...
method http_request (line 259) | def http_request(self, request: Request) -> Request: ... # undocumented
class HTTPSHandler (line 261) | class HTTPSHandler(AbstractHTTPHandler):
method __init__ (line 263) | def __init__(
method __init__ (line 267) | def __init__(
method https_open (line 271) | def https_open(self, req: Request) -> HTTPResponse: ...
method https_request (line 272) | def https_request(self, request: Request) -> Request: ... # undocumented
class FileHandler (line 274) | class FileHandler(BaseHandler):
method file_open (line 276) | def file_open(self, req: Request) -> addinfourl: ...
method get_names (line 277) | def get_names(self) -> tuple[str, ...]: ... # undocumented
method open_local_file (line 278) | def open_local_file(self, req: Request) -> addinfourl: ... # undocume...
class DataHandler (line 280) | class DataHandler(BaseHandler):
method data_open (line 281) | def data_open(self, req: Request) -> addinfourl: ...
class ftpwrapper (line 283) | class ftpwrapper: # undocumented
method __init__ (line 284) | def __init__(
method close (line 287) | def close(self) -> None: ...
method endtransfer (line 288) | def endtransfer(self) -> None: ...
method file_close (line 289) | def file_close(self) -> None: ...
method init (line 290) | def init(self) -> None: ...
method real_close (line 291) | def real_close(self) -> None: ...
method retrfile (line 292) | def retrfile(self, file: str, type: str) -> tuple[addclosehook, int | ...
class FTPHandler (line 294) | class FTPHandler(BaseHandler):
method ftp_open (line 295) | def ftp_open(self, req: Request) -> addinfourl: ...
method connect_ftp (line 296) | def connect_ftp(
class CacheFTPHandler (line 300) | class CacheFTPHandler(FTPHandler):
method setTimeout (line 301) | def setTimeout(self, t: float) -> None: ...
method setMaxConns (line 302) | def setMaxConns(self, m: int) -> None: ...
method check_cache (line 303) | def check_cache(self) -> None: ... # undocumented
method clear_cache (line 304) | def clear_cache(self) -> None: ... # undocumented
class UnknownHandler (line 306) | class UnknownHandler(BaseHandler):
method unknown_open (line 307) | def unknown_open(self, req: Request) -> NoReturn: ...
class HTTPErrorProcessor (line 309) | class HTTPErrorProcessor(BaseHandler):
method http_response (line 310) | def http_response(self, request: Request, response: HTTPResponse) -> _...
method https_response (line 311) | def https_response(self, request: Request, response: HTTPResponse) -> ...
function urlretrieve (line 313) | def urlretrieve(
function urlcleanup (line 319) | def urlcleanup() -> None: ...
class URLopener (line 321) | class URLopener:
method __init__ (line 323) | def __init__(self, proxies: dict[str, str] | None = None, **x509: str)...
method open (line 324) | def open(self, fullurl: str, data: ReadableBuffer | None = None) -> _U...
method open_unknown (line 325) | def open_unknown(self, fullurl: str, data: ReadableBuffer | None = Non...
method retrieve (line 326) | def retrieve(
method addheader (line 333) | def addheader(self, *args: tuple[str, str]) -> None: ... # undocumented
method cleanup (line 334) | def cleanup(self) -> None: ... # undocumented
method close (line 335) | def close(self) -> None: ... # undocumented
method http_error (line 336) | def http_error(
method http_error_default (line 339) | def http_error_default(
method open_data (line 342) | def open_data(self, url: str, data: ReadableBuffer | None = None) -> a...
method open_file (line 343) | def open_file(self, url: str) -> addinfourl: ... # undocumented
method open_ftp (line 344) | def open_ftp(self, url: str) -> addinfourl: ... # undocumented
method open_http (line 345) | def open_http(self, url: str, data: ReadableBuffer | None = None) -> _...
method open_https (line 346) | def open_https(self, url: str, data: ReadableBuffer | None = None) -> ...
method open_local_file (line 347) | def open_local_file(self, url: str) -> addinfourl: ... # undocumented
method open_unknown_proxy (line 348) | def open_unknown_proxy(self, proxy: str, fullurl: str, data: ReadableB...
method __del__ (line 349) | def __del__(self) -> None: ...
class FancyURLopener (line 351) | class FancyURLopener(URLopener):
method prompt_user_passwd (line 352) | def prompt_user_passwd(self, host: str, realm: str) -> tuple[str, str]...
method get_user_passwd (line 353) | def get_user_passwd(self, host: str, realm: str, clear_cache: int = 0)...
method http_error_301 (line 354) | def http_error_301(
method http_error_302 (line 357) | def http_error_302(
method http_error_303 (line 360) | def http_error_303(
method http_error_307 (line 363) | def http_error_307(
method http_error_308 (line 367) | def http_error_308(
method http_error_401 (line 371) | def http_error_401(
method http_error_407 (line 381) | def http_error_407(
method http_error_default (line 391) | def http_error_default(
method redirect_internal (line 394) | def redirect_internal(
method retry_http_basic_auth (line 397) | def retry_http_basic_auth(
method retry_https_basic_auth (line 400) | def retry_https_basic_auth(
method retry_proxy_http_basic_auth (line 403) | def retry_proxy_http_basic_auth(
method retry_proxy_https_basic_auth (line 406) | def retry_proxy_https_basic_auth(
FILE: mypy/typeshed/stdlib/urllib/response.pyi
class addbase (line 11) | class addbase(tempfile._TemporaryFileWrapper[bytes]):
method __init__ (line 13) | def __init__(self, fp: IO[bytes]) -> None: ...
method __exit__ (line 14) | def __exit__(
method write (line 21) | def write(self, s: ReadableBuffer) -> int: ...
method writelines (line 22) | def writelines(self, lines: Iterable[ReadableBuffer]) -> None: ...
class addclosehook (line 24) | class addclosehook(addbase):
method __init__ (line 27) | def __init__(self, fp: IO[bytes], closehook: Callable[..., object], *h...
class addinfo (line 29) | class addinfo(addbase):
method __init__ (line 31) | def __init__(self, fp: IO[bytes], headers: Message) -> None: ...
method info (line 32) | def info(self) -> Message: ...
class addinfourl (line 34) | class addinfourl(addinfo):
method status (line 39) | def status(self) -> int | None: ...
method __init__ (line 41) | def __init__(self, fp: IO[bytes], headers: Message, url: str, code: in...
method geturl (line 42) | def geturl(self) -> str: ...
method getcode (line 43) | def getcode(self) -> int | None: ...
FILE: mypy/typeshed/stdlib/urllib/robotparser.pyi
class RequestRate (line 6) | class RequestRate(NamedTuple):
class RobotFileParser (line 10) | class RobotFileParser:
method __init__ (line 11) | def __init__(self, url: str = "") -> None: ...
method set_url (line 12) | def set_url(self, url: str) -> None: ...
method read (line 13) | def read(self) -> None: ...
method parse (line 14) | def parse(self, lines: Iterable[str]) -> None: ...
method can_fetch (line 15) | def can_fetch(self, useragent: str, url: str) -> bool: ...
method mtime (line 16) | def mtime(self) -> int: ...
method modified (line 17) | def modified(self) -> None: ...
method crawl_delay (line 18) | def crawl_delay(self, useragent: str) -> str | None: ...
method request_rate (line 19) | def request_rate(self, useragent: str) -> RequestRate | None: ...
method site_maps (line 20) | def site_maps(self) -> list[str] | None: ...
FILE: mypy/typeshed/stdlib/uu.pyi
class Error (line 8) | class Error(Exception): ...
function encode (line 10) | def encode(
function decode (line 13) | def decode(in_file: _File, out_file: _File | None = None, mode: int | No...
FILE: mypy/typeshed/stdlib/uuid.pyi
class SafeUUID (line 9) | class SafeUUID(Enum):
class UUID (line 14) | class UUID:
method __init__ (line 15) | def __init__(
method is_safe (line 27) | def is_safe(self) -> SafeUUID: ...
method bytes (line 29) | def bytes(self) -> builtins.bytes: ...
method bytes_le (line 31) | def bytes_le(self) -> builtins.bytes: ...
method clock_seq (line 33) | def clock_seq(self) -> builtins.int: ...
method clock_seq_hi_variant (line 35) | def clock_seq_hi_variant(self) -> builtins.int: ...
method clock_seq_low (line 37) | def clock_seq_low(self) -> builtins.int: ...
method fields (line 39) | def fields(self) -> _FieldsType: ...
method hex (line 41) | def hex(self) -> str: ...
method int (line 43) | def int(self) -> builtins.int: ...
method node (line 45) | def node(self) -> builtins.int: ...
method time (line 47) | def time(self) -> builtins.int: ...
method time_hi_version (line 49) | def time_hi_version(self) -> builtins.int: ...
method time_low (line 51) | def time_low(self) -> builtins.int: ...
method time_mid (line 53) | def time_mid(self) -> builtins.int: ...
method urn (line 55) | def urn(self) -> str: ...
method variant (line 57) | def variant(self) -> str: ...
method version (line 59) | def version(self) -> builtins.int | None: ...
method __int__ (line 60) | def __int__(self) -> builtins.int: ...
method __eq__ (line 61) | def __eq__(self, other: object) -> bool: ...
method __lt__ (line 62) | def __lt__(self, other: UUID) -> bool: ...
method __le__ (line 63) | def __le__(self, other: UUID) -> bool: ...
method __gt__ (line 64) | def __gt__(self, other: UUID) -> bool: ...
method __ge__ (line 65) | def __ge__(self, other: UUID) -> bool: ...
method __hash__ (line 66) | def __hash__(self) -> builtins.int: ...
method __str__ (line 67) | def __str__(self) -> builtins.str: ...
function getnode (line 70) | def getnode() -> int: ...
function getnode (line 73) | def getnode(*, getters: Unused = None) -> int: ... # undocumented
function uuid1 (line 75) | def uuid1(node: int | None = None, clock_seq: int | None = None) -> UUID...
function uuid3 (line 78) | def uuid3(namespace: UUID, name: str | bytes) -> UUID: ...
function uuid3 (line 81) | def uuid3(namespace: UUID, name: str) -> UUID: ...
function uuid4 (line 83) | def uuid4() -> UUID: ...
function uuid5 (line 86) | def uuid5(namespace: UUID, name: str | bytes) -> UUID: ...
function uuid5 (line 89) | def uuid5(namespace: UUID, name: str) -> UUID: ...
function main (line 101) | def main() -> None: ...
FILE: mypy/typeshed/stdlib/warnings.pyi
function showwarning (line 31) | def showwarning(
function formatwarning (line 39) | def formatwarning(
function filterwarnings (line 42) | def filterwarnings(
function simplefilter (line 45) | def simplefilter(action: _ActionKind, category: type[Warning] = ..., lin...
function resetwarnings (line 46) | def resetwarnings() -> None: ...
class _OptionError (line 48) | class _OptionError(Exception): ...
class WarningMessage (line 50) | class WarningMessage:
method __init__ (line 58) | def __init__(
class catch_warnings (line 69) | class catch_warnings(Generic[_W]):
method __init__ (line 72) | def __init__(
method __init__ (line 83) | def __init__(
method __init__ (line 94) | def __init__(
method __init__ (line 106) | def __init__(self: catch_warnings[None], *, record: Literal[False] = F...
method __init__ (line 108) | def __init__(
method __init__ (line 112) | def __init__(
method __enter__ (line 116) | def __enter__(self) -> _W: ...
method __exit__ (line 117) | def __exit__(
class deprecated (line 122) | class deprecated:
method __init__ (line 126) | def __init__(self, message: LiteralString, /, *, category: type[Warnin...
method __call__ (line 127) | def __call__(self, arg: _T, /) -> _T: ...
FILE: mypy/typeshed/stdlib/wave.pyi
class Error (line 13) | class Error(Exception): ...
class _wave_params (line 17) | class _wave_params(NamedTuple):
class Wave_read (line 25) | class Wave_read:
method __init__ (line 26) | def __init__(self, f: _File) -> None: ...
method __enter__ (line 27) | def __enter__(self) -> Self: ...
method __exit__ (line 28) | def __exit__(self, *args: Unused) -> None: ...
method __del__ (line 29) | def __del__(self) -> None: ...
method getfp (line 30) | def getfp(self) -> BinaryIO | None: ...
method rewind (line 31) | def rewind(self) -> None: ...
method close (line 32) | def close(self) -> None: ...
method tell (line 33) | def tell(self) -> int: ...
method getnchannels (line 34) | def getnchannels(self) -> int: ...
method getnframes (line 35) | def getnframes(self) -> int: ...
method getsampwidth (line 36) | def getsampwidth(self) -> int: ...
method getframerate (line 37) | def getframerate(self) -> int: ...
method getcomptype (line 38) | def getcomptype(self) -> str: ...
method getcompname (line 39) | def getcompname(self) -> str: ...
method getparams (line 40) | def getparams(self) -> _wave_params: ...
method getmarkers (line 42) | def getmarkers(self) -> None: ...
method getmark (line 44) | def getmark(self, id: Any) -> NoReturn: ...
method setpos (line 45) | def setpos(self, pos: int) -> None: ...
method readframes (line 46) | def readframes(self, nframes: int) -> bytes: ...
class Wave_write (line 48) | class Wave_write:
method __init__ (line 49) | def __init__(self, f: _File) -> None: ...
method __enter__ (line 50) | def __enter__(self) -> Self: ...
method __exit__ (line 51) | def __exit__(self, *args: Unused) -> None: ...
method __del__ (line 52) | def __del__(self) -> None: ...
method setnchannels (line 53) | def setnchannels(self, nchannels: int) -> None: ...
method getnchannels (line 54) | def getnchannels(self) -> int: ...
method setsampwidth (line 55) | def setsampwidth(self, sampwidth: int) -> None: ...
method getsampwidth (line 56) | def getsampwidth(self) -> int: ...
method setframerate (line 57) | def setframerate(self, framerate: float) -> None: ...
method getframerate (line 58) | def getframerate(self) -> int: ...
method setnframes (line 59) | def setnframes(self, nframes: int) -> None: ...
method getnframes (line 60) | def getnframes(self) -> int: ...
method setcomptype (line 61) | def setcomptype(self, comptype: str, compname: str) -> None: ...
method getcomptype (line 62) | def getcomptype(self) -> str: ...
method getcompname (line 63) | def getcompname(self) -> str: ...
method setparams (line 64) | def setparams(self, params: _wave_params | tuple[int, int, int, int, s...
method getparams (line 65) | def getparams(self) -> _wave_params: ...
method setmark (line 67) | def setmark(self, id: Any, pos: Any, name: Any) -> NoReturn: ...
method getmark (line 69) | def getmark(self, id: Any) -> NoReturn: ...
method getmarkers (line 71) | def getmarkers(self) -> None: ...
method tell (line 72) | def tell(self) -> int: ...
method writeframesraw (line 73) | def writeframesraw(self, data: ReadableBuffer) -> None: ...
method writeframes (line 74) | def writeframes(self, data: ReadableBuffer) -> None: ...
method close (line 75) | def close(self) -> None: ...
function open (line 78) | def open(f: _File, mode: Literal["r", "rb"]) -> Wave_read: ...
function open (line 80) | def open(f: _File, mode: Literal["w", "wb"]) -> Wave_write: ...
function open (line 82) | def open(f: _File, mode: str | None = None) -> Any: ...
FILE: mypy/typeshed/stdlib/weakref.pyi
class CallableProxyType (line 46) | class CallableProxyType(Generic[_CallableT]): # "weakcallableproxy"
method __eq__ (line 47) | def __eq__(self, value: object, /) -> bool: ...
method __getattr__ (line 48) | def __getattr__(self, attr: str) -> Any: ...
class ProxyType (line 53) | class ProxyType(Generic[_T]): # "weakproxy"
method __eq__ (line 54) | def __eq__(self, value: object, /) -> bool: ...
method __getattr__ (line 55) | def __getattr__(self, attr: str) -> Any: ...
class ReferenceType (line 58) | class ReferenceType(Generic[_T]): # "weakref"
method __new__ (line 60) | def __new__(cls, o: _T, callback: Callable[[Self], Any] | None = ..., ...
method __call__ (line 61) | def __call__(self) -> _T | None: ...
method __eq__ (line 62) | def __eq__(self, value: object, /) -> bool: ...
method __hash__ (line 63) | def __hash__(self) -> int: ...
method __class_getitem__ (line 65) | def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
class WeakMethod (line 71) | class WeakMethod(ref[_CallableT]):
method __new__ (line 72) | def __new__(cls, meth: _CallableT, callback: Callable[[Self], Any] | N...
method __call__ (line 73) | def __call__(self) -> _CallableT | None: ...
method __eq__ (line 74) | def __eq__(self, other: object) -> bool: ...
method __ne__ (line 75) | def __ne__(self, other: object) -> bool: ...
method __hash__ (line 76) | def __hash__(self) -> int: ...
class WeakValueDictionary (line 78) | class WeakValueDictionary(MutableMapping[_KT, _VT]):
method __init__ (line 80) | def __init__(self) -> None: ...
method __init__ (line 82) | def __init__(
method __init__ (line 88) | def __init__(
method __len__ (line 94) | def __len__(self) -> int: ...
method __getitem__ (line 95) | def __getitem__(self, key: _KT) -> _VT: ...
method __setitem__ (line 96) | def __setitem__(self, key: _KT, value: _VT) -> None: ...
method __delitem__ (line 97) | def __delitem__(self, key: _KT) -> None: ...
method __contains__ (line 98) | def __contains__(self, key: object) -> bool: ...
method __iter__ (line 99) | def __iter__(self) -> Iterator[_KT]: ...
method copy (line 100) | def copy(self) -> WeakValueDictionary[_KT, _VT]: ...
method __deepcopy__ (line 102) | def __deepcopy__(self, memo: Any) -> Self: ...
method get (line 104) | def get(self, key: _KT, default: None = None) -> _VT | None: ...
method get (line 106) | def get(self, key: _KT, default: _T) -> _VT | _T: ...
method keys (line 108) | def keys(self) -> Iterator[_KT]: ... # type: ignore[override]
method values (line 109) | def values(self) -> Iterator[_VT]: ... # type: ignore[override]
method items (line 110) | def items(self) -> Iterator[tuple[_KT, _VT]]: ... # type: ignore[over...
method itervaluerefs (line 111) | def itervaluerefs(self) -> Iterator[KeyedRef[_KT, _VT]]: ...
method valuerefs (line 112) | def valuerefs(self) -> list[KeyedRef[_KT, _VT]]: ...
method setdefault (line 113) | def setdefault(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 115) | def pop(self, key: _KT) -> _VT: ...
method pop (line 117) | def pop(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 119) | def pop(self, key: _KT, default: _T) -> _VT | _T: ...
method update (line 121) | def update(self, other: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs:...
method update (line 123) | def update(self, other: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) -...
method update (line 125) | def update(self, other: None = None, /, **kwargs: _VT) -> None: ...
method __or__ (line 127) | def __or__(self, other: Mapping[_T1, _T2]) -> WeakValueDictionary[_KT ...
method __ror__ (line 128) | def __ror__(self, other: Mapping[_T1, _T2]) -> WeakValueDictionary[_KT...
method __ior__ (line 131) | def __ior__(self, other: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ...
method __ior__ (line 133) | def __ior__(self, other: Iterable[tuple[_KT, _VT]]) -> Self: ...
class KeyedRef (line 135) | class KeyedRef(ref[_T], Generic[_KT, _T]):
method __new__ (line 137) | def __new__(type, ob: _T, callback: Callable[[Self], Any], key: _KT) -...
method __init__ (line 138) | def __init__(self, ob: _T, callback: Callable[[Self], Any], key: _KT) ...
class WeakKeyDictionary (line 140) | class WeakKeyDictionary(MutableMapping[_KT, _VT]):
method __init__ (line 142) | def __init__(self, dict: None = None) -> None: ...
method __init__ (line 144) | def __init__(self, dict: Mapping[_KT, _VT] | Iterable[tuple[_KT, _VT]]...
method __len__ (line 145) | def __len__(self) -> int: ...
method __getitem__ (line 146) | def __getitem__(self, key: _KT) -> _VT: ...
method __setitem__ (line 147) | def __setitem__(self, key: _KT, value: _VT) -> None: ...
method __delitem__ (line 148) | def __delitem__(self, key: _KT) -> None: ...
method __contains__ (line 149) | def __contains__(self, key: object) -> bool: ...
method __iter__ (line 150) | def __iter__(self) -> Iterator[_KT]: ...
method copy (line 151) | def copy(self) -> WeakKeyDictionary[_KT, _VT]: ...
method __deepcopy__ (line 153) | def __deepcopy__(self, memo: Any) -> Self: ...
method get (line 155) | def get(self, key: _KT, default: None = None) -> _VT | None: ...
method get (line 157) | def get(self, key: _KT, default: _T) -> _VT | _T: ...
method keys (line 159) | def keys(self) -> Iterator[_KT]: ... # type: ignore[override]
method values (line 160) | def values(self) -> Iterator[_VT]: ... # type: ignore[override]
method items (line 161) | def items(self) -> Iterator[tuple[_KT, _VT]]: ... # type: ignore[over...
method keyrefs (line 162) | def keyrefs(self) -> list[ref[_KT]]: ...
method setdefault (line 165) | def setdefault(self: WeakKeyDictionary[_KT, _VT | None], key: _KT, def...
method setdefault (line 167) | def setdefault(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 169) | def pop(self, key: _KT) -> _VT: ...
method pop (line 171) | def pop(self, key: _KT, default: _VT) -> _VT: ...
method pop (line 173) | def pop(self, key: _KT, default: _T) -> _VT | _T: ...
method update (line 175) | def update(self, dict: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs: ...
method update (line 177) | def update(self, dict: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) ->...
method update (line 179) | def update(self, dict: None = None, /, **kwargs: _VT) -> None: ...
method __or__ (line 181) | def __or__(self, other: Mapping[_T1, _T2]) -> WeakKeyDictionary[_KT | ...
method __ror__ (line 182) | def __ror__(self, other: Mapping[_T1, _T2]) -> WeakKeyDictionary[_KT |...
method __ior__ (line 185) | def __ior__(self, other: SupportsKeysAndGetItem[_KT, _VT]) -> Self: ...
method __ior__ (line 187) | def __ior__(self, other: Iterable[tuple[_KT, _VT]]) -> Self: ...
class finalize (line 189) | class finalize(Generic[_P, _T]):
method __init__ (line 190) | def __init__(self, obj: _T, func: Callable[_P, Any], /, *args: _P.args...
method __call__ (line 191) | def __call__(self, _: Any = None) -> Any | None: ...
method detach (line 192) | def detach(self) -> tuple[_T, Callable[_P, Any], tuple[Any, ...], dict...
method peek (line 193) | def peek(self) -> tuple[_T, Callable[_P, Any], tuple[Any, ...], dict[s...
method alive (line 195) | def alive(self) -> bool: ...
FILE: mypy/typeshed/stdlib/webbrowser.pyi
class Error (line 9) | class Error(Exception): ...
function register (line 11) | def register(
function get (line 14) | def get(using: str | None = None) -> BaseBrowser: ...
function open (line 15) | def open(url: str, new: int = 0, autoraise: bool = True) -> bool: ...
function open_new (line 16) | def open_new(url: str) -> bool: ...
function open_new_tab (line 17) | def open_new_tab(url: str) -> bool: ...
class BaseBrowser (line 19) | class BaseBrowser:
method __init__ (line 23) | def __init__(self, name: str = "") -> None: ...
method open (line 25) | def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool...
method open_new (line 26) | def open_new(self, url: str) -> bool: ...
method open_new_tab (line 27) | def open_new_tab(self, url: str) -> bool: ...
class GenericBrowser (line 29) | class GenericBrowser(BaseBrowser):
method __init__ (line 30) | def __init__(self, name: str | Sequence[str]) -> None: ...
method open (line 31) | def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool...
class BackgroundBrowser (line 33) | class BackgroundBrowser(GenericBrowser): ...
class UnixBrowser (line 35) | class UnixBrowser(BaseBrowser):
method open (line 36) | def open(self, url: str, new: Literal[0, 1, 2] = 0, autoraise: bool = ...
class Mozilla (line 45) | class Mozilla(UnixBrowser): ...
class Galeon (line 48) | class Galeon(UnixBrowser):
class Grail (line 51) | class Grail(BaseBrowser):
method open (line 52) | def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool...
class Chrome (line 54) | class Chrome(UnixBrowser): ...
class Opera (line 55) | class Opera(UnixBrowser): ...
class Elinks (line 56) | class Elinks(UnixBrowser): ...
class Konqueror (line 58) | class Konqueror(BaseBrowser):
method open (line 59) | def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool...
class WindowsDefault (line 62) | class WindowsDefault(BaseBrowser):
method open (line 63) | def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool...
class MacOSX (line 68) | class MacOSX(BaseBrowser):
method __init__ (line 69) | def __init__(self, name: str) -> None: ...
method open (line 70) | def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool...
class MacOSXOSAScript (line 72) | class MacOSXOSAScript(BaseBrowser): # In runtime this class does not ha...
method __init__ (line 74) | def __init__(self, name: str = "default") -> None: ...
method __init__ (line 76) | def __init__(self, name: str) -> None: ...
method open (line 78) | def open(self, url: str, new: int = 0, autoraise: bool = True) -> bool...
FILE: mypy/typeshed/stdlib/winreg.pyi
function CloseKey (line 9) | def CloseKey(hkey: _KeyType, /) -> None: ...
function ConnectRegistry (line 10) | def ConnectRegistry(computer_name: str | None, key: _KeyType, /) -> HKEY...
function CreateKey (line 11) | def CreateKey(key: _KeyType, sub_key: str | None, /) -> HKEYType: ...
function CreateKeyEx (line 12) | def CreateKeyEx(key: _KeyType, sub_key: str | None, reserved: int = 0, a...
function DeleteKey (line 13) | def DeleteKey(key: _KeyType, sub_key: str, /) -> None: ...
function DeleteKeyEx (line 14) | def DeleteKeyEx(key: _KeyType, sub_key: str, access: int = 256, reserved...
function DeleteValue (line 15) | def DeleteValue(key: _KeyType, value: str, /) -> None: ...
function EnumKey (line 16) | def EnumKey(key: _KeyType, index: int, /) -> str: ...
function EnumValue (line 17) | def EnumValue(key: _KeyType, index: int, /) -> tuple[str, Any, int]: ...
function ExpandEnvironmentStrings (line 18) | def ExpandEnvironmentStrings(string: str, /) -> str: ...
function FlushKey (line 19) | def FlushKey(key: _KeyType, /) -> None: ...
function LoadKey (line 20) | def LoadKey(key: _KeyType, sub_key: str, file_name: str, /) -> None: ...
function OpenKey (line 21) | def OpenKey(key: _KeyType, sub_key: str, reserved: int = 0, access: int ...
function OpenKeyEx (line 22) | def OpenKeyEx(key: _KeyType, sub_key: str, reserved: int = 0, access: in...
function QueryInfoKey (line 23) | def QueryInfoKey(key: _KeyType, /) -> tuple[int, int, int]: ...
function QueryValue (line 24) | def QueryValue(key: _KeyType, sub_key: str | None, /) -> str: ...
function QueryValueEx (line 25) | def QueryValueEx(key: _KeyType, name: str, /) -> tuple[Any, int]: ...
function SaveKey (line 26) | def SaveKey(key: _KeyType, file_name: str, /) -> None: ...
function SetValue (line 27) | def SetValue(key: _KeyType, sub_key: str, type: int, value: str, /) -> N...
function SetValueEx (line 29) | def SetValueEx(
function SetValueEx (line 33) | def SetValueEx(
function SetValueEx (line 37) | def SetValueEx(
function SetValueEx (line 41) | def SetValueEx(
function SetValueEx (line 50) | def SetValueEx(
function DisableReflectionKey (line 58) | def DisableReflectionKey(key: _KeyType, /) -> None: ...
function EnableReflectionKey (line 59) | def EnableReflectionKey(key: _KeyType, /) -> None: ...
function QueryReflectionKey (line 60) | def QueryReflectionKey(key: _KeyType, /) -> bool: ...
class HKEYType (line 121) | class HKEYType:
method __bool__ (line 122) | def __bool__(self) -> bool: ...
method __int__ (line 123) | def __int__(self) -> int: ...
method __enter__ (line 124) | def __enter__(self) -> Self: ...
method __exit__ (line 125) | def __exit__(
method Close (line 128) | def Close(self) -> None: ...
method Detach (line 129) | def Detach(self) -> int: ...
method __hash__ (line 130) | def __hash__(self) -> int: ...
method handle (line 132) | def handle(self) -> int: ...
FILE: mypy/typeshed/stdlib/winsound.pyi
function Beep (line 22) | def Beep(frequency: int, duration: int) -> None: ...
function PlaySound (line 25) | def PlaySound(sound: ReadableBuffer | None, flags: Literal[4]) -> None: ...
function PlaySound (line 27) | def PlaySound(sound: str | ReadableBuffer | None, flags: int) -> None: ...
function MessageBeep (line 28) | def MessageBeep(type: int = 0) -> None: ...
FILE: mypy/typeshed/stdlib/wsgiref/handlers.pyi
function format_date_time (line 12) | def format_date_time(timestamp: float | None) -> str: ... # undocumented
function read_environ (line 13) | def read_environ() -> dict[str, str]: ...
class BaseHandler (line 15) | class BaseHandler:
method run (line 34) | def run(self, application: WSGIApplication) -> None: ...
method setup_environ (line 35) | def setup_environ(self) -> None: ...
method finish_response (line 36) | def finish_response(self) -> None: ...
method get_scheme (line 37) | def get_scheme(self) -> str: ...
method set_content_length (line 38) | def set_content_length(self) -> None: ...
method cleanup_headers (line 39) | def cleanup_headers(self) -> None: ...
method start_response (line 40) | def start_response(
method send_preamble (line 43) | def send_preamble(self) -> None: ...
method write (line 44) | def write(self, data: bytes) -> None: ...
method sendfile (line 45) | def sendfile(self) -> bool: ...
method finish_content (line 46) | def finish_content(self) -> None: ...
method close (line 47) | def close(self) -> None: ...
method send_headers (line 48) | def send_headers(self) -> None: ...
method result_is_file (line 49) | def result_is_file(self) -> bool: ...
method client_is_modern (line 50) | def client_is_modern(self) -> bool: ...
method log_exception (line 51) | def log_exception(self, exc_info: OptExcInfo) -> None: ...
method handle_error (line 52) | def handle_error(self) -> None: ...
method error_output (line 53) | def error_output(self, environ: WSGIEnvironment, start_response: Start...
method _write (line 55) | def _write(self, data: bytes) -> None: ...
method _flush (line 57) | def _flush(self) -> None: ...
method get_stdin (line 59) | def get_stdin(self) -> InputStream: ...
method get_stderr (line 61) | def get_stderr(self) -> ErrorStream: ...
method add_cgi_vars (line 63) | def add_cgi_vars(self) -> None: ...
class SimpleHandler (line 65) | class SimpleHandler(BaseHandler):
method __init__ (line 70) | def __init__(
method get_stdin (line 79) | def get_stdin(self) -> InputStream: ...
method get_stderr (line 80) | def get_stderr(self) -> ErrorStream: ...
method add_cgi_vars (line 81) | def add_cgi_vars(self) -> None: ...
method _write (line 82) | def _write(self, data: bytes) -> None: ...
method _flush (line 83) | def _flush(self) -> None: ...
class BaseCGIHandler (line 85) | class BaseCGIHandler(SimpleHandler): ...
class CGIHandler (line 87) | class CGIHandler(BaseCGIHandler):
method __init__ (line 88) | def __init__(self) -> None: ...
class IISCGIHandler (line 90) | class IISCGIHandler(BaseCGIHandler):
method __init__ (line 91) | def __init__(self) -> None: ...
FILE: mypy/typeshed/stdlib/wsgiref/headers.pyi
class Headers (line 9) | class Headers:
method __init__ (line 10) | def __init__(self, headers: _HeaderList | None = None) -> None: ...
method __len__ (line 11) | def __len__(self) -> int: ...
method __setitem__ (line 12) | def __setitem__(self, name: str, val: str) -> None: ...
method __delitem__ (line 13) | def __delitem__(self, name: str) -> None: ...
method __getitem__ (line 14) | def __getitem__(self, name: str) -> str | None: ...
method __contains__ (line 15) | def __contains__(self, name: str) -> bool: ...
method get_all (line 16) | def get_all(self, name: str) -> list[str]: ...
method get (line 18) | def get(self, name: str, default: str) -> str: ...
method get (line 20) | def get(self, name: str, default: str | None = None) -> str | None: ...
method keys (line 21) | def keys(self) -> list[str]: ...
method values (line 22) | def values(self) -> list[str]: ...
method items (line 23) | def items(self) -> _HeaderList: ...
method __bytes__ (line 24) | def __bytes__(self) -> bytes: ...
method setdefault (line 25) | def setdefault(self, name: str, value: str) -> str: ...
method add_header (line 26) | def add_header(self, _name: str, _value: str | None, **_params: str | ...
FILE: mypy/typeshed/stdlib/wsgiref/simple_server.pyi
class ServerHandler (line 13) | class ServerHandler(SimpleHandler): # undocumented
class WSGIServer (line 16) | class WSGIServer(HTTPServer):
method setup_environ (line 19) | def setup_environ(self) -> None: ...
method get_app (line 20) | def get_app(self) -> WSGIApplication | None: ...
method set_app (line 21) | def set_app(self, application: WSGIApplication | None) -> None: ...
class WSGIRequestHandler (line 23) | class WSGIRequestHandler(BaseHTTPRequestHandler):
method get_environ (line 25) | def get_environ(self) -> WSGIEnvironment: ...
method get_stderr (line 26) | def get_stderr(self) -> ErrorStream: ...
function demo_app (line 28) | def demo_app(environ: WSGIEnvironment, start_response: StartResponse) ->...
function make_server (line 33) | def make_server(host: str, port: int, app: WSGIApplication, *, handler_c...
function make_server (line 35) | def make_server(
FILE: mypy/typeshed/stdlib/wsgiref/types.pyi
class StartResponse (line 8) | class StartResponse(Protocol):
method __call__ (line 9) | def __call__(
class InputStream (line 16) | class InputStream(Protocol):
method read (line 17) | def read(self, size: int = ..., /) -> bytes: ...
method readline (line 18) | def readline(self, size: int = ..., /) -> bytes: ...
method readlines (line 19) | def readlines(self, hint: int = ..., /) -> list[bytes]: ...
method __iter__ (line 20) | def __iter__(self) -> Iterator[bytes]: ...
class ErrorStream (line 22) | class ErrorStream(Protocol):
method flush (line 23) | def flush(self) -> object: ...
method write (line 24) | def write(self, s: str, /) -> object: ...
method writelines (line 25) | def writelines(self, seq: list[str], /) -> object: ...
class _Readable (line 27) | class _Readable(Protocol):
method read (line 28) | def read(self, size: int = ..., /) -> bytes: ...
class FileWrapper (line 31) | class FileWrapper(Protocol):
method __call__ (line 32) | def __call__(self, file: _Readable, block_size: int = ..., /) -> Itera...
FILE: mypy/typeshed/stdlib/wsgiref/util.pyi
class FileWrapper (line 10) | class FileWrapper:
method __init__ (line 14) | def __init__(self, filelike: IO[bytes], blksize: int = 8192) -> None: ...
method __getitem__ (line 16) | def __getitem__(self, key: Any) -> bytes: ...
method __iter__ (line 18) | def __iter__(self) -> FileWrapper: ...
method __next__ (line 19) | def __next__(self) -> bytes: ...
function guess_scheme (line 21) | def guess_scheme(environ: WSGIEnvironment) -> str: ...
function application_uri (line 22) | def application_uri(environ: WSGIEnvironment) -> str: ...
function request_uri (line 23) | def request_uri(environ: WSGIEnvironment, include_query: bool = True) ->...
function shift_path_info (line 24) | def shift_path_info(environ: WSGIEnvironment) -> str | None: ...
function setup_testing_defaults (line 25) | def setup_testing_defaults(environ: WSGIEnvironment) -> None: ...
function is_hop_by_hop (line 26) | def is_hop_by_hop(header_name: str) -> bool: ...
FILE: mypy/typeshed/stdlib/wsgiref/validate.pyi
class WSGIWarning (line 8) | class WSGIWarning(Warning): ...
function validator (line 10) | def validator(application: WSGIApplication) -> WSGIApplication: ...
class InputWrapper (line 12) | class InputWrapper:
method __init__ (line 14) | def __init__(self, wsgi_input: InputStream) -> None: ...
method read (line 15) | def read(self, size: int) -> bytes: ...
method readline (line 16) | def readline(self, size: int = ...) -> bytes: ...
method readlines (line 17) | def readlines(self, hint: int = ...) -> bytes: ...
method __iter__ (line 18) | def __iter__(self) -> Iterator[bytes]: ...
method close (line 19) | def close(self) -> NoReturn: ...
class ErrorWrapper (line 21) | class ErrorWrapper:
method __init__ (line 23) | def __init__(self, wsgi_errors: ErrorStream) -> None: ...
method write (line 24) | def write(self, s: str) -> None: ...
method flush (line 25) | def flush(self) -> None: ...
method writelines (line 26) | def writelines(self, seq: Iterable[str]) -> None: ...
method close (line 27) | def close(self) -> NoReturn: ...
class WriteWrapper (line 31) | class WriteWrapper:
method __init__ (line 33) | def __init__(self, wsgi_writer: _WriterCallback) -> None: ...
method __call__ (line 34) | def __call__(self, s: bytes) -> None: ...
class PartialIteratorWrapper (line 36) | class PartialIteratorWrapper:
method __init__ (line 38) | def __init__(self, wsgi_iterator: Iterator[bytes]) -> None: ...
method __iter__ (line 39) | def __iter__(self) -> IteratorWrapper: ...
class IteratorWrapper (line 41) | class IteratorWrapper:
method __init__ (line 46) | def __init__(self, wsgi_iterator: Iterator[bytes], check_start_respons...
method __iter__ (line 47) | def __iter__(self) -> IteratorWrapper: ...
method __next__ (line 48) | def __next__(self) -> bytes: ...
method close (line 49) | def close(self) -> None: ...
method __del__ (line 50) | def __del__(self) -> None: ...
FILE: mypy/typeshed/stdlib/xdrlib.pyi
class Error (line 8) | class Error(Exception):
method __init__ (line 10) | def __init__(self, msg: str) -> None: ...
class ConversionError (line 12) | class ConversionError(Error): ...
class Packer (line 14) | class Packer:
method reset (line 15) | def reset(self) -> None: ...
method get_buffer (line 16) | def get_buffer(self) -> bytes: ...
method get_buf (line 17) | def get_buf(self) -> bytes: ...
method pack_uint (line 18) | def pack_uint(self, x: int) -> None: ...
method pack_int (line 19) | def pack_int(self, x: int) -> None: ...
method pack_enum (line 20) | def pack_enum(self, x: int) -> None: ...
method pack_bool (line 21) | def pack_bool(self, x: bool) -> None: ...
method pack_uhyper (line 22) | def pack_uhyper(self, x: int) -> None: ...
method pack_hyper (line 23) | def pack_hyper(self, x: int) -> None: ...
method pack_float (line 24) | def pack_float(self, x: float) -> None: ...
method pack_double (line 25) | def pack_double(self, x: float) -> None: ...
method pack_fstring (line 26) | def pack_fstring(self, n: int, s: bytes) -> None: ...
method pack_fopaque (line 27) | def pack_fopaque(self, n: int, s: bytes) -> None: ...
method pack_string (line 28) | def pack_string(self, s: bytes) -> None: ...
method pack_opaque (line 29) | def pack_opaque(self, s: bytes) -> None: ...
method pack_bytes (line 30) | def pack_bytes(self, s: bytes) -> None: ...
method pack_list (line 31) | def pack_list(self, list: Sequence[_T], pack_item: Callable[[_T], obje...
method pack_farray (line 32) | def pack_farray(self, n: int, list: Sequence[_T], pack_item: Callable[...
method pack_array (line 33) | def pack_array(self, list: Sequence[_T], pack_item: Callable[[_T], obj...
class Unpacker (line 35) | class Unpacker:
method __init__ (line 36) | def __init__(self, data: bytes) -> None: ...
method reset (line 37) | def reset(self, data: bytes) -> None: ...
method get_position (line 38) | def get_position(self) -> int: ...
method set_position (line 39) | def set_position(self, position: int) -> None: ...
method get_buffer (line 40) | def get_buffer(self) -> bytes: ...
method done (line 41) | def done(self) -> None: ...
method unpack_uint (line 42) | def unpack_uint(self) -> int: ...
method unpack_int (line 43) | def unpack_int(self) -> int: ...
method unpack_enum (line 44) | def unpack_enum(self) -> int: ...
method unpack_bool (line 45) | def unpack_bool(self) -> bool: ...
method unpack_uhyper (line 46) | def unpack_uhyper(self) -> int: ...
method unpack_hyper (line 47) | def unpack_hyper(self) -> int: ...
method unpack_float (line 48) | def unpack_float(self) -> float: ...
method unpack_double (line 49) | def unpack_double(self) -> float: ...
method unpack_fstring (line 50) | def unpack_fstring(self, n: int) -> bytes: ...
method unpack_fopaque (line 51) | def unpack_fopaque(self, n: int) -> bytes: ...
method unpack_string (line 52) | def unpack_string(self) -> bytes: ...
method unpack_opaque (line 53) | def unpack_opaque(self) -> bytes: ...
method unpack_bytes (line 54) | def unpack_bytes(self) -> bytes: ...
method unpack_list (line 55) | def unpack_list(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
method unpack_farray (line 56) | def unpack_farray(self, n: int, unpack_item: Callable[[], _T]) -> list...
method unpack_array (line 57) | def unpack_array(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
FILE: mypy/typeshed/stdlib/xml/dom/NodeFilter.pyi
class NodeFilter (line 1) | class NodeFilter:
method acceptNode (line 19) | def acceptNode(self, node) -> int: ...
FILE: mypy/typeshed/stdlib/xml/dom/__init__.pyi
class Node (line 5) | class Node:
class DOMException (line 37) | class DOMException(Exception):
method __init__ (line 39) | def __init__(self, *args: Any, **kw: Any) -> None: ...
method _get_code (line 40) | def _get_code(self) -> int: ...
class IndexSizeErr (line 42) | class IndexSizeErr(DOMException): ...
class DomstringSizeErr (line 43) | class DomstringSizeErr(DOMException): ...
class HierarchyRequestErr (line 44) | class HierarchyRequestErr(DOMException): ...
class WrongDocumentErr (line 45) | class WrongDocumentErr(DOMException): ...
class InvalidCharacterErr (line 46) | class InvalidCharacterErr(DOMException): ...
class NoDataAllowedErr (line 47) | class NoDataAllowedErr(DOMException): ...
class NoModificationAllowedErr (line 48) | class NoModificationAllowedErr(DOMException): ...
class NotFoundErr (line 49) | class NotFoundErr(DOMException): ...
class NotSupportedErr (line 50) | class NotSupportedErr(DOMException): ...
class InuseAttributeErr (line 51) | class InuseAttributeErr(DOMException): ...
class InvalidStateErr (line 52) | class InvalidStateErr(DOMException): ...
class SyntaxErr (line 53) | class SyntaxErr(DOMException): ...
class InvalidModificationErr (line 54) | class InvalidModificationErr(DOMException): ...
class NamespaceErr (line 55) | class NamespaceErr(DOMException): ...
class InvalidAccessErr (line 56) | class InvalidAccessErr(DOMException): ...
class ValidationErr (line 57) | class ValidationErr(DOMException): ...
class UserDataHandler (line 59) | class UserDataHandler:
FILE: mypy/typeshed/stdlib/xml/dom/domreg.pyi
function registerDOMImplementation (line 7) | def registerDOMImplementation(name: str, factory: Callable[[], DOMImplem...
function getDOMImplementation (line 8) | def getDOMImplementation(name: str | None = None, features: str | Iterab...
FILE: mypy/typeshed/stdlib/xml/dom/expatbuilder.pyi
class ElementInfo (line 15) | class ElementInfo:
method __init__ (line 17) | def __init__(self, tagName, model: Incomplete | None = None) -> None: ...
method getAttributeType (line 18) | def getAttributeType(self, aname) -> TypeInfo: ...
method getAttributeTypeNS (line 19) | def getAttributeTypeNS(self, namespaceURI, localName) -> TypeInfo: ...
method isElementContent (line 20) | def isElementContent(self) -> bool: ...
method isEmpty (line 21) | def isEmpty(self) -> bool: ...
method isId (line 22) | def isId(self, aname) -> bool: ...
method isIdNS (line 23) | def isIdNS(self, euri, ename, auri, aname) -> bool: ...
class ExpatBuilder (line 25) | class ExpatBuilder:
method __init__ (line 28) | def __init__(self, options: Options | None = None) -> None: ...
method createParser (line 29) | def createParser(self): ...
method getParser (line 30) | def getParser(self): ...
method reset (line 31) | def reset(self) -> None: ...
method install (line 32) | def install(self, parser) -> None: ...
method parseFile (line 33) | def parseFile(self, file: SupportsRead[ReadableBuffer | str]) -> Docum...
method parseString (line 34) | def parseString(self, string: str | ReadableBuffer) -> Document: ...
method start_doctype_decl_handler (line 35) | def start_doctype_decl_handler(self, doctypeName, systemId, publicId, ...
method end_doctype_decl_handler (line 36) | def end_doctype_decl_handler(self) -> None: ...
method pi_handler (line 37) | def pi_handler(self, target, data) -> None: ...
method character_data_handler_cdata (line 38) | def character_data_handler_cdata(self, data) -> None: ...
method character_data_handler (line 39) | def character_data_handler(self, data) -> None: ...
method start_cdata_section_handler (line 40) | def start_cdata_section_handler(self) -> None: ...
method end_cdata_section_handler (line 41) | def end_cdata_section_handler(self) -> None: ...
method entity_decl_handler (line 42) | def entity_decl_handler(self, entityName, is_parameter_entity, value, ...
method notation_decl_handler (line 43) | def notation_decl_handler(self, notationName, base, systemId, publicId...
method comment_handler (line 44) | def comment_handler(self, data) -> None: ...
method external_entity_ref_handler (line 45) | def external_entity_ref_handler(self, context, base, systemId, publicI...
method first_element_handler (line 46) | def first_element_handler(self, name, attributes) -> None: ...
method start_element_handler (line 47) | def start_element_handler(self, name, attributes) -> None: ...
method end_element_handler (line 48) | def end_element_handler(self, name) -> None: ...
method element_decl_handler (line 49) | def element_decl_handler(self, name, model) -> None: ...
method attlist_decl_handler (line 50) | def attlist_decl_handler(self, elem, name, type, default, required) ->...
method xml_decl_handler (line 51) | def xml_decl_handler(self, version, encoding, standalone) -> None: ...
class FilterVisibilityController (line 53) | class FilterVisibilityController:
method __init__ (line 55) | def __init__(self, filter: DOMBuilderFilter) -> None: ...
method startContainer (line 56) | def startContainer(self, node: Node) -> int: ...
method acceptNode (line 57) | def acceptNode(self, node: Node) -> int: ...
class FilterCrutch (line 59) | class FilterCrutch:
method __init__ (line 60) | def __init__(self, builder) -> None: ...
class Rejecter (line 62) | class Rejecter(FilterCrutch):
method start_element_handler (line 63) | def start_element_handler(self, *args: Any) -> None: ...
method end_element_handler (line 64) | def end_element_handler(self, *args: Any) -> None: ...
class Skipper (line 66) | class Skipper(FilterCrutch):
method start_element_handler (line 67) | def start_element_handler(self, *args: Any) -> None: ...
method end_element_handler (line 68) | def end_element_handler(self, *args: Any) -> None: ...
class FragmentBuilder (line 70) | class FragmentBuilder(ExpatBuilder):
method __init__ (line 74) | def __init__(self, context, options: Options | None = None) -> None: ...
class Namespaces (line 76) | class Namespaces:
method createParser (line 77) | def createParser(self): ...
method install (line 78) | def install(self, parser) -> None: ...
method start_namespace_decl_handler (line 79) | def start_namespace_decl_handler(self, prefix, uri) -> None: ...
method start_element_handler (line 80) | def start_element_handler(self, name, attributes) -> None: ...
method end_element_handler (line 81) | def end_element_handler(self, name) -> None: ...
class ExpatBuilderNS (line 83) | class ExpatBuilderNS(Namespaces, ExpatBuilder): ...
class FragmentBuilderNS (line 84) | class FragmentBuilderNS(Namespaces, FragmentBuilder): ...
class ParseEscape (line 85) | class ParseEscape(Exception): ...
class InternalSubsetExtractor (line 87) | class InternalSubsetExtractor(ExpatBuilder):
method getSubset (line 89) | def getSubset(self) -> Any | None: ...
method parseFile (line 90) | def parseFile(self, file: SupportsRead[ReadableBuffer | str]) -> None:...
method parseString (line 91) | def parseString(self, string: str | ReadableBuffer) -> None: ... # ty...
method start_doctype_decl_handler (line 92) | def start_doctype_decl_handler(self, name, publicId, systemId, has_int...
method end_doctype_decl_handler (line 93) | def end_doctype_decl_handler(self) -> NoReturn: ...
method start_element_handler (line 94) | def start_element_handler(self, name, attrs) -> NoReturn: ...
function parse (line 96) | def parse(file: str | SupportsRead[ReadableBuffer | str], namespaces: bo...
function parseString (line 97) | def parseString(string: str | ReadableBuffer, namespaces: bool = True): ...
function parseFragment (line 98) | def parseFragment(file, context, namespaces: bool = True): ...
function parseFragmentString (line 99) | def parseFragmentString(string: str, context, namespaces: bool = True): ...
function makeBuilder (line 100) | def makeBuilder(options: Options) -> ExpatBuilderNS | ExpatBuilder: ...
FILE: mypy/typeshed/stdlib/xml/dom/minicompat.pyi
class NodeList (line 10) | class NodeList(list[_T]):
method length (line 12) | def length(self) -> int: ...
method item (line 13) | def item(self, index: int) -> _T | None: ...
class EmptyNodeList (line 15) | class EmptyNodeList(tuple[()]):
method length (line 17) | def length(self) -> Literal[0]: ...
method item (line 18) | def item(self, index: int) -> None: ...
method __add__ (line 19) | def __add__(self, other: Iterable[_T]) -> NodeList[_T]: ... # type: i...
method __radd__ (line 20) | def __radd__(self, other: Iterable[_T]) -> NodeList[_T]: ...
function defproperty (line 22) | def defproperty(klass: type[Any], name: str, doc: str) -> None: ...
FILE: mypy/typeshed/stdlib/xml/dom/minidom.pyi
function parse (line 12) | def parse(
function parseString (line 15) | def parseString(string: str | ReadableBuffer, parser: XMLReader | None =...
function getDOMImplementation (line 16) | def getDOMImplementation(features=None) -> DOMImplementation | None: ...
class Node (line 18) | class Node(xml.dom.Node):
method firstChild (line 26) | def firstChild(self) -> Node | None: ...
method lastChild (line 28) | def lastChild(self) -> Node | None: ...
method localName (line 30) | def localName(self) -> str | None: ...
method __bool__ (line 31) | def __bool__(self) -> Literal[True]: ...
method toxml (line 34) | def toxml(self, encoding: str, standalone: bool | None = None) -> byte...
method toxml (line 36) | def toxml(self, encoding: None = None, standalone: bool | None = None)...
method toprettyxml (line 38) | def toprettyxml(
method toprettyxml (line 47) | def toprettyxml(
method toprettyxml (line 56) | def toprettyxml(
method toxml (line 68) | def toxml(self, encoding: str) -> bytes: ...
method toxml (line 70) | def toxml(self, encoding: None = None) -> str: ...
method toprettyxml (line 72) | def toprettyxml(
method toprettyxml (line 80) | def toprettyxml(
method toprettyxml (line 88) | def toprettyxml(
method hasChildNodes (line 97) | def hasChildNodes(self) -> bool: ...
method insertBefore (line 98) | def insertBefore(self, newChild, refChild): ...
method appendChild (line 99) | def appendChild(self, node: _N) -> _N: ...
method replaceChild (line 100) | def replaceChild(self, newChild, oldChild): ...
method removeChild (line 101) | def removeChild(self, oldChild): ...
method normalize (line 102) | def normalize(self) -> None: ...
method cloneNode (line 103) | def cloneNode(self, deep): ...
method isSupported (line 104) | def isSupported(self, feature, version): ...
method isSameNode (line 105) | def isSameNode(self, other): ...
method getInterface (line 106) | def getInterface(self, feature): ...
method getUserData (line 107) | def getUserData(self, key): ...
method setUserData (line 108) | def setUserData(self, key, data, handler): ...
method unlink (line 110) | def unlink(self) -> None: ...
method __enter__ (line 111) | def __enter__(self) -> Self: ...
method __exit__ (line 112) | def __exit__(self, et, ev, tb) -> None: ...
class DocumentFragment (line 114) | class DocumentFragment(Node):
method __init__ (line 121) | def __init__(self) -> None: ...
class Attr (line 123) | class Attr(Node):
method __init__ (line 135) | def __init__(
method unlink (line 138) | def unlink(self) -> None: ...
method isId (line 140) | def isId(self) -> bool: ...
method schemaType (line 142) | def schemaType(self): ...
class NamedNodeMap (line 144) | class NamedNodeMap:
method __init__ (line 145) | def __init__(self, attrs, attrsNS, ownerElement) -> None: ...
method item (line 146) | def item(self, index): ...
method items (line 147) | def items(self): ...
method itemsNS (line 148) | def itemsNS(self): ...
method __contains__ (line 149) | def __contains__(self, key): ...
method keys (line 150) | def keys(self): ...
method keysNS (line 151) | def keysNS(self): ...
method values (line 152) | def values(self): ...
method get (line 153) | def get(self, name: str, value: Incomplete | None = None): ...
method __len__ (line 155) | def __len__(self) -> int: ...
method __eq__ (line 156) | def __eq__(self, other: object) -> bool: ...
method __ge__ (line 157) | def __ge__(self, other: NamedNodeMap) -> bool: ...
method __gt__ (line 158) | def __gt__(self, other: NamedNodeMap) -> bool: ...
method __le__ (line 159) | def __le__(self, other: NamedNodeMap) -> bool: ...
method __lt__ (line 160) | def __lt__(self, other: NamedNodeMap) -> bool: ...
method __getitem__ (line 161) | def __getitem__(self, attname_or_tuple: tuple[str, str | None] | str):...
method __setitem__ (line 162) | def __setitem__(self, attname: str, value: Attr | str) -> None: ...
method getNamedItem (line 163) | def getNamedItem(self, name: str) -> Attr | None: ...
method getNamedItemNS (line 164) | def getNamedItemNS(self, namespaceURI: str, localName: str | None) -> ...
method removeNamedItem (line 165) | def removeNamedItem(self, name: str) -> Attr: ...
method removeNamedItemNS (line 166) | def removeNamedItemNS(self, namespaceURI: str, localName: str | None):...
method setNamedItem (line 167) | def setNamedItem(self, node: Attr) -> Attr: ...
method setNamedItemNS (line 168) | def setNamedItemNS(self, node: Attr) -> Attr: ...
method __delitem__ (line 169) | def __delitem__(self, attname_or_tuple: tuple[str, str | None] | str) ...
method length (line 171) | def length(self) -> int: ...
class TypeInfo (line 175) | class TypeInfo:
method __init__ (line 178) | def __init__(self, namespace: Incomplete | None, name: str) -> None: ...
class Element (line 180) | class Element(Node):
method __init__ (line 191) | def __init__(
method unlink (line 194) | def unlink(self) -> None: ...
method getAttribute (line 195) | def getAttribute(self, attname: str) -> str: ...
method getAttributeNS (line 196) | def getAttributeNS(self, namespaceURI: str, localName): ...
method setAttribute (line 197) | def setAttribute(self, attname: str, value: str) -> None: ...
method setAttributeNS (line 198) | def setAttributeNS(self, namespaceURI: str, qualifiedName: str, value)...
method getAttributeNode (line 199) | def getAttributeNode(self, attrname: str): ...
method getAttributeNodeNS (line 200) | def getAttributeNodeNS(self, namespaceURI: str, localName): ...
method setAttributeNode (line 201) | def setAttributeNode(self, attr): ...
method removeAttribute (line 203) | def removeAttribute(self, name: str) -> None: ...
method removeAttributeNS (line 204) | def removeAttributeNS(self, namespaceURI: str, localName) -> None: ...
method removeAttributeNode (line 205) | def removeAttributeNode(self, node): ...
method hasAttribute (line 207) | def hasAttribute(self, name: str) -> bool: ...
method hasAttributeNS (line 208) | def hasAttributeNS(self, namespaceURI: str, localName) -> bool: ...
method getElementsByTagName (line 209) | def getElementsByTagName(self, name: str) -> NodeList[Element]: ...
method getElementsByTagNameNS (line 210) | def getElementsByTagNameNS(self, namespaceURI: str, localName: str) ->...
method writexml (line 211) | def writexml(self, writer: SupportsWrite[str], indent: str = "", addin...
method hasAttributes (line 212) | def hasAttributes(self) -> bool: ...
method setIdAttribute (line 213) | def setIdAttribute(self, name) -> None: ...
method setIdAttributeNS (line 214) | def setIdAttributeNS(self, namespaceURI: str, localName) -> None: ...
method setIdAttributeNode (line 215) | def setIdAttributeNode(self, idAttr) -> None: ...
method attributes (line 217) | def attributes(self) -> NamedNodeMap: ...
class Childless (line 219) | class Childless:
method appendChild (line 224) | def appendChild(self, node) -> NoReturn: ...
method hasChildNodes (line 225) | def hasChildNodes(self) -> bool: ...
method insertBefore (line 226) | def insertBefore(self, newChild, refChild) -> NoReturn: ...
method removeChild (line 227) | def removeChild(self, oldChild) -> NoReturn: ...
method normalize (line 228) | def normalize(self) -> None: ...
method replaceChild (line 229) | def replaceChild(self, newChild, oldChild) -> NoReturn: ...
class ProcessingInstruction (line 231) | class ProcessingInstruction(Childless, Node):
method __init__ (line 235) | def __init__(self, target, data) -> None: ...
method writexml (line 238) | def writexml(self, writer: SupportsWrite[str], indent: str = "", addin...
class CharacterData (line 240) | class CharacterData(Childless, Node):
method __init__ (line 243) | def __init__(self) -> None: ...
method __len__ (line 244) | def __len__(self) -> int: ...
method substringData (line 247) | def substringData(self, offset: int, count: int) -> str: ...
method appendData (line 248) | def appendData(self, arg: str) -> None: ...
method insertData (line 249) | def insertData(self, offset: int, arg: str) -> None: ...
method deleteData (line 250) | def deleteData(self, offset: int, count: int) -> None: ...
method replaceData (line 251) | def replaceData(self, offset: int, count: int, arg: str) -> None: ...
method length (line 253) | def length(self) -> int: ...
class Text (line 255) | class Text(CharacterData):
method splitText (line 260) | def splitText(self, offset: int) -> Self: ...
method writexml (line 261) | def writexml(self, writer: SupportsWrite[str], indent: str = "", addin...
method replaceWholeText (line 262) | def replaceWholeText(self, content) -> Self | None: ...
method isWhitespaceInElementContent (line 264) | def isWhitespaceInElementContent(self) -> bool: ...
method wholeText (line 266) | def wholeText(self) -> str: ...
class Comment (line 268) | class Comment(CharacterData):
method __init__ (line 271) | def __init__(self, data) -> None: ...
method writexml (line 272) | def writexml(self, writer: SupportsWrite[str], indent: str = "", addin...
class CDATASection (line 274) | class CDATASection(Text):
method writexml (line 277) | def writexml(self, writer: SupportsWrite[str], indent: str = "", addin...
class ReadOnlySequentialNamedNodeMap (line 279) | class ReadOnlySequentialNamedNodeMap:
method __init__ (line 280) | def __init__(self, seq=()) -> None: ...
method __len__ (line 281) | def __len__(self) -> int: ...
method getNamedItem (line 282) | def getNamedItem(self, name): ...
method getNamedItemNS (line 283) | def getNamedItemNS(self, namespaceURI: str, localName): ...
method __getitem__ (line 284) | def __getitem__(self, name_or_tuple): ...
method item (line 285) | def item(self, index): ...
method removeNamedItem (line 286) | def removeNamedItem(self, name) -> None: ...
method removeNamedItemNS (line 287) | def removeNamedItemNS(self, namespaceURI: str, localName) -> None: ...
method setNamedItem (line 288) | def setNamedItem(self, node) -> None: ...
method setNamedItemNS (line 289) | def setNamedItemNS(self, node) -> None: ...
method length (line 291) | def length(self) -> int: ...
class Identified (line 293) | class Identified:
class DocumentType (line 297) | class DocumentType(Identified, Childless, Node):
method __init__ (line 305) | def __init__(self, qualifiedName: str) -> None: ...
method cloneNode (line 306) | def cloneNode(self, deep): ...
method writexml (line 307) | def writexml(self, writer: SupportsWrite[str], indent: str = "", addin...
class Entity (line 309) | class Entity(Identified, Node):
method __init__ (line 319) | def __init__(self, name, publicId, systemId, notation) -> None: ...
method appendChild (line 320) | def appendChild(self, newChild) -> NoReturn: ...
method insertBefore (line 321) | def insertBefore(self, newChild, refChild) -> NoReturn: ...
method removeChild (line 322) | def removeChild(self, oldChild) -> NoReturn: ...
method replaceChild (line 323) | def replaceChild(self, newChild, oldChild) -> NoReturn: ...
class Notation (line 325) | class Notation(Identified, Childless, Node):
method __init__ (line 329) | def __init__(self, name, publicId, systemId) -> None: ...
class DOMImplementation (line 331) | class DOMImplementation(DOMImplementationLS):
method hasFeature (line 332) | def hasFeature(self, feature: str, version: str | None) -> bool: ...
method createDocument (line 333) | def createDocument(self, namespaceURI: str | None, qualifiedName: str ...
method createDocumentType (line 334) | def createDocumentType(self, qualifiedName: str | None, publicId: str ...
method getInterface (line 335) | def getInterface(self, feature: str) -> Self | None: ...
class ElementInfo (line 337) | class ElementInfo:
method __init__ (line 339) | def __init__(self, name) -> None: ...
method getAttributeType (line 340) | def getAttributeType(self, aname): ...
method getAttributeTypeNS (line 341) | def getAttributeTypeNS(self, namespaceURI: str, localName): ...
method isElementContent (line 342) | def isElementContent(self): ...
method isEmpty (line 343) | def isEmpty(self): ...
method isId (line 344) | def isId(self, aname): ...
method isIdNS (line 345) | def isIdNS(self, namespaceURI: str, localName): ...
class Document (line 347) | class Document(Node, DocumentLS):
method __init__ (line 365) | def __init__(self) -> None: ...
method appendChild (line 366) | def appendChild(self, node: _N) -> _N: ...
method removeChild (line 368) | def removeChild(self, oldChild): ...
method unlink (line 369) | def unlink(self) -> None: ...
method cloneNode (line 370) | def cloneNode(self, deep): ...
method createDocumentFragment (line 371) | def createDocumentFragment(self) -> DocumentFragment: ...
method createElement (line 372) | def createElement(self, tagName: str) -> Element: ...
method createTextNode (line 373) | def createTextNode(self, data: str) -> Text: ...
method createCDATASection (line 374) | def createCDATASection(self, data: str) -> CDATASection: ...
method createComment (line 375) | def createComment(self, data: str) -> Comment: ...
method createProcessingInstruction (line 376) | def createProcessingInstruction(self, target, data): ...
method createAttribute (line 377) | def createAttribute(self, qName) -> Attr: ...
method createElementNS (line 378) | def createElementNS(self, namespaceURI: str, qualifiedName: str): ...
method createAttributeNS (line 379) | def createAttributeNS(self, namespaceURI: str, qualifiedName: str) -> ...
method getElementById (line 380) | def getElementById(self, id: str) -> Element | None: ...
method getElementsByTagName (line 381) | def getElementsByTagName(self, name: str) -> NodeList[Element]: ...
method getElementsByTagNameNS (line 382) | def getElementsByTagNameNS(self, namespaceURI: str, localName: str) ->...
method isSupported (line 383) | def isSupported(self, feature: str, version: str | None) -> bool: ...
method importNode (line 384) | def importNode(self, node, deep): ...
method writexml (line 386) | def writexml(
method writexml (line 396) | def writexml(
method renameNode (line 405) | def renameNode(self, n, namespaceURI: str, name): ...
FILE: mypy/typeshed/stdlib/xml/dom/pulldom.pyi
class PullDOM (line 36) | class PullDOM(ContentHandler):
method __init__ (line 43) | def __init__(self, documentFactory: _DocumentFactory = None) -> None: ...
method pop (line 44) | def pop(self) -> Element: ...
method setDocumentLocator (line 45) | def setDocumentLocator(self, locator) -> None: ...
method startPrefixMapping (line 46) | def startPrefixMapping(self, prefix, uri) -> None: ...
method endPrefixMapping (line 47) | def endPrefixMapping(self, prefix) -> None: ...
method startElementNS (line 48) | def startElementNS(self, name, tagName, attrs) -> None: ...
method endElementNS (line 49) | def endElementNS(self, name, tagName) -> None: ...
method startElement (line 50) | def startElement(self, name, attrs) -> None: ...
method endElement (line 51) | def endElement(self, name) -> None: ...
method comment (line 52) | def comment(self, s) -> None: ...
method processingInstruction (line 53) | def processingInstruction(self, target, data) -> None: ...
method ignorableWhitespace (line 54) | def ignorableWhitespace(self, chars) -> None: ...
method characters (line 55) | def characters(self, chars) -> None: ...
method startDocument (line 56) | def startDocument(self) -> None: ...
method buildDocument (line 57) | def buildDocument(self, uri, tagname): ...
method endDocument (line 58) | def endDocument(self) -> None: ...
method clear (line 59) | def clear(self) -> None: ...
class ErrorHandler (line 61) | class ErrorHandler:
method warning (line 62) | def warning(self, exception) -> None: ...
method error (line 63) | def error(self, exception) -> None: ...
method fatalError (line 64) | def fatalError(self, exception) -> None: ...
class DOMEventStream (line 66) | class DOMEventStream:
method __init__ (line 70) | def __init__(self, stream: SupportsRead[bytes] | SupportsRead[str], pa...
method __getitem__ (line 73) | def __getitem__(self, pos): ...
method __next__ (line 75) | def __next__(self): ...
method __iter__ (line 76) | def __iter__(self): ...
method getEvent (line 77) | def getEvent(self) -> _Event: ...
method expandNode (line 78) | def expandNode(self, node: _Node) -> None: ...
method reset (line 79) | def reset(self) -> None: ...
method clear (line 80) | def clear(self) -> None: ...
class SAX2DOM (line 82) | class SAX2DOM(PullDOM):
method startElementNS (line 83) | def startElementNS(self, name, tagName, attrs) -> None: ...
method startElement (line 84) | def startElement(self, name, attrs) -> None: ...
method processingInstruction (line 85) | def processingInstruction(self, target, data) -> None: ...
method ignorableWhitespace (line 86) | def ignorableWhitespace(self, chars) -> None: ...
method characters (line 87) | def characters(self, chars) -> None: ...
function parse (line 91) | def parse(
function parseString (line 94) | def parseString(string: str, parser: XMLReader | None = None) -> DOMEven...
FILE: mypy/typeshed/stdlib/xml/dom/xmlbuilder.pyi
class Options (line 30) | class Options:
class DOMBuilder (line 51) | class DOMBuilder:
method setFeature (line 59) | def setFeature(self, name: str, state: int) -> None: ...
method supportsFeature (line 60) | def supportsFeature(self, name: str) -> bool: ...
method canSetFeature (line 61) | def canSetFeature(self, name: str, state: int) -> bool: ...
method getFeature (line 63) | def getFeature(self, name: str) -> Any: ...
method parseURI (line 64) | def parseURI(self, uri: str) -> ExpatBuilder | ExpatBuilderNS: ...
method parse (line 65) | def parse(self, input: DOMInputSource) -> ExpatBuilder | ExpatBuilderN...
method parseWithContext (line 69) | def parseWithContext(self, input: Unused, cnode: Unused, action: Liter...
class DOMEntityResolver (line 71) | class DOMEntityResolver:
method resolveEntity (line 72) | def resolveEntity(self, publicId: str | None, systemId: str) -> DOMInp...
class DOMInputSource (line 74) | class DOMInputSource:
class DOMBuilderFilter (line 83) | class DOMBuilderFilter:
method acceptNode (line 89) | def acceptNode(self, element: Unused) -> Literal[1]: ...
method startContainer (line 90) | def startContainer(self, element: Unused) -> Literal[1]: ...
class DocumentLS (line 92) | class DocumentLS:
method abort (line 94) | def abort(self) -> NoReturn: ...
method load (line 99) | def load(self, uri: Unused) -> NoReturn: ...
method loadXML (line 100) | def loadXML(self, source: Unused) -> NoReturn: ...
method saveXML (line 101) | def saveXML(self, snode: Node | None) -> str: ...
class DOMImplementationLS (line 103) | class DOMImplementationLS:
method createDOMBuilder (line 106) | def createDOMBuilder(self, mode: Literal[1], schemaType: None) -> DOMB...
method createDOMWriter (line 107) | def createDOMWriter(self) -> NoReturn: ...
method createDOMInputSource (line 108) | def createDOMInputSource(self) -> DOMInputSource: ...
FILE: mypy/typeshed/stdlib/xml/etree/ElementInclude.pyi
class FatalIncludeError (line 14) | class FatalIncludeError(SyntaxError): ...
function default_loader (line 16) | def default_loader(href: FileDescriptorOrPath, parse: str, encoding: str...
function include (line 22) | def include(
class LimitedRecursiveIncludeError (line 26) | class LimitedRecursiveIncludeError(FatalIncludeError): ...
function include (line 29) | def include(elem: Element, loader: Callable[..., str | Element] | None =...
FILE: mypy/typeshed/stdlib/xml/etree/ElementPath.pyi
function xpath_tokenizer (line 13) | def xpath_tokenizer(pattern: str, namespaces: dict[str, str] | None = No...
function get_parent_map (line 14) | def get_parent_map(context: _SelectorContext) -> dict[Element, Element]:...
function prepare_child (line 15) | def prepare_child(next: _Next, token: _Token) -> _Callback: ...
function prepare_star (line 16) | def prepare_star(next: _Next, token: _Token) -> _Callback: ...
function prepare_self (line 17) | def prepare_self(next: _Next, token: _Token) -> _Callback: ...
function prepare_descendant (line 18) | def prepare_descendant(next: _Next, token: _Token) -> _Callback: ...
function prepare_parent (line 19) | def prepare_parent(next: _Next, token: _Token) -> _Callback: ...
function prepare_predicate (line 20) | def prepare_predicate(next: _Next, token: _Token) -> _Callback: ...
class _SelectorContext (line 24) | class _SelectorContext:
method __init__ (line 27) | def __init__(self, root: Element) -> None: ...
function iterfind (line 31) | def iterfind(elem: Element, path: str, namespaces: dict[str, str] | None...
function find (line 32) | def find(elem: Element, path: str, namespaces: dict[str, str] | None = N...
function findall (line 33) | def findall(elem: Element, path: str, namespaces: dict[str, str] | None ...
function findtext (line 34) | def findtext(elem: Element, path: str, default: _T | None = None, namesp...
FILE: mypy/typeshed/stdlib/xml/etree/ElementTree.pyi
class ParseError (line 46) | class ParseError(SyntaxError):
function iselement (line 51) | def iselement(element: object) -> TypeGuard[Element]: ...
function canonicalize (line 53) | def canonicalize(
function canonicalize (line 67) | def canonicalize(
class Element (line 81) | class Element:
method __init__ (line 86) | def __init__(self, tag: str, attrib: dict[str, str] = ..., **extra: st...
method append (line 87) | def append(self, subelement: Element, /) -> None: ...
method clear (line 88) | def clear(self) -> None: ...
method extend (line 89) | def extend(self, elements: Iterable[Element], /) -> None: ...
method find (line 90) | def find(self, path: str, namespaces: dict[str, str] | None = None) ->...
method findall (line 91) | def findall(self, path: str, namespaces: dict[str, str] | None = None)...
method findtext (line 93) | def findtext(self, path: str, default: None = None, namespaces: dict[s...
method findtext (line 95) | def findtext(self, path: str, default: _T, namespaces: dict[str, str] ...
method get (line 97) | def get(self, key: str, default: None = None) -> str | None: ...
method get (line 99) | def get(self, key: str, default: _T) -> str | _T: ...
method insert (line 100) | def insert(self, index: int, subelement: Element, /) -> None: ...
method items (line 101) | def items(self) -> ItemsView[str, str]: ...
method iter (line 102) | def iter(self, tag: str | None = None) -> Generator[Element, None, Non...
method iterfind (line 103) | def iterfind(self, path: str, namespaces: dict[str, str] | None = None...
method itertext (line 104) | def itertext(self) -> Generator[str, None, None]: ...
method keys (line 105) | def keys(self) -> dict_keys[str, str]: ...
method makeelement (line 107) | def makeelement(self, tag: str, attrib: dict[str, str], /) -> Element:...
method remove (line 108) | def remove(self, subelement: Element, /) -> None: ...
method set (line 109) | def set(self, key: str, value: str, /) -> None: ...
method __copy__ (line 110) | def __copy__(self) -> Element: ... # returns the type of self in Pyth...
method __deepcopy__ (line 111) | def __deepcopy__(self, memo: Any, /) -> Element: ... # Only exists in...
method __delitem__ (line 112) | def __delitem__(self, key: SupportsIndex | slice, /) -> None: ...
method __getitem__ (line 114) | def __getitem__(self, key: SupportsIndex, /) -> Element: ...
method __getitem__ (line 116) | def __getitem__(self, key: slice, /) -> list[Element]: ...
method __len__ (line 117) | def __len__(self) -> int: ...
method __iter__ (line 119) | def __iter__(self) -> Iterator[Element]: ...
method __setitem__ (line 121) | def __setitem__(self, key: SupportsIndex, value: Element, /) -> None: ...
method __setitem__ (line 123) | def __setitem__(self, key: slice, value: Iterable[Element], /) -> None...
method __bool__ (line 127) | def __bool__(self) -> bool: ...
method getchildren (line 129) | def getchildren(self) -> list[Element]: ...
method getiterator (line 130) | def getiterator(self, tag: str | None = None) -> list[Element]: ...
function SubElement (line 132) | def SubElement(parent: Element, tag: str, attrib: dict[str, str] = ..., ...
function Comment (line 133) | def Comment(text: str | None = None) -> Element: ...
function ProcessingInstruction (line 134) | def ProcessingInstruction(target: str, text: str | None = None) -> Eleme...
class QName (line 138) | class QName:
method __init__ (line 140) | def __init__(self, text_or_uri: str, tag: str | None = None) -> None: ...
method __lt__ (line 141) | def __lt__(self, other: QName | str) -> bool: ...
method __le__ (line 142) | def __le__(self, other: QName | str) -> bool: ...
method __gt__ (line 143) | def __gt__(self, other: QName | str) -> bool: ...
method __ge__ (line 144) | def __ge__(self, other: QName | str) -> bool: ...
method __eq__ (line 145) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 146) | def __hash__(self) -> int: ...
class ElementTree (line 148) | class ElementTree:
method __init__ (line 149) | def __init__(self, element: Element | None = None, file: _FileRead | N...
method getroot (line 150) | def getroot(self) -> Element | Any: ...
method parse (line 151) | def parse(self, source: _FileRead, parser: XMLParser | None = None) ->...
method iter (line 152) | def iter(self, tag: str | None = None) -> Generator[Element, None, Non...
method getiterator (line 154) | def getiterator(self, tag: str | None = None) -> list[Element]: ...
method find (line 156) | def find(self, path: str, namespaces: dict[str, str] | None = None) ->...
method findtext (line 158) | def findtext(self, path: str, default: None = None, namespaces: dict[s...
method findtext (line 160) | def findtext(self, path: str, default: _T, namespaces: dict[str, str] ...
method findall (line 161) | def findall(self, path: str, namespaces: dict[str, str] | None = None)...
method iterfind (line 162) | def iterfind(self, path: str, namespaces: dict[str, str] | None = None...
method write (line 163) | def write(
method write_c14n (line 173) | def write_c14n(self, file: _FileWriteC14N) -> None: ...
function register_namespace (line 175) | def register_namespace(prefix: str, uri: str) -> None: ...
function tostring (line 177) | def tostring(
function tostring (line 187) | def tostring(
function tostring (line 197) | def tostring(
function tostringlist (line 207) | def tostringlist(
function tostringlist (line 217) | def tostringlist(
function tostringlist (line 227) | def tostringlist(
function dump (line 236) | def dump(elem: Element) -> None: ...
function indent (line 239) | def indent(tree: Element | ElementTree, space: str = " ", level: int = ...
function parse (line 241) | def parse(source: _FileRead, parser: XMLParser | None = None) -> Element...
class _IterParseIterator (line 243) | class _IterParseIterator(Iterator[tuple[str, Any]]):
method __next__ (line 244) | def __next__(self) -> tuple[str, Any]: ...
method close (line 246) | def close(self) -> None: ...
method __del__ (line 248) | def __del__(self) -> None: ...
function iterparse (line 250) | def iterparse(source: _FileRead, events: Sequence[str] | None = None, pa...
class XMLPullParser (line 252) | class XMLPullParser:
method __init__ (line 253) | def __init__(self, events: Sequence[str] | None = None, *, _parser: XM...
method feed (line 254) | def feed(self, data: str | ReadableBuffer) -> None: ...
method close (line 255) | def close(self) -> None: ...
method read_events (line 258) | def read_events(self) -> Iterator[tuple[str, Any]]: ...
method flush (line 259) | def flush(self) -> None: ...
function XML (line 261) | def XML(text: str | ReadableBuffer, parser: XMLParser | None = None) -> ...
function XMLID (line 262) | def XMLID(text: str | ReadableBuffer, parser: XMLParser | None = None) -...
function fromstringlist (line 267) | def fromstringlist(sequence: Sequence[str | ReadableBuffer], parser: XML...
class TreeBuilder (line 280) | class TreeBuilder:
method __init__ (line 282) | def __init__(
method close (line 294) | def close(self) -> Element: ...
method data (line 295) | def data(self, data: str, /) -> None: ...
method start (line 298) | def start(self, tag: Any, attrs: dict[Any, Any], /) -> Element: ...
method end (line 299) | def end(self, tag: str, /) -> Element: ...
method comment (line 301) | def comment(self, text: str | None, /) -> Element: ...
method pi (line 302) | def pi(self, target: str, text: str | None = None, /) -> Element: ...
class C14NWriterTarget (line 304) | class C14NWriterTarget:
method __init__ (line 305) | def __init__(
method data (line 317) | def data(self, data: str) -> None: ...
method start_ns (line 318) | def start_ns(self, prefix: str, uri: str) -> None: ...
method start (line 319) | def start(self, tag: str, attrs: Mapping[str, str]) -> None: ...
method end (line 320) | def end(self, tag: str) -> None: ...
method comment (line 321) | def comment(self, text: str) -> None: ...
method pi (line 322) | def pi(self, target: str, data: str) -> None: ...
class XMLParser (line 324) | class XMLParser:
method __init__ (line 330) | def __init__(self, *, target: Any = ..., encoding: str | None = ...) -...
method close (line 331) | def close(self) -> Any: ...
method feed (line 332) | def feed(self, data: str | ReadableBuffer, /) -> None: ...
method flush (line 333) | def flush(self) -> None: ...
FILE: mypy/typeshed/stdlib/xml/parsers/expat/__init__.pyi
class ExpatError (line 4) | class ExpatError(Exception):
FILE: mypy/typeshed/stdlib/xml/sax/__init__.pyi
class _SupportsReadClose (line 15) | class _SupportsReadClose(SupportsRead[_T_co], Protocol[_T_co]):
method close (line 16) | def close(self) -> None: ...
function make_parser (line 22) | def make_parser(parser_list: Iterable[str] = ()) -> XMLReader: ...
function parse (line 23) | def parse(source: _Source, handler: ContentHandler, errorHandler: ErrorH...
function parseString (line 24) | def parseString(string: ReadableBuffer | str, handler: ContentHandler, e...
function _create_parser (line 25) | def _create_parser(parser_name: str) -> XMLReader: ...
FILE: mypy/typeshed/stdlib/xml/sax/_exceptions.pyi
class SAXException (line 4) | class SAXException(Exception):
method __init__ (line 5) | def __init__(self, msg: str, exception: Exception | None = None) -> No...
method getMessage (line 6) | def getMessage(self) -> str: ...
method getException (line 7) | def getException(self) -> Exception: ...
method __getitem__ (line 8) | def __getitem__(self, ix: object) -> NoReturn: ...
class SAXParseException (line 10) | class SAXParseException(SAXException):
method __init__ (line 11) | def __init__(self, msg: str, exception: Exception | None, locator: Loc...
method getColumnNumber (line 12) | def getColumnNumber(self) -> int: ...
method getLineNumber (line 13) | def getLineNumber(self) -> int: ...
method getPublicId (line 14) | def getPublicId(self): ...
method getSystemId (line 15) | def getSystemId(self): ...
class SAXNotRecognizedException (line 17) | class SAXNotRecognizedException(SAXException): ...
class SAXNotSupportedException (line 18) | class SAXNotSupportedException(SAXException): ...
class SAXReaderNotAvailable (line 19) | class SAXReaderNotAvailable(SAXNotSupportedException): ...
FILE: mypy/typeshed/stdlib/xml/sax/expatreader.pyi
class _ClosedParser (line 9) | class _ClosedParser: ...
class ExpatLocator (line 11) | class ExpatLocator(xmlreader.Locator):
method __init__ (line 12) | def __init__(self, parser: ExpatParser) -> None: ...
method getColumnNumber (line 13) | def getColumnNumber(self) -> int: ...
method getLineNumber (line 14) | def getLineNumber(self) -> int: ...
method getPublicId (line 15) | def getPublicId(self): ...
method getSystemId (line 16) | def getSystemId(self): ...
class ExpatParser (line 18) | class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
method __init__ (line 19) | def __init__(self, namespaceHandling: int = 0, bufsize: int = 65516) -...
method parse (line 20) | def parse(self, source) -> None: ...
method prepareParser (line 21) | def prepareParser(self, source) -> None: ...
method setContentHandler (line 22) | def setContentHandler(self, handler) -> None: ...
method getFeature (line 23) | def getFeature(self, name: str): ...
method setFeature (line 24) | def setFeature(self, name: str, state) -> None: ...
method getProperty (line 25) | def getProperty(self, name: str): ...
method setProperty (line 26) | def setProperty(self, name: str, value) -> None: ...
method feed (line 28) | def feed(self, data, isFinal: bool = False) -> None: ...
method feed (line 30) | def feed(self, data, isFinal: int = 0) -> None: ...
method flush (line 32) | def flush(self) -> None: ...
method close (line 33) | def close(self) -> None: ...
method reset (line 34) | def reset(self) -> None: ...
method getColumnNumber (line 35) | def getColumnNumber(self) -> int | None: ...
method getLineNumber (line 36) | def getLineNumber(self) -> int: ...
method getPublicId (line 37) | def getPublicId(self): ...
method getSystemId (line 38) | def getSystemId(self): ...
method start_element (line 39) | def start_element(self, name: str, attrs: xmlreader.AttributesImpl) ->...
method end_element (line 40) | def end_element(self, name: str) -> None: ...
method start_element_ns (line 41) | def start_element_ns(self, name: str, attrs) -> None: ...
method end_element_ns (line 42) | def end_element_ns(self, name: str) -> None: ...
method processing_instruction (line 43) | def processing_instruction(self, target: str, data: str) -> None: ...
method character_data (line 44) | def character_data(self, data: str) -> None: ...
method start_namespace_decl (line 45) | def start_namespace_decl(self, prefix: str | None, uri: str) -> None: ...
method end_namespace_decl (line 46) | def end_namespace_decl(self, prefix: str | None) -> None: ...
method start_doctype_decl (line 47) | def start_doctype_decl(self, name: str, sysid: str | None, pubid: str ...
method unparsed_entity_decl (line 48) | def unparsed_entity_decl(self, name, base, sysid, pubid, notation_name...
method notation_decl (line 49) | def notation_decl(self, name, base, sysid, pubid) -> None: ...
method external_entity_ref (line 50) | def external_entity_ref(self, context, base, sysid, pubid): ...
method skipped_entity_handler (line 51) | def skipped_entity_handler(self, name: str, is_pe: bool) -> None: ...
function create_parser (line 53) | def create_parser(namespaceHandling: int = 0, bufsize: int = 65516) -> E...
FILE: mypy/typeshed/stdlib/xml/sax/handler.pyi
class ErrorHandler (line 7) | class ErrorHandler:
method error (line 8) | def error(self, exception: BaseException) -> NoReturn: ...
method fatalError (line 9) | def fatalError(self, exception: BaseException) -> NoReturn: ...
method warning (line 10) | def warning(self, exception: BaseException) -> None: ...
class ContentHandler (line 12) | class ContentHandler:
method setDocumentLocator (line 13) | def setDocumentLocator(self, locator: xmlreader.Locator) -> None: ...
method startDocument (line 14) | def startDocument(self) -> None: ...
method endDocument (line 15) | def endDocument(self) -> None: ...
method startPrefixMapping (line 16) | def startPrefixMapping(self, prefix: str | None, uri: str) -> None: ...
method endPrefixMapping (line 17) | def endPrefixMapping(self, prefix: str | None) -> None: ...
method startElement (line 18) | def startElement(self, name: str, attrs: xmlreader.AttributesImpl) -> ...
method endElement (line 19) | def endElement(self, name: str) -> None: ...
method startElementNS (line 20) | def startElementNS(self, name: tuple[str, str], qname: str, attrs: xml...
method endElementNS (line 21) | def endElementNS(self, name: tuple[str, str], qname: str) -> None: ...
method characters (line 22) | def characters(self, content: str) -> None: ...
method ignorableWhitespace (line 23) | def ignorableWhitespace(self, whitespace: str) -> None: ...
method processingInstruction (line 24) | def processingInstruction(self, target: str, data: str) -> None: ...
method skippedEntity (line 25) | def skippedEntity(self, name: str) -> None: ...
class DTDHandler (line 27) | class DTDHandler:
method notationDecl (line 28) | def notationDecl(self, name, publicId, systemId): ...
method unparsedEntityDecl (line 29) | def unparsedEntityDecl(self, name, publicId, systemId, ndata): ...
class EntityResolver (line 31) | class EntityResolver:
method resolveEntity (line 32) | def resolveEntity(self, publicId, systemId): ...
class LexicalHandler (line 50) | class LexicalHandler:
method comment (line 51) | def comment(self, content: str) -> object: ...
method startDTD (line 52) | def startDTD(self, name: str, public_id: str | None, system_id: str | ...
method endDTD (line 53) | def endDTD(self) -> object: ...
method startCDATA (line 54) | def startCDATA(self) -> object: ...
method endCDATA (line 55) | def endCDATA(self) -> object: ...
FILE: mypy/typeshed/stdlib/xml/sax/saxutils.pyi
function escape (line 7) | def escape(data: str, entities: Mapping[str, str] = {}) -> str: ...
function unescape (line 8) | def unescape(data: str, entities: Mapping[str, str] = {}) -> str: ...
function quoteattr (line 9) | def quoteattr(data: str, entities: Mapping[str, str] = {}) -> str: ...
class XMLGenerator (line 11) | class XMLGenerator(handler.ContentHandler):
method __init__ (line 12) | def __init__(
method startDocument (line 18) | def startDocument(self) -> None: ...
method endDocument (line 19) | def endDocument(self) -> None: ...
method startPrefixMapping (line 20) | def startPrefixMapping(self, prefix: str | None, uri: str) -> None: ...
method endPrefixMapping (line 21) | def endPrefixMapping(self, prefix: str | None) -> None: ...
method startElement (line 22) | def startElement(self, name: str, attrs: xmlreader.AttributesImpl) -> ...
method endElement (line 23) | def endElement(self, name: str) -> None: ...
method startElementNS (line 24) | def startElementNS(self, name: tuple[str, str], qname: str, attrs: xml...
method endElementNS (line 25) | def endElementNS(self, name: tuple[str, str], qname: str) -> None: ...
method characters (line 26) | def characters(self, content: str) -> None: ...
method ignorableWhitespace (line 27) | def ignorableWhitespace(self, content: str) -> None: ...
method processingInstruction (line 28) | def processingInstruction(self, target: str, data: str) -> None: ...
class XMLFilterBase (line 30) | class XMLFilterBase(xmlreader.XMLReader):
method __init__ (line 31) | def __init__(self, parent: xmlreader.XMLReader | None = None) -> None:...
method error (line 32) | def error(self, exception): ...
method fatalError (line 33) | def fatalError(self, exception): ...
method warning (line 34) | def warning(self, exception): ...
method setDocumentLocator (line 35) | def setDocumentLocator(self, locator: xmlreader.Locator) -> None: ...
method startDocument (line 36) | def startDocument(self) -> None: ...
method endDocument (line 37) | def endDocument(self) -> None: ...
method startPrefixMapping (line 38) | def startPrefixMapping(self, prefix: str | None, uri: str) -> None: ...
method endPrefixMapping (line 39) | def endPrefixMapping(self, prefix: str | None) -> None: ...
method startElement (line 40) | def startElement(self, name: str, attrs: xmlreader.AttributesImpl) -> ...
method endElement (line 41) | def endElement(self, name: str) -> None: ...
method startElementNS (line 42) | def startElementNS(self, name: tuple[str, str], qname: str, attrs: xml...
method endElementNS (line 43) | def endElementNS(self, name: tuple[str, str], qname: str) -> None: ...
method characters (line 44) | def characters(self, content: str) -> None: ...
method ignorableWhitespace (line 45) | def ignorableWhitespace(self, chars: str) -> None: ...
method processingInstruction (line 46) | def processingInstruction(self, target: str, data: str) -> None: ...
method skippedEntity (line 47) | def skippedEntity(self, name: str) -> None: ...
method notationDecl (line 48) | def notationDecl(self, name, publicId, systemId): ...
method unparsedEntityDecl (line 49) | def unparsedEntityDecl(self, name, publicId, systemId, ndata): ...
method resolveEntity (line 50) | def resolveEntity(self, publicId, systemId): ...
method parse (line 51) | def parse(self, source: _Source) -> None: ...
method setLocale (line 52) | def setLocale(self, locale): ...
method getFeature (line 53) | def getFeature(self, name: str) -> object: ...
method setFeature (line 54) | def setFeature(self, name: str, state: object) -> None: ...
method getProperty (line 55) | def getProperty(self, name: str) -> object: ...
method setProperty (line 56) | def setProperty(self, name: str, value: object) -> None: ...
method getParent (line 57) | def getParent(self) -> xmlreader.XMLReader: ...
method setParent (line 58) | def setParent(self, parent: xmlreader.XMLReader) -> None: ...
function prepare_input_source (line 60) | def prepare_input_source(source, base=""): ...
FILE: mypy/typeshed/stdlib/xml/sax/xmlreader.pyi
class XMLReader (line 6) | class XMLReader:
method parse (line 7) | def parse(self, source): ...
method getContentHandler (line 8) | def getContentHandler(self) -> ContentHandler: ...
method setContentHandler (line 9) | def setContentHandler(self, handler: ContentHandler) -> None: ...
method getDTDHandler (line 10) | def getDTDHandler(self) -> DTDHandler: ...
method setDTDHandler (line 11) | def setDTDHandler(self, handler: DTDHandler) -> None: ...
method getEntityResolver (line 12) | def getEntityResolver(self) -> EntityResolver: ...
method setEntityResolver (line 13) | def setEntityResolver(self, resolver: EntityResolver) -> None: ...
method getErrorHandler (line 14) | def getErrorHandler(self) -> ErrorHandler: ...
method setErrorHandler (line 15) | def setErrorHandler(self, handler: ErrorHandler) -> None: ...
method setLocale (line 16) | def setLocale(self, locale): ...
method getFeature (line 17) | def getFeature(self, name: str) -> object: ...
method setFeature (line 18) | def setFeature(self, name: str, state: object) -> None: ...
method getProperty (line 19) | def getProperty(self, name: str) -> object: ...
method setProperty (line 20) | def setProperty(self, name: str, value: object) -> None: ...
class IncrementalParser (line 22) | class IncrementalParser(XMLReader):
method __init__ (line 23) | def __init__(self, bufsize: int = 65536) -> None: ...
method parse (line 24) | def parse(self, source): ...
method feed (line 25) | def feed(self, data): ...
method prepareParser (line 26) | def prepareParser(self, source): ...
method close (line 27) | def close(self): ...
method reset (line 28) | def reset(self): ...
class Locator (line 30) | class Locator:
method getColumnNumber (line 31) | def getColumnNumber(self): ...
method getLineNumber (line 32) | def getLineNumber(self): ...
method getPublicId (line 33) | def getPublicId(self): ...
method getSystemId (line 34) | def getSystemId(self): ...
class InputSource (line 36) | class InputSource:
method __init__ (line 37) | def __init__(self, system_id: str | None = None) -> None: ...
method setPublicId (line 38) | def setPublicId(self, public_id): ...
method getPublicId (line 39) | def getPublicId(self): ...
method setSystemId (line 40) | def setSystemId(self, system_id): ...
method getSystemId (line 41) | def getSystemId(self): ...
method setEncoding (line 42) | def setEncoding(self, encoding): ...
method getEncoding (line 43) | def getEncoding(self): ...
method setByteStream (line 44) | def setByteStream(self, bytefile): ...
method getByteStream (line 45) | def getByteStream(self): ...
method setCharacterStream (line 46) | def setCharacterStream(self, charfile): ...
method getCharacterStream (line 47) | def getCharacterStream(self): ...
class AttributesImpl (line 49) | class AttributesImpl:
method __init__ (line 50) | def __init__(self, attrs: Mapping[str, str]) -> None: ...
method getLength (line 51) | def getLength(self) -> int: ...
method getType (line 52) | def getType(self, name: str) -> str: ...
method getValue (line 53) | def getValue(self, name: str) -> str: ...
method getValueByQName (line 54) | def getValueByQName(self, name: str) -> str: ...
method getNameByQName (line 55) | def getNameByQName(self, name: str) -> str: ...
method getQNameByName (line 56) | def getQNameByName(self, name: str) -> str: ...
method getNames (line 57) | def getNames(self) -> list[str]: ...
method getQNames (line 58) | def getQNames(self) -> list[str]: ...
method __len__ (line 59) | def __len__(self) -> int: ...
method __getitem__ (line 60) | def __getitem__(self, name: str) -> str: ...
method keys (line 61) | def keys(self) -> list[str]: ...
method __contains__ (line 62) | def __contains__(self, name: str) -> bool: ...
method get (line 64) | def get(self, name: str, alternative: None = None) -> str | None: ...
method get (line 66) | def get(self, name: str, alternative: str) -> str: ...
method copy (line 67) | def copy(self) -> Self: ...
method items (line 68) | def items(self) -> list[tuple[str, str]]: ...
method values (line 69) | def values(self) -> list[str]: ...
class AttributesNSImpl (line 73) | class AttributesNSImpl(AttributesImpl):
method __init__ (line 74) | def __init__(self, attrs: Mapping[_NSName, str], qnames: Mapping[_NSNa...
method getType (line 75) | def getType(self, name: _NSName) -> str: ... # type: ignore[override]
method getValue (line 76) | def getValue(self, name: _NSName) -> str: ... # type: ignore[override]
method getNameByQName (line 77) | def getNameByQName(self, name: str) -> _NSName: ... # type: ignore[ov...
method getQNameByName (line 78) | def getQNameByName(self, name: _NSName) -> str: ... # type: ignore[ov...
method getNames (line 79) | def getNames(self) -> list[_NSName]: ... # type: ignore[override]
method __getitem__ (line 80) | def __getitem__(self, name: _NSName) -> str: ... # type: ignore[overr...
method keys (line 81) | def keys(self) -> list[_NSName]: ... # type: ignore[override]
method __contains__ (line 82) | def __contains__(self, name: _NSName) -> bool: ... # type: ignore[ove...
method get (line 84) | def get(self, name: _NSName, alternative: None = None) -> str | None: ...
method get (line 86) | def get(self, name: _NSName, alternative: str) -> str: ...
method items (line 87) | def items(self) -> list[tuple[_NSName, str]]: ... # type: ignore[over...
FILE: mypy/typeshed/stdlib/xmlrpc/client.pyi
class _SupportsTimeTuple (line 12) | class _SupportsTimeTuple(Protocol):
method timetuple (line 13) | def timetuple(self) -> time.struct_time: ...
function escape (line 35) | def escape(s: str) -> str: ... # undocumented
class Error (line 54) | class Error(Exception): ...
class ProtocolError (line 56) | class ProtocolError(Error):
method __init__ (line 61) | def __init__(self, url: str, errcode: int, errmsg: str, headers: dict[...
class ResponseError (line 63) | class ResponseError(Error): ...
class Fault (line 65) | class Fault(Error):
method __init__ (line 68) | def __init__(self, faultCode: int, faultString: str, **extra: Any) -> ...
function _iso8601_format (line 73) | def _iso8601_format(value: datetime) -> str: ... # undocumented
function _strftime (line 74) | def _strftime(value: _XMLDate) -> str: ... # undocumented
class DateTime (line 76) | class DateTime:
method __init__ (line 78) | def __init__(self, value: int | str | datetime | time.struct_time | tu...
method __lt__ (line 80) | def __lt__(self, other: _DateTimeComparable) -> bool: ...
method __le__ (line 81) | def __le__(self, other: _DateTimeComparable) -> bool: ...
method __gt__ (line 82) | def __gt__(self, other: _DateTimeComparable) -> bool: ...
method __ge__ (line 83) | def __ge__(self, other: _DateTimeComparable) -> bool: ...
method __eq__ (line 84) | def __eq__(self, other: _DateTimeComparable) -> bool: ... # type: ign...
method make_comparable (line 85) | def make_comparable(self, other: _DateTimeComparable) -> tuple[str, st...
method timetuple (line 86) | def timetuple(self) -> time.struct_time: ... # undocumented
method decode (line 87) | def decode(self, data: Any) -> None: ...
method encode (line 88) | def encode(self, out: SupportsWrite[str]) -> None: ...
function _datetime (line 90) | def _datetime(data: Any) -> DateTime: ... # undocumented
function _datetime_type (line 91) | def _datetime_type(data: str) -> datetime: ... # undocumented
class Binary (line 93) | class Binary:
method __init__ (line 95) | def __init__(self, data: bytes | bytearray | None = None) -> None: ...
method decode (line 96) | def decode(self, data: ReadableBuffer) -> None: ...
method encode (line 97) | def encode(self, out: SupportsWrite[str]) -> None: ...
method __eq__ (line 98) | def __eq__(self, other: object) -> bool: ...
function _binary (line 101) | def _binary(data: ReadableBuffer) -> Binary: ... # undocumented
class ExpatParser (line 105) | class ExpatParser: # undocumented
method __init__ (line 106) | def __init__(self, target: Unmarshaller) -> None: ...
method feed (line 107) | def feed(self, data: str | ReadableBuffer) -> None: ...
method close (line 108) | def close(self) -> None: ...
class Marshaller (line 112) | class Marshaller:
method __init__ (line 118) | def __init__(self, encoding: str | None = None, allow_none: bool = Fal...
method dumps (line 119) | def dumps(self, values: Fault | Iterable[_Marshallable]) -> str: ...
method __dump (line 120) | def __dump(self, value: _Marshallable, write: _WriteCallback) -> None:...
method dump_nil (line 121) | def dump_nil(self, value: None, write: _WriteCallback) -> None: ...
method dump_bool (line 122) | def dump_bool(self, value: bool, write: _WriteCallback) -> None: ...
method dump_long (line 123) | def dump_long(self, value: int, write: _WriteCallback) -> None: ...
method dump_int (line 124) | def dump_int(self, value: int, write: _WriteCallback) -> None: ...
method dump_double (line 125) | def dump_double(self, value: float, write: _WriteCallback) -> None: ...
method dump_unicode (line 126) | def dump_unicode(self, value: str, write: _WriteCallback, escape: Call...
method dump_bytes (line 127) | def dump_bytes(self, value: ReadableBuffer, write: _WriteCallback) -> ...
method dump_array (line 128) | def dump_array(self, value: Iterable[_Marshallable], write: _WriteCall...
method dump_struct (line 129) | def dump_struct(
method dump_datetime (line 132) | def dump_datetime(self, value: _XMLDate, write: _WriteCallback) -> Non...
method dump_instance (line 133) | def dump_instance(self, value: object, write: _WriteCallback) -> None:...
class Unmarshaller (line 135) | class Unmarshaller:
method __init__ (line 148) | def __init__(self, use_datetime: bool = False, use_builtin_types: bool...
method close (line 149) | def close(self) -> tuple[_Marshallable, ...]: ...
method getmethodname (line 150) | def getmethodname(self) -> str | None: ...
method xml (line 151) | def xml(self, encoding: str, standalone: Any) -> None: ... # Standalo...
method start (line 152) | def start(self, tag: str, attrs: dict[str, str]) -> None: ...
method data (line 153) | def data(self, text: str) -> None: ...
method end (line 154) | def end(self, tag: str) -> None: ...
method end_dispatch (line 155) | def end_dispatch(self, tag: str, data: str) -> None: ...
method end_nil (line 156) | def end_nil(self, data: str) -> None: ...
method end_boolean (line 157) | def end_boolean(self, data: str) -> None: ...
method end_int (line 158) | def end_int(self, data: str) -> None: ...
method end_double (line 159) | def end_double(self, data: str) -> None: ...
method end_bigdecimal (line 160) | def end_bigdecimal(self, data: str) -> None: ...
method end_string (line 161) | def end_string(self, data: str) -> None: ...
method end_array (line 162) | def end_array(self, data: str) -> None: ...
method end_struct (line 163) | def end_struct(self, data: str) -> None: ...
method end_base64 (line 164) | def end_base64(self, data: str) -> None: ...
method end_dateTime (line 165) | def end_dateTime(self, data: str) -> None: ...
method end_value (line 166) | def end_value(self, data: str) -> None: ...
method end_params (line 167) | def end_params(self, data: str) -> None: ...
method end_fault (line 168) | def end_fault(self, data: str) -> None: ...
method end_methodName (line 169) | def end_methodName(self, data: str) -> None: ...
class _MultiCallMethod (line 171) | class _MultiCallMethod: # undocumented
method __init__ (line 174) | def __init__(self, call_list: list[tuple[str, _Marshallable]], name: s...
method __getattr__ (line 175) | def __getattr__(self, name: str) -> _MultiCallMethod: ...
method __call__ (line 176) | def __call__(self, *args: _Marshallable) -> None: ...
class MultiCallIterator (line 178) | class MultiCallIterator: # undocumented
method __init__ (line 180) | def __init__(self, results: list[list[_Marshallable]]) -> None: ...
method __getitem__ (line 181) | def __getitem__(self, i: int) -> _Marshallable: ...
class MultiCall (line 183) | class MultiCall:
method __init__ (line 186) | def __init__(self, server: ServerProxy) -> None: ...
method __getattr__ (line 187) | def __getattr__(self, name: str) -> _MultiCallMethod: ...
method __call__ (line 188) | def __call__(self) -> MultiCallIterator: ...
function getparser (line 195) | def getparser(use_datetime: bool = False, use_builtin_types: bool = Fals...
function dumps (line 196) | def dumps(
function loads (line 203) | def loads(
function gzip_encode (line 206) | def gzip_encode(data: ReadableBuffer) -> bytes: ... # undocumented
function gzip_decode (line 207) | def gzip_decode(data: ReadableBuffer, max_decode: int = 20971520) -> byt...
class GzipDecodedResponse (line 209) | class GzipDecodedResponse(gzip.GzipFile): # undocumented
method __init__ (line 211) | def __init__(self, response: SupportsRead[ReadableBuffer]) -> None: ...
class _Method (line 213) | class _Method: # undocumented
method __init__ (line 216) | def __init__(self, send: Callable[[str, tuple[_Marshallable, ...]], _M...
method __getattr__ (line 217) | def __getattr__(self, name: str) -> _Method: ...
method __call__ (line 218) | def __call__(self, *args: _Marshallable) -> _Marshallable: ...
class Transport (line 220) | class Transport:
method __init__ (line 231) | def __init__(
method request (line 234) | def request(
method single_request (line 237) | def single_request(
method getparser (line 240) | def getparser(self) -> tuple[ExpatParser, Unmarshaller]: ...
method get_host_info (line 241) | def get_host_info(self, host: _HostType) -> tuple[str, list[tuple[str,...
method make_connection (line 242) | def make_connection(self, host: _HostType) -> http.client.HTTPConnecti...
method close (line 243) | def close(self) -> None: ...
method send_request (line 244) | def send_request(
method send_headers (line 247) | def send_headers(self, connection: http.client.HTTPConnection, headers...
method send_content (line 248) | def send_content(self, connection: http.client.HTTPConnection, request...
method parse_response (line 249) | def parse_response(self, response: http.client.HTTPResponse) -> tuple[...
class SafeTransport (line 251) | class SafeTransport(Transport):
method __init__ (line 252) | def __init__(
method make_connection (line 260) | def make_connection(self, host: _HostType) -> http.client.HTTPSConnect...
class ServerProxy (line 262) | class ServerProxy:
method __init__ (line 270) | def __init__(
method __getattr__ (line 283) | def __getattr__(self, name: str) -> _Method: ...
method __call__ (line 285) | def __call__(self, attr: Literal["close"]) -> Callable[[], None]: ...
method __call__ (line 287) | def __call__(self, attr: Literal["transport"]) -> Transport: ...
method __call__ (line 289) | def __call__(self, attr: str) -> Callable[[], None] | Transport: ...
method __enter__ (line 290) | def __enter__(self) -> Self: ...
method __exit__ (line 291) | def __exit__(
method __close (line 294) | def __close(self) -> None: ... # undocumented
method __request (line 295) | def __request(self, methodname: str, params: tuple[_Marshallable, ...]...
FILE: mypy/typeshed/stdlib/xmlrpc/server.pyi
class _DispatchArity0 (line 12) | class _DispatchArity0(Protocol):
method __call__ (line 13) | def __call__(self) -> _Marshallable: ...
class _DispatchArity1 (line 15) | class _DispatchArity1(Protocol):
method __call__ (line 16) | def __call__(self, arg1: _Marshallable, /) -> _Marshallable: ...
class _DispatchArity2 (line 18) | class _DispatchArity2(Protocol):
method __call__ (line 19) | def __call__(self, arg1: _Marshallable, arg2: _Marshallable, /) -> _Ma...
class _DispatchArity3 (line 21) | class _DispatchArity3(Protocol):
method __call__ (line 22) | def __call__(self, arg1: _Marshallable, arg2: _Marshallable, arg3: _Ma...
class _DispatchArity4 (line 24) | class _DispatchArity4(Protocol):
method __call__ (line 25) | def __call__(
class _DispatchArityN (line 29) | class _DispatchArityN(Protocol):
method __call__ (line 30) | def __call__(self, *args: _Marshallable) -> _Marshallable: ...
function resolve_dotted_attribute (line 36) | def resolve_dotted_attribute(obj: Any, attr: str, allow_dotted_names: bo...
function list_public_methods (line 37) | def list_public_methods(obj: Any) -> list[str]: ... # undocumented
class SimpleXMLRPCDispatcher (line 39) | class SimpleXMLRPCDispatcher: # undocumented
method __init__ (line 45) | def __init__(self, allow_none: bool = False, encoding: str | None = No...
method register_instance (line 46) | def register_instance(self, instance: Any, allow_dotted_names: bool = ...
method register_function (line 47) | def register_function(self, function: _DispatchProtocol | None = None,...
method register_introspection_functions (line 48) | def register_introspection_functions(self) -> None: ...
method register_multicall_functions (line 49) | def register_multicall_functions(self) -> None: ...
method _marshaled_dispatch (line 50) | def _marshaled_dispatch(
method system_listMethods (line 56) | def system_listMethods(self) -> list[str]: ... # undocumented
method system_methodSignature (line 57) | def system_methodSignature(self, method_name: str) -> str: ... # undo...
method system_methodHelp (line 58) | def system_methodHelp(self, method_name: str) -> str: ... # undocumented
method system_multicall (line 59) | def system_multicall(self, call_list: list[dict[str, _Marshallable]]) ...
method _dispatch (line 60) | def _dispatch(self, method: str, params: Iterable[_Marshallable]) -> _...
class SimpleXMLRPCRequestHandler (line 62) | class SimpleXMLRPCRequestHandler(http.server.BaseHTTPRequestHandler):
method accept_encodings (line 66) | def accept_encodings(self) -> dict[str, float]: ...
method is_rpc_path_valid (line 67) | def is_rpc_path_valid(self) -> bool: ...
method do_POST (line 68) | def do_POST(self) -> None: ...
method decode_request_content (line 69) | def decode_request_content(self, data: bytes) -> bytes | None: ...
method report_404 (line 70) | def report_404(self) -> None: ...
class SimpleXMLRPCServer (line 72) | class SimpleXMLRPCServer(socketserver.TCPServer, SimpleXMLRPCDispatcher):
method __init__ (line 74) | def __init__(
class MultiPathXMLRPCServer (line 85) | class MultiPathXMLRPCServer(SimpleXMLRPCServer): # undocumented
method __init__ (line 87) | def __init__(
method add_dispatcher (line 97) | def add_dispatcher(self, path: str, dispatcher: SimpleXMLRPCDispatcher...
method get_dispatcher (line 98) | def get_dispatcher(self, path: str) -> SimpleXMLRPCDispatcher: ...
class CGIXMLRPCRequestHandler (line 100) | class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
method __init__ (line 101) | def __init__(self, allow_none: bool = False, encoding: str | None = No...
method handle_xmlrpc (line 102) | def handle_xmlrpc(self, request_text: str) -> None: ...
method handle_get (line 103) | def handle_get(self) -> None: ...
method handle_request (line 104) | def handle_request(self, request_text: str | None = None) -> None: ...
class ServerHTMLDoc (line 106) | class ServerHTMLDoc(pydoc.HTMLDoc): # undocumented
method docroutine (line 107) | def docroutine( # type: ignore[override]
method docserver (line 117) | def docserver(self, server_name: str, package_documentation: str, meth...
class XMLRPCDocGenerator (line 119) | class XMLRPCDocGenerator: # undocumented
method set_server_title (line 123) | def set_server_title(self, server_title: str) -> None: ...
method set_server_name (line 124) | def set_server_name(self, server_name: str) -> None: ...
method set_server_documentation (line 125) | def set_server_documentation(self, server_documentation: str) -> None:...
method generate_html_documentation (line 126) | def generate_html_documentation(self) -> str: ...
class DocXMLRPCRequestHandler (line 128) | class DocXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
method do_GET (line 129) | def do_GET(self) -> None: ...
class DocXMLRPCServer (line 131) | class DocXMLRPCServer(SimpleXMLRPCServer, XMLRPCDocGenerator):
method __init__ (line 132) | def __init__(
class DocCGIXMLRPCRequestHandler (line 143) | class DocCGIXMLRPCRequestHandler(CGIXMLRPCRequestHandler, XMLRPCDocGener...
method __init__ (line 144) | def __init__(self) -> None: ...
FILE: mypy/typeshed/stdlib/xxlimited.pyi
class Str (line 4) | class Str(str): ...
class Xxo (line 7) | class Xxo:
method demo (line 8) | def demo(self) -> None: ...
function foo (line 12) | def foo(i: int, j: int, /) -> Any: ...
function new (line 13) | def new() -> Xxo: ...
class Error (line 16) | class Error(Exception): ...
class error (line 19) | class error(Exception): ...
class Null (line 21) | class Null:
function roj (line 24) | def roj(b: Any, /) -> None: ...
FILE: mypy/typeshed/stdlib/zipapp.pyi
class ZipAppError (line 10) | class ZipAppError(ValueError): ...
function create_archive (line 12) | def create_archive(
function get_interpreter (line 20) | def get_interpreter(archive: _Path) -> str: ...
FILE: mypy/typeshed/stdlib/zipfile/__init__.pyi
class BadZipFile (line 35) | class BadZipFile(Exception): ...
class LargeZipFile (line 40) | class LargeZipFile(Exception): ...
class _ZipStream (line 42) | class _ZipStream(Protocol):
method read (line 43) | def read(self, n: int, /) -> bytes: ...
class _SupportsReadSeekTell (line 50) | class _SupportsReadSeekTell(Protocol):
method read (line 51) | def read(self, n: int = ..., /) -> bytes: ...
method seek (line 52) | def seek(self, cookie: int, whence: int, /) -> object: ...
method tell (line 53) | def tell(self) -> int: ...
class _ClosableZipStream (line 55) | class _ClosableZipStream(_ZipStream, Protocol):
method close (line 56) | def close(self) -> object: ...
class ZipExtFile (line 58) | class ZipExtFile(io.BufferedIOBase):
method __init__ (line 66) | def __init__(
method __init__ (line 70) | def __init__(
method __init__ (line 80) | def __init__(
method read (line 88) | def read(self, n: int | None = -1) -> bytes: ...
method readline (line 89) | def readline(self, limit: int = -1) -> bytes: ... # type: ignore[over...
method peek (line 90) | def peek(self, n: int = 1) -> bytes: ...
method read1 (line 91) | def read1(self, n: int | None) -> bytes: ... # type: ignore[override]
method seek (line 92) | def seek(self, offset: int, whence: int = 0) -> int: ...
class _Writer (line 94) | class _Writer(Protocol):
method write (line 95) | def write(self, s: str, /) -> object: ...
class _ZipReadable (line 97) | class _ZipReadable(Protocol):
method seek (line 98) | def seek(self, offset: int, whence: int = 0, /) -> int: ...
method read (line 99) | def read(self, n: int = -1, /) -> bytes: ...
class _ZipTellable (line 101) | class _ZipTellable(Protocol):
method tell (line 102) | def tell(self) -> int: ...
class _ZipReadableTellable (line 104) | class _ZipReadableTellable(_ZipReadable, _ZipTellable, Protocol): ...
class _ZipWritable (line 106) | class _ZipWritable(Protocol):
method flush (line 107) | def flush(self) -> None: ...
method close (line 108) | def close(self) -> None: ...
method write (line 109) | def write(self, b: bytes, /) -> int: ...
class ZipFile (line 111) | class ZipFile:
method __init__ (line 126) | def __init__(
method __init__ (line 139) | def __init__(
method __init__ (line 151) | def __init__(
method __init__ (line 163) | def __init__(
method __init__ (line 176) | def __init__(
method __init__ (line 187) | def __init__(
method __init__ (line 198) | def __init__(
method __init__ (line 209) | def __init__(
method __enter__ (line 220) | def __enter__(self) -> Self: ...
method __exit__ (line 221) | def __exit__(
method close (line 224) | def close(self) -> None: ...
method getinfo (line 225) | def getinfo(self, name: str) -> ZipInfo: ...
method infolist (line 226) | def infolist(self) -> list[ZipInfo]: ...
method namelist (line 227) | def namelist(self) -> list[str]: ...
method open (line 228) | def open(
method extract (line 231) | def extract(self, member: str | ZipInfo, path: StrPath | None = None, ...
method extractall (line 232) | def extractall(
method printdir (line 235) | def printdir(self, file: _Writer | None = None) -> None: ...
method setpassword (line 236) | def setpassword(self, pwd: bytes) -> None: ...
method read (line 237) | def read(self, name: str | ZipInfo, pwd: bytes | None = None) -> bytes...
method testzip (line 238) | def testzip(self) -> str | None: ...
method write (line 239) | def write(
method writestr (line 246) | def writestr(
method mkdir (line 254) | def mkdir(self, zinfo_or_directory_name: str | ZipInfo, mode: int = 0o...
method __del__ (line 256) | def __del__(self) -> None: ...
class PyZipFile (line 258) | class PyZipFile(ZipFile):
method __init__ (line 259) | def __init__(
method writepy (line 262) | def writepy(self, pathname: str, basename: str = "", filterfunc: Calla...
class ZipInfo (line 264) | class ZipInfo:
method __init__ (line 286) | def __init__(self, filename: str = "NoName", date_time: _DateTuple = (...
method from_file (line 288) | def from_file(cls, filename: StrPath, arcname: StrPath | None = None, ...
method is_dir (line 289) | def is_dir(self) -> bool: ...
method FileHeader (line 290) | def FileHeader(self, zip64: bool | None = None) -> bytes: ...
class CompleteDirs (line 296) | class CompleteDirs(ZipFile):
method resolve_dir (line 297) | def resolve_dir(self, name: str) -> str: ...
method make (line 300) | def make(cls, source: ZipFile) -> CompleteDirs: ...
method make (line 303) | def make(cls, source: StrPath | IO[bytes]) -> Self: ...
class Path (line 305) | class Path:
method __init__ (line 308) | def __init__(self, root: ZipFile | StrPath | IO[bytes], at: str = "") ...
method name (line 310) | def name(self) -> str: ...
method parent (line 312) | def parent(self) -> PathLike[str]: ... # undocumented
method filename (line 315) | def filename(self) -> PathLike[str]: ... # undocumented
method suffix (line 318) | def suffix(self) -> str: ...
method suffixes (line 320) | def suffixes(self) -> list[str]: ...
method stem (line 322) | def stem(self) -> str: ...
method open (line 326) | def open(
method open (line 338) | def open(self, mode: Literal["rb", "wb"], *, pwd: bytes | None = None)...
method open (line 340) | def open(
method iterdir (line 345) | def iterdir(self) -> Iterator[Self]: ...
method iterdir (line 347) | def iterdir(self) -> Iterator[Path]: ...
method is_dir (line 349) | def is_dir(self) -> bool: ...
method is_file (line 350) | def is_file(self) -> bool: ...
method exists (line 351) | def exists(self) -> bool: ...
method read_text (line 352) | def read_text(
method read_bytes (line 360) | def read_bytes(self) -> bytes: ...
method joinpath (line 362) | def joinpath(self, *other: StrPath) -> Path: ...
method joinpath (line 364) | def joinpath(self, add: StrPath) -> Path: ... # undocumented
method glob (line 366) | def glob(self, pattern: str) -> Iterator[Self]: ...
method rglob (line 367) | def rglob(self, pattern: str) -> Iterator[Self]: ...
method is_symlink (line 368) | def is_symlink(self) -> Literal[False]: ...
method relative_to (line 369) | def relative_to(self, other: Path, *extra: StrPath) -> str: ...
method match (line 370) | def match(self, path_pattern: str) -> bool: ...
method __eq__ (line 371) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 372) | def __hash__(self) -> int: ...
method __truediv__ (line 374) | def __truediv__(self, add: StrPath) -> Path: ...
function is_zipfile (line 376) | def is_zipfile(filename: StrOrBytesPath | _SupportsReadSeekTell) -> bool...
FILE: mypy/typeshed/stdlib/zipfile/_path/__init__.pyi
class InitializedState (line 17) | class InitializedState:
method __init__ (line 18) | def __init__(self, *args: object, **kwargs: object) -> None: ...
method __getstate__ (line 19) | def __getstate__(self) -> tuple[list[object], dict[object, object]]: ...
method __setstate__ (line 20) | def __setstate__(self, state: Sequence[tuple[list[object], dict[object...
class CompleteDirs (line 22) | class CompleteDirs(InitializedState, ZipFile):
method resolve_dir (line 23) | def resolve_dir(self, name: str) -> str: ...
method make (line 26) | def make(cls, source: ZipFile) -> CompleteDirs: ...
method make (line 29) | def make(cls, source: StrPath | IO[bytes]) -> Self: ...
method inject (line 32) | def inject(cls, zf: _ZF) -> _ZF: ...
class Path (line 34) | class Path:
method __init__ (line 37) | def __init__(self, root: ZipFile | StrPath | IO[bytes], at: str = "") ...
method name (line 39) | def name(self) -> str: ...
method parent (line 41) | def parent(self) -> PathLike[str]: ... # undocumented
method filename (line 44) | def filename(self) -> PathLike[str]: ... # undocumented
method suffix (line 47) | def suffix(self) -> str: ...
method suffixes (line 49) | def suffixes(self) -> list[str]: ...
method stem (line 51) | def stem(self) -> str: ...
method open (line 55) | def open(
method open (line 67) | def open(self, mode: Literal["rb", "wb"], *, pwd: bytes | None = None)...
method open (line 69) | def open(
method iterdir (line 74) | def iterdir(self) -> Iterator[Self]: ...
method iterdir (line 76) | def iterdir(self) -> Iterator[Path]: ...
method is_dir (line 78) | def is_dir(self) -> bool: ...
method is_file (line 79) | def is_file(self) -> bool: ...
method exists (line 80) | def exists(self) -> bool: ...
method read_text (line 81) | def read_text(
method read_bytes (line 89) | def read_bytes(self) -> bytes: ...
method joinpath (line 91) | def joinpath(self, *other: StrPath) -> Path: ...
method joinpath (line 93) | def joinpath(self, add: StrPath) -> Path: ... # undocumented
method glob (line 95) | def glob(self, pattern: str) -> Iterator[Self]: ...
method rglob (line 96) | def rglob(self, pattern: str) -> Iterator[Self]: ...
method is_symlink (line 97) | def is_symlink(self) -> Literal[False]: ...
method relative_to (line 98) | def relative_to(self, other: Path, *extra: StrPath) -> str: ...
method match (line 99) | def match(self, path_pattern: str) -> bool: ...
method __eq__ (line 100) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 101) | def __hash__(self) -> int: ...
method __truediv__ (line 103) | def __truediv__(self, add: StrPath) -> Path: ...
FILE: mypy/typeshed/stdlib/zipfile/_path/glob.pyi
class Translator (line 6) | class Translator:
method __init__ (line 7) | def __init__(self, seps: str = ...) -> None: ...
method translate (line 8) | def translate(self, pattern: str) -> str: ...
method extend (line 9) | def extend(self, pattern: str) -> str: ...
method match_dirs (line 10) | def match_dirs(self, pattern: str) -> str: ...
method translate_core (line 11) | def translate_core(self, pattern: str) -> str: ...
method replace (line 12) | def replace(self, match: Match[str]) -> str: ...
method restrict_rglob (line 13) | def restrict_rglob(self, pattern: str) -> None: ...
method star_not_empty (line 14) | def star_not_empty(self, pattern: str) -> str: ...
function translate (line 17) | def translate(pattern: str) -> str: ...
function match_dirs (line 18) | def match_dirs(pattern: str) -> str: ...
function translate_core (line 19) | def translate_core(pattern: str) -> str: ...
function replace (line 20) | def replace(match: Match[str]) -> str: ...
function separate (line 22) | def separate(pattern: str) -> Iterator[Match[str]]: ...
FILE: mypy/typeshed/stdlib/zipimport.pyi
class ZipImportError (line 15) | class ZipImportError(ImportError): ...
class zipimporter (line 17) | class zipimporter(_LoaderBasics):
method __init__ (line 21) | def __init__(self, path: str) -> None: ...
method __init__ (line 23) | def __init__(self, path: StrOrBytesPath) -> None: ...
method find_loader (line 26) | def find_loader(self, fullname: str, path: str | None = None) -> tuple...
method find_module (line 27) | def find_module(self, fullname: str, path: str | None = None) -> zipim...
method get_code (line 29) | def get_code(self, fullname: str) -> CodeType: ...
method get_data (line 30) | def get_data(self, pathname: str) -> bytes: ...
method get_filename (line 31) | def get_filename(self, fullname: str) -> str: ...
method get_resource_reader (line 32) | def get_resource_reader(self, fullname: str) -> ResourceReader | None:...
method get_source (line 33) | def get_source(self, fullname: str) -> str | None: ...
method is_package (line 34) | def is_package(self, fullname: str) -> bool: ...
method load_module (line 36) | def load_module(self, fullname: str) -> ModuleType: ...
method exec_module (line 38) | def exec_module(self, module: ModuleType) -> None: ...
method create_module (line 39) | def create_module(self, spec: ModuleSpec) -> None: ...
method find_spec (line 40) | def find_spec(self, fullname: str, target: ModuleType | None = None) -...
method invalidate_caches (line 41) | def invalidate_caches(self) -> None: ...
FILE: mypy/typeshed/stdlib/zlib.pyi
class error (line 29) | class error(Exception): ...
class _Compress (line 34) | class _Compress:
method __copy__ (line 35) | def __copy__(self) -> Self: ...
method __deepcopy__ (line 36) | def __deepcopy__(self, memo: Any, /) -> Self: ...
method compress (line 37) | def compress(self, data: ReadableBuffer, /) -> bytes: ...
method flush (line 38) | def flush(self, mode: int = 4, /) -> bytes: ...
method copy (line 39) | def copy(self) -> _Compress: ...
class _Decompress (line 44) | class _Decompress:
method unused_data (line 46) | def unused_data(self) -> bytes: ...
method unconsumed_tail (line 48) | def unconsumed_tail(self) -> bytes: ...
method eof (line 50) | def eof(self) -> bool: ...
method __copy__ (line 51) | def __copy__(self) -> Self: ...
method __deepcopy__ (line 52) | def __deepcopy__(self, memo: Any, /) -> Self: ...
method decompress (line 53) | def decompress(self, data: ReadableBuffer, /, max_length: int = 0) -> ...
method flush (line 54) | def flush(self, length: int = 16384, /) -> bytes: ...
method copy (line 55) | def copy(self) -> _Decompress: ...
function adler32 (line 57) | def adler32(data: ReadableBuffer, value: int = 1, /) -> int: ...
function compress (line 60) | def compress(data: ReadableBuffer, /, level: int = -1, wbits: int = 15) ...
function compress (line 63) | def compress(data: ReadableBuffer, /, level: int = -1) -> bytes: ...
function compressobj (line 65) | def compressobj(
function crc32 (line 68) | def crc32(data: ReadableBuffer, value: int = 0, /) -> int: ...
function decompress (line 69) | def decompress(data: ReadableBuffer, /, wbits: int = 15, bufsize: int = ...
function decompressobj (line 70) | def decompressobj(wbits: int = 15, zdict: ReadableBuffer = b"") -> _Deco...
FILE: mypy/typeshed/stdlib/zoneinfo/__init__.pyi
class ZoneInfo (line 21) | class ZoneInfo(tzinfo):
method key (line 23) | def key(self) -> str: ...
method __new__ (line 24) | def __new__(cls, key: str) -> Self: ...
method no_cache (line 26) | def no_cache(cls, key: str) -> Self: ...
method from_file (line 28) | def from_file(cls, fobj: _IOBytes, /, key: str | None = None) -> Self:...
method clear_cache (line 30) | def clear_cache(cls, *, only_keys: Iterable[str] | None = None) -> Non...
method tzname (line 31) | def tzname(self, dt: datetime | None, /) -> str | None: ...
method utcoffset (line 32) | def utcoffset(self, dt: datetime | None, /) -> timedelta | None: ...
method dst (line 33) | def dst(self, dt: datetime | None, /) -> timedelta | None: ...
function __dir__ (line 35) | def __dir__() -> list[str]: ...
FILE: mypy/typeshed/stdlib/zoneinfo/_common.pyi
class _IOBytes (line 4) | class _IOBytes(Protocol):
method read (line 5) | def read(self, size: int, /) -> bytes: ...
method seek (line 6) | def seek(self, size: int, whence: int = ..., /) -> Any: ...
function load_tzdata (line 8) | def load_tzdata(key: str) -> io.BufferedReader: ...
function load_data (line 9) | def load_data(
class ZoneInfoNotFoundError (line 13) | class ZoneInfoNotFoundError(KeyError): ...
FILE: mypy/typeshed/stdlib/zoneinfo/_tzpath.pyi
function reset_tzpath (line 7) | def reset_tzpath(to: Sequence[StrPath] | None = None) -> None: ...
function find_tzfile (line 8) | def find_tzfile(key: str) -> str | None: ...
function available_timezones (line 9) | def available_timezones() -> set[str]: ...
class InvalidTZPathWarning (line 13) | class InvalidTZPathWarning(RuntimeWarning): ...
FILE: mypy/typeshed/stubs/mypy-extensions/mypy_extensions.pyi
class _TypedDict (line 19) | class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
method copy (line 23) | def copy(self: Self) -> Self: ...
method setdefault (line 26) | def setdefault(self, k: Never, default: object) -> object: ...
method pop (line 28) | def pop(self, k: Never, default: _T = ...) -> object: ... # pyright: ...
method update (line 29) | def update(self: Self, __m: Self) -> None: ...
method items (line 30) | def items(self) -> dict_items[str, object]: ...
method keys (line 31) | def keys(self) -> dict_keys[str, object]: ...
method values (line 32) | def values(self) -> dict_values[str, object]: ...
method __delitem__ (line 33) | def __delitem__(self, k: Never) -> None: ...
method __or__ (line 35) | def __or__(self: Self, __other: Self) -> Self: ...
method __ior__ (line 36) | def __ior__(self: Self, __other: Self) -> Self: ...
function TypedDict (line 38) | def TypedDict(typename: str, fields: dict[str, type[Any]], total: bool =...
function Arg (line 40) | def Arg(type: _T, name: str | None = ...) -> _T: ...
function Arg (line 42) | def Arg(*, name: str | None = ...) -> Any: ...
function DefaultArg (line 44) | def DefaultArg(type: _T, name: str | None = ...) -> _T: ...
function DefaultArg (line 46) | def DefaultArg(*, name: str | None = ...) -> Any: ...
function NamedArg (line 48) | def NamedArg(type: _T, name: str | None = ...) -> _T: ...
function NamedArg (line 50) | def NamedArg(*, name: str | None = ...) -> Any: ...
function DefaultNamedArg (line 52) | def DefaultNamedArg(type: _T, name: str | None = ...) -> _T: ...
function DefaultNamedArg (line 54) | def DefaultNamedArg(*, name: str | None = ...) -> Any: ...
function VarArg (line 56) | def VarArg(type: _T) -> _T: ...
function VarArg (line 58) | def VarArg() -> Any: ...
function KwArg (line 60) | def KwArg(type: _T) -> _T: ...
function KwArg (line 62) | def KwArg() -> Any: ...
class NoReturn (line 66) | class NoReturn: ...
function trait (line 71) | def trait(cls: _T) -> _T: ...
function mypyc_attr (line 72) | def mypyc_attr(*attrs: str, **kwattrs: object) -> IdentityFunction: ...
class FlexibleAlias (line 74) | class FlexibleAlias(Generic[_T, _U]): ...
class i64 (line 80) | class i64:
method __new__ (line 82) | def __new__(cls, __x: str | ReadableBuffer | SupportsInt | SupportsInd...
method __new__ (line 84) | def __new__(cls, __x: str | bytes | bytearray, base: SupportsIndex) ->...
method __add__ (line 86) | def __add__(self, x: i64) -> i64: ...
method __radd__ (line 87) | def __radd__(self, x: i64) -> i64: ...
method __sub__ (line 88) | def __sub__(self, x: i64) -> i64: ...
method __rsub__ (line 89) | def __rsub__(self, x: i64) -> i64: ...
method __mul__ (line 90) | def __mul__(self, x: i64) -> i64: ...
method __rmul__ (line 91) | def __rmul__(self, x: i64) -> i64: ...
method __floordiv__ (line 92) | def __floordiv__(self, x: i64) -> i64: ...
method __rfloordiv__ (line 93) | def __rfloordiv__(self, x: i64) -> i64: ...
method __mod__ (line 94) | def __mod__(self, x: i64) -> i64: ...
method __rmod__ (line 95) | def __rmod__(self, x: i64) -> i64: ...
method __and__ (line 96) | def __and__(self, x: i64) -> i64: ...
method __rand__ (line 97) | def __rand__(self, x: i64) -> i64: ...
method __or__ (line 98) | def __or__(self, x: i64) -> i64: ...
method __ror__ (line 99) | def __ror__(self, x: i64) -> i64: ...
method __xor__ (line 100) | def __xor__(self, x: i64) -> i64: ...
method __rxor__ (line 101) | def __rxor__(self, x: i64) -> i64: ...
method __lshift__ (line 102) | def __lshift__(self, x: i64) -> i64: ...
method __rlshift__ (line 103) | def __rlshift__(self, x: i64) -> i64: ...
method __rshift__ (line 104) | def __rshift__(self, x: i64) -> i64: ...
method __rrshift__ (line 105) | def __rrshift__(self, x: i64) -> i64: ...
method __neg__ (line 106) | def __neg__(self) -> i64: ...
method __invert__ (line 107) | def __invert__(self) -> i64: ...
method __pos__ (line 108) | def __pos__(self) -> i64: ...
method __lt__ (line 109) | def __lt__(self, x: i64) -> bool: ...
method __le__ (line 110) | def __le__(self, x: i64) -> bool: ...
method __ge__ (line 111) | def __ge__(self, x: i64) -> bool: ...
method __gt__ (line 112) | def __gt__(self, x: i64) -> bool: ...
method __index__ (line 113) | def __index__(self) -> int: ...
class i32 (line 115) | class i32:
method __new__ (line 117) | def __new__(cls, __x: str | ReadableBuffer | SupportsInt | SupportsInd...
method __new__ (line 119) | def __new__(cls, __x: str | bytes | bytearray, base: SupportsIndex) ->...
method __add__ (line 121) | def __add__(self, x: i32) -> i32: ...
method __radd__ (line 122) | def __radd__(self, x: i32) -> i32: ...
method __sub__ (line 123) | def __sub__(self, x: i32) -> i32: ...
method __rsub__ (line 124) | def __rsub__(self, x: i32) -> i32: ...
method __mul__ (line 125) | def __mul__(self, x: i32) -> i32: ...
method __rmul__ (line 126) | def __rmul__(self, x: i32) -> i32: ...
method __floordiv__ (line 127) | def __floordiv__(self, x: i32) -> i32: ...
method __rfloordiv__ (line 128) | def __rfloordiv__(self, x: i32) -> i32: ...
method __mod__ (line 129) | def __mod__(self, x: i32) -> i32: ...
method __rmod__ (line 130) | def __rmod__(self, x: i32) -> i32: ...
method __and__ (line 131) | def __and__(self, x: i32) -> i32: ...
method __rand__ (line 132) | def __rand__(self, x: i32) -> i32: ...
method __or__ (line 133) | def __or__(self, x: i32) -> i32: ...
method __ror__ (line 134) | def __ror__(self, x: i32) -> i32: ...
method __xor__ (line 135) | def __xor__(self, x: i32) -> i32: ...
method __rxor__ (line 136) | def __rxor__(self, x: i32) -> i32: ...
method __lshift__ (line 137) | def __lshift__(self, x: i32) -> i32: ...
method __rlshift__ (line 138) | def __rlshift__(self, x: i32) -> i32: ...
method __rshift__ (line 139) | def __rshift__(self, x: i32) -> i32: ...
method __rrshift__ (line 140) | def __rrshift__(self, x: i32) -> i32: ...
method __neg__ (line 141) | def __neg__(self) -> i32: ...
method __invert__ (line 142) | def __invert__(self) -> i32: ...
method __pos__ (line 143) | def __pos__(self) -> i32: ...
method __lt__ (line 144) | def __lt__(self, x: i32) -> bool: ...
method __le__ (line 145) | def __le__(self, x: i32) -> bool: ...
method __ge__ (line 146) | def __ge__(self, x: i32) -> bool: ...
method __gt__ (line 147) | def __gt__(self, x: i32) -> bool: ...
method __index__ (line 148) | def __index__(self) -> int: ...
class i16 (line 150) | class i16:
method __new__ (line 152) | def __new__(cls, __x: str | ReadableBuffer | SupportsInt | SupportsInd...
method __new__ (line 154) | def __new__(cls, __x: str | bytes | bytearray, base: SupportsIndex) ->...
method __add__ (line 156) | def __add__(self, x: i16) -> i16: ...
method __radd__ (line 157) | def __radd__(self, x: i16) -> i16: ...
method __sub__ (line 158) | def __sub__(self, x: i16) -> i16: ...
method __rsub__ (line 159) | def __rsub__(self, x: i16) -> i16: ...
method __mul__ (line 160) | def __mul__(self, x: i16) -> i16: ...
method __rmul__ (line 161) | def __rmul__(self, x: i16) -> i16: ...
method __floordiv__ (line 162) | def __floordiv__(self, x: i16) -> i16: ...
method __rfloordiv__ (line 163) | def __rfloordiv__(self, x: i16) -> i16: ...
method __mod__ (line 164) | def __mod__(self, x: i16) -> i16: ...
method __rmod__ (line 165) | def __rmod__(self, x: i16) -> i16: ...
method __and__ (line 166) | def __and__(self, x: i16) -> i16: ...
method __rand__ (line 167) | def __rand__(self, x: i16) -> i16: ...
method __or__ (line 168) | def __or__(self, x: i16) -> i16: ...
method __ror__ (line 169) | def __ror__(self, x: i16) -> i16: ...
method __xor__ (line 170) | def __xor__(self, x: i16) -> i16: ...
method __rxor__ (line 171) | def __rxor__(self, x: i16) -> i16: ...
method __lshift__ (line 172) | def __lshift__(self, x: i16) -> i16: ...
method __rlshift__ (line 173) | def __rlshift__(self, x: i16) -> i16: ...
method __rshift__ (line 174) | def __rshift__(self, x: i16) -> i16: ...
method __rrshift__ (line 175) | def __rrshift__(self, x: i16) -> i16: ...
method __neg__ (line 176) | def __neg__(self) -> i16: ...
method __invert__ (line 177) | def __invert__(self) -> i16: ...
method __pos__ (line 178) | def __pos__(self) -> i16: ...
method __lt__ (line 179) | def __lt__(self, x: i16) -> bool: ...
method __le__ (line 180) | def __le__(self, x: i16) -> bool: ...
method __ge__ (line 181) | def __ge__(self, x: i16) -> bool: ...
method __gt__ (line 182) | def __gt__(self, x: i16) -> bool: ...
method __index__ (line 183) | def __index__(self) -> int: ...
class u8 (line 185) | class u8:
method __new__ (line 187) | def __new__(cls, __x: str | ReadableBuffer | SupportsInt | SupportsInd...
method __new__ (line 189) | def __new__(cls, __x: str | bytes | bytearray, base: SupportsIndex) ->...
method __add__ (line 191) | def __add__(self, x: u8) -> u8: ...
method __radd__ (line 192) | def __radd__(self, x: u8) -> u8: ...
method __sub__ (line 193) | def __sub__(self, x: u8) -> u8: ...
method __rsub__ (line 194) | def __rsub__(self, x: u8) -> u8: ...
method __mul__ (line 195) | def __mul__(self, x: u8) -> u8: ...
method __rmul__ (line 196) | def __rmul__(self, x: u8) -> u8: ...
method __floordiv__ (line 197) | def __floordiv__(self, x: u8) -> u8: ...
method __rfloordiv__ (line 198) | def __rfloordiv__(self, x: u8) -> u8: ...
method __mod__ (line 199) | def __mod__(self, x: u8) -> u8: ...
method __rmod__ (line 200) | def __rmod__(self, x: u8) -> u8: ...
method __and__ (line 201) | def __and__(self, x: u8) -> u8: ...
method __rand__ (line 202) | def __rand__(self, x: u8) -> u8: ...
method __or__ (line 203) | def __or__(self, x: u8) -> u8: ...
method __ror__ (line 204) | def __ror__(self, x: u8) -> u8: ...
method __xor__ (line 205) | def __xor__(self, x: u8) -> u8: ...
method __rxor__ (line 206) | def __rxor__(self, x: u8) -> u8: ...
method __lshift__ (line 207) | def __lshift__(self, x: u8) -> u8: ...
method __rlshift__ (line 208) | def __rlshift__(self, x: u8) -> u8: ...
method __rshift__ (line 209) | def __rshift__(self, x: u8) -> u8: ...
method __rrshift__ (line 210) | def __rrshift__(self, x: u8) -> u8: ...
method __neg__ (line 211) | def __neg__(self) -> u8: ...
method __invert__ (line 212) | def __invert__(self) -> u8: ...
method __pos__ (line 213) | def __pos__(self) -> u8: ...
method __lt__ (line 214) | def __lt__(self, x: u8) -> bool: ...
method __le__ (line 215) | def __le__(self, x: u8) -> bool: ...
method __ge__ (line 216) | def __ge__(self, x: u8) -> bool: ...
method __gt__ (line 217) | def __gt__(self, x: u8) -> bool: ...
method __index__ (line 218) | def __index__(self) -> int: ...
FILE: mypy/typestate.py
class TypeState (line 30) | class TypeState:
method __init__ (line 105) | def __init__(self) -> None:
method is_assumed_subtype (line 118) | def is_assumed_subtype(self, left: Type, right: Type) -> bool:
method is_assumed_proper_subtype (line 126) | def is_assumed_proper_subtype(self, left: Type, right: Type) -> bool:
method get_assumptions (line 134) | def get_assumptions(self, is_proper: bool) -> list[tuple[Type, Type]]:
method reset_all_subtype_caches (line 139) | def reset_all_subtype_caches(self) -> None:
method reset_subtype_caches_for (line 144) | def reset_subtype_caches_for(self, info: TypeInfo) -> None:
method reset_all_subtype_caches_for (line 151) | def reset_all_subtype_caches_for(self, info: TypeInfo) -> None:
method is_cached_subtype_check (line 156) | def is_cached_subtype_check(self, kind: SubtypeKind, left: Instance, r...
method is_cached_negative_subtype_check (line 171) | def is_cached_negative_subtype_check(
method record_subtype_cache_entry (line 188) | def record_subtype_cache_entry(
method record_negative_subtype_cache_entry (line 204) | def record_negative_subtype_cache_entry(
method reset_protocol_deps (line 219) | def reset_protocol_deps(self) -> None:
method record_protocol_subtype_check (line 226) | def record_protocol_subtype_check(self, left_type: TypeInfo, right_typ...
method _snapshot_protocol_deps (line 234) | def _snapshot_protocol_deps(self) -> dict[str, set[str]]:
method update_protocol_deps (line 288) | def update_protocol_deps(self, second_map: dict[str, set[str]] | None ...
method add_all_protocol_deps (line 306) | def add_all_protocol_deps(self, deps: dict[str, set[str]]) -> None:
function reset_global_state (line 321) | def reset_global_state() -> None:
FILE: mypy/typetraverser.py
class TypeTraverserVisitor (line 41) | class TypeTraverserVisitor(SyntheticTypeVisitor[None]):
method visit_any (line 46) | def visit_any(self, t: AnyType, /) -> None:
method visit_uninhabited_type (line 49) | def visit_uninhabited_type(self, t: UninhabitedType, /) -> None:
method visit_none_type (line 52) | def visit_none_type(self, t: NoneType, /) -> None:
method visit_erased_type (line 55) | def visit_erased_type(self, t: ErasedType, /) -> None:
method visit_deleted_type (line 58) | def visit_deleted_type(self, t: DeletedType, /) -> None:
method visit_type_var (line 61) | def visit_type_var(self, t: TypeVarType, /) -> None:
method visit_param_spec (line 67) | def visit_param_spec(self, t: ParamSpecType, /) -> None:
method visit_parameters (line 70) | def visit_parameters(self, t: Parameters, /) -> None:
method visit_type_var_tuple (line 73) | def visit_type_var_tuple(self, t: TypeVarTupleType, /) -> None:
method visit_literal_type (line 76) | def visit_literal_type(self, t: LiteralType, /) -> None:
method visit_instance (line 81) | def visit_instance(self, t: Instance, /) -> None:
method visit_callable_type (line 84) | def visit_callable_type(self, t: CallableType, /) -> None:
method visit_tuple_type (line 96) | def visit_tuple_type(self, t: TupleType, /) -> None:
method visit_typeddict_type (line 100) | def visit_typeddict_type(self, t: TypedDictType, /) -> None:
method visit_union_type (line 104) | def visit_union_type(self, t: UnionType, /) -> None:
method visit_intersection_type (line 107) | def visit_intersection_type(self, t: IntersectionType) -> None:
method visit_overloaded (line 110) | def visit_overloaded(self, t: Overloaded, /) -> None:
method visit_type_type (line 113) | def visit_type_type(self, t: TypeType, /) -> None:
method visit_callable_argument (line 118) | def visit_callable_argument(self, t: CallableArgument, /) -> None:
method visit_unbound_type (line 121) | def visit_unbound_type(self, t: UnboundType, /) -> None:
method visit_type_list (line 124) | def visit_type_list(self, t: TypeList, /) -> None:
method visit_ellipsis_type (line 127) | def visit_ellipsis_type(self, t: EllipsisType, /) -> None:
method visit_placeholder_type (line 130) | def visit_placeholder_type(self, t: PlaceholderType, /) -> None:
method visit_partial_type (line 133) | def visit_partial_type(self, t: PartialType, /) -> None:
method visit_raw_expression_type (line 136) | def visit_raw_expression_type(self, t: RawExpressionType, /) -> None:
method visit_type_alias_type (line 139) | def visit_type_alias_type(self, t: TypeAliasType, /) -> None:
method visit_unpack_type (line 145) | def visit_unpack_type(self, t: UnpackType, /) -> None:
method traverse_types (line 150) | def traverse_types(self, types: Iterable[Type], /) -> None:
FILE: mypy/typevars.py
function fill_typevars (line 20) | def fill_typevars(typ: TypeInfo) -> Instance | TupleType:
function fill_typevars_with_any (line 65) | def fill_typevars_with_any(typ: TypeInfo) -> Instance | TupleType:
function has_no_typevars (line 77) | def has_no_typevars(typ: Type) -> bool:
FILE: mypy/typevartuples.py
function split_with_instance (line 18) | def split_with_instance(
function erased_vars (line 28) | def erased_vars(type_vars: Sequence[TypeVarLikeType], type_of_any: int) ...
FILE: mypy/util.py
function is_dunder (line 58) | def is_dunder(name: str, exclude_special: bool = False) -> bool:
function is_sunder (line 70) | def is_sunder(name: str) -> bool:
function split_module_names (line 74) | def split_module_names(mod_name: str) -> list[str]:
function module_prefix (line 87) | def module_prefix(modules: Iterable[str], target: str) -> str | None:
function split_target (line 94) | def split_target(modules: Iterable[str], target: str) -> tuple[str, str]...
function short_type (line 106) | def short_type(obj: object) -> str:
function find_python_encoding (line 117) | def find_python_encoding(text: bytes) -> tuple[str, int]:
function bytes_to_human_readable_repr (line 132) | def bytes_to_human_readable_repr(b: bytes) -> str:
class DecodeError (line 146) | class DecodeError(Exception):
function decode_python_encoding (line 153) | def decode_python_encoding(source: bytes) -> str:
function read_py_file (line 173) | def read_py_file(path: str, read: Callable[[str], bytes]) -> list[str] |...
function trim_source_line (line 190) | def trim_source_line(line: str, max_len: int, col: int, min_width: int) ...
function get_mypy_comments (line 222) | def get_mypy_comments(source: str) -> list[tuple[int, str]]:
function _generate_junit_contents (line 258) | def _generate_junit_contents(
function write_junit_xml (line 308) | def write_junit_xml(
class IdMapper (line 326) | class IdMapper:
method __init__ (line 335) | def __init__(self) -> None:
method id (line 339) | def id(self, o: object) -> int:
function get_prefix (line 346) | def get_prefix(fullname: str) -> str:
function correct_relative_import (line 351) | def correct_relative_import(
function get_class_descriptors (line 369) | def get_class_descriptors(cls: type[object]) -> Sequence[str]:
function replace_object_state (line 382) | def replace_object_state(
function is_sub_path_normabs (line 414) | def is_sub_path_normabs(path: str, dir: str) -> bool:
function os_path_join (line 438) | def os_path_join(path: str, b: str) -> str:
function os_path_join (line 449) | def os_path_join(a: str, p: str) -> str:
function hard_exit (line 453) | def hard_exit(status: int = 0) -> None:
function unmangle (line 463) | def unmangle(name: str) -> str:
function get_unique_redefinition_name (line 468) | def get_unique_redefinition_name(name: str, existing: Container[str]) ->...
function check_python_version (line 484) | def check_python_version(program: str) -> None:
function count_stats (line 494) | def count_stats(messages: list[str]) -> tuple[int, int, int]:
function split_words (line 502) | def split_words(msg: str) -> list[str]:
function get_terminal_width (line 519) | def get_terminal_width() -> int:
function soft_wrap (line 528) | def soft_wrap(msg: str, max_len: int, first_offset: int, num_indent: int...
function hash_digest (line 564) | def hash_digest(data: bytes) -> str:
function parse_gray_color (line 574) | def parse_gray_color(cup: bytes) -> str:
function should_force_color (line 583) | def should_force_color() -> bool:
class FancyFormatter (line 591) | class FancyFormatter:
method __init__ (line 597) | def __init__(
method initialize_vt100_colors (line 631) | def initialize_vt100_colors(self) -> bool:
method initialize_win_colors (line 645) | def initialize_win_colors(self) -> bool:
method initialize_unix_colors (line 675) | def initialize_unix_colors(self) -> bool:
method style (line 723) | def style(
method fit_in_terminal (line 744) | def fit_in_terminal(
method colorize (line 787) | def colorize(self, error: str) -> str:
method highlight_quote_groups (line 819) | def highlight_quote_groups(self, msg: str) -> str:
method underline_link (line 836) | def underline_link(self, note: str) -> str:
method format_success (line 848) | def format_success(self, n_sources: int, use_color: bool = True) -> str:
method format_error (line 862) | def format_error(
function is_typeshed_file (line 886) | def is_typeshed_file(typeshed_dir: str | None, file: str) -> bool:
function is_stdlib_file (line 894) | def is_stdlib_file(typeshed_dir: str | None, file: str) -> bool:
function is_stub_package_file (line 906) | def is_stub_package_file(file: str) -> bool:
function unnamed_function (line 913) | def unnamed_function(name: str | None) -> bool:
function time_spent_us (line 920) | def time_spent_us(t0: int) -> int:
function plural_s (line 924) | def plural_s(s: int | Sized) -> str:
function safe (line 932) | def safe(value: T | None, message="A value was unexpectedly 'None'.") -> T:
function quote_docstring (line 937) | def quote_docstring(docstr: str) -> str:
function getattr (line 958) | def getattr(value: object, name: str) -> Any: ...
function getattr (line 960) | def getattr(value: object, name: str, default: T) -> Any | T: ...
function getattr (line 961) | def getattr(value, name, default: object = _default):
function attrgetter (line 967) | def attrgetter(name: str) -> operator.attrgetter[Any]:
function json_dumps (line 971) | def json_dumps(obj: object, debug: bool = False) -> bytes:
function json_loads (line 993) | def json_loads(data: bytes) -> Any:
FILE: mypy/versionutil.py
class VersionInfo (line 4) | class VersionInfo(NamedTuple):
method simple_str (line 15) | def simple_str(self) -> str:
FILE: mypy/visitor.py
class ExpressionVisitor (line 21) | class ExpressionVisitor(Generic[T]):
method visit_int_expr (line 23) | def visit_int_expr(self, o: mypy.nodes.IntExpr, /) -> T:
method visit_str_expr (line 27) | def visit_str_expr(self, o: mypy.nodes.StrExpr, /) -> T:
method visit_bytes_expr (line 31) | def visit_bytes_expr(self, o: mypy.nodes.BytesExpr, /) -> T:
method visit_float_expr (line 35) | def visit_float_expr(self, o: mypy.nodes.FloatExpr, /) -> T:
method visit_complex_expr (line 39) | def visit_complex_expr(self, o: mypy.nodes.ComplexExpr, /) -> T:
method visit_ellipsis (line 43) | def visit_ellipsis(self, o: mypy.nodes.EllipsisExpr, /) -> T:
method visit_star_expr (line 47) | def visit_star_expr(self, o: mypy.nodes.StarExpr, /) -> T:
method visit_name_expr (line 51) | def visit_name_expr(self, o: mypy.nodes.NameExpr, /) -> T:
method visit_member_expr (line 55) | def visit_member_expr(self, o: mypy.nodes.MemberExpr, /) -> T:
method visit_yield_from_expr (line 59) | def visit_yield_from_expr(self, o: mypy.nodes.YieldFromExpr, /) -> T:
method visit_yield_expr (line 63) | def visit_yield_expr(self, o: mypy.nodes.YieldExpr, /) -> T:
method visit_call_expr (line 67) | def visit_call_expr(self, o: mypy.nodes.CallExpr, /) -> T:
method visit_op_expr (line 71) | def visit_op_expr(self, o: mypy.nodes.OpExpr, /) -> T:
method visit_comparison_expr (line 75) | def visit_comparison_expr(self, o: mypy.nodes.ComparisonExpr, /) -> T:
method visit_cast_expr (line 79) | def visit_cast_expr(self, o: mypy.nodes.CastExpr, /) -> T:
method visit_assert_type_expr (line 83) | def visit_assert_type_expr(self, o: mypy.nodes.AssertTypeExpr, /) -> T:
method visit_reveal_expr (line 87) | def visit_reveal_expr(self, o: mypy.nodes.RevealExpr, /) -> T:
method visit_super_expr (line 91) | def visit_super_expr(self, o: mypy.nodes.SuperExpr, /) -> T:
method visit_unary_expr (line 95) | def visit_unary_expr(self, o: mypy.nodes.UnaryExpr, /) -> T:
method visit_assignment_expr (line 99) | def visit_assignment_expr(self, o: mypy.nodes.AssignmentExpr, /) -> T:
method visit_list_expr (line 103) | def visit_list_expr(self, o: mypy.nodes.ListExpr, /) -> T:
method visit_dict_expr (line 107) | def visit_dict_expr(self, o: mypy.nodes.DictExpr, /) -> T:
method visit_tuple_expr (line 111) | def visit_tuple_expr(self, o: mypy.nodes.TupleExpr, /) -> T:
method visit_set_expr (line 115) | def visit_set_expr(self, o: mypy.nodes.SetExpr, /) -> T:
method visit_index_expr (line 119) | def visit_index_expr(self, o: mypy.nodes.IndexExpr, /) -> T:
method visit_type_application (line 123) | def visit_type_application(self, o: mypy.nodes.TypeApplication, /) -> T:
method visit_lambda_expr (line 127) | def visit_lambda_expr(self, o: mypy.nodes.LambdaExpr, /) -> T:
method visit_list_comprehension (line 131) | def visit_list_comprehension(self, o: mypy.nodes.ListComprehension, /)...
method visit_set_comprehension (line 135) | def visit_set_comprehension(self, o: mypy.nodes.SetComprehension, /) -...
method visit_dictionary_comprehension (line 139) | def visit_dictionary_comprehension(self, o: mypy.nodes.DictionaryCompr...
method visit_generator_expr (line 143) | def visit_generator_expr(self, o: mypy.nodes.GeneratorExpr, /) -> T:
method visit_slice_expr (line 147) | def visit_slice_expr(self, o: mypy.nodes.SliceExpr, /) -> T:
method visit_conditional_expr (line 151) | def visit_conditional_expr(self, o: mypy.nodes.ConditionalExpr, /) -> T:
method visit_type_var_expr (line 155) | def visit_type_var_expr(self, o: mypy.nodes.TypeVarExpr, /) -> T:
method visit_paramspec_expr (line 159) | def visit_paramspec_expr(self, o: mypy.nodes.ParamSpecExpr, /) -> T:
method visit_type_var_tuple_expr (line 163) | def visit_type_var_tuple_expr(self, o: mypy.nodes.TypeVarTupleExpr, /)...
method visit_type_alias_expr (line 167) | def visit_type_alias_expr(self, o: mypy.nodes.TypeAliasExpr, /) -> T:
method visit_namedtuple_expr (line 171) | def visit_namedtuple_expr(self, o: mypy.nodes.NamedTupleExpr, /) -> T:
method visit_enum_call_expr (line 175) | def visit_enum_call_expr(self, o: mypy.nodes.EnumCallExpr, /) -> T:
method visit_typeddict_expr (line 179) | def visit_typeddict_expr(self, o: mypy.nodes.TypedDictExpr, /) -> T:
method visit_newtype_expr (line 183) | def visit_newtype_expr(self, o: mypy.nodes.NewTypeExpr, /) -> T:
method visit__promote_expr (line 187) | def visit__promote_expr(self, o: mypy.nodes.PromoteExpr, /) -> T:
method visit_await_expr (line 191) | def visit_await_expr(self, o: mypy.nodes.AwaitExpr, /) -> T:
method visit_temp_node (line 195) | def visit_temp_node(self, o: mypy.nodes.TempNode, /) -> T:
class StatementVisitor (line 201) | class StatementVisitor(Generic[T]):
method visit_assignment_stmt (line 205) | def visit_assignment_stmt(self, o: mypy.nodes.AssignmentStmt, /) -> T:
method visit_for_stmt (line 209) | def visit_for_stmt(self, o: mypy.nodes.ForStmt, /) -> T:
method visit_with_stmt (line 213) | def visit_with_stmt(self, o: mypy.nodes.WithStmt, /) -> T:
method visit_del_stmt (line 217) | def visit_del_stmt(self, o: mypy.nodes.DelStmt, /) -> T:
method visit_func_def (line 221) | def visit_func_def(self, o: mypy.nodes.FuncDef, /) -> T:
method visit_overloaded_func_def (line 225) | def visit_overloaded_func_def(self, o: mypy.nodes.OverloadedFuncDef, /...
method visit_class_def (line 229) | def visit_class_def(self, o: mypy.nodes.ClassDef, /) -> T:
method visit_global_decl (line 233) | def visit_global_decl(self, o: mypy.nodes.GlobalDecl, /) -> T:
method visit_nonlocal_decl (line 237) | def visit_nonlocal_decl(self, o: mypy.nodes.NonlocalDecl, /) -> T:
method visit_decorator (line 241) | def visit_decorator(self, o: mypy.nodes.Decorator, /) -> T:
method visit_import (line 247) | def visit_import(self, o: mypy.nodes.Import, /) -> T:
method visit_import_from (line 251) | def visit_import_from(self, o: mypy.nodes.ImportFrom, /) -> T:
method visit_import_all (line 255) | def visit_import_all(self, o: mypy.nodes.ImportAll, /) -> T:
method visit_block (line 261) | def visit_block(self, o: mypy.nodes.Block, /) -> T:
method visit_expression_stmt (line 265) | def visit_expression_stmt(self, o: mypy.nodes.ExpressionStmt, /) -> T:
method visit_operator_assignment_stmt (line 269) | def visit_operator_assignment_stmt(self, o: mypy.nodes.OperatorAssignm...
method visit_while_stmt (line 273) | def visit_while_stmt(self, o: mypy.nodes.WhileStmt, /) -> T:
method visit_return_stmt (line 277) | def visit_return_stmt(self, o: mypy.nodes.ReturnStmt, /) -> T:
method visit_assert_stmt (line 281) | def visit_assert_stmt(self, o: mypy.nodes.AssertStmt, /) -> T:
method visit_if_stmt (line 285) | def visit_if_stmt(self, o: mypy.nodes.IfStmt, /) -> T:
method visit_break_stmt (line 289) | def visit_break_stmt(self, o: mypy.nodes.BreakStmt, /) -> T:
method visit_continue_stmt (line 293) | def visit_continue_stmt(self, o: mypy.nodes.ContinueStmt, /) -> T:
method visit_pass_stmt (line 297) | def visit_pass_stmt(self, o: mypy.nodes.PassStmt, /) -> T:
method visit_raise_stmt (line 301) | def visit_raise_stmt(self, o: mypy.nodes.RaiseStmt, /) -> T:
method visit_try_stmt (line 305) | def visit_try_stmt(self, o: mypy.nodes.TryStmt, /) -> T:
method visit_match_stmt (line 309) | def visit_match_stmt(self, o: mypy.nodes.MatchStmt, /) -> T:
method visit_type_alias_stmt (line 313) | def visit_type_alias_stmt(self, o: mypy.nodes.TypeAliasStmt, /) -> T:
class PatternVisitor (line 319) | class PatternVisitor(Generic[T]):
method visit_as_pattern (line 321) | def visit_as_pattern(self, o: mypy.patterns.AsPattern, /) -> T:
method visit_or_pattern (line 325) | def visit_or_pattern(self, o: mypy.patterns.OrPattern, /) -> T:
method visit_value_pattern (line 329) | def visit_value_pattern(self, o: mypy.patterns.ValuePattern, /) -> T:
method visit_singleton_pattern (line 333) | def visit_singleton_pattern(self, o: mypy.patterns.SingletonPattern, /...
method visit_sequence_pattern (line 337) | def visit_sequence_pattern(self, o: mypy.patterns.SequencePattern, /) ...
method visit_starred_pattern (line 341) | def visit_starred_pattern(self, o: mypy.patterns.StarredPattern, /) -> T:
method visit_mapping_pattern (line 345) | def visit_mapping_pattern(self, o: mypy.patterns.MappingPattern, /) -> T:
method visit_class_pattern (line 349) | def visit_class_pattern(self, o: mypy.patterns.ClassPattern, /) -> T:
class NodeVisitor (line 355) | class NodeVisitor(Generic[T], ExpressionVisitor[T], StatementVisitor[T],...
method visit_mypy_file (line 368) | def visit_mypy_file(self, o: mypy.nodes.MypyFile, /) -> T:
method visit_var (line 374) | def visit_var(self, o: mypy.nodes.Var, /) -> T:
method visit_import (line 379) | def visit_import(self, o: mypy.nodes.Import, /) -> T:
method visit_import_from (line 382) | def visit_import_from(self, o: mypy.nodes.ImportFrom, /) -> T:
method visit_import_all (line 385) | def visit_import_all(self, o: mypy.nodes.ImportAll, /) -> T:
method visit_func_def (line 390) | def visit_func_def(self, o: mypy.nodes.FuncDef, /) -> T:
method visit_overloaded_func_def (line 393) | def visit_overloaded_func_def(self, o: mypy.nodes.OverloadedFuncDef, /...
method visit_class_def (line 396) | def visit_class_def(self, o: mypy.nodes.ClassDef, /) -> T:
method visit_global_decl (line 399) | def visit_global_decl(self, o: mypy.nodes.GlobalDecl, /) -> T:
method visit_nonlocal_decl (line 402) | def visit_nonlocal_decl(self, o: mypy.nodes.NonlocalDecl, /) -> T:
method visit_decorator (line 405) | def visit_decorator(self, o: mypy.nodes.Decorator, /) -> T:
method visit_type_alias (line 408) | def visit_type_alias(self, o: mypy.nodes.TypeAlias, /) -> T:
method visit_placeholder_node (line 411) | def visit_placeholder_node(self, o: mypy.nodes.PlaceholderNode, /) -> T:
method visit_block (line 416) | def visit_block(self, o: mypy.nodes.Block, /) -> T:
method visit_expression_stmt (line 419) | def visit_expression_stmt(self, o: mypy.nodes.ExpressionStmt, /) -> T:
method visit_assignment_stmt (line 422) | def visit_assignment_stmt(self, o: mypy.nodes.AssignmentStmt, /) -> T:
method visit_operator_assignment_stmt (line 425) | def visit_operator_assignment_stmt(self, o: mypy.nodes.OperatorAssignm...
method visit_while_stmt (line 428) | def visit_while_stmt(self, o: mypy.nodes.WhileStmt, /) -> T:
method visit_for_stmt (line 431) | def visit_for_stmt(self, o: mypy.nodes.ForStmt, /) -> T:
method visit_return_stmt (line 434) | def visit_return_stmt(self, o: mypy.nodes.ReturnStmt, /) -> T:
method visit_assert_stmt (line 437) | def visit_assert_stmt(self, o: mypy.nodes.AssertStmt, /) -> T:
method visit_del_stmt (line 440) | def visit_del_stmt(self, o: mypy.nodes.DelStmt, /) -> T:
method visit_if_stmt (line 443) | def visit_if_stmt(self, o: mypy.nodes.IfStmt, /) -> T:
method visit_break_stmt (line 446) | def visit_break_stmt(self, o: mypy.nodes.BreakStmt, /) -> T:
method visit_continue_stmt (line 449) | def visit_continue_stmt(self, o: mypy.nodes.ContinueStmt, /) -> T:
method visit_pass_stmt (line 452) | def visit_pass_stmt(self, o: mypy.nodes.PassStmt, /) -> T:
method visit_raise_stmt (line 455) | def visit_raise_stmt(self, o: mypy.nodes.RaiseStmt, /) -> T:
method visit_try_stmt (line 458) | def visit_try_stmt(self, o: mypy.nodes.TryStmt, /) -> T:
method visit_with_stmt (line 461) | def visit_with_stmt(self, o: mypy.nodes.WithStmt, /) -> T:
method visit_match_stmt (line 464) | def visit_match_stmt(self, o: mypy.nodes.MatchStmt, /) -> T:
method visit_type_alias_stmt (line 467) | def visit_type_alias_stmt(self, o: mypy.nodes.TypeAliasStmt, /) -> T:
method visit_int_expr (line 472) | def visit_int_expr(self, o: mypy.nodes.IntExpr, /) -> T:
method visit_str_expr (line 475) | def visit_str_expr(self, o: mypy.nodes.StrExpr, /) -> T:
method visit_bytes_expr (line 478) | def visit_bytes_expr(self, o: mypy.nodes.BytesExpr, /) -> T:
method visit_float_expr (line 481) | def visit_float_expr(self, o: mypy.nodes.FloatExpr, /) -> T:
method visit_complex_expr (line 484) | def visit_complex_expr(self, o: mypy.nodes.ComplexExpr, /) -> T:
method visit_ellipsis (line 487) | def visit_ellipsis(self, o: mypy.nodes.EllipsisExpr, /) -> T:
method visit_star_expr (line 490) | def visit_star_expr(self, o: mypy.nodes.StarExpr, /) -> T:
method visit_name_expr (line 493) | def visit_name_expr(self, o: mypy.nodes.NameExpr, /) -> T:
method visit_member_expr (line 496) | def visit_member_expr(self, o: mypy.nodes.MemberExpr, /) -> T:
method visit_yield_from_expr (line 499) | def visit_yield_from_expr(self, o: mypy.nodes.YieldFromExpr, /) -> T:
method visit_yield_expr (line 502) | def visit_yield_expr(self, o: mypy.nodes.YieldExpr, /) -> T:
method visit_call_expr (line 505) | def visit_call_expr(self, o: mypy.nodes.CallExpr, /) -> T:
method visit_op_expr (line 508) | def visit_op_expr(self, o: mypy.nodes.OpExpr, /) -> T:
method visit_comparison_expr (line 511) | def visit_comparison_expr(self, o: mypy.nodes.ComparisonExpr, /) -> T:
method visit_cast_expr (line 514) | def visit_cast_expr(self, o: mypy.nodes.CastExpr, /) -> T:
method visit_assert_type_expr (line 517) | def visit_assert_type_expr(self, o: mypy.nodes.AssertTypeExpr, /) -> T:
method visit_reveal_expr (line 520) | def visit_reveal_expr(self, o: mypy.nodes.RevealExpr, /) -> T:
method visit_super_expr (line 523) | def visit_super_expr(self, o: mypy.nodes.SuperExpr, /) -> T:
method visit_assignment_expr (line 526) | def visit_assignment_expr(self, o: mypy.nodes.AssignmentExpr, /) -> T:
method visit_unary_expr (line 529) | def visit_unary_expr(self, o: mypy.nodes.UnaryExpr, /) -> T:
method visit_list_expr (line 532) | def visit_list_expr(self, o: mypy.nodes.ListExpr, /) -> T:
method visit_dict_expr (line 535) | def visit_dict_expr(self, o: mypy.nodes.DictExpr, /) -> T:
method visit_tuple_expr (line 538) | def visit_tuple_expr(self, o: mypy.nodes.TupleExpr, /) -> T:
method visit_set_expr (line 541) | def visit_set_expr(self, o: mypy.nodes.SetExpr, /) -> T:
method visit_index_expr (line 544) | def visit_index_expr(self, o: mypy.nodes.IndexExpr, /) -> T:
method visit_type_application (line 547) | def visit_type_application(self, o: mypy.nodes.TypeApplication, /) -> T:
method visit_lambda_expr (line 550) | def visit_lambda_expr(self, o: mypy.nodes.LambdaExpr, /) -> T:
method visit_list_comprehension (line 553) | def visit_list_comprehension(self, o: mypy.nodes.ListComprehension, /)...
method visit_set_comprehension (line 556) | def visit_set_comprehension(self, o: mypy.nodes.SetComprehension, /) -...
method visit_dictionary_comprehension (line 559) | def visit_dictionary_comprehension(self, o: mypy.nodes.DictionaryCompr...
method visit_generator_expr (line 562) | def visit_generator_expr(self, o: mypy.nodes.GeneratorExpr, /) -> T:
method visit_slice_expr (line 565) | def visit_slice_expr(self, o: mypy.nodes.SliceExpr, /) -> T:
method visit_conditional_expr (line 568) | def visit_conditional_expr(self, o: mypy.nodes.ConditionalExpr, /) -> T:
method visit_type_var_expr (line 571) | def visit_type_var_expr(self, o: mypy.nodes.TypeVarExpr, /) -> T:
method visit_paramspec_expr (line 574) | def visit_paramspec_expr(self, o: mypy.nodes.ParamSpecExpr, /) -> T:
method visit_type_var_tuple_expr (line 577) | def visit_type_var_tuple_expr(self, o: mypy.nodes.TypeVarTupleExpr, /)...
method visit_type_alias_expr (line 580) | def visit_type_alias_expr(self, o: mypy.nodes.TypeAliasExpr, /) -> T:
method visit_namedtuple_expr (line 583) | def visit_namedtuple_expr(self, o: mypy.nodes.NamedTupleExpr, /) -> T:
method visit_enum_call_expr (line 586) | def visit_enum_call_expr(self, o: mypy.nodes.EnumCallExpr, /) -> T:
method visit_typeddict_expr (line 589) | def visit_typeddict_expr(self, o: mypy.nodes.TypedDictExpr, /) -> T:
method visit_newtype_expr (line 592) | def visit_newtype_expr(self, o: mypy.nodes.NewTypeExpr, /) -> T:
method visit__promote_expr (line 595) | def visit__promote_expr(self, o: mypy.nodes.PromoteExpr, /) -> T:
method visit_await_expr (line 598) | def visit_await_expr(self, o: mypy.nodes.AwaitExpr, /) -> T:
method visit_temp_node (line 601) | def visit_temp_node(self, o: mypy.nodes.TempNode, /) -> T:
method visit_as_pattern (line 606) | def visit_as_pattern(self, o: mypy.patterns.AsPattern, /) -> T:
method visit_or_pattern (line 609) | def visit_or_pattern(self, o: mypy.patterns.OrPattern, /) -> T:
method visit_value_pattern (line 612) | def visit_value_pattern(self, o: mypy.patterns.ValuePattern, /) -> T:
method visit_singleton_pattern (line 615) | def visit_singleton_pattern(self, o: mypy.patterns.SingletonPattern, /...
method visit_sequence_pattern (line 618) | def visit_sequence_pattern(self, o: mypy.patterns.SequencePattern, /) ...
method visit_starred_pattern (line 621) | def visit_starred_pattern(self, o: mypy.patterns.StarredPattern, /) -> T:
method visit_mapping_pattern (line 624) | def visit_mapping_pattern(self, o: mypy.patterns.MappingPattern, /) -> T:
method visit_class_pattern (line 627) | def visit_class_pattern(self, o: mypy.patterns.ClassPattern, /) -> T:
FILE: mypyc/__main__.py
function main (line 32) | def main() -> None:
FILE: mypyc/analysis/attrdefined.py
function analyze_always_defined_attrs (line 100) | def analyze_always_defined_attrs(class_irs: list[ClassIR]) -> None:
function analyze_always_defined_attrs_in_class (line 128) | def analyze_always_defined_attrs_in_class(cl: ClassIR, seen: set[ClassIR...
function find_always_defined_attributes (line 191) | def find_always_defined_attributes(
function find_sometimes_defined_attributes (line 241) | def find_sometimes_defined_attributes(
function mark_attr_initialization_ops (line 263) | def mark_attr_initialization_ops(
function attributes_initialized_by_init_call (line 285) | def attributes_initialized_by_init_call(op: Call) -> set[str]:
function attributes_maybe_initialized_by_init_call (line 293) | def attributes_maybe_initialized_by_init_call(op: Call) -> set[str]:
class AttributeMaybeDefinedVisitor (line 301) | class AttributeMaybeDefinedVisitor(BaseAnalysisVisitor[str]):
method __init__ (line 308) | def __init__(self, self_reg: Register) -> None:
method visit_branch (line 311) | def visit_branch(self, op: Branch) -> tuple[set[str], set[str]]:
method visit_return (line 314) | def visit_return(self, op: Return) -> tuple[set[str], set[str]]:
method visit_unreachable (line 317) | def visit_unreachable(self, op: Unreachable) -> tuple[set[str], set[st...
method visit_register_op (line 320) | def visit_register_op(self, op: RegisterOp) -> tuple[set[str], set[str]]:
method visit_assign (line 327) | def visit_assign(self, op: Assign) -> tuple[set[str], set[str]]:
method visit_assign_multi (line 330) | def visit_assign_multi(self, op: AssignMulti) -> tuple[set[str], set[s...
method visit_set_mem (line 333) | def visit_set_mem(self, op: SetMem) -> tuple[set[str], set[str]]:
function analyze_maybe_defined_attrs_in_init (line 337) | def analyze_maybe_defined_attrs_in_init(
class AttributeMaybeUndefinedVisitor (line 350) | class AttributeMaybeUndefinedVisitor(BaseAnalysisVisitor[str]):
method __init__ (line 357) | def __init__(self, self_reg: Register) -> None:
method visit_branch (line 360) | def visit_branch(self, op: Branch) -> tuple[set[str], set[str]]:
method visit_return (line 363) | def visit_return(self, op: Return) -> tuple[set[str], set[str]]:
method visit_unreachable (line 366) | def visit_unreachable(self, op: Unreachable) -> tuple[set[str], set[st...
method visit_register_op (line 369) | def visit_register_op(self, op: RegisterOp) -> tuple[set[str], set[str]]:
method visit_assign (line 376) | def visit_assign(self, op: Assign) -> tuple[set[str], set[str]]:
method visit_assign_multi (line 379) | def visit_assign_multi(self, op: AssignMulti) -> tuple[set[str], set[s...
method visit_set_mem (line 382) | def visit_set_mem(self, op: SetMem) -> tuple[set[str], set[str]]:
function analyze_maybe_undefined_attrs_in_init (line 386) | def analyze_maybe_undefined_attrs_in_init(
function update_always_defined_attrs_using_subclasses (line 399) | def update_always_defined_attrs_using_subclasses(cl: ClassIR, seen: set[...
function detect_undefined_bitmap (line 416) | def detect_undefined_bitmap(cl: ClassIR, seen: set[ClassIR]) -> None:
FILE: mypyc/analysis/blockfreq.py
function frequently_executed_blocks (line 15) | def frequently_executed_blocks(entry_point: BasicBlock) -> set[BasicBlock]:
FILE: mypyc/analysis/dataflow.py
class CFG (line 57) | class CFG:
method __init__ (line 64) | def __init__(
method __str__ (line 75) | def __str__(self) -> str:
function get_cfg (line 80) | def get_cfg(blocks: list[BasicBlock]) -> CFG:
function get_real_target (line 123) | def get_real_target(label: BasicBlock) -> BasicBlock:
function cleanup_cfg (line 129) | def cleanup_cfg(blocks: list[BasicBlock]) -> None:
class AnalysisResult (line 161) | class AnalysisResult(Generic[T]):
method __init__ (line 162) | def __init__(self, before: AnalysisDict[T], after: AnalysisDict[T]) ->...
method __str__ (line 166) | def __str__(self) -> str:
class BaseAnalysisVisitor (line 173) | class BaseAnalysisVisitor(OpVisitor[GenAndKill[T]]):
method visit_goto (line 174) | def visit_goto(self, op: Goto) -> GenAndKill[T]:
method visit_register_op (line 178) | def visit_register_op(self, op: RegisterOp) -> GenAndKill[T]:
method visit_assign (line 182) | def visit_assign(self, op: Assign) -> GenAndKill[T]:
method visit_assign_multi (line 186) | def visit_assign_multi(self, op: AssignMulti) -> GenAndKill[T]:
method visit_set_mem (line 190) | def visit_set_mem(self, op: SetMem) -> GenAndKill[T]:
method visit_call (line 193) | def visit_call(self, op: Call) -> GenAndKill[T]:
method visit_method_call (line 196) | def visit_method_call(self, op: MethodCall) -> GenAndKill[T]:
method visit_load_error_value (line 199) | def visit_load_error_value(self, op: LoadErrorValue) -> GenAndKill[T]:
method visit_load_literal (line 202) | def visit_load_literal(self, op: LoadLiteral) -> GenAndKill[T]:
method visit_get_attr (line 205) | def visit_get_attr(self, op: GetAttr) -> GenAndKill[T]:
method visit_set_attr (line 208) | def visit_set_attr(self, op: SetAttr) -> GenAndKill[T]:
method visit_load_static (line 211) | def visit_load_static(self, op: LoadStatic) -> GenAndKill[T]:
method visit_init_static (line 214) | def visit_init_static(self, op: InitStatic) -> GenAndKill[T]:
method visit_tuple_get (line 217) | def visit_tuple_get(self, op: TupleGet) -> GenAndKill[T]:
method visit_tuple_set (line 220) | def visit_tuple_set(self, op: TupleSet) -> GenAndKill[T]:
method visit_box (line 223) | def visit_box(self, op: Box) -> GenAndKill[T]:
method visit_unbox (line 226) | def visit_unbox(self, op: Unbox) -> GenAndKill[T]:
method visit_cast (line 229) | def visit_cast(self, op: Cast) -> GenAndKill[T]:
method visit_raise_standard_error (line 232) | def visit_raise_standard_error(self, op: RaiseStandardError) -> GenAnd...
method visit_call_c (line 235) | def visit_call_c(self, op: CallC) -> GenAndKill[T]:
method visit_primitive_op (line 238) | def visit_primitive_op(self, op: PrimitiveOp) -> GenAndKill[T]:
method visit_truncate (line 241) | def visit_truncate(self, op: Truncate) -> GenAndKill[T]:
method visit_extend (line 244) | def visit_extend(self, op: Extend) -> GenAndKill[T]:
method visit_load_global (line 247) | def visit_load_global(self, op: LoadGlobal) -> GenAndKill[T]:
method visit_int_op (line 250) | def visit_int_op(self, op: IntOp) -> GenAndKill[T]:
method visit_float_op (line 253) | def visit_float_op(self, op: FloatOp) -> GenAndKill[T]:
method visit_float_neg (line 256) | def visit_float_neg(self, op: FloatNeg) -> GenAndKill[T]:
method visit_comparison_op (line 259) | def visit_comparison_op(self, op: ComparisonOp) -> GenAndKill[T]:
method visit_float_comparison_op (line 262) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> GenAndKi...
method visit_load_mem (line 265) | def visit_load_mem(self, op: LoadMem) -> GenAndKill[T]:
method visit_get_element_ptr (line 268) | def visit_get_element_ptr(self, op: GetElementPtr) -> GenAndKill[T]:
method visit_load_address (line 271) | def visit_load_address(self, op: LoadAddress) -> GenAndKill[T]:
method visit_keep_alive (line 274) | def visit_keep_alive(self, op: KeepAlive) -> GenAndKill[T]:
method visit_unborrow (line 277) | def visit_unborrow(self, op: Unborrow) -> GenAndKill[T]:
class DefinedVisitor (line 281) | class DefinedVisitor(BaseAnalysisVisitor[Value]):
method __init__ (line 297) | def __init__(self, strict_errors: bool = False) -> None:
method visit_branch (line 300) | def visit_branch(self, op: Branch) -> GenAndKill[Value]:
method visit_return (line 303) | def visit_return(self, op: Return) -> GenAndKill[Value]:
method visit_unreachable (line 306) | def visit_unreachable(self, op: Unreachable) -> GenAndKill[Value]:
method visit_register_op (line 309) | def visit_register_op(self, op: RegisterOp) -> GenAndKill[Value]:
method visit_assign (line 312) | def visit_assign(self, op: Assign) -> GenAndKill[Value]:
method visit_assign_multi (line 319) | def visit_assign_multi(self, op: AssignMulti) -> GenAndKill[Value]:
method visit_set_mem (line 323) | def visit_set_mem(self, op: SetMem) -> GenAndKill[Value]:
function analyze_maybe_defined_regs (line 327) | def analyze_maybe_defined_regs(
function analyze_must_defined_regs (line 344) | def analyze_must_defined_regs(
class BorrowedArgumentsVisitor (line 371) | class BorrowedArgumentsVisitor(BaseAnalysisVisitor[Value]):
method __init__ (line 372) | def __init__(self, args: set[Value]) -> None:
method visit_branch (line 375) | def visit_branch(self, op: Branch) -> GenAndKill[Value]:
method visit_return (line 378) | def visit_return(self, op: Return) -> GenAndKill[Value]:
method visit_unreachable (line 381) | def visit_unreachable(self, op: Unreachable) -> GenAndKill[Value]:
method visit_register_op (line 384) | def visit_register_op(self, op: RegisterOp) -> GenAndKill[Value]:
method visit_assign (line 387) | def visit_assign(self, op: Assign) -> GenAndKill[Value]:
method visit_assign_multi (line 392) | def visit_assign_multi(self, op: AssignMulti) -> GenAndKill[Value]:
method visit_set_mem (line 395) | def visit_set_mem(self, op: SetMem) -> GenAndKill[Value]:
function analyze_borrowed_arguments (line 399) | def analyze_borrowed_arguments(
class UndefinedVisitor (line 417) | class UndefinedVisitor(BaseAnalysisVisitor[Value]):
method visit_branch (line 418) | def visit_branch(self, op: Branch) -> GenAndKill[Value]:
method visit_return (line 421) | def visit_return(self, op: Return) -> GenAndKill[Value]:
method visit_unreachable (line 424) | def visit_unreachable(self, op: Unreachable) -> GenAndKill[Value]:
method visit_register_op (line 427) | def visit_register_op(self, op: RegisterOp) -> GenAndKill[Value]:
method visit_assign (line 430) | def visit_assign(self, op: Assign) -> GenAndKill[Value]:
method visit_assign_multi (line 433) | def visit_assign_multi(self, op: AssignMulti) -> GenAndKill[Value]:
method visit_set_mem (line 436) | def visit_set_mem(self, op: SetMem) -> GenAndKill[Value]:
function non_trivial_sources (line 440) | def non_trivial_sources(op: Op) -> set[Value]:
class LivenessVisitor (line 448) | class LivenessVisitor(BaseAnalysisVisitor[Value]):
method visit_branch (line 449) | def visit_branch(self, op: Branch) -> GenAndKill[Value]:
method visit_return (line 452) | def visit_return(self, op: Return) -> GenAndKill[Value]:
method visit_unreachable (line 458) | def visit_unreachable(self, op: Unreachable) -> GenAndKill[Value]:
method visit_register_op (line 461) | def visit_register_op(self, op: RegisterOp) -> GenAndKill[Value]:
method visit_assign (line 468) | def visit_assign(self, op: Assign) -> GenAndKill[Value]:
method visit_assign_multi (line 471) | def visit_assign_multi(self, op: AssignMulti) -> GenAndKill[Value]:
method visit_set_mem (line 474) | def visit_set_mem(self, op: SetMem) -> GenAndKill[Value]:
function analyze_live_regs (line 478) | def analyze_live_regs(blocks: list[BasicBlock], cfg: CFG) -> AnalysisRes...
function run_analysis (line 499) | def run_analysis(
FILE: mypyc/analysis/ircheck.py
class FnError (line 74) | class FnError:
method __init__ (line 75) | def __init__(self, source: Op | BasicBlock, desc: str) -> None:
method __eq__ (line 79) | def __eq__(self, other: object) -> bool:
method __repr__ (line 84) | def __repr__(self) -> str:
function check_func_ir (line 88) | def check_func_ir(fn: FuncIR) -> list[FnError]:
class IrCheckException (line 119) | class IrCheckException(Exception):
function assert_func_ir_valid (line 123) | def assert_func_ir_valid(fn: FuncIR) -> None:
function check_op_sources_valid (line 132) | def check_op_sources_valid(fn: FuncIR) -> list[FnError]:
function can_coerce_to (line 184) | def can_coerce_to(src: RType, dest: RType) -> bool:
class OpChecker (line 209) | class OpChecker(OpVisitor[None]):
method __init__ (line 210) | def __init__(self, parent_fn: FuncIR) -> None:
method fail (line 214) | def fail(self, source: Op, desc: str) -> None:
method check_control_op_targets (line 217) | def check_control_op_targets(self, op: ControlOp) -> None:
method check_type_coercion (line 222) | def check_type_coercion(self, op: Op, src: RType, dest: RType) -> None:
method check_compatibility (line 228) | def check_compatibility(self, op: Op, t: RType, s: RType) -> None:
method expect_float (line 232) | def expect_float(self, op: Op, v: Value) -> None:
method expect_non_float (line 236) | def expect_non_float(self, op: Op, v: Value) -> None:
method visit_goto (line 240) | def visit_goto(self, op: Goto) -> None:
method visit_branch (line 243) | def visit_branch(self, op: Branch) -> None:
method visit_return (line 246) | def visit_return(self, op: Return) -> None:
method visit_unreachable (line 249) | def visit_unreachable(self, op: Unreachable) -> None:
method visit_assign (line 254) | def visit_assign(self, op: Assign) -> None:
method visit_assign_multi (line 257) | def visit_assign_multi(self, op: AssignMulti) -> None:
method visit_load_error_value (line 262) | def visit_load_error_value(self, op: LoadErrorValue) -> None:
method check_tuple_items_valid_literals (line 268) | def check_tuple_items_valid_literals(self, op: LoadLiteral, t: tuple[o...
method check_frozenset_items_valid_literals (line 275) | def check_frozenset_items_valid_literals(self, op: LoadLiteral, s: fro...
method visit_load_literal (line 284) | def visit_load_literal(self, op: LoadLiteral) -> None:
method visit_get_attr (line 318) | def visit_get_attr(self, op: GetAttr) -> None:
method visit_set_attr (line 322) | def visit_set_attr(self, op: SetAttr) -> None:
method visit_load_static (line 327) | def visit_load_static(self, op: LoadStatic) -> None:
method visit_init_static (line 330) | def visit_init_static(self, op: InitStatic) -> None:
method visit_tuple_get (line 333) | def visit_tuple_get(self, op: TupleGet) -> None:
method visit_tuple_set (line 337) | def visit_tuple_set(self, op: TupleSet) -> None:
method visit_inc_ref (line 341) | def visit_inc_ref(self, op: IncRef) -> None:
method visit_dec_ref (line 345) | def visit_dec_ref(self, op: DecRef) -> None:
method visit_call (line 349) | def visit_call(self, op: Call) -> None:
method visit_method_call (line 355) | def visit_method_call(self, op: MethodCall) -> None:
method visit_cast (line 370) | def visit_cast(self, op: Cast) -> None:
method visit_box (line 373) | def visit_box(self, op: Box) -> None:
method visit_unbox (line 376) | def visit_unbox(self, op: Unbox) -> None:
method visit_raise_standard_error (line 379) | def visit_raise_standard_error(self, op: RaiseStandardError) -> None:
method visit_call_c (line 382) | def visit_call_c(self, op: CallC) -> None:
method visit_primitive_op (line 385) | def visit_primitive_op(self, op: PrimitiveOp) -> None:
method visit_truncate (line 388) | def visit_truncate(self, op: Truncate) -> None:
method visit_extend (line 391) | def visit_extend(self, op: Extend) -> None:
method visit_load_global (line 394) | def visit_load_global(self, op: LoadGlobal) -> None:
method visit_int_op (line 397) | def visit_int_op(self, op: IntOp) -> None:
method visit_comparison_op (line 401) | def visit_comparison_op(self, op: ComparisonOp) -> None:
method visit_float_op (line 406) | def visit_float_op(self, op: FloatOp) -> None:
method visit_float_neg (line 410) | def visit_float_neg(self, op: FloatNeg) -> None:
method visit_float_comparison_op (line 413) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> None:
method visit_load_mem (line 417) | def visit_load_mem(self, op: LoadMem) -> None:
method visit_set_mem (line 420) | def visit_set_mem(self, op: SetMem) -> None:
method visit_get_element_ptr (line 423) | def visit_get_element_ptr(self, op: GetElementPtr) -> None:
method visit_load_address (line 426) | def visit_load_address(self, op: LoadAddress) -> None:
method visit_keep_alive (line 429) | def visit_keep_alive(self, op: KeepAlive) -> None:
method visit_unborrow (line 432) | def visit_unborrow(self, op: Unborrow) -> None:
FILE: mypyc/analysis/selfleaks.py
class SelfLeakedVisitor (line 54) | class SelfLeakedVisitor(OpVisitor[GenAndKill]):
method __init__ (line 63) | def __init__(self, self_reg: Register) -> None:
method visit_goto (line 66) | def visit_goto(self, op: Goto) -> GenAndKill:
method visit_branch (line 69) | def visit_branch(self, op: Branch) -> GenAndKill:
method visit_return (line 72) | def visit_return(self, op: Return) -> GenAndKill:
method visit_unreachable (line 77) | def visit_unreachable(self, op: Unreachable) -> GenAndKill:
method visit_assign (line 80) | def visit_assign(self, op: Assign) -> GenAndKill:
method visit_assign_multi (line 85) | def visit_assign_multi(self, op: AssignMulti) -> GenAndKill:
method visit_set_mem (line 88) | def visit_set_mem(self, op: SetMem) -> GenAndKill:
method visit_call (line 91) | def visit_call(self, op: Call) -> GenAndKill:
method visit_method_call (line 101) | def visit_method_call(self, op: MethodCall) -> GenAndKill:
method visit_load_error_value (line 104) | def visit_load_error_value(self, op: LoadErrorValue) -> GenAndKill:
method visit_load_literal (line 107) | def visit_load_literal(self, op: LoadLiteral) -> GenAndKill:
method visit_get_attr (line 110) | def visit_get_attr(self, op: GetAttr) -> GenAndKill:
method visit_set_attr (line 117) | def visit_set_attr(self, op: SetAttr) -> GenAndKill:
method visit_load_static (line 124) | def visit_load_static(self, op: LoadStatic) -> GenAndKill:
method visit_init_static (line 127) | def visit_init_static(self, op: InitStatic) -> GenAndKill:
method visit_tuple_get (line 130) | def visit_tuple_get(self, op: TupleGet) -> GenAndKill:
method visit_tuple_set (line 133) | def visit_tuple_set(self, op: TupleSet) -> GenAndKill:
method visit_box (line 136) | def visit_box(self, op: Box) -> GenAndKill:
method visit_unbox (line 139) | def visit_unbox(self, op: Unbox) -> GenAndKill:
method visit_cast (line 142) | def visit_cast(self, op: Cast) -> GenAndKill:
method visit_raise_standard_error (line 145) | def visit_raise_standard_error(self, op: RaiseStandardError) -> GenAnd...
method visit_call_c (line 148) | def visit_call_c(self, op: CallC) -> GenAndKill:
method visit_primitive_op (line 151) | def visit_primitive_op(self, op: PrimitiveOp) -> GenAndKill:
method visit_truncate (line 154) | def visit_truncate(self, op: Truncate) -> GenAndKill:
method visit_extend (line 157) | def visit_extend(self, op: Extend) -> GenAndKill:
method visit_load_global (line 160) | def visit_load_global(self, op: LoadGlobal) -> GenAndKill:
method visit_int_op (line 163) | def visit_int_op(self, op: IntOp) -> GenAndKill:
method visit_comparison_op (line 166) | def visit_comparison_op(self, op: ComparisonOp) -> GenAndKill:
method visit_float_op (line 169) | def visit_float_op(self, op: FloatOp) -> GenAndKill:
method visit_float_neg (line 172) | def visit_float_neg(self, op: FloatNeg) -> GenAndKill:
method visit_float_comparison_op (line 175) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> GenAndKill:
method visit_load_mem (line 178) | def visit_load_mem(self, op: LoadMem) -> GenAndKill:
method visit_get_element_ptr (line 181) | def visit_get_element_ptr(self, op: GetElementPtr) -> GenAndKill:
method visit_load_address (line 184) | def visit_load_address(self, op: LoadAddress) -> GenAndKill:
method visit_keep_alive (line 187) | def visit_keep_alive(self, op: KeepAlive) -> GenAndKill:
method visit_unborrow (line 190) | def visit_unborrow(self, op: Unborrow) -> GenAndKill:
method check_register_op (line 193) | def check_register_op(self, op: RegisterOp) -> GenAndKill:
function analyze_self_leaks (line 199) | def analyze_self_leaks(
FILE: mypyc/build.py
function get_extension (line 68) | def get_extension() -> type[Extension]:
function setup_mypycify_vars (line 86) | def setup_mypycify_vars() -> None:
function fail (line 100) | def fail(message: str) -> NoReturn:
function emit_messages (line 105) | def emit_messages(options: Options, messages: list[str], dt: float, seri...
function get_mypy_config (line 121) | def get_mypy_config(
function generate_c_extension_shim (line 164) | def generate_c_extension_shim(
function group_name (line 195) | def group_name(modules: list[str]) -> str:
function include_dir (line 205) | def include_dir() -> str:
function generate_c (line 210) | def generate_c(
function build_using_shared_lib (line 259) | def build_using_shared_lib(
function build_single_module (line 307) | def build_single_module(
function write_file (line 324) | def write_file(path: str, contents: str) -> None:
function construct_groups (line 352) | def construct_groups(
function get_header_deps (line 391) | def get_header_deps(cfiles: list[tuple[str, str]]) -> list[str]:
function mypyc_build (line 407) | def mypyc_build(
function mypycify (line 461) | def mypycify(
FILE: mypyc/codegen/cstring.py
function encode_bytes_as_c_string (line 43) | def encode_bytes_as_c_string(b: bytes) -> str:
function c_string_initializer (line 49) | def c_string_initializer(value: bytes) -> str:
FILE: mypyc/codegen/emit.py
class HeaderDeclaration (line 62) | class HeaderDeclaration:
method __init__ (line 78) | def __init__(
class EmitterContext (line 94) | class EmitterContext:
method __init__ (line 97) | def __init__(
class ErrorHandler (line 129) | class ErrorHandler:
class AssignHandler (line 133) | class AssignHandler(ErrorHandler):
class GotoHandler (line 137) | class GotoHandler(ErrorHandler):
method __init__ (line 140) | def __init__(self, label: str) -> None:
class TracebackAndGotoHandler (line 144) | class TracebackAndGotoHandler(ErrorHandler):
method __init__ (line 147) | def __init__(
class ReturnHandler (line 156) | class ReturnHandler(ErrorHandler):
method __init__ (line 159) | def __init__(self, value: str) -> None:
class Emitter (line 163) | class Emitter:
method __init__ (line 166) | def __init__(
method indent (line 181) | def indent(self) -> None:
method dedent (line 184) | def dedent(self) -> None:
method label (line 188) | def label(self, label: BasicBlock) -> str:
method reg (line 191) | def reg(self, reg: Value) -> str:
method attr (line 194) | def attr(self, name: str) -> str:
method object_annotation (line 197) | def object_annotation(self, obj: object, line: str) -> str:
method emit_line (line 217) | def emit_line(self, line: str = "", *, ann: object = None) -> None:
method emit_lines (line 225) | def emit_lines(self, *lines: str) -> None:
method emit_label (line 229) | def emit_label(self, label: BasicBlock | str) -> None:
method emit_from_emitter (line 240) | def emit_from_emitter(self, emitter: Emitter) -> None:
method emit_printf (line 243) | def emit_printf(self, fmt: str, *args: str) -> None:
method temp_name (line 248) | def temp_name(self) -> str:
method new_label (line 252) | def new_label(self) -> str:
method get_module_group_prefix (line 256) | def get_module_group_prefix(self, module_name: str) -> str:
method get_group_prefix (line 282) | def get_group_prefix(self, obj: ClassIR | FuncDecl) -> str:
method static_name (line 287) | def static_name(self, id: str, module: str | None, prefix: str = STATI...
method type_struct_name (line 304) | def type_struct_name(self, cl: ClassIR) -> str:
method ctype (line 307) | def ctype(self, rtype: RType) -> str:
method ctype_spaced (line 310) | def ctype_spaced(self, rtype: RType) -> str:
method c_undefined_value (line 318) | def c_undefined_value(self, rtype: RType) -> str:
method c_error_value (line 327) | def c_error_value(self, rtype: RType) -> str:
method native_function_name (line 330) | def native_function_name(self, fn: FuncDecl) -> str:
method tuple_c_declaration (line 333) | def tuple_c_declaration(self, rtuple: RTuple) -> list[str]:
method bitmap_field (line 354) | def bitmap_field(self, index: int) -> str:
method attr_bitmap_expr (line 361) | def attr_bitmap_expr(self, obj: str, cl: ClassIR, index: int) -> str:
method emit_attr_bitmap_set (line 367) | def emit_attr_bitmap_set(
method emit_attr_bitmap_clear (line 377) | def emit_attr_bitmap_clear(self, obj: str, rtype: RType, cl: ClassIR, ...
method _emit_attr_bitmap_update (line 384) | def _emit_attr_bitmap_update(
method use_vectorcall (line 400) | def use_vectorcall(self) -> bool:
method emit_undefined_attr_check (line 403) | def emit_undefined_attr_check(
method error_value_check (line 425) | def error_value_check(self, rtype: RType, value: str, compare: str) ->...
method tuple_undefined_check_cond (line 433) | def tuple_undefined_check_cond(
method tuple_undefined_value (line 467) | def tuple_undefined_value(self, rtuple: RTuple) -> str:
method c_initializer_undefined_value (line 471) | def c_initializer_undefined_value(self, rtype: RType) -> str:
method declare_tuple_struct (line 485) | def declare_tuple_struct(self, tuple_type: RTuple) -> None:
method emit_inc_ref (line 497) | def emit_inc_ref(self, dest: str, rtype: RType, *, rare: bool = False)...
method emit_dec_ref (line 518) | def emit_dec_ref(
method pretty_name (line 546) | def pretty_name(self, typ: RType) -> str:
method emit_cast (line 552) | def emit_cast(
method emit_cast_error_handler (line 719) | def emit_cast_error_handler(
method emit_union_cast (line 743) | def emit_union_cast(
method emit_tuple_cast (line 781) | def emit_tuple_cast(
method emit_arg_check (line 823) | def emit_arg_check(self, src: str, dest: str, typ: RType, check: str, ...
method emit_unbox (line 832) | def emit_unbox(
method emit_box (line 994) | def emit_box(
method emit_error_check (line 1049) | def emit_error_check(self, value: str, rtype: RType, failure: str) -> ...
method emit_gc_visit (line 1065) | def emit_gc_visit(self, target: str, rtype: RType) -> None:
method emit_gc_clear (line 1087) | def emit_gc_clear(self, target: str, rtype: RType) -> None:
method emit_traceback (line 1111) | def emit_traceback(
method emit_type_error_traceback (line 1116) | def emit_type_error_traceback(
method _emit_traceback (line 1131) | def _emit_traceback(
method emit_unbox_failure_with_overlapping_error_value (line 1156) | def emit_unbox_failure_with_overlapping_error_value(
function c_array_initializer (line 1164) | def c_array_initializer(components: list[str], *, indented: bool = False...
FILE: mypyc/codegen/emitclass.py
function native_slot (line 30) | def native_slot(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> str:
function wrapper_slot (line 34) | def wrapper_slot(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> str:
function generate_call_wrapper (line 139) | def generate_call_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> ...
function slot_key (line 148) | def slot_key(attr: str) -> str:
function generate_slots (line 158) | def generate_slots(cl: ClassIR, table: SlotTable, emitter: Emitter) -> d...
function generate_class_type_decl (line 177) | def generate_class_type_decl(
function generate_class (line 198) | def generate_class(cl: ClassIR, module: str, emitter: Emitter) -> None:
function getter_name (line 372) | def getter_name(cl: ClassIR, attribute: str, names: NameGenerator) -> str:
function setter_name (line 376) | def setter_name(cl: ClassIR, attribute: str, names: NameGenerator) -> str:
function generate_object_struct (line 380) | def generate_object_struct(cl: ClassIR, emitter: Emitter) -> None:
function generate_vtables (line 412) | def generate_vtables(
function generate_offset_table (line 498) | def generate_offset_table(
function generate_vtable (line 514) | def generate_vtable(
function generate_setup_for_class (line 549) | def generate_setup_for_class(
function generate_constructor_for_class (line 607) | def generate_constructor_for_class(
function generate_init_for_class (line 649) | def generate_init_for_class(cl: ClassIR, init_fn: FuncIR, emitter: Emitt...
function generate_new_for_class (line 674) | def generate_new_for_class(
function generate_new_for_trait (line 711) | def generate_new_for_trait(cl: ClassIR, func_name: str, emitter: Emitter...
function generate_traverse_for_class (line 727) | def generate_traverse_for_class(cl: ClassIR, func_name: str, emitter: Em...
function generate_clear_for_class (line 753) | def generate_clear_for_class(cl: ClassIR, func_name: str, emitter: Emitt...
function generate_dealloc_for_class (line 776) | def generate_dealloc_for_class(
function generate_methods_table (line 791) | def generate_methods_table(cl: ClassIR, name: str, emitter: Emitter) -> ...
function generate_side_table_for_class (line 817) | def generate_side_table_for_class(
function generate_getseter_declarations (line 828) | def generate_getseter_declarations(cl: ClassIR, emitter: Emitter) -> None:
function generate_getseters_table (line 866) | def generate_getseters_table(cl: ClassIR, name: str, emitter: Emitter) -...
function generate_getseters (line 897) | def generate_getseters(cl: ClassIR, emitter: Emitter) -> None:
function generate_getter (line 918) | def generate_getter(cl: ClassIR, attr: str, rtype: RType, emitter: Emitt...
function generate_setter (line 946) | def generate_setter(cl: ClassIR, attr: str, rtype: RType, emitter: Emitt...
function generate_readonly_getter (line 1003) | def generate_readonly_getter(
function generate_property_setter (line 1029) | def generate_property_setter(
function has_managed_dict (line 1052) | def has_managed_dict(cl: ClassIR, emitter: Emitter) -> bool:
FILE: mypyc/codegen/emitfunc.py
function native_function_type (line 87) | def native_function_type(fn: FuncIR, emitter: Emitter) -> str:
function native_function_header (line 93) | def native_function_header(fn: FuncDecl, emitter: Emitter) -> str:
function generate_native_function (line 105) | def generate_native_function(
class FunctionEmitterVisitor (line 184) | class FunctionEmitterVisitor(OpVisitor[None]):
method __init__ (line 185) | def __init__(
method temp_name (line 202) | def temp_name(self) -> str:
method visit_goto (line 205) | def visit_goto(self, op: Goto) -> None:
method visit_branch (line 209) | def visit_branch(self, op: Branch) -> None:
method visit_return (line 261) | def visit_return(self, op: Return) -> None:
method visit_tuple_set (line 265) | def visit_tuple_set(self, op: TupleSet) -> None:
method visit_assign (line 275) | def visit_assign(self, op: Assign) -> None:
method visit_assign_multi (line 287) | def visit_assign_multi(self, op: AssignMulti) -> None:
method visit_load_error_value (line 303) | def visit_load_error_value(self, op: LoadErrorValue) -> None:
method visit_load_literal (line 312) | def visit_load_literal(self, op: LoadLiteral) -> None:
method get_attr_expr (line 321) | def get_attr_expr(self, obj: str, op: GetAttr | SetAttr, decl_cl: Clas...
method visit_get_attr (line 357) | def visit_get_attr(self, op: GetAttr) -> None:
method next_branch (line 426) | def next_branch(self) -> Branch | None:
method visit_set_attr (line 433) | def visit_set_attr(self, op: SetAttr) -> None:
method visit_load_static (line 495) | def visit_load_static(self, op: LoadStatic) -> None:
method visit_init_static (line 503) | def visit_init_static(self, op: InitStatic) -> None:
method visit_tuple_get (line 512) | def visit_tuple_get(self, op: TupleGet) -> None:
method get_dest_assign (line 519) | def get_dest_assign(self, dest: Value) -> str:
method visit_call (line 525) | def visit_call(self, op: Call) -> None:
method visit_method_call (line 533) | def visit_method_call(self, op: MethodCall) -> None:
method emit_method_call (line 538) | def emit_method_call(self, dest: str, op_obj: Value, name: str, op_arg...
method visit_inc_ref (line 580) | def visit_inc_ref(self, op: IncRef) -> None:
method visit_dec_ref (line 584) | def visit_dec_ref(self, op: DecRef) -> None:
method visit_box (line 588) | def visit_box(self, op: Box) -> None:
method visit_cast (line 591) | def visit_cast(self, op: Cast) -> None:
method visit_unbox (line 616) | def visit_unbox(self, op: Unbox) -> None:
method visit_unreachable (line 619) | def visit_unreachable(self, op: Unreachable) -> None:
method visit_raise_standard_error (line 622) | def visit_raise_standard_error(self, op: RaiseStandardError) -> None:
method visit_call_c (line 640) | def visit_call_c(self, op: CallC) -> None:
method visit_primitive_op (line 648) | def visit_primitive_op(self, op: PrimitiveOp) -> None:
method visit_truncate (line 653) | def visit_truncate(self, op: Truncate) -> None:
method visit_extend (line 659) | def visit_extend(self, op: Extend) -> None:
method visit_load_global (line 668) | def visit_load_global(self, op: LoadGlobal) -> None:
method visit_int_op (line 672) | def visit_int_op(self, op: IntOp) -> None:
method visit_comparison_op (line 682) | def visit_comparison_op(self, op: ComparisonOp) -> None:
method visit_float_op (line 704) | def visit_float_op(self, op: FloatOp) -> None:
method visit_float_neg (line 714) | def visit_float_neg(self, op: FloatNeg) -> None:
method visit_float_comparison_op (line 719) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> None:
method visit_load_mem (line 725) | def visit_load_mem(self, op: LoadMem) -> None:
method visit_set_mem (line 732) | def visit_set_mem(self, op: SetMem) -> None:
method visit_get_element_ptr (line 741) | def visit_get_element_ptr(self, op: GetElementPtr) -> None:
method visit_load_address (line 753) | def visit_load_address(self, op: LoadAddress) -> None:
method visit_keep_alive (line 765) | def visit_keep_alive(self, op: KeepAlive) -> None:
method visit_unborrow (line 769) | def visit_unborrow(self, op: Unborrow) -> None:
method label (line 777) | def label(self, label: BasicBlock) -> str:
method reg (line 780) | def reg(self, reg: Value) -> str:
method ctype (line 810) | def ctype(self, rtype: RType) -> str:
method c_error_value (line 813) | def c_error_value(self, rtype: RType) -> str:
method c_undefined_value (line 816) | def c_undefined_value(self, rtype: RType) -> str:
method emit_line (line 819) | def emit_line(self, line: str, *, ann: object = None) -> None:
method emit_lines (line 822) | def emit_lines(self, *lines: str) -> None:
method emit_inc_ref (line 825) | def emit_inc_ref(self, dest: str, rtype: RType) -> None:
method emit_dec_ref (line 828) | def emit_dec_ref(self, dest: str, rtype: RType, is_xdec: bool) -> None:
method emit_declaration (line 831) | def emit_declaration(self, line: str) -> None:
method emit_traceback (line 834) | def emit_traceback(self, op: Branch) -> None:
method emit_attribute_error (line 838) | def emit_attribute_error(self, op: Branch, class_name: str, attr: str)...
method emit_signed_int_cast (line 855) | def emit_signed_int_cast(self, type: RType) -> str:
method emit_unsigned_int_cast (line 861) | def emit_unsigned_int_cast(self, type: RType) -> str:
FILE: mypyc/codegen/emitmodule.py
class MarkedDeclaration (line 94) | class MarkedDeclaration:
method __init__ (line 97) | def __init__(self, declaration: HeaderDeclaration, mark: bool) -> None:
class MypycPlugin (line 102) | class MypycPlugin(Plugin):
method __init__ (line 114) | def __init__(
method report_config_data (line 127) | def report_config_data(self, ctx: ReportConfigContext) -> tuple[str | ...
method get_additional_deps (line 176) | def get_additional_deps(self, file: MypyFile) -> list[tuple[int, str, ...
function parse_and_typecheck (line 181) | def parse_and_typecheck(
function compile_scc_to_ir (line 202) | def compile_scc_to_ir(
function compile_modules_to_ir (line 249) | def compile_modules_to_ir(
function compile_ir_to_c (line 279) | def compile_ir_to_c(
function get_ir_cache_name (line 319) | def get_ir_cache_name(id: str, path: str, options: Options) -> str:
function get_state_ir_cache_name (line 324) | def get_state_ir_cache_name(state: State) -> str:
function write_cache (line 328) | def write_cache(
function load_scc_from_cache (line 381) | def load_scc_from_cache(
function compile_modules_to_c (line 402) | def compile_modules_to_c(
function generate_function_declaration (line 442) | def generate_function_declaration(fn: FuncIR, emitter: Emitter) -> None:
function pointerize (line 457) | def pointerize(decl: str, name: str) -> str:
function group_dir (line 468) | def group_dir(group_name: str) -> str:
class GroupGenerator (line 473) | class GroupGenerator:
method __init__ (line 474) | def __init__(
method group_suffix (line 511) | def group_suffix(self) -> str:
method short_group_suffix (line 515) | def short_group_suffix(self) -> str:
method generate_c_for_modules (line 518) | def generate_c_for_modules(self) -> list[tuple[str, str]]:
method generate_literal_tables (line 653) | def generate_literal_tables(self) -> None:
method generate_export_table (line 685) | def generate_export_table(self, decl_emitter: Emitter, code_emitter: E...
method generate_shared_lib_init (line 745) | def generate_shared_lib_init(self, emitter: Emitter) -> None:
method generate_globals_init (line 840) | def generate_globals_init(self, emitter: Emitter) -> None:
method generate_module_def (line 861) | def generate_module_def(self, emitter: Emitter, module_name: str, modu...
method generate_top_level_call (line 969) | def generate_top_level_call(self, module: ModuleIR, emitter: Emitter) ...
method toposort_declarations (line 981) | def toposort_declarations(self) -> list[HeaderDeclaration]:
method declare_global (line 1011) | def declare_global(
method declare_internal_globals (line 1027) | def declare_internal_globals(self, module_name: str, emitter: Emitter)...
method module_internal_static_name (line 1031) | def module_internal_static_name(self, module_name: str, emitter: Emitt...
method declare_module (line 1034) | def declare_module(self, module_name: str, emitter: Emitter) -> None:
method declare_imports (line 1046) | def declare_imports(self, imps: Iterable[str], emitter: Emitter) -> None:
method declare_finals (line 1050) | def declare_finals(
method final_definition (line 1061) | def final_definition(self, module: str, name: str, typ: RType, emitter...
method declare_static_pyobject (line 1067) | def declare_static_pyobject(self, identifier: str, emitter: Emitter) -...
method declare_type_vars (line 1071) | def declare_type_vars(self, module: str, type_var_names: list[str], em...
function toposort (line 1084) | def toposort(deps: dict[T, set[T]]) -> list[T]:
function is_fastcall_supported (line 1108) | def is_fastcall_supported(fn: FuncIR, capi_version: tuple[int, int]) -> ...
function collect_literals (line 1118) | def collect_literals(fn: FuncIR, literals: Literals) -> None:
function c_string_array_initializer (line 1130) | def c_string_array_initializer(components: list[bytes]) -> str:
FILE: mypyc/codegen/emitwrapper.py
function wrapper_function_header (line 60) | def wrapper_function_header(fn: FuncIR, names: NameGenerator) -> str:
function generate_traceback_code (line 71) | def generate_traceback_code(
function make_arg_groups (line 89) | def make_arg_groups(args: list[RuntimeArg]) -> dict[ArgKind, list[Runtim...
function reorder_arg_groups (line 94) | def reorder_arg_groups(groups: dict[ArgKind, list[RuntimeArg]]) -> list[...
function make_static_kwlist (line 99) | def make_static_kwlist(args: list[RuntimeArg]) -> str:
function make_format_string (line 104) | def make_format_string(func_name: str | None, groups: dict[ArgKind, list...
function generate_wrapper_function (line 134) | def generate_wrapper_function(
function legacy_wrapper_function_header (line 221) | def legacy_wrapper_function_header(fn: FuncIR, names: NameGenerator) -> ...
function generate_legacy_wrapper_function (line 227) | def generate_legacy_wrapper_function(
function generate_dunder_wrapper (line 290) | def generate_dunder_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -...
function generate_ipow_wrapper (line 304) | def generate_ipow_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> ...
function generate_bin_op_wrapper (line 330) | def generate_bin_op_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -...
function generate_bin_op_forward_only_wrapper (line 362) | def generate_bin_op_forward_only_wrapper(
function generate_bin_op_reverse_only_wrapper (line 389) | def generate_bin_op_reverse_only_wrapper(
function generate_bin_op_both_wrappers (line 403) | def generate_bin_op_both_wrappers(
function generate_bin_op_reverse_dunder_call (line 451) | def generate_bin_op_reverse_dunder_call(fn: FuncIR, emitter: Emitter, rm...
function handle_third_pow_argument (line 468) | def handle_third_pow_argument(
function generate_richcompare_wrapper (line 502) | def generate_richcompare_wrapper(cl: ClassIR, emitter: Emitter) -> str |...
function generate_get_wrapper (line 532) | def generate_get_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> str:
function generate_hash_wrapper (line 547) | def generate_hash_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> ...
function generate_len_wrapper (line 574) | def generate_len_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> str:
function generate_bool_wrapper (line 599) | def generate_bool_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter) -> ...
function generate_del_item_wrapper (line 619) | def generate_del_item_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter)...
function generate_set_del_item_wrapper (line 631) | def generate_set_del_item_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emit...
function generate_set_del_item_wrapper_inner (line 701) | def generate_set_del_item_wrapper_inner(
function generate_contains_wrapper (line 720) | def generate_contains_wrapper(cl: ClassIR, fn: FuncIR, emitter: Emitter)...
function generate_wrapper_core (line 745) | def generate_wrapper_core(
function generate_arg_check (line 773) | def generate_arg_check(
class WrapperGenerator (line 841) | class WrapperGenerator:
method __init__ (line 846) | def __init__(self, cl: ClassIR | None, emitter: Emitter) -> None:
method set_target (line 853) | def set_target(self, fn: FuncIR) -> None:
method wrapper_name (line 869) | def wrapper_name(self) -> str:
method use_goto (line 877) | def use_goto(self) -> bool:
method emit_header (line 881) | def emit_header(self) -> None:
method emit_arg_processing (line 890) | def emit_arg_processing(
method emit_call (line 912) | def emit_call(self, not_implemented_handler: str = "") -> None:
method error (line 959) | def error(self) -> ErrorHandler:
method emit_error_handling (line 968) | def emit_error_handling(self) -> None:
method finish (line 978) | def finish(self) -> None:
FILE: mypyc/codegen/literals.py
function _is_literal_value (line 13) | def _is_literal_value(obj: object) -> TypeGuard[LiteralValue]:
class Literals (line 21) | class Literals:
method __init__ (line 24) | def __init__(self) -> None:
method record_literal (line 34) | def record_literal(self, value: LiteralValue) -> None:
method literal_index (line 76) | def literal_index(self, value: LiteralValue) -> int:
method num_literals (line 109) | def num_literals(self) -> int:
method encoded_str_values (line 125) | def encoded_str_values(self) -> list[bytes]:
method encoded_int_values (line 128) | def encoded_int_values(self) -> list[bytes]:
method encoded_bytes_values (line 131) | def encoded_bytes_values(self) -> list[bytes]:
method encoded_float_values (line 134) | def encoded_float_values(self) -> list[str]:
method encoded_complex_values (line 137) | def encoded_complex_values(self) -> list[str]:
method encoded_tuple_values (line 140) | def encoded_tuple_values(self) -> list[str]:
method encoded_frozenset_values (line 143) | def encoded_frozenset_values(self) -> list[str]:
method _encode_collection_values (line 146) | def _encode_collection_values(
function _encode_str_values (line 175) | def _encode_str_values(values: dict[str, int]) -> list[bytes]:
function _encode_bytes_values (line 196) | def _encode_bytes_values(values: dict[bytes, int]) -> list[bytes]:
function format_int (line 217) | def format_int(n: int) -> bytes:
function format_str_literal (line 232) | def format_str_literal(s: str) -> bytes:
function _encode_int_values (line 237) | def _encode_int_values(values: dict[int, int]) -> list[bytes]:
function float_to_c (line 261) | def float_to_c(x: float) -> str:
function _encode_float_values (line 273) | def _encode_float_values(values: dict[float, int]) -> list[str]:
function _encode_complex_values (line 288) | def _encode_complex_values(values: dict[complex, int]) -> list[str]:
FILE: mypyc/common.py
function shared_lib_name (line 89) | def shared_lib_name(group_name: str) -> str:
function short_name (line 97) | def short_name(name: str) -> str:
function use_vectorcall (line 103) | def use_vectorcall(capi_version: tuple[int, int]) -> bool:
function use_method_vectorcall (line 108) | def use_method_vectorcall(capi_version: tuple[int, int]) -> bool:
function get_id_from_name (line 113) | def get_id_from_name(name: str, fullname: str, line: int) -> str:
function short_id_from_name (line 126) | def short_id_from_name(func_name: str, shortname: str, line: int | None)...
function bitmap_name (line 135) | def bitmap_name(index: int) -> str:
FILE: mypyc/crash.py
function catch_errors (line 11) | def catch_errors(module_path: str, line: int) -> Iterator[None]:
function crash_report (line 18) | def crash_report(module_path: str, line: int) -> NoReturn:
FILE: mypyc/errors.py
class Errors (line 7) | class Errors:
method __init__ (line 8) | def __init__(self, options: Options) -> None:
method error (line 13) | def error(self, msg: str, path: str, line: int) -> None:
method note (line 17) | def note(self, msg: str, path: str, line: int) -> None:
method warning (line 20) | def warning(self, msg: str, path: str, line: int) -> None:
method new_messages (line 24) | def new_messages(self) -> list[str]:
method flush_errors (line 27) | def flush_errors(self) -> None:
FILE: mypyc/external/googletest/src/gtest-death-test.cc
type testing (line 79) | namespace testing {
type internal (line 107) | namespace internal {
function InDeathTestChild (line 133) | bool InDeathTestChild() {
function ExitSummary (line 193) | static std::string ExitSummary(int exit_code) {
function ExitedUnsuccessfully (line 219) | bool ExitedUnsuccessfully(int exit_status) {
function DeathTestThreadWarning (line 228) | static std::string DeathTestThreadWarning(size_t thread_count) {
type DeathTestOutcome (line 255) | enum DeathTestOutcome { IN_PROGRESS, DIED, LIVED, RETURNED, THREW }
function DeathTestAbort (line 262) | void DeathTestAbort(const std::string& message) {
function GetLastErrnoDescription (line 315) | std::string GetLastErrnoDescription() {
function FailFromInternalError (line 323) | static void FailFromInternalError(int fd) {
class DeathTestImpl (line 373) | class DeathTestImpl : public DeathTest {
method DeathTestImpl (line 375) | DeathTestImpl(const char* a_statement, const RE* a_regex)
method RE (line 391) | const RE* regex() const { return regex_; }
method spawned (line 392) | bool spawned() const { return spawned_; }
method set_spawned (line 393) | void set_spawned(bool is_spawned) { spawned_ = is_spawned; }
method status (line 394) | int status() const { return status_; }
method set_status (line 395) | void set_status(int a_status) { status_ = a_status; }
method DeathTestOutcome (line 396) | DeathTestOutcome outcome() const { return outcome_; }
method set_outcome (line 397) | void set_outcome(DeathTestOutcome an_outcome) { outcome_ = an_outc...
method read_fd (line 398) | int read_fd() const { return read_fd_; }
method set_read_fd (line 399) | void set_read_fd(int fd) { read_fd_ = fd; }
method write_fd (line 400) | int write_fd() const { return write_fd_; }
method set_write_fd (line 401) | void set_write_fd(int fd) { write_fd_ = fd; }
function FormatDeathTestOutput (line 504) | static ::std::string FormatDeathTestOutput(const ::std::string& outp...
class WindowsDeathTest (line 619) | class WindowsDeathTest : public DeathTestImpl {
method WindowsDeathTest (line 621) | WindowsDeathTest(const char* a_statement,
class ForkingDeathTest (line 787) | class ForkingDeathTest : public DeathTestImpl {
method set_child_pid (line 795) | void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; }
class NoExecDeathTest (line 824) | class NoExecDeathTest : public ForkingDeathTest {
method NoExecDeathTest (line 826) | NoExecDeathTest(const char* a_statement, const RE* a_regex) :
class ExecDeathTest (line 879) | class ExecDeathTest : public ForkingDeathTest {
method ExecDeathTest (line 881) | ExecDeathTest(const char* a_statement, const RE* a_regex,
method GetArgvsForDeathTestChildProcess (line 886) | static ::std::vector
class Arguments (line 903) | class Arguments {
method Arguments (line 905) | Arguments() {
method AddArgument (line 915) | void AddArgument(const char* argument) {
method AddArguments (line 920) | void AddArguments(const ::std::vector& arguments) {
type ExecDeathTestArgs (line 937) | struct ExecDeathTestArgs {
function ExecDeathTestChildMain (line 960) | static int ExecDeathTestChildMain(void* child_arg) {
function StackLowerThanAddress (line 999) | void StackLowerThanAddress(const void* ptr, bool* result) {
function GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ (line 1005) | GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
function pid_t (line 1020) | static pid_t ExecDeathTestSpawnChild(char* const* argv, int close_fd) {
type internal (line 120) | namespace internal {
function InDeathTestChild (line 133) | bool InDeathTestChild() {
function ExitSummary (line 193) | static std::string ExitSummary(int exit_code) {
function ExitedUnsuccessfully (line 219) | bool ExitedUnsuccessfully(int exit_status) {
function DeathTestThreadWarning (line 228) | static std::string DeathTestThreadWarning(size_t thread_count) {
type DeathTestOutcome (line 255) | enum DeathTestOutcome { IN_PROGRESS, DIED, LIVED, RETURNED, THREW }
function DeathTestAbort (line 262) | void DeathTestAbort(const std::string& message) {
function GetLastErrnoDescription (line 315) | std::string GetLastErrnoDescription() {
function FailFromInternalError (line 323) | static void FailFromInternalError(int fd) {
class DeathTestImpl (line 373) | class DeathTestImpl : public DeathTest {
method DeathTestImpl (line 375) | DeathTestImpl(const char* a_statement, const RE* a_regex)
method RE (line 391) | const RE* regex() const { return regex_; }
method spawned (line 392) | bool spawned() const { return spawned_; }
method set_spawned (line 393) | void set_spawned(bool is_spawned) { spawned_ = is_spawned; }
method status (line 394) | int status() const { return status_; }
method set_status (line 395) | void set_status(int a_status) { status_ = a_status; }
method DeathTestOutcome (line 396) | DeathTestOutcome outcome() const { return outcome_; }
method set_outcome (line 397) | void set_outcome(DeathTestOutcome an_outcome) { outcome_ = an_outc...
method read_fd (line 398) | int read_fd() const { return read_fd_; }
method set_read_fd (line 399) | void set_read_fd(int fd) { read_fd_ = fd; }
method write_fd (line 400) | int write_fd() const { return write_fd_; }
method set_write_fd (line 401) | void set_write_fd(int fd) { write_fd_ = fd; }
function FormatDeathTestOutput (line 504) | static ::std::string FormatDeathTestOutput(const ::std::string& outp...
class WindowsDeathTest (line 619) | class WindowsDeathTest : public DeathTestImpl {
method WindowsDeathTest (line 621) | WindowsDeathTest(const char* a_statement,
class ForkingDeathTest (line 787) | class ForkingDeathTest : public DeathTestImpl {
method set_child_pid (line 795) | void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; }
class NoExecDeathTest (line 824) | class NoExecDeathTest : public ForkingDeathTest {
method NoExecDeathTest (line 826) | NoExecDeathTest(const char* a_statement, const RE* a_regex) :
class ExecDeathTest (line 879) | class ExecDeathTest : public ForkingDeathTest {
method ExecDeathTest (line 881) | ExecDeathTest(const char* a_statement, const RE* a_regex,
method GetArgvsForDeathTestChildProcess (line 886) | static ::std::vector
class Arguments (line 903) | class Arguments {
method Arguments (line 905) | Arguments() {
method AddArgument (line 915) | void AddArgument(const char* argument) {
method AddArguments (line 920) | void AddArguments(const ::std::vector& arguments) {
type ExecDeathTestArgs (line 937) | struct ExecDeathTestArgs {
function ExecDeathTestChildMain (line 960) | static int ExecDeathTestChildMain(void* child_arg) {
function StackLowerThanAddress (line 999) | void StackLowerThanAddress(const void* ptr, bool* result) {
function GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ (line 1005) | GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
function pid_t (line 1020) | static pid_t ExecDeathTestSpawnChild(char* const* argv, int close_fd) {
type internal (line 187) | namespace internal {
function InDeathTestChild (line 133) | bool InDeathTestChild() {
function ExitSummary (line 193) | static std::string ExitSummary(int exit_code) {
function ExitedUnsuccessfully (line 219) | bool ExitedUnsuccessfully(int exit_status) {
function DeathTestThreadWarning (line 228) | static std::string DeathTestThreadWarning(size_t thread_count) {
type DeathTestOutcome (line 255) | enum DeathTestOutcome { IN_PROGRESS, DIED, LIVED, RETURNED, THREW }
function DeathTestAbort (line 262) | void DeathTestAbort(const std::string& message) {
function GetLastErrnoDescription (line 315) | std::string GetLastErrnoDescription() {
function FailFromInternalError (line 323) | static void FailFromInternalError(int fd) {
class DeathTestImpl (line 373) | class DeathTestImpl : public DeathTest {
method DeathTestImpl (line 375) | DeathTestImpl(const char* a_statement, const RE* a_regex)
method RE (line 391) | const RE* regex() const { return regex_; }
method spawned (line 392) | bool spawned() const { return spawned_; }
method set_spawned (line 393) | void set_spawned(bool is_spawned) { spawned_ = is_spawned; }
method status (line 394) | int status() const { return status_; }
method set_status (line 395) | void set_status(int a_status) { status_ = a_status; }
method DeathTestOutcome (line 396) | DeathTestOutcome outcome() const { return outcome_; }
method set_outcome (line 397) | void set_outcome(DeathTestOutcome an_outcome) { outcome_ = an_outc...
method read_fd (line 398) | int read_fd() const { return read_fd_; }
method set_read_fd (line 399) | void set_read_fd(int fd) { read_fd_ = fd; }
method write_fd (line 400) | int write_fd() const { return write_fd_; }
method set_write_fd (line 401) | void set_write_fd(int fd) { write_fd_ = fd; }
function FormatDeathTestOutput (line 504) | static ::std::string FormatDeathTestOutput(const ::std::string& outp...
class WindowsDeathTest (line 619) | class WindowsDeathTest : public DeathTestImpl {
method WindowsDeathTest (line 621) | WindowsDeathTest(const char* a_statement,
class ForkingDeathTest (line 787) | class ForkingDeathTest : public DeathTestImpl {
method set_child_pid (line 795) | void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; }
class NoExecDeathTest (line 824) | class NoExecDeathTest : public ForkingDeathTest {
method NoExecDeathTest (line 826) | NoExecDeathTest(const char* a_statement, const RE* a_regex) :
class ExecDeathTest (line 879) | class ExecDeathTest : public ForkingDeathTest {
method ExecDeathTest (line 881) | ExecDeathTest(const char* a_statement, const RE* a_regex,
method GetArgvsForDeathTestChildProcess (line 886) | static ::std::vector
class Arguments (line 903) | class Arguments {
method Arguments (line 905) | Arguments() {
method AddArgument (line 915) | void AddArgument(const char* argument) {
method AddArguments (line 920) | void AddArguments(const ::std::vector& arguments) {
type ExecDeathTestArgs (line 937) | struct ExecDeathTestArgs {
function ExecDeathTestChildMain (line 960) | static int ExecDeathTestChildMain(void* child_arg) {
function StackLowerThanAddress (line 999) | void StackLowerThanAddress(const void* ptr, bool* result) {
function GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ (line 1005) | GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
function pid_t (line 1020) | static pid_t ExecDeathTestSpawnChild(char* const* argv, int close_fd) {
function GetStatusFileDescriptor (line 1227) | int GetStatusFileDescriptor(unsigned int parent_process_id,
function InternalRunDeathTestFlag (line 1294) | InternalRunDeathTestFlag* ParseInternalRunDeathTestFlag() {
FILE: mypyc/external/googletest/src/gtest-filepath.cc
type testing (line 63) | namespace testing {
type internal (line 64) | namespace internal {
function IsPathSeparator (line 90) | static bool IsPathSeparator(char c) {
function FilePath (line 99) | FilePath FilePath::GetCurrentDir() {
function FilePath (line 124) | FilePath FilePath::RemoveExtension(const char* extension) const {
function FilePath (line 155) | FilePath FilePath::RemoveDirectoryName() const {
function FilePath (line 166) | FilePath FilePath::RemoveFileName() const {
function FilePath (line 183) | FilePath FilePath::MakeFileName(const FilePath& directory,
function FilePath (line 199) | FilePath FilePath::ConcatPaths(const FilePath& directory,
function FilePath (line 286) | FilePath FilePath::GenerateUniqueFileName(const FilePath& directory,
function FilePath (line 346) | FilePath FilePath::RemoveTrailingPathSeparator() const {
FILE: mypyc/external/googletest/src/gtest-internal-inl.h
function namespace (line 73) | namespace testing {
FILE: mypyc/external/googletest/src/gtest-port.cc
type testing (line 80) | namespace testing {
type internal (line 81) | namespace internal {
function T (line 96) | T ReadProcFileField(const string& filename, int field) {
function GetThreadCount (line 109) | size_t GetThreadCount() {
function GetThreadCount (line 117) | size_t GetThreadCount() {
function GetThreadCount (line 138) | size_t GetThreadCount() {
function GetThreadCount (line 156) | size_t GetThreadCount() {
function GetThreadCount (line 169) | size_t GetThreadCount() {
function SleepMilliseconds (line 179) | void SleepMilliseconds(int n) {
class ThreadWithParamSupport (line 325) | class ThreadWithParamSupport : public ThreadWithParamBase {
method HANDLE (line 327) | static HANDLE CreateThread(Runnable* runnable,
type ThreadMainParam (line 348) | struct ThreadMainParam {
method ThreadMainParam (line 349) | ThreadMainParam(Runnable* runnable, Notification* thread_can_start)
method DWORD (line 358) | static DWORD WINAPI ThreadMain(void* ptr) {
class ThreadLocalRegistryImpl (line 394) | class ThreadLocalRegistryImpl {
method ThreadLocalValueHolderBase (line 398) | static ThreadLocalValueHolderBase* GetValueOnCurrentThread(
method OnThreadLocalDestroyed (line 426) | static void OnThreadLocalDestroyed(
method OnThreadExit (line 454) | static void OnThreadExit(DWORD thread_id) {
method StartWatcherThreadFor (line 492) | static void StartWatcherThreadFor(DWORD thread_id) {
method DWORD (line 520) | static DWORD WINAPI WatcherThreadFunc(LPVOID param) {
method ThreadIdToThreadLocals (line 532) | static ThreadIdToThreadLocals* GetThreadLocalsMapLocked() {
function ThreadLocalValueHolderBase (line 547) | ThreadLocalValueHolderBase* ThreadLocalRegistry::GetValueOnCurrentTh...
function IsInSet (line 627) | bool IsInSet(char ch, const char* str) {
function IsAsciiDigit (line 634) | bool IsAsciiDigit(char ch) { return '0' <= ch && ch <= '9'; }
function IsAsciiPunct (line 635) | bool IsAsciiPunct(char ch) {
function IsRepeat (line 638) | bool IsRepeat(char ch) { return IsInSet(ch, "?*+"); }
function IsAsciiWhiteSpace (line 639) | bool IsAsciiWhiteSpace(char ch) { return IsInSet(ch, " \f\n\r\t\v"); }
function IsAsciiWordChar (line 640) | bool IsAsciiWordChar(char ch) {
function IsValidEscape (line 646) | bool IsValidEscape(char c) {
function AtomMatchesChar (line 652) | bool AtomMatchesChar(bool escaped, char pattern_char, char ch) {
function FormatRegexSyntaxError (line 674) | std::string FormatRegexSyntaxError(const char* regex, int index) {
function ValidateRegex (line 681) | bool ValidateRegex(const char* regex) {
function MatchRepetitionAndRegexAtHead (line 744) | bool MatchRepetitionAndRegexAtHead(
function MatchRegexAtHead (line 771) | bool MatchRegexAtHead(const char* regex, const char* str) {
function MatchRegexAnywhere (line 807) | bool MatchRegexAnywhere(const char* regex, const char* str) {
function FormatFileLocation (line 880) | GTEST_API_ ::std::string FormatFileLocation(const char* file, int li...
function FormatCompilerIndependentFileLocation (line 898) | GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(
class CapturedStream (line 933) | class CapturedStream {
method CapturedStream (line 936) | explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) {
method GetCapturedString (line 988) | std::string GetCapturedString() {
function CaptureStream (line 1018) | void CaptureStream(int fd, const char* stream_name, CapturedStream**...
function GetCapturedStream (line 1027) | std::string GetCapturedStream(CapturedStream** captured_stream) {
function CaptureStdout (line 1037) | void CaptureStdout() {
function CaptureStderr (line 1042) | void CaptureStderr() {
function GetCapturedStdout (line 1047) | std::string GetCapturedStdout() {
function GetCapturedStderr (line 1052) | std::string GetCapturedStderr() {
function TempDir (line 1058) | std::string TempDir() {
function GetFileSize (line 1076) | size_t GetFileSize(FILE* file) {
function ReadEntireFile (line 1081) | std::string ReadEntireFile(FILE* file) {
function SetInjectableArgvs (line 1108) | void SetInjectableArgvs(const ::std::vector SplitIntoTestNames(const char* src) {
FILE: mypyc/external/googletest/src/gtest.cc
type testing (line 149) | namespace testing {
type internal (line 180) | namespace internal {
function UInt32 (line 311) | UInt32 Random::Generate(UInt32 range) {
function GTestIsInitialized (line 330) | static bool GTestIsInitialized() { return GetArgvs().size() > 0; }
function SumOverTestCaseList (line 335) | static int SumOverTestCaseList(const std::vector& case_list,
function TestCasePassed (line 345) | static bool TestCasePassed(const TestCase* test_case) {
function TestCaseFailed (line 350) | static bool TestCaseFailed(const TestCase* test_case) {
function ShouldRunTestCase (line 356) | static bool ShouldRunTestCase(const TestCase* test_case) {
function FilePath (line 399) | FilePath GetCurrentExecutableName() {
function TypeId (line 620) | TypeId GetTestTypeId() {
function AssertionResult (line 631) | AssertionResult HasOneFailure(const char* /* results_expr */,
function TestPartResultReporterInterface (line 704) | TestPartResultReporterInterface*
function TestPartResultReporterInterface (line 718) | TestPartResultReporterInterface*
function TimeInMillis (line 806) | TimeInMillis GetTimeInMillis() {
function LPCWSTR (line 858) | LPCWSTR String::AnsiToUtf16(const char* ansi) {
function StreamWideCharsToMessage (line 906) | static void StreamWideCharsToMessage(const wchar_t* wstr, size_t len...
function SplitString (line 922) | void SplitString(const ::std::string& str, char delimiter,
type edit_distance (line 1027) | namespace edit_distance {
function CalculateOptimalEdits (line 1028) | std::vector CalculateOptimalEdits(const std::vector CalculateOptimalEdits(
class Hunk (line 1126) | class Hunk {
method Hunk (line 1128) | Hunk(size_t left_start, size_t right_start)
method PushLine (line 1135) | void PushLine(char edit, const char* line) {
method PrintTo (line 1153) | void PrintTo(std::ostream* os) {
method has_edits (line 1163) | bool has_edits() const { return adds_ || removes_; }
method FlushEdits (line 1166) | void FlushEdits() {
method PrintHeader (line 1175) | void PrintHeader(std::ostream* ss) const {
function CreateUnifiedDiff (line 1203) | std::string CreateUnifiedDiff(const std::vector& left,
function SplitEscapedString (line 1272) | std::vector SplitEscapedString(const std::string& str) {
function AssertionResult (line 1312) | AssertionResult EqFailure(const char* lhs_expression,
function GetBoolAssertionFailureMessage (line 1346) | std::string GetBoolAssertionFailureMessage(
function AssertionResult (line 1362) | AssertionResult DoubleNearPredFormat(const char* expr1,
function AssertionResult (line 1384) | AssertionResult FloatingPointLE(const char* expr1,
function AssertionResult (line 1437) | AssertionResult CmpHelperEQ(const char* lhs_expression,
type internal (line 306) | namespace internal {
function UInt32 (line 311) | UInt32 Random::Generate(UInt32 range) {
function GTestIsInitialized (line 330) | static bool GTestIsInitialized() { return GetArgvs().size() > 0; }
function SumOverTestCaseList (line 335) | static int SumOverTestCaseList(const std::vector& case_list,
function TestCasePassed (line 345) | static bool TestCasePassed(const TestCase* test_case) {
function TestCaseFailed (line 350) | static bool TestCaseFailed(const TestCase* test_case) {
function ShouldRunTestCase (line 356) | static bool ShouldRunTestCase(const TestCase* test_case) {
function FilePath (line 399) | FilePath GetCurrentExecutableName() {
function TypeId (line 620) | TypeId GetTestTypeId() {
function AssertionResult (line 631) | AssertionResult HasOneFailure(const char* /* results_expr */,
function TestPartResultReporterInterface (line 704) | TestPartResultReporterInterface*
function TestPartResultReporterInterface (line 718) | TestPartResultReporterInterface*
function TimeInMillis (line 806) | TimeInMillis GetTimeInMillis() {
function LPCWSTR (line 858) | LPCWSTR String::AnsiToUtf16(const char* ansi) {
function StreamWideCharsToMessage (line 906) | static void StreamWideCharsToMessage(const wchar_t* wstr, size_t len...
function SplitString (line 922) | void SplitString(const ::std::string& str, char delimiter,
type edit_distance (line 1027) | namespace edit_distance {
function CalculateOptimalEdits (line 1028) | std::vector CalculateOptimalEdits(const std::vector CalculateOptimalEdits(
class Hunk (line 1126) | class Hunk {
method Hunk (line 1128) | Hunk(size_t left_start, size_t right_start)
method PushLine (line 1135) | void PushLine(char edit, const char* line) {
method PrintTo (line 1153) | void PrintTo(std::ostream* os) {
method has_edits (line 1163) | bool has_edits() const { return adds_ || removes_; }
method FlushEdits (line 1166) | void FlushEdits() {
method PrintHeader (line 1175) | void PrintHeader(std::ostream* ss) const {
function CreateUnifiedDiff (line 1203) | std::string CreateUnifiedDiff(const std::vector& left,
function SplitEscapedString (line 1272) | std::vector SplitEscapedString(const std::string& str) {
function AssertionResult (line 1312) | AssertionResult EqFailure(const char* lhs_expression,
function GetBoolAssertionFailureMessage (line 1346) | std::string GetBoolAssertionFailureMessage(
function AssertionResult (line 1362) | AssertionResult DoubleNearPredFormat(const char* expr1,
function AssertionResult (line 1384) | AssertionResult FloatingPointLE(const char* expr1,
function AssertionResult (line 1437) | AssertionResult CmpHelperEQ(const char* lhs_expression,
type internal (line 609) | namespace internal {
function UInt32 (line 311) | UInt32 Random::Generate(UInt32 range) {
function GTestIsInitialized (line 330) | static bool GTestIsInitialized() { return GetArgvs().size() > 0; }
function SumOverTestCaseList (line 335) | static int SumOverTestCaseList(const std::vector& case_list,
function TestCasePassed (line 345) | static bool TestCasePassed(const TestCase* test_case) {
function TestCaseFailed (line 350) | static bool TestCaseFailed(const TestCase* test_case) {
function ShouldRunTestCase (line 356) | static bool ShouldRunTestCase(const TestCase* test_case) {
function FilePath (line 399) | FilePath GetCurrentExecutableName() {
function TypeId (line 620) | TypeId GetTestTypeId() {
function AssertionResult (line 631) | AssertionResult HasOneFailure(const char* /* results_expr */,
function TestPartResultReporterInterface (line 704) | TestPartResultReporterInterface*
function TestPartResultReporterInterface (line 718) | TestPartResultReporterInterface*
function TimeInMillis (line 806) | TimeInMillis GetTimeInMillis() {
function LPCWSTR (line 858) | LPCWSTR String::AnsiToUtf16(const char* ansi) {
function StreamWideCharsToMessage (line 906) | static void StreamWideCharsToMessage(const wchar_t* wstr, size_t len...
function SplitString (line 922) | void SplitString(const ::std::string& str, char delimiter,
type edit_distance (line 1027) | namespace edit_distance {
function CalculateOptimalEdits (line 1028) | std::vector CalculateOptimalEdits(const std::vector CalculateOptimalEdits(
class Hunk (line 1126) | class Hunk {
method Hunk (line 1128) | Hunk(size_t left_start, size_t right_start)
method PushLine (line 1135) | void PushLine(char edit, const char* line) {
method PrintTo (line 1153) | void PrintTo(std::ostream* os) {
method has_edits (line 1163) | bool has_edits() const { return adds_ || removes_; }
method FlushEdits (line 1166) | void FlushEdits() {
method PrintHeader (line 1175) | void PrintHeader(std::ostream* ss) const {
function CreateUnifiedDiff (line 1203) | std::string CreateUnifiedDiff(const std::vector& left,
function SplitEscapedString (line 1272) | std::vector SplitEscapedString(const std::string& str) {
function AssertionResult (line 1312) | AssertionResult EqFailure(const char* lhs_expression,
function GetBoolAssertionFailureMessage (line 1346) | std::string GetBoolAssertionFailureMessage(
function AssertionResult (line 1362) | AssertionResult DoubleNearPredFormat(const char* expr1,
function AssertionResult (line 1384) | AssertionResult FloatingPointLE(const char* expr1,
function AssertionResult (line 1437) | AssertionResult CmpHelperEQ(const char* lhs_expression,
function Message (line 954) | Message& Message::operator <<(const wchar_t* wide_c_str) {
function Message (line 957) | Message& Message::operator <<(wchar_t* wide_c_str) {
function Message (line 964) | Message& Message::operator <<(const ::std::wstring& wstr) {
function Message (line 973) | Message& Message::operator <<(const ::wstring& wstr) {
function AssertionResult (line 1002) | AssertionResult AssertionResult::operator!() const {
function AssertionResult (line 1010) | AssertionResult AssertionSuccess() {
function AssertionResult (line 1015) | AssertionResult AssertionFailure() {
function AssertionResult (line 1021) | AssertionResult AssertionFailure(const Message& message) {
type internal (line 1025) | namespace internal {
function UInt32 (line 311) | UInt32 Random::Generate(UInt32 range) {
function GTestIsInitialized (line 330) | static bool GTestIsInitialized() { return GetArgvs().size() > 0; }
function SumOverTestCaseList (line 335) | static int SumOverTestCaseList(const std::vector& case_list,
function TestCasePassed (line 345) | static bool TestCasePassed(const TestCase* test_case) {
function TestCaseFailed (line 350) | static bool TestCaseFailed(const TestCase* test_case) {
function ShouldRunTestCase (line 356) | static bool ShouldRunTestCase(const TestCase* test_case) {
function FilePath (line 399) | FilePath GetCurrentExecutableName() {
function TypeId (line 620) | TypeId GetTestTypeId() {
function AssertionResult (line 631) | AssertionResult HasOneFailure(const char* /* results_expr */,
function TestPartResultReporterInterface (line 704) | TestPartResultReporterInterface*
function TestPartResultReporterInterface (line 718) | TestPartResultReporterInterface*
function TimeInMillis (line 806) | TimeInMillis GetTimeInMillis() {
function LPCWSTR (line 858) | LPCWSTR String::AnsiToUtf16(const char* ansi) {
function StreamWideCharsToMessage (line 906) | static void StreamWideCharsToMessage(const wchar_t* wstr, size_t len...
function SplitString (line 922) | void SplitString(const ::std::string& str, char delimiter,
type edit_distance (line 1027) | namespace edit_distance {
function CalculateOptimalEdits (line 1028) | std::vector CalculateOptimalEdits(const std::vector CalculateOptimalEdits(
class Hunk (line 1126) | class Hunk {
method Hunk (line 1128) | Hunk(size_t left_start, size_t right_start)
method PushLine (line 1135) | void PushLine(char edit, const char* line) {
method PrintTo (line 1153) | void PrintTo(std::ostream* os) {
method has_edits (line 1163) | bool has_edits() const { return adds_ || removes_; }
method FlushEdits (line 1166) | void FlushEdits() {
method PrintHeader (line 1175) | void PrintHeader(std::ostream* ss) const {
function CreateUnifiedDiff (line 1203) | std::string CreateUnifiedDiff(const std::vector& left,
function SplitEscapedString (line 1272) | std::vector SplitEscapedString(const std::string& str) {
function AssertionResult (line 1312) | AssertionResult EqFailure(const char* lhs_expression,
function GetBoolAssertionFailureMessage (line 1346) | std::string GetBoolAssertionFailureMessage(
function AssertionResult (line 1362) | AssertionResult DoubleNearPredFormat(const char* expr1,
function AssertionResult (line 1384) | AssertionResult FloatingPointLE(const char* expr1,
function AssertionResult (line 1437) | AssertionResult CmpHelperEQ(const char* lhs_expression,
function AssertionResult (line 1421) | AssertionResult FloatLE(const char* expr1, const char* expr2,
function AssertionResult (line 1428) | AssertionResult DoubleLE(const char* expr1, const char* expr2,
type internal (line 1433) | namespace internal {
function UInt32 (line 311) | UInt32 Random::Generate(UInt32 range) {
function GTestIsInitialized (line 330) | static bool GTestIsInitialized() { return GetArgvs().size() > 0; }
function SumOverTestCaseList (line 335) | static int SumOverTestCaseList(const std::vector& case_list,
function TestCasePassed (line 345) | static bool TestCasePassed(const TestCase* test_case) {
function TestCaseFailed (line 350) | static bool TestCaseFailed(const TestCase* test_case) {
function ShouldRunTestCase (line 356) | static bool ShouldRunTestCase(const TestCase* test_case) {
function FilePath (line 399) | FilePath GetCurrentExecutableName() {
function TypeId (line 620) | TypeId GetTestTypeId() {
function AssertionResult (line 631) | AssertionResult HasOneFailure(const char* /* results_expr */,
function TestPartResultReporterInterface (line 704) | TestPartResultReporterInterface*
function TestPartResultReporterInterface (line 718) | TestPartResultReporterInterface*
function TimeInMillis (line 806) | TimeInMillis GetTimeInMillis() {
function LPCWSTR (line 858) | LPCWSTR String::AnsiToUtf16(const char* ansi) {
function StreamWideCharsToMessage (line 906) | static void StreamWideCharsToMessage(const wchar_t* wstr, size_t len...
function SplitString (line 922) | void SplitString(const ::std::string& str, char delimiter,
type edit_distance (line 1027) | namespace edit_distance {
function CalculateOptimalEdits (line 1028) | std::vector CalculateOptimalEdits(const std::vector CalculateOptimalEdits(
class Hunk (line 1126) | class Hunk {
method Hunk (line 1128) | Hunk(size_t left_start, size_t right_start)
method PushLine (line 1135) | void PushLine(char edit, const char* line) {
method PrintTo (line 1153) | void PrintTo(std::ostream* os) {
method has_edits (line 1163) | bool has_edits() const { return adds_ || removes_; }
method FlushEdits (line 1166) | void FlushEdits() {
method PrintHeader (line 1175) | void PrintHeader(std::ostream* ss) const {
function CreateUnifiedDiff (line 1203) | std::string CreateUnifiedDiff(const std::vector& left,
function SplitEscapedString (line 1272) | std::vector SplitEscapedString(const std::string& str) {
function AssertionResult (line 1312) | AssertionResult EqFailure(const char* lhs_expression,
function GetBoolAssertionFailureMessage (line 1346) | std::string GetBoolAssertionFailureMessage(
function AssertionResult (line 1362) | AssertionResult DoubleNearPredFormat(const char* expr1,
function AssertionResult (line 1384) | AssertionResult FloatingPointLE(const char* expr1,
function AssertionResult (line 1437) | AssertionResult CmpHelperEQ(const char* lhs_expression,
function AssertionResult (line 1533) | AssertionResult CmpHelperSTRCASENE(const char* s1_expression,
function IsSubstringPred (line 1557) | bool IsSubstringPred(const char* needle, const char* haystack) {
function IsSubstringPred (line 1564) | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
function IsSubstringPred (line 1573) | bool IsSubstringPred(const StringType& needle,
function AssertionResult (line 1583) | AssertionResult IsSubstringImpl(
function AssertionResult (line 1606) | AssertionResult IsSubstring(
function AssertionResult (line 1612) | AssertionResult IsSubstring(
function AssertionResult (line 1618) | AssertionResult IsNotSubstring(
function AssertionResult (line 1624) | AssertionResult IsNotSubstring(
function AssertionResult (line 1630) | AssertionResult IsSubstring(
function AssertionResult (line 1636) | AssertionResult IsNotSubstring(
function AssertionResult (line 1643) | AssertionResult IsSubstring(
function AssertionResult (line 1649) | AssertionResult IsNotSubstring(
type internal (line 1656) | namespace internal {
function AssertionResult (line 1663) | AssertionResult HRESULTFailureHelper(const char* expr,
function AssertionResult (line 1704) | AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT
function AssertionResult (line 1711) | AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT
function UInt32 (line 1747) | inline UInt32 ChopLowBits(UInt32* bits, int n) {
function CodePointToUtf8 (line 1759) | std::string CodePointToUtf8(UInt32 code_point) {
function IsUtf16SurrogatePair (line 1794) | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) {
function UInt32 (line 1800) | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first,
function WideStringToUtf8 (line 1823) | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
function AssertionResult (line 1869) | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
function AssertionResult (line 1885) | AssertionResult CmpHelperSTRNE(const char* s1_expression,
function StringStreamToString (line 1982) | std::string StringStreamToString(::std::stringstream* ss) {
function AppendUserMessage (line 2001) | std::string AppendUserMessage(const std::string& gtest_msg,
function ReportFailureInUnknownLocation (line 2250) | void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
function FormatCxxExceptionMessage (line 2352) | static std::string FormatCxxExceptionMessage(const char* description,
function Result (line 2383) | Result HandleSehExceptionsInMethodIfSupported(
function Result (line 2410) | Result HandleExceptionsInMethodIfSupported(
function TestInfo (line 2543) | TestInfo* MakeAndRegisterTestInfo(
function ReportInvalidTestCaseType (line 2561) | void ReportInvalidTestCaseType(const char* test_case_name,
function PrintTestPartResultToString (line 2850) | static std::string PrintTestPartResultToString(
function PrintTestPartResult (line 2860) | static void PrintTestPartResult(const TestPartResult& test_part_result) {
type GTestColor (line 2880) | enum GTestColor {
function WORD (line 2891) | WORD GetColorAttribute(GTestColor color) {
function ShouldUseColor (line 2916) | bool ShouldUseColor(bool stdout_is_tty) {
function ColoredPrintf (line 2956) | void ColoredPrintf(GTestColor color, const char* fmt, ...) {
function PrintFullTestCommentIfPresent (line 3009) | void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
class PrettyUnitTestResultPrinter (line 3029) | class PrettyUnitTestResultPrinter : public TestEventListener {
method PrettyUnitTestResultPrinter (line 3031) | PrettyUnitTestResultPrinter() {}
method PrintTestName (line 3032) | static void PrintTestName(const char * test_case, const char * test) {
method OnTestProgramStart (line 3037) | virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsSetUpEnd (line 3040) | virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsTearDownEnd (line 3047) | virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/...
method OnTestProgramEnd (line 3049) | virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
class TestEventRepeater (line 3236) | class TestEventRepeater : public TestEventListener {
method TestEventRepeater (line 3238) | TestEventRepeater() : forwarding_enabled_(true) {}
method forwarding_enabled (line 3245) | bool forwarding_enabled() const { return forwarding_enabled_; }
method set_forwarding_enabled (line 3246) | void set_forwarding_enabled(bool enable) { forwarding_enabled_ = ena...
function TestEventListener (line 3281) | TestEventListener* TestEventRepeater::Release(TestEventListener *liste...
class XmlUnitTestResultPrinter (line 3349) | class XmlUnitTestResultPrinter : public EmptyTestEventListener {
method IsNormalizableWhitespace (line 3358) | static bool IsNormalizableWhitespace(char c) {
method IsValidXmlCharacter (line 3363) | static bool IsValidXmlCharacter(char c) {
method EscapeXmlAttribute (line 3377) | static std::string EscapeXmlAttribute(const std::string& str) {
method EscapeXmlText (line 3382) | static std::string EscapeXmlText(const char* str) {
function FormatTimeInMillisAsSeconds (line 3550) | std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
function PortableLocaltime (line 3556) | static bool PortableLocaltime(time_t seconds, struct tm* out) {
function FormatEpochTimeInMillisAsIso8601 (line 3574) | std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
function string (line 3761) | string StreamingListener::UrlEncode(const char* str) {
function GTEST_LOCK_EXCLUDED_ (line 3829) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 3840) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function string (line 3850) | string OsStackTraceGetter::CurrentStackTrace(int /*max_depth*/,
class ScopedPrematureExitFile (line 3859) | class ScopedPrematureExitFile {
method ScopedPrematureExitFile (line 3861) | explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
class TestCaseNameIs (line 4475) | class TestCaseNameIs {
method TestCaseNameIs (line 4478) | explicit TestCaseNameIs(const std::string& name)
function TestCase (line 4502) | TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
function SetUpEnvironment (line 4539) | static void SetUpEnvironment(Environment* env) { env->SetUp(); }
function TearDownEnvironment (line 4540) | static void TearDownEnvironment(Environment* env) { env->TearDown(); }
function WriteToShardStatusFileIfNeeded (line 4693) | void WriteToShardStatusFileIfNeeded() {
function ShouldShard (line 4715) | bool ShouldShard(const char* total_shards_env,
function Int32 (line 4760) | Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
function ShouldRunTestOnShard (line 4778) | bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_...
function PrintOnOneLine (line 4846) | static void PrintOnOneLine(const char* str, int max_length) {
function OsStackTraceGetterInterface (line 4918) | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
function TestResult (line 4932) | TestResult* UnitTestImpl::current_test_result() {
function GetCurrentOsStackTraceExceptTop (line 4973) | std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
class ClassUniqueToAlwaysTrue (line 4983) | class ClassUniqueToAlwaysTrue {}
function IsTrue (line 4986) | bool IsTrue(bool condition) { return condition; }
function AlwaysTrue (line 4988) | bool AlwaysTrue() {
function SkipPrefix (line 5001) | bool SkipPrefix(const char* prefix, const char** pstr) {
function ParseBoolFlag (line 5053) | bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
function ParseInt32Flag (line 5070) | bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
function ParseStringFlag (line 5087) | bool ParseStringFlag(const char* str, const char* flag, std::string* v...
function HasGoogleTestFlagPrefix (line 5105) | static bool HasGoogleTestFlagPrefix(const char* str) {
function PrintColorEncoded (line 5125) | static void PrintColorEncoded(const char* str) {
function ParseGoogleTestFlag (line 5223) | bool ParseGoogleTestFlag(const char* const arg) {
function LoadFlagsFromFile (line 5253) | void LoadFlagsFromFile(const std::string& path) {
function ParseGoogleTestFlagsOnlyImpl (line 5279) | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
function ParseGoogleTestFlagsOnly (line 5332) | void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
function ParseGoogleTestFlagsOnly (line 5335) | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
function InitGoogleTestImpl (line 5344) | void InitGoogleTestImpl(int* argc, CharType** argv) {
function TestPartResult (line 2029) | const TestPartResult& TestResult::GetTestPartResult(int i) const {
function TestProperty (line 2038) | const TestProperty& TestResult::GetTestProperty(int i) const {
function ArrayAsVector (line 2108) | std::vector ArrayAsVector(const char* const (&array)[kSize]) {
function GetReservedAttributesForElement (line 2112) | static std::vector GetReservedAttributesForElement(
function FormatWordList (line 2127) | static std::string FormatWordList(const std::vector& words) {
function ValidateTestPropertyName (line 2141) | bool ValidateTestPropertyName(const std::string& property_name,
function TestPartFatallyFailed (line 2179) | static bool TestPartFatallyFailed(const TestPartResult& result) {
function TestPartNonfatallyFailed (line 2189) | static bool TestPartNonfatallyFailed(const TestPartResult& result) {
type internal (line 2248) | namespace internal {
function AssertionResult (line 1663) | AssertionResult HRESULTFailureHelper(const char* expr,
function AssertionResult (line 1704) | AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT
function AssertionResult (line 1711) | AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT
function UInt32 (line 1747) | inline UInt32 ChopLowBits(UInt32* bits, int n) {
function CodePointToUtf8 (line 1759) | std::string CodePointToUtf8(UInt32 code_point) {
function IsUtf16SurrogatePair (line 1794) | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) {
function UInt32 (line 1800) | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first,
function WideStringToUtf8 (line 1823) | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
function AssertionResult (line 1869) | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
function AssertionResult (line 1885) | AssertionResult CmpHelperSTRNE(const char* s1_expression,
function StringStreamToString (line 1982) | std::string StringStreamToString(::std::stringstream* ss) {
function AppendUserMessage (line 2001) | std::string AppendUserMessage(const std::string& gtest_msg,
function ReportFailureInUnknownLocation (line 2250) | void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
function FormatCxxExceptionMessage (line 2352) | static std::string FormatCxxExceptionMessage(const char* description,
function Result (line 2383) | Result HandleSehExceptionsInMethodIfSupported(
function Result (line 2410) | Result HandleExceptionsInMethodIfSupported(
function TestInfo (line 2543) | TestInfo* MakeAndRegisterTestInfo(
function ReportInvalidTestCaseType (line 2561) | void ReportInvalidTestCaseType(const char* test_case_name,
function PrintTestPartResultToString (line 2850) | static std::string PrintTestPartResultToString(
function PrintTestPartResult (line 2860) | static void PrintTestPartResult(const TestPartResult& test_part_result) {
type GTestColor (line 2880) | enum GTestColor {
function WORD (line 2891) | WORD GetColorAttribute(GTestColor color) {
function ShouldUseColor (line 2916) | bool ShouldUseColor(bool stdout_is_tty) {
function ColoredPrintf (line 2956) | void ColoredPrintf(GTestColor color, const char* fmt, ...) {
function PrintFullTestCommentIfPresent (line 3009) | void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
class PrettyUnitTestResultPrinter (line 3029) | class PrettyUnitTestResultPrinter : public TestEventListener {
method PrettyUnitTestResultPrinter (line 3031) | PrettyUnitTestResultPrinter() {}
method PrintTestName (line 3032) | static void PrintTestName(const char * test_case, const char * test) {
method OnTestProgramStart (line 3037) | virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsSetUpEnd (line 3040) | virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsTearDownEnd (line 3047) | virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/...
method OnTestProgramEnd (line 3049) | virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
class TestEventRepeater (line 3236) | class TestEventRepeater : public TestEventListener {
method TestEventRepeater (line 3238) | TestEventRepeater() : forwarding_enabled_(true) {}
method forwarding_enabled (line 3245) | bool forwarding_enabled() const { return forwarding_enabled_; }
method set_forwarding_enabled (line 3246) | void set_forwarding_enabled(bool enable) { forwarding_enabled_ = ena...
function TestEventListener (line 3281) | TestEventListener* TestEventRepeater::Release(TestEventListener *liste...
class XmlUnitTestResultPrinter (line 3349) | class XmlUnitTestResultPrinter : public EmptyTestEventListener {
method IsNormalizableWhitespace (line 3358) | static bool IsNormalizableWhitespace(char c) {
method IsValidXmlCharacter (line 3363) | static bool IsValidXmlCharacter(char c) {
method EscapeXmlAttribute (line 3377) | static std::string EscapeXmlAttribute(const std::string& str) {
method EscapeXmlText (line 3382) | static std::string EscapeXmlText(const char* str) {
function FormatTimeInMillisAsSeconds (line 3550) | std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
function PortableLocaltime (line 3556) | static bool PortableLocaltime(time_t seconds, struct tm* out) {
function FormatEpochTimeInMillisAsIso8601 (line 3574) | std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
function string (line 3761) | string StreamingListener::UrlEncode(const char* str) {
function GTEST_LOCK_EXCLUDED_ (line 3829) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 3840) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function string (line 3850) | string OsStackTraceGetter::CurrentStackTrace(int /*max_depth*/,
class ScopedPrematureExitFile (line 3859) | class ScopedPrematureExitFile {
method ScopedPrematureExitFile (line 3861) | explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
class TestCaseNameIs (line 4475) | class TestCaseNameIs {
method TestCaseNameIs (line 4478) | explicit TestCaseNameIs(const std::string& name)
function TestCase (line 4502) | TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
function SetUpEnvironment (line 4539) | static void SetUpEnvironment(Environment* env) { env->SetUp(); }
function TearDownEnvironment (line 4540) | static void TearDownEnvironment(Environment* env) { env->TearDown(); }
function WriteToShardStatusFileIfNeeded (line 4693) | void WriteToShardStatusFileIfNeeded() {
function ShouldShard (line 4715) | bool ShouldShard(const char* total_shards_env,
function Int32 (line 4760) | Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
function ShouldRunTestOnShard (line 4778) | bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_...
function PrintOnOneLine (line 4846) | static void PrintOnOneLine(const char* str, int max_length) {
function OsStackTraceGetterInterface (line 4918) | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
function TestResult (line 4932) | TestResult* UnitTestImpl::current_test_result() {
function GetCurrentOsStackTraceExceptTop (line 4973) | std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
class ClassUniqueToAlwaysTrue (line 4983) | class ClassUniqueToAlwaysTrue {}
function IsTrue (line 4986) | bool IsTrue(bool condition) { return condition; }
function AlwaysTrue (line 4988) | bool AlwaysTrue() {
function SkipPrefix (line 5001) | bool SkipPrefix(const char* prefix, const char** pstr) {
function ParseBoolFlag (line 5053) | bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
function ParseInt32Flag (line 5070) | bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
function ParseStringFlag (line 5087) | bool ParseStringFlag(const char* str, const char* flag, std::string* v...
function HasGoogleTestFlagPrefix (line 5105) | static bool HasGoogleTestFlagPrefix(const char* str) {
function PrintColorEncoded (line 5125) | static void PrintColorEncoded(const char* str) {
function ParseGoogleTestFlag (line 5223) | bool ParseGoogleTestFlag(const char* const arg) {
function LoadFlagsFromFile (line 5253) | void LoadFlagsFromFile(const std::string& path) {
function ParseGoogleTestFlagsOnlyImpl (line 5279) | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
function ParseGoogleTestFlagsOnly (line 5332) | void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
function ParseGoogleTestFlagsOnly (line 5335) | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
function InitGoogleTestImpl (line 5344) | void InitGoogleTestImpl(int* argc, CharType** argv) {
type internal (line 2347) | namespace internal {
function AssertionResult (line 1663) | AssertionResult HRESULTFailureHelper(const char* expr,
function AssertionResult (line 1704) | AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT
function AssertionResult (line 1711) | AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT
function UInt32 (line 1747) | inline UInt32 ChopLowBits(UInt32* bits, int n) {
function CodePointToUtf8 (line 1759) | std::string CodePointToUtf8(UInt32 code_point) {
function IsUtf16SurrogatePair (line 1794) | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) {
function UInt32 (line 1800) | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first,
function WideStringToUtf8 (line 1823) | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
function AssertionResult (line 1869) | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
function AssertionResult (line 1885) | AssertionResult CmpHelperSTRNE(const char* s1_expression,
function StringStreamToString (line 1982) | std::string StringStreamToString(::std::stringstream* ss) {
function AppendUserMessage (line 2001) | std::string AppendUserMessage(const std::string& gtest_msg,
function ReportFailureInUnknownLocation (line 2250) | void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
function FormatCxxExceptionMessage (line 2352) | static std::string FormatCxxExceptionMessage(const char* description,
function Result (line 2383) | Result HandleSehExceptionsInMethodIfSupported(
function Result (line 2410) | Result HandleExceptionsInMethodIfSupported(
function TestInfo (line 2543) | TestInfo* MakeAndRegisterTestInfo(
function ReportInvalidTestCaseType (line 2561) | void ReportInvalidTestCaseType(const char* test_case_name,
function PrintTestPartResultToString (line 2850) | static std::string PrintTestPartResultToString(
function PrintTestPartResult (line 2860) | static void PrintTestPartResult(const TestPartResult& test_part_result) {
type GTestColor (line 2880) | enum GTestColor {
function WORD (line 2891) | WORD GetColorAttribute(GTestColor color) {
function ShouldUseColor (line 2916) | bool ShouldUseColor(bool stdout_is_tty) {
function ColoredPrintf (line 2956) | void ColoredPrintf(GTestColor color, const char* fmt, ...) {
function PrintFullTestCommentIfPresent (line 3009) | void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
class PrettyUnitTestResultPrinter (line 3029) | class PrettyUnitTestResultPrinter : public TestEventListener {
method PrettyUnitTestResultPrinter (line 3031) | PrettyUnitTestResultPrinter() {}
method PrintTestName (line 3032) | static void PrintTestName(const char * test_case, const char * test) {
method OnTestProgramStart (line 3037) | virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsSetUpEnd (line 3040) | virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsTearDownEnd (line 3047) | virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/...
method OnTestProgramEnd (line 3049) | virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
class TestEventRepeater (line 3236) | class TestEventRepeater : public TestEventListener {
method TestEventRepeater (line 3238) | TestEventRepeater() : forwarding_enabled_(true) {}
method forwarding_enabled (line 3245) | bool forwarding_enabled() const { return forwarding_enabled_; }
method set_forwarding_enabled (line 3246) | void set_forwarding_enabled(bool enable) { forwarding_enabled_ = ena...
function TestEventListener (line 3281) | TestEventListener* TestEventRepeater::Release(TestEventListener *liste...
class XmlUnitTestResultPrinter (line 3349) | class XmlUnitTestResultPrinter : public EmptyTestEventListener {
method IsNormalizableWhitespace (line 3358) | static bool IsNormalizableWhitespace(char c) {
method IsValidXmlCharacter (line 3363) | static bool IsValidXmlCharacter(char c) {
method EscapeXmlAttribute (line 3377) | static std::string EscapeXmlAttribute(const std::string& str) {
method EscapeXmlText (line 3382) | static std::string EscapeXmlText(const char* str) {
function FormatTimeInMillisAsSeconds (line 3550) | std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
function PortableLocaltime (line 3556) | static bool PortableLocaltime(time_t seconds, struct tm* out) {
function FormatEpochTimeInMillisAsIso8601 (line 3574) | std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
function string (line 3761) | string StreamingListener::UrlEncode(const char* str) {
function GTEST_LOCK_EXCLUDED_ (line 3829) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 3840) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function string (line 3850) | string OsStackTraceGetter::CurrentStackTrace(int /*max_depth*/,
class ScopedPrematureExitFile (line 3859) | class ScopedPrematureExitFile {
method ScopedPrematureExitFile (line 3861) | explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
class TestCaseNameIs (line 4475) | class TestCaseNameIs {
method TestCaseNameIs (line 4478) | explicit TestCaseNameIs(const std::string& name)
function TestCase (line 4502) | TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
function SetUpEnvironment (line 4539) | static void SetUpEnvironment(Environment* env) { env->SetUp(); }
function TearDownEnvironment (line 4540) | static void TearDownEnvironment(Environment* env) { env->TearDown(); }
function WriteToShardStatusFileIfNeeded (line 4693) | void WriteToShardStatusFileIfNeeded() {
function ShouldShard (line 4715) | bool ShouldShard(const char* total_shards_env,
function Int32 (line 4760) | Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
function ShouldRunTestOnShard (line 4778) | bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_...
function PrintOnOneLine (line 4846) | static void PrintOnOneLine(const char* str, int max_length) {
function OsStackTraceGetterInterface (line 4918) | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
function TestResult (line 4932) | TestResult* UnitTestImpl::current_test_result() {
function GetCurrentOsStackTraceExceptTop (line 4973) | std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
class ClassUniqueToAlwaysTrue (line 4983) | class ClassUniqueToAlwaysTrue {}
function IsTrue (line 4986) | bool IsTrue(bool condition) { return condition; }
function AlwaysTrue (line 4988) | bool AlwaysTrue() {
function SkipPrefix (line 5001) | bool SkipPrefix(const char* prefix, const char** pstr) {
function ParseBoolFlag (line 5053) | bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
function ParseInt32Flag (line 5070) | bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
function ParseStringFlag (line 5087) | bool ParseStringFlag(const char* str, const char* flag, std::string* v...
function HasGoogleTestFlagPrefix (line 5105) | static bool HasGoogleTestFlagPrefix(const char* str) {
function PrintColorEncoded (line 5125) | static void PrintColorEncoded(const char* str) {
function ParseGoogleTestFlag (line 5223) | bool ParseGoogleTestFlag(const char* const arg) {
function LoadFlagsFromFile (line 5253) | void LoadFlagsFromFile(const std::string& path) {
function ParseGoogleTestFlagsOnlyImpl (line 5279) | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
function ParseGoogleTestFlagsOnly (line 5332) | void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
function ParseGoogleTestFlagsOnly (line 5335) | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
function InitGoogleTestImpl (line 5344) | void InitGoogleTestImpl(int* argc, CharType** argv) {
type internal (line 2523) | namespace internal {
function AssertionResult (line 1663) | AssertionResult HRESULTFailureHelper(const char* expr,
function AssertionResult (line 1704) | AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT
function AssertionResult (line 1711) | AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT
function UInt32 (line 1747) | inline UInt32 ChopLowBits(UInt32* bits, int n) {
function CodePointToUtf8 (line 1759) | std::string CodePointToUtf8(UInt32 code_point) {
function IsUtf16SurrogatePair (line 1794) | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) {
function UInt32 (line 1800) | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first,
function WideStringToUtf8 (line 1823) | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
function AssertionResult (line 1869) | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
function AssertionResult (line 1885) | AssertionResult CmpHelperSTRNE(const char* s1_expression,
function StringStreamToString (line 1982) | std::string StringStreamToString(::std::stringstream* ss) {
function AppendUserMessage (line 2001) | std::string AppendUserMessage(const std::string& gtest_msg,
function ReportFailureInUnknownLocation (line 2250) | void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
function FormatCxxExceptionMessage (line 2352) | static std::string FormatCxxExceptionMessage(const char* description,
function Result (line 2383) | Result HandleSehExceptionsInMethodIfSupported(
function Result (line 2410) | Result HandleExceptionsInMethodIfSupported(
function TestInfo (line 2543) | TestInfo* MakeAndRegisterTestInfo(
function ReportInvalidTestCaseType (line 2561) | void ReportInvalidTestCaseType(const char* test_case_name,
function PrintTestPartResultToString (line 2850) | static std::string PrintTestPartResultToString(
function PrintTestPartResult (line 2860) | static void PrintTestPartResult(const TestPartResult& test_part_result) {
type GTestColor (line 2880) | enum GTestColor {
function WORD (line 2891) | WORD GetColorAttribute(GTestColor color) {
function ShouldUseColor (line 2916) | bool ShouldUseColor(bool stdout_is_tty) {
function ColoredPrintf (line 2956) | void ColoredPrintf(GTestColor color, const char* fmt, ...) {
function PrintFullTestCommentIfPresent (line 3009) | void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
class PrettyUnitTestResultPrinter (line 3029) | class PrettyUnitTestResultPrinter : public TestEventListener {
method PrettyUnitTestResultPrinter (line 3031) | PrettyUnitTestResultPrinter() {}
method PrintTestName (line 3032) | static void PrintTestName(const char * test_case, const char * test) {
method OnTestProgramStart (line 3037) | virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsSetUpEnd (line 3040) | virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsTearDownEnd (line 3047) | virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/...
method OnTestProgramEnd (line 3049) | virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
class TestEventRepeater (line 3236) | class TestEventRepeater : public TestEventListener {
method TestEventRepeater (line 3238) | TestEventRepeater() : forwarding_enabled_(true) {}
method forwarding_enabled (line 3245) | bool forwarding_enabled() const { return forwarding_enabled_; }
method set_forwarding_enabled (line 3246) | void set_forwarding_enabled(bool enable) { forwarding_enabled_ = ena...
function TestEventListener (line 3281) | TestEventListener* TestEventRepeater::Release(TestEventListener *liste...
class XmlUnitTestResultPrinter (line 3349) | class XmlUnitTestResultPrinter : public EmptyTestEventListener {
method IsNormalizableWhitespace (line 3358) | static bool IsNormalizableWhitespace(char c) {
method IsValidXmlCharacter (line 3363) | static bool IsValidXmlCharacter(char c) {
method EscapeXmlAttribute (line 3377) | static std::string EscapeXmlAttribute(const std::string& str) {
method EscapeXmlText (line 3382) | static std::string EscapeXmlText(const char* str) {
function FormatTimeInMillisAsSeconds (line 3550) | std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
function PortableLocaltime (line 3556) | static bool PortableLocaltime(time_t seconds, struct tm* out) {
function FormatEpochTimeInMillisAsIso8601 (line 3574) | std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
function string (line 3761) | string StreamingListener::UrlEncode(const char* str) {
function GTEST_LOCK_EXCLUDED_ (line 3829) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 3840) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function string (line 3850) | string OsStackTraceGetter::CurrentStackTrace(int /*max_depth*/,
class ScopedPrematureExitFile (line 3859) | class ScopedPrematureExitFile {
method ScopedPrematureExitFile (line 3861) | explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
class TestCaseNameIs (line 4475) | class TestCaseNameIs {
method TestCaseNameIs (line 4478) | explicit TestCaseNameIs(const std::string& name)
function TestCase (line 4502) | TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
function SetUpEnvironment (line 4539) | static void SetUpEnvironment(Environment* env) { env->SetUp(); }
function TearDownEnvironment (line 4540) | static void TearDownEnvironment(Environment* env) { env->TearDown(); }
function WriteToShardStatusFileIfNeeded (line 4693) | void WriteToShardStatusFileIfNeeded() {
function ShouldShard (line 4715) | bool ShouldShard(const char* total_shards_env,
function Int32 (line 4760) | Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
function ShouldRunTestOnShard (line 4778) | bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_...
function PrintOnOneLine (line 4846) | static void PrintOnOneLine(const char* str, int max_length) {
function OsStackTraceGetterInterface (line 4918) | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
function TestResult (line 4932) | TestResult* UnitTestImpl::current_test_result() {
function GetCurrentOsStackTraceExceptTop (line 4973) | std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
class ClassUniqueToAlwaysTrue (line 4983) | class ClassUniqueToAlwaysTrue {}
function IsTrue (line 4986) | bool IsTrue(bool condition) { return condition; }
function AlwaysTrue (line 4988) | bool AlwaysTrue() {
function SkipPrefix (line 5001) | bool SkipPrefix(const char* prefix, const char** pstr) {
function ParseBoolFlag (line 5053) | bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
function ParseInt32Flag (line 5070) | bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
function ParseStringFlag (line 5087) | bool ParseStringFlag(const char* str, const char* flag, std::string* v...
function HasGoogleTestFlagPrefix (line 5105) | static bool HasGoogleTestFlagPrefix(const char* str) {
function PrintColorEncoded (line 5125) | static void PrintColorEncoded(const char* str) {
function ParseGoogleTestFlag (line 5223) | bool ParseGoogleTestFlag(const char* const arg) {
function LoadFlagsFromFile (line 5253) | void LoadFlagsFromFile(const std::string& path) {
function ParseGoogleTestFlagsOnlyImpl (line 5279) | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
function ParseGoogleTestFlagsOnly (line 5332) | void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
function ParseGoogleTestFlagsOnly (line 5335) | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
function InitGoogleTestImpl (line 5344) | void InitGoogleTestImpl(int* argc, CharType** argv) {
class TestNameIs (line 2593) | class TestNameIs {
method TestNameIs (line 2598) | explicit TestNameIs(const char* name)
type internal (line 2612) | namespace internal {
function AssertionResult (line 1663) | AssertionResult HRESULTFailureHelper(const char* expr,
function AssertionResult (line 1704) | AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT
function AssertionResult (line 1711) | AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT
function UInt32 (line 1747) | inline UInt32 ChopLowBits(UInt32* bits, int n) {
function CodePointToUtf8 (line 1759) | std::string CodePointToUtf8(UInt32 code_point) {
function IsUtf16SurrogatePair (line 1794) | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) {
function UInt32 (line 1800) | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first,
function WideStringToUtf8 (line 1823) | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
function AssertionResult (line 1869) | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
function AssertionResult (line 1885) | AssertionResult CmpHelperSTRNE(const char* s1_expression,
function StringStreamToString (line 1982) | std::string StringStreamToString(::std::stringstream* ss) {
function AppendUserMessage (line 2001) | std::string AppendUserMessage(const std::string& gtest_msg,
function ReportFailureInUnknownLocation (line 2250) | void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
function FormatCxxExceptionMessage (line 2352) | static std::string FormatCxxExceptionMessage(const char* description,
function Result (line 2383) | Result HandleSehExceptionsInMethodIfSupported(
function Result (line 2410) | Result HandleExceptionsInMethodIfSupported(
function TestInfo (line 2543) | TestInfo* MakeAndRegisterTestInfo(
function ReportInvalidTestCaseType (line 2561) | void ReportInvalidTestCaseType(const char* test_case_name,
function PrintTestPartResultToString (line 2850) | static std::string PrintTestPartResultToString(
function PrintTestPartResult (line 2860) | static void PrintTestPartResult(const TestPartResult& test_part_result) {
type GTestColor (line 2880) | enum GTestColor {
function WORD (line 2891) | WORD GetColorAttribute(GTestColor color) {
function ShouldUseColor (line 2916) | bool ShouldUseColor(bool stdout_is_tty) {
function ColoredPrintf (line 2956) | void ColoredPrintf(GTestColor color, const char* fmt, ...) {
function PrintFullTestCommentIfPresent (line 3009) | void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
class PrettyUnitTestResultPrinter (line 3029) | class PrettyUnitTestResultPrinter : public TestEventListener {
method PrettyUnitTestResultPrinter (line 3031) | PrettyUnitTestResultPrinter() {}
method PrintTestName (line 3032) | static void PrintTestName(const char * test_case, const char * test) {
method OnTestProgramStart (line 3037) | virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsSetUpEnd (line 3040) | virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsTearDownEnd (line 3047) | virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/...
method OnTestProgramEnd (line 3049) | virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
class TestEventRepeater (line 3236) | class TestEventRepeater : public TestEventListener {
method TestEventRepeater (line 3238) | TestEventRepeater() : forwarding_enabled_(true) {}
method forwarding_enabled (line 3245) | bool forwarding_enabled() const { return forwarding_enabled_; }
method set_forwarding_enabled (line 3246) | void set_forwarding_enabled(bool enable) { forwarding_enabled_ = ena...
function TestEventListener (line 3281) | TestEventListener* TestEventRepeater::Release(TestEventListener *liste...
class XmlUnitTestResultPrinter (line 3349) | class XmlUnitTestResultPrinter : public EmptyTestEventListener {
method IsNormalizableWhitespace (line 3358) | static bool IsNormalizableWhitespace(char c) {
method IsValidXmlCharacter (line 3363) | static bool IsValidXmlCharacter(char c) {
method EscapeXmlAttribute (line 3377) | static std::string EscapeXmlAttribute(const std::string& str) {
method EscapeXmlText (line 3382) | static std::string EscapeXmlText(const char* str) {
function FormatTimeInMillisAsSeconds (line 3550) | std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
function PortableLocaltime (line 3556) | static bool PortableLocaltime(time_t seconds, struct tm* out) {
function FormatEpochTimeInMillisAsIso8601 (line 3574) | std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
function string (line 3761) | string StreamingListener::UrlEncode(const char* str) {
function GTEST_LOCK_EXCLUDED_ (line 3829) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 3840) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function string (line 3850) | string OsStackTraceGetter::CurrentStackTrace(int /*max_depth*/,
class ScopedPrematureExitFile (line 3859) | class ScopedPrematureExitFile {
method ScopedPrematureExitFile (line 3861) | explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
class TestCaseNameIs (line 4475) | class TestCaseNameIs {
method TestCaseNameIs (line 4478) | explicit TestCaseNameIs(const std::string& name)
function TestCase (line 4502) | TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
function SetUpEnvironment (line 4539) | static void SetUpEnvironment(Environment* env) { env->SetUp(); }
function TearDownEnvironment (line 4540) | static void TearDownEnvironment(Environment* env) { env->TearDown(); }
function WriteToShardStatusFileIfNeeded (line 4693) | void WriteToShardStatusFileIfNeeded() {
function ShouldShard (line 4715) | bool ShouldShard(const char* total_shards_env,
function Int32 (line 4760) | Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
function ShouldRunTestOnShard (line 4778) | bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_...
function PrintOnOneLine (line 4846) | static void PrintOnOneLine(const char* str, int max_length) {
function OsStackTraceGetterInterface (line 4918) | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
function TestResult (line 4932) | TestResult* UnitTestImpl::current_test_result() {
function GetCurrentOsStackTraceExceptTop (line 4973) | std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
class ClassUniqueToAlwaysTrue (line 4983) | class ClassUniqueToAlwaysTrue {}
function IsTrue (line 4986) | bool IsTrue(bool condition) { return condition; }
function AlwaysTrue (line 4988) | bool AlwaysTrue() {
function SkipPrefix (line 5001) | bool SkipPrefix(const char* prefix, const char** pstr) {
function ParseBoolFlag (line 5053) | bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
function ParseInt32Flag (line 5070) | bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
function ParseStringFlag (line 5087) | bool ParseStringFlag(const char* str, const char* flag, std::string* v...
function HasGoogleTestFlagPrefix (line 5105) | static bool HasGoogleTestFlagPrefix(const char* str) {
function PrintColorEncoded (line 5125) | static void PrintColorEncoded(const char* str) {
function ParseGoogleTestFlag (line 5223) | bool ParseGoogleTestFlag(const char* const arg) {
function LoadFlagsFromFile (line 5253) | void LoadFlagsFromFile(const std::string& path) {
function ParseGoogleTestFlagsOnlyImpl (line 5279) | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
function ParseGoogleTestFlagsOnly (line 5332) | void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
function ParseGoogleTestFlagsOnly (line 5335) | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
function InitGoogleTestImpl (line 5344) | void InitGoogleTestImpl(int* argc, CharType** argv) {
function TestInfo (line 2739) | const TestInfo* TestCase::GetTestInfo(int i) const {
function TestInfo (line 2746) | TestInfo* TestCase::GetMutableTestInfo(int i) {
function FormatCountableNoun (line 2809) | static std::string FormatCountableNoun(int count,
function FormatTestCount (line 2817) | static std::string FormatTestCount(int test_count) {
function FormatTestCaseCount (line 2822) | static std::string FormatTestCaseCount(int test_case_count) {
type internal (line 2847) | namespace internal {
function AssertionResult (line 1663) | AssertionResult HRESULTFailureHelper(const char* expr,
function AssertionResult (line 1704) | AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT
function AssertionResult (line 1711) | AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT
function UInt32 (line 1747) | inline UInt32 ChopLowBits(UInt32* bits, int n) {
function CodePointToUtf8 (line 1759) | std::string CodePointToUtf8(UInt32 code_point) {
function IsUtf16SurrogatePair (line 1794) | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) {
function UInt32 (line 1800) | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first,
function WideStringToUtf8 (line 1823) | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
function AssertionResult (line 1869) | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
function AssertionResult (line 1885) | AssertionResult CmpHelperSTRNE(const char* s1_expression,
function StringStreamToString (line 1982) | std::string StringStreamToString(::std::stringstream* ss) {
function AppendUserMessage (line 2001) | std::string AppendUserMessage(const std::string& gtest_msg,
function ReportFailureInUnknownLocation (line 2250) | void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
function FormatCxxExceptionMessage (line 2352) | static std::string FormatCxxExceptionMessage(const char* description,
function Result (line 2383) | Result HandleSehExceptionsInMethodIfSupported(
function Result (line 2410) | Result HandleExceptionsInMethodIfSupported(
function TestInfo (line 2543) | TestInfo* MakeAndRegisterTestInfo(
function ReportInvalidTestCaseType (line 2561) | void ReportInvalidTestCaseType(const char* test_case_name,
function PrintTestPartResultToString (line 2850) | static std::string PrintTestPartResultToString(
function PrintTestPartResult (line 2860) | static void PrintTestPartResult(const TestPartResult& test_part_result) {
type GTestColor (line 2880) | enum GTestColor {
function WORD (line 2891) | WORD GetColorAttribute(GTestColor color) {
function ShouldUseColor (line 2916) | bool ShouldUseColor(bool stdout_is_tty) {
function ColoredPrintf (line 2956) | void ColoredPrintf(GTestColor color, const char* fmt, ...) {
function PrintFullTestCommentIfPresent (line 3009) | void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
class PrettyUnitTestResultPrinter (line 3029) | class PrettyUnitTestResultPrinter : public TestEventListener {
method PrettyUnitTestResultPrinter (line 3031) | PrettyUnitTestResultPrinter() {}
method PrintTestName (line 3032) | static void PrintTestName(const char * test_case, const char * test) {
method OnTestProgramStart (line 3037) | virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsSetUpEnd (line 3040) | virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsTearDownEnd (line 3047) | virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/...
method OnTestProgramEnd (line 3049) | virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
class TestEventRepeater (line 3236) | class TestEventRepeater : public TestEventListener {
method TestEventRepeater (line 3238) | TestEventRepeater() : forwarding_enabled_(true) {}
method forwarding_enabled (line 3245) | bool forwarding_enabled() const { return forwarding_enabled_; }
method set_forwarding_enabled (line 3246) | void set_forwarding_enabled(bool enable) { forwarding_enabled_ = ena...
function TestEventListener (line 3281) | TestEventListener* TestEventRepeater::Release(TestEventListener *liste...
class XmlUnitTestResultPrinter (line 3349) | class XmlUnitTestResultPrinter : public EmptyTestEventListener {
method IsNormalizableWhitespace (line 3358) | static bool IsNormalizableWhitespace(char c) {
method IsValidXmlCharacter (line 3363) | static bool IsValidXmlCharacter(char c) {
method EscapeXmlAttribute (line 3377) | static std::string EscapeXmlAttribute(const std::string& str) {
method EscapeXmlText (line 3382) | static std::string EscapeXmlText(const char* str) {
function FormatTimeInMillisAsSeconds (line 3550) | std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
function PortableLocaltime (line 3556) | static bool PortableLocaltime(time_t seconds, struct tm* out) {
function FormatEpochTimeInMillisAsIso8601 (line 3574) | std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
function string (line 3761) | string StreamingListener::UrlEncode(const char* str) {
function GTEST_LOCK_EXCLUDED_ (line 3829) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 3840) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function string (line 3850) | string OsStackTraceGetter::CurrentStackTrace(int /*max_depth*/,
class ScopedPrematureExitFile (line 3859) | class ScopedPrematureExitFile {
method ScopedPrematureExitFile (line 3861) | explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
class TestCaseNameIs (line 4475) | class TestCaseNameIs {
method TestCaseNameIs (line 4478) | explicit TestCaseNameIs(const std::string& name)
function TestCase (line 4502) | TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
function SetUpEnvironment (line 4539) | static void SetUpEnvironment(Environment* env) { env->SetUp(); }
function TearDownEnvironment (line 4540) | static void TearDownEnvironment(Environment* env) { env->TearDown(); }
function WriteToShardStatusFileIfNeeded (line 4693) | void WriteToShardStatusFileIfNeeded() {
function ShouldShard (line 4715) | bool ShouldShard(const char* total_shards_env,
function Int32 (line 4760) | Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
function ShouldRunTestOnShard (line 4778) | bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_...
function PrintOnOneLine (line 4846) | static void PrintOnOneLine(const char* str, int max_length) {
function OsStackTraceGetterInterface (line 4918) | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
function TestResult (line 4932) | TestResult* UnitTestImpl::current_test_result() {
function GetCurrentOsStackTraceExceptTop (line 4973) | std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
class ClassUniqueToAlwaysTrue (line 4983) | class ClassUniqueToAlwaysTrue {}
function IsTrue (line 4986) | bool IsTrue(bool condition) { return condition; }
function AlwaysTrue (line 4988) | bool AlwaysTrue() {
function SkipPrefix (line 5001) | bool SkipPrefix(const char* prefix, const char** pstr) {
function ParseBoolFlag (line 5053) | bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
function ParseInt32Flag (line 5070) | bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
function ParseStringFlag (line 5087) | bool ParseStringFlag(const char* str, const char* flag, std::string* v...
function HasGoogleTestFlagPrefix (line 5105) | static bool HasGoogleTestFlagPrefix(const char* str) {
function PrintColorEncoded (line 5125) | static void PrintColorEncoded(const char* str) {
function ParseGoogleTestFlag (line 5223) | bool ParseGoogleTestFlag(const char* const arg) {
function LoadFlagsFromFile (line 5253) | void LoadFlagsFromFile(const std::string& path) {
function ParseGoogleTestFlagsOnlyImpl (line 5279) | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
function ParseGoogleTestFlagsOnly (line 5332) | void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
function ParseGoogleTestFlagsOnly (line 5335) | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
function InitGoogleTestImpl (line 5344) | void InitGoogleTestImpl(int* argc, CharType** argv) {
function TestEventListener (line 3909) | TestEventListener* TestEventListeners::Release(TestEventListener* listen...
function TestEventListener (line 3919) | TestEventListener* TestEventListeners::repeater() { return repeater_; }
function UnitTest (line 3972) | UnitTest* UnitTest::GetInstance() {
function TestCase (line 4063) | const TestCase* UnitTest::GetTestCase(int i) const {
function TestResult (line 4069) | const TestResult& UnitTest::ad_hoc_test_result() const {
function TestCase (line 4075) | TestCase* UnitTest::GetMutableTestCase(int i) {
function TestEventListeners (line 4081) | TestEventListeners& UnitTest::listeners() {
function Environment (line 4095) | Environment* UnitTest::AddEnvironment(Environment* env) {
function GTEST_LOCK_EXCLUDED_ (line 4113) | GTEST_LOCK_EXCLUDED_(mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 4272) | GTEST_LOCK_EXCLUDED_(mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 4280) | GTEST_LOCK_EXCLUDED_(mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 4311) | GTEST_LOCK_EXCLUDED_(mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 4318) | GTEST_LOCK_EXCLUDED_(mutex_) {
type internal (line 4323) | namespace internal {
function AssertionResult (line 1663) | AssertionResult HRESULTFailureHelper(const char* expr,
function AssertionResult (line 1704) | AssertionResult IsHRESULTSuccess(const char* expr, long hr) { // NOLINT
function AssertionResult (line 1711) | AssertionResult IsHRESULTFailure(const char* expr, long hr) { // NOLINT
function UInt32 (line 1747) | inline UInt32 ChopLowBits(UInt32* bits, int n) {
function CodePointToUtf8 (line 1759) | std::string CodePointToUtf8(UInt32 code_point) {
function IsUtf16SurrogatePair (line 1794) | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) {
function UInt32 (line 1800) | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first,
function WideStringToUtf8 (line 1823) | std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
function AssertionResult (line 1869) | AssertionResult CmpHelperSTREQ(const char* lhs_expression,
function AssertionResult (line 1885) | AssertionResult CmpHelperSTRNE(const char* s1_expression,
function StringStreamToString (line 1982) | std::string StringStreamToString(::std::stringstream* ss) {
function AppendUserMessage (line 2001) | std::string AppendUserMessage(const std::string& gtest_msg,
function ReportFailureInUnknownLocation (line 2250) | void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
function FormatCxxExceptionMessage (line 2352) | static std::string FormatCxxExceptionMessage(const char* description,
function Result (line 2383) | Result HandleSehExceptionsInMethodIfSupported(
function Result (line 2410) | Result HandleExceptionsInMethodIfSupported(
function TestInfo (line 2543) | TestInfo* MakeAndRegisterTestInfo(
function ReportInvalidTestCaseType (line 2561) | void ReportInvalidTestCaseType(const char* test_case_name,
function PrintTestPartResultToString (line 2850) | static std::string PrintTestPartResultToString(
function PrintTestPartResult (line 2860) | static void PrintTestPartResult(const TestPartResult& test_part_result) {
type GTestColor (line 2880) | enum GTestColor {
function WORD (line 2891) | WORD GetColorAttribute(GTestColor color) {
function ShouldUseColor (line 2916) | bool ShouldUseColor(bool stdout_is_tty) {
function ColoredPrintf (line 2956) | void ColoredPrintf(GTestColor color, const char* fmt, ...) {
function PrintFullTestCommentIfPresent (line 3009) | void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
class PrettyUnitTestResultPrinter (line 3029) | class PrettyUnitTestResultPrinter : public TestEventListener {
method PrettyUnitTestResultPrinter (line 3031) | PrettyUnitTestResultPrinter() {}
method PrintTestName (line 3032) | static void PrintTestName(const char * test_case, const char * test) {
method OnTestProgramStart (line 3037) | virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsSetUpEnd (line 3040) | virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
method OnEnvironmentsTearDownEnd (line 3047) | virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/...
method OnTestProgramEnd (line 3049) | virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
class TestEventRepeater (line 3236) | class TestEventRepeater : public TestEventListener {
method TestEventRepeater (line 3238) | TestEventRepeater() : forwarding_enabled_(true) {}
method forwarding_enabled (line 3245) | bool forwarding_enabled() const { return forwarding_enabled_; }
method set_forwarding_enabled (line 3246) | void set_forwarding_enabled(bool enable) { forwarding_enabled_ = ena...
function TestEventListener (line 3281) | TestEventListener* TestEventRepeater::Release(TestEventListener *liste...
class XmlUnitTestResultPrinter (line 3349) | class XmlUnitTestResultPrinter : public EmptyTestEventListener {
method IsNormalizableWhitespace (line 3358) | static bool IsNormalizableWhitespace(char c) {
method IsValidXmlCharacter (line 3363) | static bool IsValidXmlCharacter(char c) {
method EscapeXmlAttribute (line 3377) | static std::string EscapeXmlAttribute(const std::string& str) {
method EscapeXmlText (line 3382) | static std::string EscapeXmlText(const char* str) {
function FormatTimeInMillisAsSeconds (line 3550) | std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
function PortableLocaltime (line 3556) | static bool PortableLocaltime(time_t seconds, struct tm* out) {
function FormatEpochTimeInMillisAsIso8601 (line 3574) | std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
function string (line 3761) | string StreamingListener::UrlEncode(const char* str) {
function GTEST_LOCK_EXCLUDED_ (line 3829) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function GTEST_LOCK_EXCLUDED_ (line 3840) | GTEST_LOCK_EXCLUDED_(&UnitTest::mutex_) {
function string (line 3850) | string OsStackTraceGetter::CurrentStackTrace(int /*max_depth*/,
class ScopedPrematureExitFile (line 3859) | class ScopedPrematureExitFile {
method ScopedPrematureExitFile (line 3861) | explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
class TestCaseNameIs (line 4475) | class TestCaseNameIs {
method TestCaseNameIs (line 4478) | explicit TestCaseNameIs(const std::string& name)
function TestCase (line 4502) | TestCase* UnitTestImpl::GetTestCase(const char* test_case_name,
function SetUpEnvironment (line 4539) | static void SetUpEnvironment(Environment* env) { env->SetUp(); }
function TearDownEnvironment (line 4540) | static void TearDownEnvironment(Environment* env) { env->TearDown(); }
function WriteToShardStatusFileIfNeeded (line 4693) | void WriteToShardStatusFileIfNeeded() {
function ShouldShard (line 4715) | bool ShouldShard(const char* total_shards_env,
function Int32 (line 4760) | Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
function ShouldRunTestOnShard (line 4778) | bool ShouldRunTestOnShard(int total_shards, int shard_index, int test_...
function PrintOnOneLine (line 4846) | static void PrintOnOneLine(const char* str, int max_length) {
function OsStackTraceGetterInterface (line 4918) | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() {
function TestResult (line 4932) | TestResult* UnitTestImpl::current_test_result() {
function GetCurrentOsStackTraceExceptTop (line 4973) | std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
class ClassUniqueToAlwaysTrue (line 4983) | class ClassUniqueToAlwaysTrue {}
function IsTrue (line 4986) | bool IsTrue(bool condition) { return condition; }
function AlwaysTrue (line 4988) | bool AlwaysTrue() {
function SkipPrefix (line 5001) | bool SkipPrefix(const char* prefix, const char** pstr) {
function ParseBoolFlag (line 5053) | bool ParseBoolFlag(const char* str, const char* flag, bool* value) {
function ParseInt32Flag (line 5070) | bool ParseInt32Flag(const char* str, const char* flag, Int32* value) {
function ParseStringFlag (line 5087) | bool ParseStringFlag(const char* str, const char* flag, std::string* v...
function HasGoogleTestFlagPrefix (line 5105) | static bool HasGoogleTestFlagPrefix(const char* str) {
function PrintColorEncoded (line 5125) | static void PrintColorEncoded(const char* str) {
function ParseGoogleTestFlag (line 5223) | bool ParseGoogleTestFlag(const char* const arg) {
function LoadFlagsFromFile (line 5253) | void LoadFlagsFromFile(const std::string& path) {
function ParseGoogleTestFlagsOnlyImpl (line 5279) | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
function ParseGoogleTestFlagsOnly (line 5332) | void ParseGoogleTestFlagsOnly(int* argc, char** argv) {
function ParseGoogleTestFlagsOnly (line 5335) | void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv) {
function InitGoogleTestImpl (line 5344) | void InitGoogleTestImpl(int* argc, CharType** argv) {
function InitGoogleTest (line 5370) | void InitGoogleTest(int* argc, char** argv) {
function InitGoogleTest (line 5380) | void InitGoogleTest(int* argc, wchar_t** argv) {
FILE: mypyc/external/googletest/src/gtest_main.cc
function GTEST_API_ (line 34) | GTEST_API_ int main(int argc, char **argv) {
FILE: mypyc/ir/class_ir.py
class VTableMethod (line 72) | class VTableMethod(NamedTuple):
class ClassIR (line 82) | class ClassIR:
method __init__ (line 88) | def __init__(
method __repr__ (line 199) | def __repr__(self) -> str:
method fullname (line 210) | def fullname(self) -> str:
method real_base (line 213) | def real_base(self) -> ClassIR | None:
method vtable_entry (line 219) | def vtable_entry(self, name: str) -> int:
method attr_details (line 224) | def attr_details(self, name: str) -> tuple[RType, ClassIR]:
method attr_type (line 232) | def attr_type(self, name: str) -> RType:
method method_decl (line 235) | def method_decl(self, name: str) -> FuncDecl:
method method_sig (line 241) | def method_sig(self, name: str) -> FuncSignature:
method has_method (line 244) | def has_method(self, name: str) -> bool:
method is_method_final (line 251) | def is_method_final(self, name: str) -> bool:
method has_attr (line 265) | def has_attr(self, name: str) -> bool:
method is_deletable (line 272) | def is_deletable(self, name: str) -> bool:
method is_always_defined (line 275) | def is_always_defined(self, name: str) -> bool:
method name_prefix (line 280) | def name_prefix(self, names: NameGenerator) -> str:
method struct_name (line 283) | def struct_name(self, names: NameGenerator) -> str:
method get_method_and_class (line 286) | def get_method_and_class(
method get_method (line 301) | def get_method(self, name: str, *, prefer_method: bool = False) -> Fun...
method has_method_decl (line 305) | def has_method_decl(self, name: str) -> bool:
method has_no_subclasses (line 308) | def has_no_subclasses(self) -> bool:
method subclasses (line 311) | def subclasses(self) -> set[ClassIR] | None:
method concrete_subclasses (line 328) | def concrete_subclasses(self) -> list[ClassIR] | None:
method is_serializable (line 342) | def is_serializable(self) -> bool:
method serialize (line 345) | def serialize(self) -> JsonDict:
method deserialize (line 400) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> ClassIR:
class NonExtClassInfo (line 453) | class NonExtClassInfo:
method __init__ (line 460) | def __init__(self, dict: Value, bases: Value, anns: Value, metaclass: ...
function serialize_vtable_entry (line 467) | def serialize_vtable_entry(entry: VTableMethod) -> JsonDict:
function serialize_vtable (line 477) | def serialize_vtable(vtable: VTableEntries) -> list[JsonDict]:
function deserialize_vtable_entry (line 481) | def deserialize_vtable_entry(data: JsonDict, ctx: DeserMaps) -> VTableMe...
function deserialize_vtable (line 492) | def deserialize_vtable(data: list[JsonDict], ctx: DeserMaps) -> VTableEn...
function all_concrete_classes (line 496) | def all_concrete_classes(class_ir: ClassIR) -> list[ClassIR] | None:
FILE: mypyc/ir/func_ir.py
class RuntimeArg (line 24) | class RuntimeArg:
method __init__ (line 30) | def __init__(
method optional (line 39) | def optional(self) -> bool:
method __repr__ (line 42) | def __repr__(self) -> str:
method serialize (line 47) | def serialize(self) -> JsonDict:
method deserialize (line 56) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RuntimeArg:
class FuncSignature (line 65) | class FuncSignature:
method __init__ (line 70) | def __init__(self, args: Sequence[RuntimeArg], ret_type: RType) -> None:
method real_args (line 83) | def real_args(self) -> tuple[RuntimeArg, ...]:
method bound_sig (line 89) | def bound_sig(self) -> FuncSignature:
method __repr__ (line 95) | def __repr__(self) -> str:
method serialize (line 98) | def serialize(self) -> JsonDict:
method deserialize (line 106) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> FuncSignature:
function num_bitmap_args (line 113) | def num_bitmap_args(args: tuple[RuntimeArg, ...]) -> int:
class FuncDecl (line 126) | class FuncDecl:
method __init__ (line 133) | def __init__(
method line (line 168) | def line(self) -> int:
method line (line 173) | def line(self, line: int) -> None:
method id (line 177) | def id(self) -> str:
method compute_shortname (line 182) | def compute_shortname(class_name: str | None, name: str) -> str:
method shortname (line 186) | def shortname(self) -> str:
method fullname (line 190) | def fullname(self) -> str:
method cname (line 193) | def cname(self, names: NameGenerator) -> str:
method serialize (line 197) | def serialize(self) -> JsonDict:
method get_id_from_json (line 211) | def get_id_from_json(func_ir: JsonDict) -> str:
method deserialize (line 219) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> FuncDecl:
class FuncIR (line 232) | class FuncIR:
method __init__ (line 238) | def __init__(
method line (line 259) | def line(self) -> int:
method args (line 263) | def args(self) -> Sequence[RuntimeArg]:
method ret_type (line 267) | def ret_type(self) -> RType:
method class_name (line 271) | def class_name(self) -> str | None:
method sig (line 275) | def sig(self) -> FuncSignature:
method name (line 279) | def name(self) -> str:
method fullname (line 283) | def fullname(self) -> str:
method id (line 287) | def id(self) -> str:
method cname (line 290) | def cname(self, names: NameGenerator) -> str:
method __repr__ (line 293) | def __repr__(self) -> str:
method serialize (line 299) | def serialize(self) -> JsonDict:
method deserialize (line 308) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> FuncIR:
function all_values (line 317) | def all_values(args: list[Register], blocks: list[BasicBlock]) -> list[V...
function all_values_full (line 348) | def all_values_full(args: list[Register], blocks: list[BasicBlock]) -> l...
FILE: mypyc/ir/module_ir.py
class ModuleIR (line 12) | class ModuleIR:
method __init__ (line 15) | def __init__(
method serialize (line 34) | def serialize(self) -> JsonDict:
method deserialize (line 44) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> ModuleIR:
function deserialize_modules (line 55) | def deserialize_modules(data: dict[str, JsonDict], ctx: DeserMaps) -> di...
FILE: mypyc/ir/ops.py
class BasicBlock (line 50) | class BasicBlock:
method __init__ (line 80) | def __init__(self, label: int = -1) -> None:
method terminated (line 87) | def terminated(self) -> bool:
method terminator (line 96) | def terminator(self) -> ControlOp:
class Value (line 118) | class Value:
method is_void (line 141) | def is_void(self) -> bool:
class Register (line 145) | class Register(Value):
method __init__ (line 156) | def __init__(self, type: RType, name: str = "", is_arg: bool = False, ...
method is_void (line 164) | def is_void(self) -> bool:
method __repr__ (line 167) | def __repr__(self) -> str:
class Integer (line 171) | class Integer(Value):
method __init__ (line 187) | def __init__(self, value: int, rtype: RType = short_int_rprimitive, li...
method numeric_value (line 195) | def numeric_value(self) -> int:
class Float (line 201) | class Float(Value):
method __init__ (line 209) | def __init__(self, value: float, line: int = -1) -> None:
class Op (line 215) | class Op(Value):
method __init__ (line 227) | def __init__(self, line: int) -> None:
method can_raise (line 230) | def can_raise(self) -> bool:
method sources (line 236) | def sources(self) -> list[Value]:
method stolen (line 239) | def stolen(self) -> list[Value]:
method unique_sources (line 243) | def unique_sources(self) -> list[Value]:
method accept (line 251) | def accept(self, visitor: OpVisitor[T]) -> T:
class BaseAssign (line 255) | class BaseAssign(Op):
method __init__ (line 258) | def __init__(self, dest: Register, line: int = -1) -> None:
class Assign (line 263) | class Assign(BaseAssign):
method __init__ (line 268) | def __init__(self, dest: Register, src: Value, line: int = -1) -> None:
method sources (line 272) | def sources(self) -> list[Value]:
method stolen (line 275) | def stolen(self) -> list[Value]:
method accept (line 278) | def accept(self, visitor: OpVisitor[T]) -> T:
class AssignMulti (line 282) | class AssignMulti(BaseAssign):
method __init__ (line 295) | def __init__(self, dest: Register, src: list[Value], line: int = -1) -...
method sources (line 302) | def sources(self) -> list[Value]:
method stolen (line 305) | def stolen(self) -> list[Value]:
method accept (line 308) | def accept(self, visitor: OpVisitor[T]) -> T:
class ControlOp (line 312) | class ControlOp(Op):
method targets (line 315) | def targets(self) -> Sequence[BasicBlock]:
method set_target (line 319) | def set_target(self, i: int, new: BasicBlock) -> None:
class Goto (line 324) | class Goto(ControlOp):
method __init__ (line 329) | def __init__(self, label: BasicBlock, line: int = -1) -> None:
method targets (line 333) | def targets(self) -> Sequence[BasicBlock]:
method set_target (line 336) | def set_target(self, i: int, new: BasicBlock) -> None:
method __repr__ (line 340) | def __repr__(self) -> str:
method sources (line 343) | def sources(self) -> list[Value]:
method accept (line 346) | def accept(self, visitor: OpVisitor[T]) -> T:
class Branch (line 350) | class Branch(ControlOp):
method __init__ (line 366) | def __init__(
method targets (line 393) | def targets(self) -> Sequence[BasicBlock]:
method set_target (line 396) | def set_target(self, i: int, new: BasicBlock) -> None:
method sources (line 403) | def sources(self) -> list[Value]:
method invert (line 406) | def invert(self) -> None:
method accept (line 409) | def accept(self, visitor: OpVisitor[T]) -> T:
class Return (line 413) | class Return(ControlOp):
method __init__ (line 418) | def __init__(self, value: Value, line: int = -1) -> None:
method sources (line 422) | def sources(self) -> list[Value]:
method stolen (line 425) | def stolen(self) -> list[Value]:
method accept (line 428) | def accept(self, visitor: OpVisitor[T]) -> T:
class Unreachable (line 432) | class Unreachable(ControlOp):
method __init__ (line 450) | def __init__(self, line: int = -1) -> None:
method sources (line 453) | def sources(self) -> list[Value]:
method accept (line 456) | def accept(self, visitor: OpVisitor[T]) -> T:
class RegisterOp (line 460) | class RegisterOp(Op):
method __init__ (line 477) | def __init__(self, line: int) -> None:
method can_raise (line 481) | def can_raise(self) -> bool:
class IncRef (line 485) | class IncRef(RegisterOp):
method __init__ (line 490) | def __init__(self, src: Value, line: int = -1) -> None:
method sources (line 495) | def sources(self) -> list[Value]:
method accept (line 498) | def accept(self, visitor: OpVisitor[T]) -> T:
class DecRef (line 502) | class DecRef(RegisterOp):
method __init__ (line 511) | def __init__(self, src: Value, is_xdec: bool = False, line: int = -1) ...
method __repr__ (line 517) | def __repr__(self) -> str:
method sources (line 520) | def sources(self) -> list[Value]:
method accept (line 523) | def accept(self, visitor: OpVisitor[T]) -> T:
class Call (line 527) | class Call(RegisterOp):
method __init__ (line 533) | def __init__(self, fn: FuncDecl, args: Sequence[Value], line: int) -> ...
method sources (line 545) | def sources(self) -> list[Value]:
method accept (line 548) | def accept(self, visitor: OpVisitor[T]) -> T:
class MethodCall (line 552) | class MethodCall(RegisterOp):
method __init__ (line 555) | def __init__(self, obj: Value, method: str, args: list[Value], line: i...
method sources (line 573) | def sources(self) -> list[Value]:
method accept (line 576) | def accept(self, visitor: OpVisitor[T]) -> T:
class PrimitiveDescription (line 580) | class PrimitiveDescription:
method __init__ (line 590) | def __init__(
method __repr__ (line 628) | def __repr__(self) -> str:
class PrimitiveOp (line 632) | class PrimitiveOp(RegisterOp):
method __init__ (line 645) | def __init__(self, args: list[Value], desc: PrimitiveDescription, line...
method sources (line 651) | def sources(self) -> list[Value]:
method stolen (line 654) | def stolen(self) -> list[Value]:
method accept (line 662) | def accept(self, visitor: OpVisitor[T]) -> T:
class LoadErrorValue (line 666) | class LoadErrorValue(RegisterOp):
method __init__ (line 675) | def __init__(
method sources (line 686) | def sources(self) -> list[Value]:
method accept (line 689) | def accept(self, visitor: OpVisitor[T]) -> T:
class LoadLiteral (line 693) | class LoadLiteral(RegisterOp):
method __init__ (line 714) | def __init__(self, value: LiteralValue, rtype: RType) -> None:
method sources (line 718) | def sources(self) -> list[Value]:
method accept (line 721) | def accept(self, visitor: OpVisitor[T]) -> T:
class GetAttr (line 725) | class GetAttr(RegisterOp):
method __init__ (line 730) | def __init__(self, obj: Value, attr: str, line: int, *, borrow: bool =...
method sources (line 742) | def sources(self) -> list[Value]:
method accept (line 745) | def accept(self, visitor: OpVisitor[T]) -> T:
class SetAttr (line 749) | class SetAttr(RegisterOp):
method __init__ (line 757) | def __init__(self, obj: Value, attr: str, src: Value, line: int) -> None:
method mark_as_initializer (line 769) | def mark_as_initializer(self) -> None:
method sources (line 774) | def sources(self) -> list[Value]:
method stolen (line 777) | def stolen(self) -> list[Value]:
method accept (line 780) | def accept(self, visitor: OpVisitor[T]) -> T:
class LoadStatic (line 797) | class LoadStatic(RegisterOp):
method __init__ (line 811) | def __init__(
method sources (line 827) | def sources(self) -> list[Value]:
method accept (line 830) | def accept(self, visitor: OpVisitor[T]) -> T:
class InitStatic (line 834) | class InitStatic(RegisterOp):
method __init__ (line 842) | def __init__(
method sources (line 856) | def sources(self) -> list[Value]:
method accept (line 859) | def accept(self, visitor: OpVisitor[T]) -> T:
class TupleSet (line 863) | class TupleSet(RegisterOp):
method __init__ (line 868) | def __init__(self, items: list[Value], line: int) -> None:
method sources (line 882) | def sources(self) -> list[Value]:
method stolen (line 885) | def stolen(self) -> list[Value]:
method accept (line 888) | def accept(self, visitor: OpVisitor[T]) -> T:
class TupleGet (line 892) | class TupleGet(RegisterOp):
method __init__ (line 897) | def __init__(self, src: Value, index: int, line: int = -1, *, borrow: ...
method sources (line 906) | def sources(self) -> list[Value]:
method accept (line 909) | def accept(self, visitor: OpVisitor[T]) -> T:
class Cast (line 913) | class Cast(RegisterOp):
method __init__ (line 923) | def __init__(self, src: Value, typ: RType, line: int, *, borrow: bool ...
method sources (line 929) | def sources(self) -> list[Value]:
method stolen (line 932) | def stolen(self) -> list[Value]:
method accept (line 937) | def accept(self, visitor: OpVisitor[T]) -> T:
class Box (line 941) | class Box(RegisterOp):
method __init__ (line 950) | def __init__(self, src: Value, line: int = -1) -> None:
method sources (line 962) | def sources(self) -> list[Value]:
method stolen (line 965) | def stolen(self) -> list[Value]:
method accept (line 968) | def accept(self, visitor: OpVisitor[T]) -> T:
class Unbox (line 972) | class Unbox(RegisterOp):
method __init__ (line 979) | def __init__(self, src: Value, typ: RType, line: int) -> None:
method sources (line 988) | def sources(self) -> list[Value]:
method accept (line 991) | def accept(self, visitor: OpVisitor[T]) -> T:
class RaiseStandardError (line 995) | class RaiseStandardError(RegisterOp):
method __init__ (line 1014) | def __init__(self, class_name: str, value: str | Value | None, line: i...
method sources (line 1020) | def sources(self) -> list[Value]:
method accept (line 1023) | def accept(self, visitor: OpVisitor[T]) -> T:
class CallC (line 1031) | class CallC(RegisterOp):
method __init__ (line 1039) | def __init__(
method sources (line 1068) | def sources(self) -> list[Value]:
method stolen (line 1071) | def stolen(self) -> list[Value]:
method accept (line 1078) | def accept(self, visitor: OpVisitor[T]) -> T:
class Truncate (line 1082) | class Truncate(RegisterOp):
method __init__ (line 1093) | def __init__(self, src: Value, dst_type: RType, line: int = -1) -> None:
method sources (line 1099) | def sources(self) -> list[Value]:
method stolen (line 1102) | def stolen(self) -> list[Value]:
method accept (line 1105) | def accept(self, visitor: OpVisitor[T]) -> T:
class Extend (line 1109) | class Extend(RegisterOp):
method __init__ (line 1123) | def __init__(self, src: Value, dst_type: RType, signed: bool, line: in...
method sources (line 1130) | def sources(self) -> list[Value]:
method stolen (line 1133) | def stolen(self) -> list[Value]:
method accept (line 1136) | def accept(self, visitor: OpVisitor[T]) -> T:
class LoadGlobal (line 1140) | class LoadGlobal(RegisterOp):
method __init__ (line 1151) | def __init__(self, type: RType, identifier: str, line: int = -1, ann: ...
method sources (line 1157) | def sources(self) -> list[Value]:
method accept (line 1160) | def accept(self, visitor: OpVisitor[T]) -> T:
class IntOp (line 1164) | class IntOp(RegisterOp):
method __init__ (line 1206) | def __init__(self, type: RType, lhs: Value, rhs: Value, op: int, line:...
method sources (line 1213) | def sources(self) -> list[Value]:
method accept (line 1216) | def accept(self, visitor: OpVisitor[T]) -> T:
class ComparisonOp (line 1225) | class ComparisonOp(RegisterOp):
method __init__ (line 1269) | def __init__(self, lhs: Value, rhs: Value, op: int, line: int = -1) ->...
method sources (line 1276) | def sources(self) -> list[Value]:
method accept (line 1279) | def accept(self, visitor: OpVisitor[T]) -> T:
class FloatOp (line 1283) | class FloatOp(RegisterOp):
method __init__ (line 1302) | def __init__(self, lhs: Value, rhs: Value, op: int, line: int = -1) ->...
method sources (line 1309) | def sources(self) -> list[Value]:
method accept (line 1312) | def accept(self, visitor: OpVisitor[T]) -> T:
class FloatNeg (line 1321) | class FloatNeg(RegisterOp):
method __init__ (line 1326) | def __init__(self, src: Value, line: int = -1) -> None:
method sources (line 1331) | def sources(self) -> list[Value]:
method accept (line 1334) | def accept(self, visitor: OpVisitor[T]) -> T:
class FloatComparisonOp (line 1338) | class FloatComparisonOp(RegisterOp):
method __init__ (line 1352) | def __init__(self, lhs: Value, rhs: Value, op: int, line: int = -1) ->...
method sources (line 1359) | def sources(self) -> list[Value]:
method accept (line 1362) | def accept(self, visitor: OpVisitor[T]) -> T:
class LoadMem (line 1371) | class LoadMem(RegisterOp):
method __init__ (line 1381) | def __init__(self, type: RType, src: Value, line: int = -1) -> None:
method sources (line 1390) | def sources(self) -> list[Value]:
method accept (line 1393) | def accept(self, visitor: OpVisitor[T]) -> T:
class SetMem (line 1397) | class SetMem(Op):
method __init__ (line 1408) | def __init__(self, type: RType, dest: Value, src: Value, line: int = -...
method sources (line 1415) | def sources(self) -> list[Value]:
method stolen (line 1418) | def stolen(self) -> list[Value]:
method accept (line 1421) | def accept(self, visitor: OpVisitor[T]) -> T:
class GetElementPtr (line 1425) | class GetElementPtr(RegisterOp):
method __init__ (line 1434) | def __init__(self, src: Value, src_type: RType, field: str, line: int ...
method sources (line 1441) | def sources(self) -> list[Value]:
method accept (line 1444) | def accept(self, visitor: OpVisitor[T]) -> T:
class LoadAddress (line 1448) | class LoadAddress(RegisterOp):
method __init__ (line 1461) | def __init__(self, type: RType, src: str | Register | LoadStatic, line...
method sources (line 1466) | def sources(self) -> list[Value]:
method accept (line 1472) | def accept(self, visitor: OpVisitor[T]) -> T:
class KeepAlive (line 1476) | class KeepAlive(RegisterOp):
method __init__ (line 1503) | def __init__(self, src: list[Value], *, steal: bool = False) -> None:
method sources (line 1508) | def sources(self) -> list[Value]:
method stolen (line 1511) | def stolen(self) -> list[Value]:
method accept (line 1516) | def accept(self, visitor: OpVisitor[T]) -> T:
class Unborrow (line 1520) | class Unborrow(RegisterOp):
method __init__ (line 1547) | def __init__(self, src: Value, line: int = -1) -> None:
method sources (line 1553) | def sources(self) -> list[Value]:
method stolen (line 1556) | def stolen(self) -> list[Value]:
method accept (line 1559) | def accept(self, visitor: OpVisitor[T]) -> T:
class OpVisitor (line 1564) | class OpVisitor(Generic[T]):
method visit_goto (line 1568) | def visit_goto(self, op: Goto) -> T:
method visit_branch (line 1572) | def visit_branch(self, op: Branch) -> T:
method visit_return (line 1576) | def visit_return(self, op: Return) -> T:
method visit_unreachable (line 1580) | def visit_unreachable(self, op: Unreachable) -> T:
method visit_assign (line 1584) | def visit_assign(self, op: Assign) -> T:
method visit_assign_multi (line 1588) | def visit_assign_multi(self, op: AssignMulti) -> T:
method visit_load_error_value (line 1592) | def visit_load_error_value(self, op: LoadErrorValue) -> T:
method visit_load_literal (line 1596) | def visit_load_literal(self, op: LoadLiteral) -> T:
method visit_get_attr (line 1600) | def visit_get_attr(self, op: GetAttr) -> T:
method visit_set_attr (line 1604) | def visit_set_attr(self, op: SetAttr) -> T:
method visit_load_static (line 1608) | def visit_load_static(self, op: LoadStatic) -> T:
method visit_init_static (line 1612) | def visit_init_static(self, op: InitStatic) -> T:
method visit_tuple_get (line 1616) | def visit_tuple_get(self, op: TupleGet) -> T:
method visit_tuple_set (line 1620) | def visit_tuple_set(self, op: TupleSet) -> T:
method visit_inc_ref (line 1623) | def visit_inc_ref(self, op: IncRef) -> T:
method visit_dec_ref (line 1626) | def visit_dec_ref(self, op: DecRef) -> T:
method visit_call (line 1630) | def visit_call(self, op: Call) -> T:
method visit_method_call (line 1634) | def visit_method_call(self, op: MethodCall) -> T:
method visit_cast (line 1638) | def visit_cast(self, op: Cast) -> T:
method visit_box (line 1642) | def visit_box(self, op: Box) -> T:
method visit_unbox (line 1646) | def visit_unbox(self, op: Unbox) -> T:
method visit_raise_standard_error (line 1650) | def visit_raise_standard_error(self, op: RaiseStandardError) -> T:
method visit_call_c (line 1654) | def visit_call_c(self, op: CallC) -> T:
method visit_primitive_op (line 1658) | def visit_primitive_op(self, op: PrimitiveOp) -> T:
method visit_truncate (line 1662) | def visit_truncate(self, op: Truncate) -> T:
method visit_extend (line 1666) | def visit_extend(self, op: Extend) -> T:
method visit_load_global (line 1670) | def visit_load_global(self, op: LoadGlobal) -> T:
method visit_int_op (line 1674) | def visit_int_op(self, op: IntOp) -> T:
method visit_comparison_op (line 1678) | def visit_comparison_op(self, op: ComparisonOp) -> T:
method visit_float_op (line 1682) | def visit_float_op(self, op: FloatOp) -> T:
method visit_float_neg (line 1686) | def visit_float_neg(self, op: FloatNeg) -> T:
method visit_float_comparison_op (line 1690) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> T:
method visit_load_mem (line 1694) | def visit_load_mem(self, op: LoadMem) -> T:
method visit_set_mem (line 1698) | def visit_set_mem(self, op: SetMem) -> T:
method visit_get_element_ptr (line 1702) | def visit_get_element_ptr(self, op: GetElementPtr) -> T:
method visit_load_address (line 1706) | def visit_load_address(self, op: LoadAddress) -> T:
method visit_keep_alive (line 1710) | def visit_keep_alive(self, op: KeepAlive) -> T:
method visit_unborrow (line 1714) | def visit_unborrow(self, op: Unborrow) -> T:
class DeserMaps (line 1743) | class DeserMaps(NamedTuple):
FILE: mypyc/ir/pprint.py
class IRPrettyPrintVisitor (line 66) | class IRPrettyPrintVisitor(OpVisitor[str]):
method __init__ (line 69) | def __init__(self, names: dict[Value, str]) -> None:
method visit_goto (line 75) | def visit_goto(self, op: Goto) -> str:
method visit_branch (line 80) | def visit_branch(self, op: Branch) -> str:
method visit_return (line 94) | def visit_return(self, op: Return) -> str:
method visit_unreachable (line 97) | def visit_unreachable(self, op: Unreachable) -> str:
method visit_assign (line 100) | def visit_assign(self, op: Assign) -> str:
method visit_assign_multi (line 103) | def visit_assign_multi(self, op: AssignMulti) -> str:
method visit_load_error_value (line 106) | def visit_load_error_value(self, op: LoadErrorValue) -> str:
method visit_load_literal (line 109) | def visit_load_literal(self, op: LoadLiteral) -> str:
method visit_get_attr (line 128) | def visit_get_attr(self, op: GetAttr) -> str:
method borrow_prefix (line 131) | def borrow_prefix(self, op: Op) -> str:
method visit_set_attr (line 136) | def visit_set_attr(self, op: SetAttr) -> str:
method visit_load_static (line 145) | def visit_load_static(self, op: LoadStatic) -> str:
method visit_init_static (line 152) | def visit_init_static(self, op: InitStatic) -> str:
method visit_tuple_get (line 158) | def visit_tuple_get(self, op: TupleGet) -> str:
method visit_tuple_set (line 161) | def visit_tuple_set(self, op: TupleSet) -> str:
method visit_inc_ref (line 165) | def visit_inc_ref(self, op: IncRef) -> str:
method visit_dec_ref (line 172) | def visit_dec_ref(self, op: DecRef) -> str:
method visit_call (line 179) | def visit_call(self, op: Call) -> str:
method visit_method_call (line 188) | def visit_method_call(self, op: MethodCall) -> str:
method visit_cast (line 195) | def visit_cast(self, op: Cast) -> str:
method visit_box (line 198) | def visit_box(self, op: Box) -> str:
method visit_unbox (line 201) | def visit_unbox(self, op: Unbox) -> str:
method visit_raise_standard_error (line 204) | def visit_raise_standard_error(self, op: RaiseStandardError) -> str:
method visit_call_c (line 215) | def visit_call_c(self, op: CallC) -> str:
method visit_primitive_op (line 222) | def visit_primitive_op(self, op: PrimitiveOp) -> str:
method visit_truncate (line 241) | def visit_truncate(self, op: Truncate) -> str:
method visit_extend (line 244) | def visit_extend(self, op: Extend) -> str:
method visit_load_global (line 251) | def visit_load_global(self, op: LoadGlobal) -> str:
method visit_int_op (line 255) | def visit_int_op(self, op: IntOp) -> str:
method visit_comparison_op (line 258) | def visit_comparison_op(self, op: ComparisonOp) -> str:
method visit_float_op (line 269) | def visit_float_op(self, op: FloatOp) -> str:
method visit_float_neg (line 272) | def visit_float_neg(self, op: FloatNeg) -> str:
method visit_float_comparison_op (line 275) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> str:
method visit_load_mem (line 278) | def visit_load_mem(self, op: LoadMem) -> str:
method visit_set_mem (line 281) | def visit_set_mem(self, op: SetMem) -> str:
method visit_get_element_ptr (line 284) | def visit_get_element_ptr(self, op: GetElementPtr) -> str:
method visit_load_address (line 287) | def visit_load_address(self, op: LoadAddress) -> str:
method visit_keep_alive (line 298) | def visit_keep_alive(self, op: KeepAlive) -> str:
method visit_unborrow (line 307) | def visit_unborrow(self, op: Unborrow) -> str:
method format (line 312) | def format(self, fmt: str, *args: Any) -> str:
function format_registers (line 369) | def format_registers(func_ir: FuncIR, names: dict[Value, str]) -> list[s...
function format_blocks (line 384) | def format_blocks(
function format_func (line 435) | def format_func(fn: FuncIR, errors: Sequence[tuple[ErrorSource, str]] = ...
function format_modules (line 454) | def format_modules(modules: ModuleIRs) -> list[str]:
function generate_names_for_ir (line 463) | def generate_names_for_ir(args: list[Register], blocks: list[BasicBlock]...
FILE: mypyc/ir/rtypes.py
class RType (line 39) | class RType:
method accept (line 66) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method short_name (line 69) | def short_name(self) -> str:
method __str__ (line 72) | def __str__(self) -> str:
method __repr__ (line 75) | def __repr__(self) -> str:
method serialize (line 78) | def serialize(self) -> JsonDict | str:
function deserialize_type (line 82) | def deserialize_type(data: JsonDict | str, ctx: DeserMaps) -> RType:
class RTypeVisitor (line 108) | class RTypeVisitor(Generic[T]):
method visit_rprimitive (line 112) | def visit_rprimitive(self, typ: RPrimitive, /) -> T:
method visit_rinstance (line 116) | def visit_rinstance(self, typ: RInstance, /) -> T:
method visit_runion (line 120) | def visit_runion(self, typ: RUnion, /) -> T:
method visit_rtuple (line 124) | def visit_rtuple(self, typ: RTuple, /) -> T:
method visit_rstruct (line 128) | def visit_rstruct(self, typ: RStruct, /) -> T:
method visit_rarray (line 132) | def visit_rarray(self, typ: RArray, /) -> T:
method visit_rvoid (line 136) | def visit_rvoid(self, typ: RVoid, /) -> T:
class RVoid (line 140) | class RVoid(RType):
method accept (line 151) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method serialize (line 154) | def serialize(self) -> str:
method __eq__ (line 157) | def __eq__(self, other: object) -> bool:
method __hash__ (line 160) | def __hash__(self) -> int:
class RPrimitive (line 168) | class RPrimitive(RType):
method __init__ (line 185) | def __init__(
method accept (line 230) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method serialize (line 233) | def serialize(self) -> str:
method __repr__ (line 236) | def __repr__(self) -> str:
method __eq__ (line 239) | def __eq__(self, other: object) -> bool:
method __hash__ (line 242) | def __hash__(self) -> int:
function is_tagged (line 460) | def is_tagged(rtype: RType) -> bool:
function is_int_rprimitive (line 464) | def is_int_rprimitive(rtype: RType) -> bool:
function is_short_int_rprimitive (line 468) | def is_short_int_rprimitive(rtype: RType) -> bool:
function is_int16_rprimitive (line 472) | def is_int16_rprimitive(rtype: RType) -> rtype is RPrimitive if True els...
function is_int32_rprimitive (line 476) | def is_int32_rprimitive(rtype: RType) -> rtype is RPrimitive if True els...
function is_int64_rprimitive (line 482) | def is_int64_rprimitive(rtype: RType) -> bool:
function is_fixed_width_rtype (line 488) | def is_fixed_width_rtype(rtype: RType) -> TypeGuard[RPrimitive]:
function is_uint8_rprimitive (line 497) | def is_uint8_rprimitive(rtype: RType) -> TypeGuard[RPrimitive]:
function is_uint32_rprimitive (line 501) | def is_uint32_rprimitive(rtype: RType) -> bool:
function is_uint64_rprimitive (line 505) | def is_uint64_rprimitive(rtype: RType) -> bool:
function is_c_py_ssize_t_rprimitive (line 509) | def is_c_py_ssize_t_rprimitive(rtype: RType) -> bool:
function is_pointer_rprimitive (line 513) | def is_pointer_rprimitive(rtype: RType) -> bool:
function is_float_rprimitive (line 517) | def is_float_rprimitive(rtype: RType) -> bool:
function is_bool_rprimitive (line 521) | def is_bool_rprimitive(rtype: RType) -> bool:
function is_bit_rprimitive (line 525) | def is_bit_rprimitive(rtype: RType) -> bool:
function is_object_rprimitive (line 529) | def is_object_rprimitive(rtype: RType) -> bool:
function is_none_rprimitive (line 533) | def is_none_rprimitive(rtype: RType) -> bool:
function is_list_rprimitive (line 537) | def is_list_rprimitive(rtype: RType) -> bool:
function is_dict_rprimitive (line 541) | def is_dict_rprimitive(rtype: RType) -> bool:
function is_set_rprimitive (line 545) | def is_set_rprimitive(rtype: RType) -> bool:
function is_str_rprimitive (line 549) | def is_str_rprimitive(rtype: RType) -> bool:
function is_bytes_rprimitive (line 553) | def is_bytes_rprimitive(rtype: RType) -> bool:
function is_tuple_rprimitive (line 557) | def is_tuple_rprimitive(rtype: RType) -> bool:
function is_range_rprimitive (line 561) | def is_range_rprimitive(rtype: RType) -> bool:
function is_sequence_rprimitive (line 565) | def is_sequence_rprimitive(rtype: RType) -> bool:
class TupleNameVisitor (line 571) | class TupleNameVisitor(RTypeVisitor[str]):
method visit_rinstance (line 574) | def visit_rinstance(self, t: RInstance) -> str:
method visit_runion (line 577) | def visit_runion(self, t: RUnion) -> str:
method visit_rprimitive (line 580) | def visit_rprimitive(self, t: RPrimitive) -> str:
method visit_rtuple (line 598) | def visit_rtuple(self, t: RTuple) -> str:
method visit_rstruct (line 602) | def visit_rstruct(self, t: RStruct) -> str:
method visit_rarray (line 605) | def visit_rarray(self, t: RArray) -> str:
method visit_rvoid (line 608) | def visit_rvoid(self, t: RVoid) -> str:
class RTuple (line 612) | class RTuple(RType):
method __init__ (line 629) | def __init__(self, types: list[RType]) -> None:
method accept (line 642) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method __str__ (line 645) | def __str__(self) -> str:
method __repr__ (line 648) | def __repr__(self) -> str:
method __eq__ (line 651) | def __eq__(self, other: object) -> bool:
method __hash__ (line 654) | def __hash__(self) -> int:
method serialize (line 657) | def serialize(self) -> JsonDict:
method deserialize (line 662) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RTuple:
function compute_rtype_alignment (line 679) | def compute_rtype_alignment(typ: RType) -> int:
function compute_rtype_size (line 701) | def compute_rtype_size(typ: RType) -> int:
function compute_aligned_offsets_and_size (line 721) | def compute_aligned_offsets_and_size(types: list[RType]) -> tuple[list[i...
class RStruct (line 749) | class RStruct(RType):
method __init__ (line 752) | def __init__(self, name: str, names: list[str], types: list[RType]) ->...
method accept (line 763) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method __str__ (line 766) | def __str__(self) -> str:
method __repr__ (line 773) | def __repr__(self) -> str:
method __eq__ (line 779) | def __eq__(self, other: object) -> bool:
method __hash__ (line 787) | def __hash__(self) -> int:
method serialize (line 790) | def serialize(self) -> JsonDict:
method deserialize (line 794) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RStruct:
class RInstance (line 798) | class RInstance(RType):
method __init__ (line 816) | def __init__(self, class_ir: ClassIR) -> None:
method accept (line 823) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method struct_name (line 826) | def struct_name(self, names: NameGenerator) -> str:
method getter_index (line 829) | def getter_index(self, name: str) -> int:
method setter_index (line 832) | def setter_index(self, name: str) -> int:
method method_index (line 835) | def method_index(self, name: str) -> int:
method attr_type (line 838) | def attr_type(self, name: str) -> RType:
method __repr__ (line 841) | def __repr__(self) -> str:
method __eq__ (line 844) | def __eq__(self, other: object) -> bool:
method __hash__ (line 847) | def __hash__(self) -> int:
method serialize (line 850) | def serialize(self) -> str:
class RUnion (line 854) | class RUnion(RType):
method __init__ (line 859) | def __init__(self, items: list[RType]) -> None:
method make_simplified_union (line 866) | def make_simplified_union(items: list[RType]) -> RType:
method accept (line 883) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method __repr__ (line 886) | def __repr__(self) -> str:
method __str__ (line 889) | def __str__(self) -> str:
method __eq__ (line 893) | def __eq__(self, other: object) -> bool:
method __hash__ (line 896) | def __hash__(self) -> int:
method serialize (line 899) | def serialize(self) -> JsonDict:
method deserialize (line 904) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RUnion:
function flatten_nested_unions (line 909) | def flatten_nested_unions(types: list[RType]) -> list[RType]:
function optional_value_type (line 922) | def optional_value_type(rtype: RType) -> RType | None:
function is_optional_type (line 935) | def is_optional_type(rtype: RType) -> bool:
class RArray (line 940) | class RArray(RType):
method __init__ (line 947) | def __init__(self, item_type: RType, length: int) -> None:
method accept (line 953) | def accept(self, visitor: RTypeVisitor[T]) -> T:
method __str__ (line 956) | def __str__(self) -> str:
method __repr__ (line 959) | def __repr__(self) -> str:
method __eq__ (line 962) | def __eq__(self, other: object) -> bool:
method __hash__ (line 969) | def __hash__(self) -> int:
method serialize (line 972) | def serialize(self) -> JsonDict:
method deserialize (line 976) | def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> RArray:
function check_native_int_range (line 1029) | def check_native_int_range(rtype: RPrimitive, n: int) -> bool:
FILE: mypyc/irbuild/ast_helpers.py
function process_conditional (line 29) | def process_conditional(
function maybe_process_conditional_comparison (line 56) | def maybe_process_conditional_comparison(
function is_borrow_friendly_expr (line 103) | def is_borrow_friendly_expr(self: IRBuilder, expr: Expression) -> bool:
FILE: mypyc/irbuild/builder.py
class IRVisitor (line 138) | class IRVisitor(ExpressionVisitor[Value], StatementVisitor[None]):
class UnsupportedException (line 142) | class UnsupportedException(Exception):
class IRBuilder (line 149) | class IRBuilder:
method __init__ (line 174) | def __init__(
method set_module (line 249) | def set_module(self, module_name: str, module_path: str) -> None:
method accept (line 259) | def accept(self, node: Expression, *, can_borrow: bool = False) -> Val...
method accept (line 262) | def accept(self, node: Statement) -> None: ...
method accept (line 264) | def accept(self, node: Statement | Expression, *, can_borrow: bool = F...
method flush_keep_alives (line 295) | def flush_keep_alives(self) -> None:
method add (line 300) | def add(self, op: Op) -> Value:
method goto (line 303) | def goto(self, target: BasicBlock) -> None:
method activate_block (line 306) | def activate_block(self, block: BasicBlock) -> None:
method goto_and_activate (line 309) | def goto_and_activate(self, block: BasicBlock) -> None:
method self (line 312) | def self(self) -> Register:
method py_get_attr (line 315) | def py_get_attr(self, obj: Value, attr: str, line: int) -> Value:
method load_str (line 318) | def load_str(self, value: str) -> Value:
method load_bytes_from_str_literal (line 321) | def load_bytes_from_str_literal(self, value: str) -> Value:
method load_int (line 330) | def load_int(self, value: int) -> Value:
method load_float (line 333) | def load_float(self, value: float) -> Value:
method unary_op (line 336) | def unary_op(self, lreg: Value, expr_op: str, line: int) -> Value:
method binary_op (line 339) | def binary_op(self, lreg: Value, rreg: Value, expr_op: str, line: int)...
method coerce (line 342) | def coerce(self, src: Value, target_type: RType, line: int, force: boo...
method none_object (line 345) | def none_object(self) -> Value:
method none (line 348) | def none(self) -> Value:
method true (line 351) | def true(self) -> Value:
method false (line 354) | def false(self) -> Value:
method new_list_op (line 357) | def new_list_op(self, values: list[Value], line: int) -> Value:
method new_set_op (line 360) | def new_set_op(self, values: list[Value], line: int) -> Value:
method translate_is_op (line 363) | def translate_is_op(self, lreg: Value, rreg: Value, expr_op: str, line...
method py_call (line 366) | def py_call(
method add_bool_branch (line 376) | def add_bool_branch(self, value: Value, true: BasicBlock, false: Basic...
method load_native_type_object (line 379) | def load_native_type_object(self, fullname: str) -> Value:
method gen_method_call (line 382) | def gen_method_call(
method load_module (line 396) | def load_module(self, name: str) -> Value:
method call_c (line 399) | def call_c(self, desc: CFunctionDescription, args: list[Value], line: ...
method primitive_op (line 402) | def primitive_op(
method int_op (line 411) | def int_op(self, type: RType, lhs: Value, rhs: Value, op: int, line: i...
method compare_tuples (line 414) | def compare_tuples(self, lhs: Value, rhs: Value, op: str, line: int) -...
method builtin_len (line 417) | def builtin_len(self, val: Value, line: int) -> Value:
method new_tuple (line 420) | def new_tuple(self, items: list[Value], line: int) -> Value:
method add_to_non_ext_dict (line 425) | def add_to_non_ext_dict(
method gen_import (line 432) | def gen_import(self, id: str, line: int) -> None:
method check_if_module_loaded (line 443) | def check_if_module_loaded(
method get_module (line 457) | def get_module(self, module: str, line: int) -> Value:
method get_module_attr (line 463) | def get_module_attr(self, module: str, attr: str, line: int) -> Value:
method assign_if_null (line 475) | def assign_if_null(self, target: Register, get_val: Callable[[], Value...
method assign_if_bitmap_unset (line 484) | def assign_if_bitmap_unset(
method maybe_add_implicit_return (line 502) | def maybe_add_implicit_return(self) -> None:
method add_implicit_return (line 508) | def add_implicit_return(self) -> None:
method add_implicit_unreachable (line 514) | def add_implicit_unreachable(self) -> None:
method disallow_class_assignments (line 519) | def disallow_class_assignments(self, lvalues: list[Lvalue], line: int)...
method non_function_scope (line 534) | def non_function_scope(self) -> bool:
method top_level_fn_info (line 538) | def top_level_fn_info(self) -> FuncInfo | None:
method init_final_static (line 543) | def init_final_static(
method load_final_static (line 563) | def load_final_static(
method init_type_var (line 577) | def init_type_var(self, value: Value, name: str, line: int) -> None:
method load_type_var (line 582) | def load_type_var(self, name: str, line: int) -> Value:
method load_literal_value (line 592) | def load_literal_value(self, val: int | str | bytes | float | complex ...
method get_assignment_target (line 612) | def get_assignment_target(
method read (line 685) | def read(
method assign (line 708) | def assign(self, target: Register | AssignmentTarget, rvalue_reg: Valu...
method coerce_rvalue (line 743) | def coerce_rvalue(self, rvalue: Value, rtype: RType, line: int) -> Value:
method process_sequence_assignment (line 755) | def process_sequence_assignment(
method process_iterator_tuple_assignment_helper (line 780) | def process_iterator_tuple_assignment_helper(
method process_iterator_tuple_assignment (line 795) | def process_iterator_tuple_assignment(
method push_loop_stack (line 866) | def push_loop_stack(self, continue_block: BasicBlock, break_block: Bas...
method pop_loop_stack (line 871) | def pop_loop_stack(self) -> None:
method make_spill_target (line 874) | def make_spill_target(self, type: RType) -> AssignmentTarget:
method spill (line 881) | def spill(self, value: Value) -> AssignmentTarget:
method maybe_spill (line 888) | def maybe_spill(self, value: Value) -> Value | AssignmentTarget:
method maybe_spill_assignable (line 900) | def maybe_spill_assignable(self, value: Value) -> Register | Assignmen...
method extract_int (line 919) | def extract_int(self, e: Expression) -> int | None:
method get_sequence_type (line 927) | def get_sequence_type(self, expr: Expression) -> RType:
method get_sequence_type_from_type (line 930) | def get_sequence_type_from_type(self, target_type: Type) -> RType:
method get_dict_base_type (line 953) | def get_dict_base_type(self, expr: Expression) -> list[Instance]:
method get_dict_key_type (line 975) | def get_dict_key_type(self, expr: Expression) -> RType:
method get_dict_value_type (line 983) | def get_dict_value_type(self, expr: Expression) -> RType:
method get_dict_item_type (line 991) | def get_dict_item_type(self, expr: Expression) -> RType:
method _analyze_iterable_item_type (line 996) | def _analyze_iterable_item_type(self, expr: Expression) -> Type:
method is_native_module (line 1018) | def is_native_module(self, module: str) -> bool:
method is_native_ref_expr (line 1022) | def is_native_ref_expr(self, expr: RefExpr) -> bool:
method is_native_module_ref_expr (line 1025) | def is_native_module_ref_expr(self, expr: RefExpr) -> bool:
method is_synthetic_type (line 1028) | def is_synthetic_type(self, typ: TypeInfo) -> bool:
method get_final_ref (line 1032) | def get_final_ref(self, expr: MemberExpr) -> tuple[str, Var, bool] | N...
method emit_load_final (line 1063) | def emit_load_final(
method is_module_member_expr (line 1083) | def is_module_member_expr(self, expr: MemberExpr) -> bool:
method call_refexpr_with_args (line 1086) | def call_refexpr_with_args(
method shortcircuit_expr (line 1129) | def shortcircuit_expr(self, expr: OpExpr) -> Value:
method flatten_classes (line 1140) | def flatten_classes(self, arg: RefExpr | TupleExpr) -> list[ClassIR] |...
method enter (line 1163) | def enter(self, fn_info: FuncInfo | str = "") -> None:
method leave (line 1180) | def leave(self) -> tuple[list[Register], list[RuntimeArg], list[BasicB...
method enter_method (line 1192) | def enter_method(
method add_argument (line 1233) | def add_argument(self, var: str | Var, typ: RType, kind: ArgKind = ARG...
method lookup (line 1244) | def lookup(self, symbol: SymbolNode) -> SymbolTarget:
method add_local (line 1247) | def add_local(self, symbol: SymbolNode, typ: RType, is_arg: bool = Fal...
method add_local_reg (line 1262) | def add_local_reg(
method add_self_to_env (line 1271) | def add_self_to_env(self, cls: ClassIR) -> AssignmentTargetRegister:
method add_target (line 1278) | def add_target(self, symbol: SymbolNode, target: SymbolTarget) -> Symb...
method type_to_rtype (line 1282) | def type_to_rtype(self, typ: Type | None) -> RType:
method node_type (line 1285) | def node_type(self, node: Expression) -> RType:
method add_var_to_env_class (line 1294) | def add_var_to_env_class(
method is_builtin_ref_expr (line 1313) | def is_builtin_ref_expr(self, expr: RefExpr) -> bool:
method load_global (line 1317) | def load_global(self, expr: NameExpr) -> Value:
method load_global_str (line 1336) | def load_global_str(self, name: str, line: int) -> Value:
method load_globals_dict (line 1341) | def load_globals_dict(self) -> Value:
method load_module_attr_by_fullname (line 1344) | def load_module_attr_by_fullname(self, fullname: str, line: int) -> Va...
method is_native_attr_ref (line 1349) | def is_native_attr_ref(self, expr: MemberExpr) -> bool:
method mark_block_unreachable (line 1359) | def mark_block_unreachable(self) -> None:
method catch_errors (line 1368) | def catch_errors(self, line: int) -> Any:
method warning (line 1371) | def warning(self, msg: str, line: int) -> None:
method error (line 1374) | def error(self, msg: str, line: int) -> None:
method note (line 1377) | def note(self, msg: str, line: int) -> None:
method add_function (line 1380) | def add_function(self, func_ir: FuncIR, line: int) -> None:
function gen_arg_defaults (line 1389) | def gen_arg_defaults(builder: IRBuilder) -> None:
function remangle_redefinition_name (line 1432) | def remangle_redefinition_name(name: str) -> str:
function get_call_target_fullname (line 1443) | def get_call_target_fullname(ref: RefExpr) -> str:
function create_type_params (line 1452) | def create_type_params(
FILE: mypyc/irbuild/callable_class.py
function setup_callable_class (line 19) | def setup_callable_class(builder: IRBuilder) -> None:
function add_call_to_callable_class (line 81) | def add_call_to_callable_class(
function add_get_to_callable_class (line 108) | def add_get_to_callable_class(builder: IRBuilder, fn_info: FuncInfo) -> ...
function instantiate_callable_class (line 139) | def instantiate_callable_class(builder: IRBuilder, fn_info: FuncInfo) ->...
FILE: mypyc/irbuild/classdef.py
function transform_class_def (line 88) | def transform_class_def(builder: IRBuilder, cdef: ClassDef) -> None:
class ClassBuilder (line 202) | class ClassBuilder:
method __init__ (line 208) | def __init__(self, builder: IRBuilder, cdef: ClassDef) -> None:
method add_method (line 214) | def add_method(self, fdef: FuncDef) -> None:
method add_attr (line 218) | def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
method finalize (line 222) | def finalize(self, ir: ClassIR) -> None:
class NonExtClassBuilder (line 226) | class NonExtClassBuilder(ClassBuilder):
method __init__ (line 227) | def __init__(self, builder: IRBuilder, cdef: ClassDef) -> None:
method create_non_ext_info (line 231) | def create_non_ext_info(self) -> NonExtClassInfo:
method add_method (line 243) | def add_method(self, fdef: FuncDef) -> None:
method add_attr (line 246) | def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
method finalize (line 252) | def finalize(self, ir: ClassIR) -> None:
class ExtClassBuilder (line 277) | class ExtClassBuilder(ClassBuilder):
method __init__ (line 278) | def __init__(self, builder: IRBuilder, cdef: ClassDef) -> None:
method skip_attr_default (line 283) | def skip_attr_default(self, name: str, stmt: AssignmentStmt) -> bool:
method add_method (line 287) | def add_method(self, fdef: FuncDef) -> None:
method add_attr (line 290) | def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
method finalize (line 305) | def finalize(self, ir: ClassIR) -> None:
class DataClassBuilder (line 314) | class DataClassBuilder(ExtClassBuilder):
method __init__ (line 320) | def __init__(self, builder: IRBuilder, cdef: ClassDef) -> None:
method create_non_ext_info (line 324) | def create_non_ext_info(self) -> NonExtClassInfo:
method skip_attr_default (line 338) | def skip_attr_default(self, name: str, stmt: AssignmentStmt) -> bool:
method get_type_annotation (line 341) | def get_type_annotation(self, stmt: AssignmentStmt) -> TypeInfo | None:
method add_attr (line 349) | def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
method finalize (line 358) | def finalize(self, ir: ClassIR) -> None:
class AttrsClassBuilder (line 392) | class AttrsClassBuilder(DataClassBuilder):
method skip_attr_default (line 403) | def skip_attr_default(self, name: str, stmt: AssignmentStmt) -> bool:
method get_type_annotation (line 406) | def get_type_annotation(self, stmt: AssignmentStmt) -> TypeInfo | None:
function allocate_class (line 424) | def allocate_class(builder: IRBuilder, cdef: ClassDef) -> Value:
function make_generic_base_class (line 481) | def make_generic_base_class(
function populate_non_ext_bases (line 513) | def populate_non_ext_bases(builder: IRBuilder, cdef: ClassDef) -> Value:
function find_non_ext_metaclass (line 582) | def find_non_ext_metaclass(builder: IRBuilder, cdef: ClassDef, bases: Va...
function setup_non_ext_dict (line 603) | def setup_non_ext_dict(
function add_non_ext_class_attr_ann (line 635) | def add_non_ext_class_attr_ann(
function add_non_ext_class_attr (line 672) | def add_non_ext_class_attr(
function find_attr_initializers (line 699) | def find_attr_initializers(
function generate_attr_defaults_init (line 756) | def generate_attr_defaults_init(
function check_deletable_declaration (line 783) | def check_deletable_declaration(builder: IRBuilder, cl: ClassIR, line: i...
function create_ne_from_eq (line 803) | def create_ne_from_eq(builder: IRBuilder, cdef: ClassDef) -> None:
function gen_glue_ne_method (line 810) | def gen_glue_ne_method(builder: IRBuilder, cls: ClassIR, line: int) -> N...
function load_non_ext_class (line 850) | def load_non_ext_class(
function load_decorated_class (line 863) | def load_decorated_class(builder: IRBuilder, cdef: ClassDef, type_obj: V...
function cache_class_attrs (line 881) | def cache_class_attrs(
function create_mypyc_attrs_tuple (line 892) | def create_mypyc_attrs_tuple(builder: IRBuilder, ir: ClassIR, line: int)...
function add_dunders_to_non_ext_dict (line 900) | def add_dunders_to_non_ext_dict(
FILE: mypyc/irbuild/constant_fold.py
function constant_fold_expr (line 37) | def constant_fold_expr(builder: IRBuilder, expr: Expression) -> Constant...
function constant_fold_binary_op_extended (line 78) | def constant_fold_binary_op_extended(
FILE: mypyc/irbuild/context.py
class FuncInfo (line 12) | class FuncInfo:
method __init__ (line 15) | def __init__(
method namespaced_name (line 55) | def namespaced_name(self) -> str:
method is_generator (line 59) | def is_generator(self) -> bool:
method is_coroutine (line 63) | def is_coroutine(self) -> bool:
method callable_class (line 67) | def callable_class(self) -> ImplicitClass:
method callable_class (line 72) | def callable_class(self, cls: ImplicitClass) -> None:
method env_class (line 76) | def env_class(self) -> ClassIR:
method env_class (line 81) | def env_class(self, ir: ClassIR) -> None:
method generator_class (line 85) | def generator_class(self) -> GeneratorClass:
method generator_class (line 90) | def generator_class(self, cls: GeneratorClass) -> None:
method curr_env_reg (line 94) | def curr_env_reg(self) -> Value:
class ImplicitClass (line 99) | class ImplicitClass:
method __init__ (line 108) | def __init__(self, ir: ClassIR) -> None:
method self_reg (line 121) | def self_reg(self) -> Value:
method self_reg (line 126) | def self_reg(self, reg: Value) -> None:
method curr_env_reg (line 130) | def curr_env_reg(self) -> Value:
method curr_env_reg (line 135) | def curr_env_reg(self, reg: Value) -> None:
method prev_env_reg (line 139) | def prev_env_reg(self) -> Value:
method prev_env_reg (line 144) | def prev_env_reg(self, reg: Value) -> None:
class GeneratorClass (line 148) | class GeneratorClass(ImplicitClass):
method __init__ (line 151) | def __init__(self, ir: ClassIR) -> None:
method next_label_reg (line 171) | def next_label_reg(self) -> Value:
method next_label_reg (line 176) | def next_label_reg(self, reg: Value) -> None:
method next_label_target (line 180) | def next_label_target(self) -> AssignmentTarget:
method next_label_target (line 185) | def next_label_target(self, target: AssignmentTarget) -> None:
FILE: mypyc/irbuild/env_class.py
function setup_env_class (line 30) | def setup_env_class(builder: IRBuilder) -> ClassIR:
function finalize_env_class (line 59) | def finalize_env_class(builder: IRBuilder) -> None:
function instantiate_env_class (line 72) | def instantiate_env_class(builder: IRBuilder) -> Value:
function load_env_registers (line 94) | def load_env_registers(builder: IRBuilder) -> None:
function load_outer_env (line 114) | def load_outer_env(
function load_outer_envs (line 139) | def load_outer_envs(builder: IRBuilder, base: ImplicitClass) -> None:
function num_bitmap_args (line 162) | def num_bitmap_args(builder: IRBuilder, args: list[Argument]) -> int:
function add_args_to_env (line 171) | def add_args_to_env(
function setup_func_for_recursive_call (line 194) | def setup_func_for_recursive_call(builder: IRBuilder, fdef: FuncDef, bas...
function is_free_variable (line 221) | def is_free_variable(builder: IRBuilder, symbol: SymbolNode) -> bool:
FILE: mypyc/irbuild/expression.py
function transform_name_expr (line 112) | def transform_name_expr(builder: IRBuilder, expr: NameExpr) -> Value:
function transform_member_expr (line 197) | def transform_member_expr(builder: IRBuilder, expr: MemberExpr) -> Value:
function check_instance_attribute_access_through_class (line 237) | def check_instance_attribute_access_through_class(
function transform_super_expr (line 269) | def transform_super_expr(builder: IRBuilder, o: SuperExpr) -> Value:
function transform_call_expr (line 295) | def transform_call_expr(builder: IRBuilder, expr: CallExpr) -> Value:
function translate_call (line 326) | def translate_call(builder: IRBuilder, expr: CallExpr, callee: Expressio...
function translate_refexpr_call (line 340) | def translate_refexpr_call(builder: IRBuilder, expr: CallExpr, callee: R...
function translate_method_call (line 348) | def translate_method_call(builder: IRBuilder, expr: CallExpr, callee: Me...
function call_classmethod (line 407) | def call_classmethod(builder: IRBuilder, ir: ClassIR, expr: CallExpr, ca...
function translate_super_method_call (line 433) | def translate_super_method_call(builder: IRBuilder, expr: CallExpr, call...
function translate_cast_expr (line 499) | def translate_cast_expr(builder: IRBuilder, expr: CastExpr) -> Value:
function transform_unary_expr (line 508) | def transform_unary_expr(builder: IRBuilder, expr: UnaryExpr) -> Value:
function transform_op_expr (line 516) | def transform_op_expr(builder: IRBuilder, expr: OpExpr) -> Value:
function try_optimize_int_floor_divide (line 552) | def try_optimize_int_floor_divide(expr: OpExpr) -> OpExpr:
function transform_index_expr (line 563) | def transform_index_expr(builder: IRBuilder, expr: IndexExpr) -> Value:
function try_constant_fold (line 585) | def try_constant_fold(builder: IRBuilder, expr: Expression) -> Value | N...
function try_gen_slice_op (line 596) | def try_gen_slice_op(builder: IRBuilder, base: Value, index: SliceExpr) ...
function transform_conditional_expr (line 634) | def transform_conditional_expr(builder: IRBuilder, expr: ConditionalExpr...
function set_literal_values (line 659) | def set_literal_values(builder: IRBuilder, items: Sequence[Expression]) ...
function precompute_set_literal (line 685) | def precompute_set_literal(builder: IRBuilder, s: SetExpr) -> Value | None:
function transform_comparison_expr (line 702) | def transform_comparison_expr(builder: IRBuilder, e: ComparisonExpr) -> ...
function translate_is_none (line 817) | def translate_is_none(builder: IRBuilder, expr: Expression, negated: boo...
function transform_basic_comparison (line 822) | def transform_basic_comparison(
function translate_printf_style_formatting (line 866) | def translate_printf_style_formatting(
function transform_int_expr (line 898) | def transform_int_expr(builder: IRBuilder, expr: IntExpr) -> Value:
function transform_float_expr (line 902) | def transform_float_expr(builder: IRBuilder, expr: FloatExpr) -> Value:
function transform_complex_expr (line 906) | def transform_complex_expr(builder: IRBuilder, expr: ComplexExpr) -> Value:
function transform_str_expr (line 910) | def transform_str_expr(builder: IRBuilder, expr: StrExpr) -> Value:
function transform_bytes_expr (line 914) | def transform_bytes_expr(builder: IRBuilder, expr: BytesExpr) -> Value:
function transform_ellipsis (line 918) | def transform_ellipsis(builder: IRBuilder, o: EllipsisExpr) -> Value:
function transform_list_expr (line 925) | def transform_list_expr(builder: IRBuilder, expr: ListExpr) -> Value:
function _visit_list_display (line 929) | def _visit_list_display(builder: IRBuilder, items: list[Expression], lin...
function transform_tuple_expr (line 935) | def transform_tuple_expr(builder: IRBuilder, expr: TupleExpr) -> Value:
function _visit_tuple_display (line 957) | def _visit_tuple_display(builder: IRBuilder, expr: TupleExpr) -> Value:
function transform_dict_expr (line 963) | def transform_dict_expr(builder: IRBuilder, expr: DictExpr) -> Value:
function transform_set_expr (line 974) | def transform_set_expr(builder: IRBuilder, expr: SetExpr) -> Value:
function _visit_display (line 980) | def _visit_display(
function transform_list_comprehension (line 1017) | def transform_list_comprehension(builder: IRBuilder, o: ListComprehensio...
function transform_set_comprehension (line 1021) | def transform_set_comprehension(builder: IRBuilder, o: SetComprehension)...
function transform_dictionary_comprehension (line 1025) | def transform_dictionary_comprehension(builder: IRBuilder, o: Dictionary...
function transform_slice_expr (line 1044) | def transform_slice_expr(builder: IRBuilder, expr: SliceExpr) -> Value:
function transform_generator_expr (line 1055) | def transform_generator_expr(builder: IRBuilder, o: GeneratorExpr) -> Va...
function transform_assignment_expr (line 1060) | def transform_assignment_expr(builder: IRBuilder, o: AssignmentExpr) -> ...
function transform_math_literal (line 1067) | def transform_math_literal(builder: IRBuilder, fullname: str) -> Value |...
FILE: mypyc/irbuild/for_helpers.py
function for_loop_helper (line 75) | def for_loop_helper(
function for_loop_helper_with_index (line 137) | def for_loop_helper_with_index(
function sequence_from_generator_preallocate_helper (line 186) | def sequence_from_generator_preallocate_helper(
function translate_list_comprehension (line 234) | def translate_list_comprehension(builder: IRBuilder, gen: GeneratorExpr)...
function raise_error_if_contains_unreachable_names (line 260) | def raise_error_if_contains_unreachable_names(
function translate_set_comprehension (line 280) | def translate_set_comprehension(builder: IRBuilder, gen: GeneratorExpr) ...
function comprehension_helper (line 295) | def comprehension_helper(
function is_range_ref (line 362) | def is_range_ref(expr: RefExpr) -> bool:
function make_for_loop_generator (line 370) | def make_for_loop_generator(
class ForGenerator (line 521) | class ForGenerator:
method __init__ (line 524) | def __init__(
method need_cleanup (line 549) | def need_cleanup(self) -> bool:
method add_cleanup (line 553) | def add_cleanup(self, exit_block: BasicBlock) -> None:
method gen_condition (line 560) | def gen_condition(self) -> None:
method begin_body (line 563) | def begin_body(self) -> None:
method gen_step (line 566) | def gen_step(self) -> None:
method gen_cleanup (line 569) | def gen_cleanup(self) -> None:
method load_len (line 572) | def load_len(self, expr: Value | AssignmentTarget) -> Value:
class ForIterable (line 577) | class ForIterable(ForGenerator):
method need_cleanup (line 580) | def need_cleanup(self) -> bool:
method init (line 584) | def init(self, expr_reg: Value, target_type: RType) -> None:
method gen_condition (line 594) | def gen_condition(self) -> None:
method begin_body (line 604) | def begin_body(self) -> None:
method gen_step (line 614) | def gen_step(self) -> None:
method gen_cleanup (line 618) | def gen_cleanup(self) -> None:
class ForAsyncIterable (line 626) | class ForAsyncIterable(ForGenerator):
method init (line 629) | def init(self, expr_reg: Value, target_type: RType) -> None:
method gen_condition (line 641) | def gen_condition(self) -> None:
method begin_body (line 675) | def begin_body(self) -> None:
method gen_step (line 685) | def gen_step(self) -> None:
function unsafe_index (line 690) | def unsafe_index(builder: IRBuilder, target: Value, index: Value, line: ...
class ForSequence (line 701) | class ForSequence(ForGenerator):
method init (line 707) | def init(self, expr_reg: Value, target_type: RType, reverse: bool) -> ...
method gen_condition (line 723) | def gen_condition(self) -> None:
method begin_body (line 744) | def begin_body(self) -> None:
method gen_step (line 764) | def gen_step(self) -> None:
class ForDictionaryCommon (line 779) | class ForDictionaryCommon(ForGenerator):
method need_cleanup (line 798) | def need_cleanup(self) -> bool:
method init (line 803) | def init(self, expr_reg: Value, target_type: RType) -> None:
method gen_condition (line 817) | def gen_condition(self) -> None:
method gen_step (line 834) | def gen_step(self) -> None:
method gen_cleanup (line 848) | def gen_cleanup(self) -> None:
class ForDictionaryKeys (line 853) | class ForDictionaryKeys(ForDictionaryCommon):
method begin_body (line 859) | def begin_body(self) -> None:
class ForDictionaryValues (line 872) | class ForDictionaryValues(ForDictionaryCommon):
method begin_body (line 878) | def begin_body(self) -> None:
class ForDictionaryItems (line 891) | class ForDictionaryItems(ForDictionaryCommon):
method begin_body (line 897) | def begin_body(self) -> None:
class ForRange (line 921) | class ForRange(ForGenerator):
method init (line 924) | def init(self, start_reg: Value, end_reg: Value, step: int) -> None:
method gen_condition (line 943) | def gen_condition(self) -> None:
method gen_step (line 953) | def gen_step(self) -> None:
class ForInfiniteCounter (line 978) | class ForInfiniteCounter(ForGenerator):
method init (line 981) | def init(self) -> None:
method gen_step (line 989) | def gen_step(self) -> None:
method begin_body (line 1000) | def begin_body(self) -> None:
class ForEnumerate (line 1004) | class ForEnumerate(ForGenerator):
method need_cleanup (line 1007) | def need_cleanup(self) -> bool:
method init (line 1012) | def init(self, index1: Lvalue, index2: Lvalue, expr: Expression) -> None:
method gen_condition (line 1023) | def gen_condition(self) -> None:
method begin_body (line 1027) | def begin_body(self) -> None:
method gen_step (line 1031) | def gen_step(self) -> None:
method gen_cleanup (line 1035) | def gen_cleanup(self) -> None:
class ForZip (line 1040) | class ForZip(ForGenerator):
method need_cleanup (line 1043) | def need_cleanup(self) -> bool:
method init (line 1048) | def init(self, indexes: list[Lvalue], exprs: list[Expression]) -> None:
method gen_condition (line 1060) | def gen_condition(self) -> None:
method begin_body (line 1066) | def begin_body(self) -> None:
method gen_step (line 1070) | def gen_step(self) -> None:
method gen_cleanup (line 1074) | def gen_cleanup(self) -> None:
FILE: mypyc/irbuild/format_str_tokenizer.py
class FormatOp (line 32) | class FormatOp(Enum):
function generate_format_ops (line 47) | def generate_format_ops(specifiers: list[ConversionSpecifier]) -> list[F...
function tokenizer_printf_style (line 69) | def tokenizer_printf_style(format_str: str) -> tuple[list[str], list[For...
function tokenizer_format_call (line 96) | def tokenizer_format_call(format_str: str) -> tuple[list[str], list[Form...
function convert_format_expr_to_str (line 134) | def convert_format_expr_to_str(
function join_formatted_strings (line 163) | def join_formatted_strings(
function convert_format_expr_to_bytes (line 206) | def convert_format_expr_to_bytes(
function join_formatted_bytes (line 229) | def join_formatted_bytes(
FILE: mypyc/irbuild/function.py
function transform_func_def (line 99) | def transform_func_def(builder: IRBuilder, fdef: FuncDef) -> None:
function transform_overloaded_func_def (line 111) | def transform_overloaded_func_def(builder: IRBuilder, o: OverloadedFuncD...
function transform_decorator (line 117) | def transform_decorator(builder: IRBuilder, dec: Decorator) -> None:
function transform_lambda_expr (line 148) | def transform_lambda_expr(builder: IRBuilder, expr: LambdaExpr) -> Value:
function gen_func_item (line 174) | def gen_func_item(
function has_nested_func_self_reference (line 357) | def has_nested_func_self_reference(builder: IRBuilder, fitem: FuncItem) ...
function gen_func_ir (line 371) | def gen_func_ir(
function handle_ext_method (line 416) | def handle_ext_method(builder: IRBuilder, cdef: ClassDef, fdef: FuncDef)...
function handle_non_ext_method (line 483) | def handle_non_ext_method(
function calculate_arg_defaults (line 514) | def calculate_arg_defaults(
function gen_func_ns (line 541) | def gen_func_ns(builder: IRBuilder) -> str:
function load_decorated_func (line 550) | def load_decorated_func(builder: IRBuilder, fdef: FuncDef, orig_func_reg...
function is_decorated (line 572) | def is_decorated(builder: IRBuilder, fdef: FuncDef) -> bool:
function gen_glue (line 576) | def gen_glue(
class ArgInfo (line 601) | class ArgInfo(NamedTuple):
function get_args (line 607) | def get_args(builder: IRBuilder, rt_args: Sequence[RuntimeArg], line: in...
function gen_glue_method (line 622) | def gen_glue_method(
function check_native_override (line 716) | def check_native_override(
function gen_glue_property (line 745) | def gen_glue_property(
function get_func_target (line 789) | def get_func_target(builder: IRBuilder, fdef: FuncDef) -> AssignmentTarget:
function load_type (line 805) | def load_type(builder: IRBuilder, typ: TypeInfo, line: int) -> Value:
function load_func (line 823) | def load_func(builder: IRBuilder, func_name: str, fullname: str | None, ...
function generate_singledispatch_dispatch_function (line 839) | def generate_singledispatch_dispatch_function(
function gen_calls_to_correct_impl (line 874) | def gen_calls_to_correct_impl(
function gen_dispatch_func_ir (line 922) | def gen_dispatch_func_ir(
function generate_dispatch_glue_native_function (line 950) | def generate_dispatch_glue_native_function(
function generate_singledispatch_callable_class_ctor (line 969) | def generate_singledispatch_callable_class_ctor(builder: IRBuilder) -> N...
function add_register_method_to_callable_class (line 984) | def add_register_method_to_callable_class(builder: IRBuilder, fn_info: F...
function load_singledispatch_registry (line 993) | def load_singledispatch_registry(builder: IRBuilder, dispatch_func_obj: ...
function singledispatch_main_func_name (line 997) | def singledispatch_main_func_name(orig_name: str) -> str:
function maybe_insert_into_registry_dict (line 1001) | def maybe_insert_into_registry_dict(builder: IRBuilder, fitem: FuncDef) ...
function get_native_impl_ids (line 1050) | def get_native_impl_ids(builder: IRBuilder, singledispatch_func: FuncDef...
function gen_property_getter_ir (line 1058) | def gen_property_getter_ir(
function gen_property_setter_ir (line 1077) | def gen_property_setter_ir(
FILE: mypyc/irbuild/generator.py
function gen_generator_func (line 52) | def gen_generator_func(builder: IRBuilder) -> None:
function instantiate_generator_class (line 60) | def instantiate_generator_class(builder: IRBuilder) -> Value:
function setup_generator_class (line 83) | def setup_generator_class(builder: IRBuilder) -> ClassIR:
function create_switch_for_generator_class (line 95) | def create_switch_for_generator_class(builder: IRBuilder) -> None:
function populate_switch_for_generator_class (line 102) | def populate_switch_for_generator_class(builder: IRBuilder) -> None:
function add_raise_exception_blocks_to_generator_class (line 117) | def add_raise_exception_blocks_to_generator_class(builder: IRBuilder, li...
function add_methods_to_generator_class (line 140) | def add_methods_to_generator_class(
function add_helper_to_generator_class (line 158) | def add_helper_to_generator_class(
function add_iter_to_generator_class (line 187) | def add_iter_to_generator_class(builder: IRBuilder, fn_info: FuncInfo) -...
function add_next_to_generator_class (line 193) | def add_next_to_generator_class(
function add_send_to_generator_class (line 210) | def add_send_to_generator_class(
function add_throw_to_generator_class (line 228) | def add_throw_to_generator_class(
function add_close_to_generator_class (line 255) | def add_close_to_generator_class(builder: IRBuilder, fn_info: FuncInfo) ...
function add_await_to_generator_class (line 309) | def add_await_to_generator_class(builder: IRBuilder, fn_info: FuncInfo) ...
function setup_env_for_generator_class (line 315) | def setup_env_for_generator_class(builder: IRBuilder) -> None:
FILE: mypyc/irbuild/ll_builder.py
class LowLevelIRBuilder (line 223) | class LowLevelIRBuilder:
method __init__ (line 240) | def __init__(self, errors: Errors | None, options: CompilerOptions) ->...
method set_module (line 251) | def set_module(self, module_name: str, module_path: str) -> None:
method add (line 258) | def add(self, op: Op) -> Value:
method goto (line 264) | def goto(self, target: BasicBlock) -> None:
method activate_block (line 269) | def activate_block(self, block: BasicBlock) -> None:
method goto_and_activate (line 277) | def goto_and_activate(self, block: BasicBlock) -> None:
method keep_alive (line 282) | def keep_alive(self, values: list[Value], *, steal: bool = False) -> N...
method push_error_handler (line 285) | def push_error_handler(self, handler: BasicBlock | None) -> None:
method pop_error_handler (line 288) | def pop_error_handler(self) -> BasicBlock | None:
method self (line 291) | def self(self) -> Register:
method flush_keep_alives (line 298) | def flush_keep_alives(self) -> None:
method box (line 305) | def box(self, src: Value) -> Value:
method unbox_or_cast (line 313) | def unbox_or_cast(
method coerce (line 323) | def coerce(
method coerce_int_to_fixed_width (line 428) | def coerce_int_to_fixed_width(self, src: Value, target_type: RType, li...
method coerce_short_int_to_fixed_width (line 512) | def coerce_short_int_to_fixed_width(self, src: Value, target_type: RTy...
method coerce_fixed_width_to_int (line 520) | def coerce_fixed_width_to_int(self, src: Value, line: int) -> Value:
method coerce_nullable (line 575) | def coerce_nullable(self, src: Value, target_type: RType, line: int) -...
method get_attr (line 602) | def get_attr(
method union_get_attr (line 622) | def union_get_attr(
method py_get_attr (line 632) | def py_get_attr(self, obj: Value, attr: str, line: int) -> Value:
method isinstance_helper (line 642) | def isinstance_helper(self, obj: Value, class_irs: list[ClassIR], line...
method get_type_of_obj (line 655) | def get_type_of_obj(self, obj: Value, line: int) -> Value:
method type_is_op (line 661) | def type_is_op(self, obj: Value, type_obj: Value, line: int) -> Value:
method isinstance_native (line 665) | def isinstance_native(self, obj: Value, class_ir: ClassIR, line: int) ...
method _construct_varargs (line 692) | def _construct_varargs(
method py_call (line 883) | def py_call(
method _py_vector_call (line 915) | def _py_vector_call(
method _vectorcall_keywords (line 953) | def _vectorcall_keywords(self, arg_names: Sequence[str | None] | None)...
method py_method_call (line 964) | def py_method_call(
method _py_vector_method_call (line 991) | def _py_vector_method_call(
method call (line 1032) | def call(
method native_args_to_positional (line 1054) | def native_args_to_positional(
method gen_method_call (line 1149) | def gen_method_call(
method union_method_call (line 1208) | def union_method_call(
method none (line 1233) | def none(self) -> Value:
method true (line 1237) | def true(self) -> Value:
method false (line 1241) | def false(self) -> Value:
method none_object (line 1245) | def none_object(self) -> Value:
method load_int (line 1249) | def load_int(self, value: int) -> Value:
method load_float (line 1256) | def load_float(self, value: float) -> Value:
method load_str (line 1260) | def load_str(self, value: str) -> Value:
method load_bytes (line 1268) | def load_bytes(self, value: bytes) -> Value:
method load_complex (line 1272) | def load_complex(self, value: complex) -> Value:
method load_static_checked (line 1276) | def load_static_checked(
method load_module (line 1296) | def load_module(self, name: str) -> Value:
method get_native_type (line 1299) | def get_native_type(self, cls: ClassIR) -> Value:
method load_native_type_object (line 1304) | def load_native_type_object(self, fullname: str) -> Value:
method binary_op (line 1310) | def binary_op(self, lreg: Value, rreg: Value, op: str, line: int) -> V...
method dunder_op (line 1428) | def dunder_op(self, lreg: Value, rreg: Value | None, op: str, line: in...
method check_tagged_short_int (line 1461) | def check_tagged_short_int(self, val: Value, line: int, negated: bool ...
method compare_strings (line 1473) | def compare_strings(self, lhs: Value, rhs: Value, op: str, line: int) ...
method compare_bytes (line 1500) | def compare_bytes(self, lhs: Value, rhs: Value, op: str, line: int) ->...
method compare_tuples (line 1505) | def compare_tuples(self, lhs: Value, rhs: Value, op: str, line: int = ...
method translate_instance_contains (line 1551) | def translate_instance_contains(self, inst: Value, item: Value, op: st...
method bool_bitwise_op (line 1559) | def bool_bitwise_op(self, lreg: Value, rreg: Value, op: str, line: int...
method bool_comparison_op (line 1570) | def bool_comparison_op(self, lreg: Value, rreg: Value, op: str, line: ...
method unary_not (line 1574) | def unary_not(self, value: Value, line: int) -> Value:
method unary_op (line 1578) | def unary_op(self, value: Value, expr_op: str, line: int) -> Value:
method make_dict (line 1624) | def make_dict(self, key_value_pairs: Sequence[DictEntry], line: int) -...
method new_list_op_with_length (line 1651) | def new_list_op_with_length(self, length: Value, line: int) -> Value:
method new_list_op (line 1665) | def new_list_op(self, values: list[Value], line: int) -> Value:
method new_set_op (line 1686) | def new_set_op(self, values: list[Value], line: int) -> Value:
method setup_rarray (line 1689) | def setup_rarray(
method shortcircuit_helper (line 1699) | def shortcircuit_helper(
method bool_value (line 1733) | def bool_value(self, value: Value) -> Value:
method add_bool_branch (line 1798) | def add_bool_branch(self, value: Value, true: BasicBlock, false: Basic...
method call_c (line 1825) | def call_c(
method matching_call_c (line 1901) | def matching_call_c(
method primitive_op (line 1929) | def primitive_op(
method matching_primitive_op (line 1997) | def matching_primitive_op(
method int_op (line 2026) | def int_op(self, type: RType, lhs: Value, rhs: Value, op: int, line: i...
method float_op (line 2038) | def float_op(self, lhs: Value, rhs: Value, op: str, line: int) -> Value:
method float_mod (line 2067) | def float_mod(self, lhs: Value, rhs: Value, line: int) -> Value:
method compare_floats (line 2091) | def compare_floats(self, lhs: Value, rhs: Value, op: int, line: int) -...
method fixed_width_int_op (line 2094) | def fixed_width_int_op(
method check_for_zero_division (line 2149) | def check_for_zero_division(self, rhs: Value, type: RType, line: int) ...
method inline_fixed_width_divide (line 2162) | def inline_fixed_width_divide(self, type: RType, lhs: Value, rhs: Valu...
method inline_fixed_width_mod (line 2181) | def inline_fixed_width_mod(self, type: RType, lhs: Value, rhs: Value, ...
method is_same_native_int_signs (line 2199) | def is_same_native_int_signs(self, type: RType, a: Value, b: Value, li...
method is_same_float_signs (line 2204) | def is_same_float_signs(self, a: Value, b: Value, line: int) -> Value:
method comparison_op (line 2209) | def comparison_op(self, lhs: Value, rhs: Value, op: int, line: int) ->...
method builtin_len (line 2212) | def builtin_len(self, val: Value, line: int, use_pyssize_t: bool = Fal...
method new_tuple (line 2261) | def new_tuple(self, items: list[Value], line: int) -> Value:
method new_tuple_with_length (line 2265) | def new_tuple_with_length(self, length: Value, line: int) -> Value:
method int_to_float (line 2279) | def int_to_float(self, n: Value, line: int) -> Value:
method decompose_union_helper (line 2284) | def decompose_union_helper(
method translate_special_method_call (line 2347) | def translate_special_method_call(
method translate_eq_cmp (line 2370) | def translate_eq_cmp(self, lreg: Value, rreg: Value, expr_op: str, lin...
method translate_is_op (line 2404) | def translate_is_op(self, lreg: Value, rreg: Value, expr_op: str, line...
method _create_dict (line 2415) | def _create_dict(self, keys: list[Value], values: list[Value], line: i...
method error (line 2427) | def error(self, msg: str, line: int) -> None:
function num_positional_args (line 2432) | def num_positional_args(arg_values: list[Value], arg_kinds: list[ArgKind...
FILE: mypyc/irbuild/main.py
function build_ir (line 52) | def build_ir(
function transform_mypy_file (line 117) | def transform_mypy_file(builder: IRBuilder, mypyfile: MypyFile) -> None:
FILE: mypyc/irbuild/mapper.py
class Mapper (line 52) | class Mapper:
method __init__ (line 62) | def __init__(self, group_map: dict[str, str | None]) -> None:
method type_to_rtype (line 68) | def type_to_rtype(self, typ: Type | None) -> RType:
method get_arg_rtype (line 159) | def get_arg_rtype(self, typ: Type, kind: ArgKind) -> RType:
method fdef_to_sig (line 167) | def fdef_to_sig(self, fdef: FuncDef, strict_dunders_typing: bool) -> F...
method is_native_module (line 216) | def is_native_module(self, module: str) -> bool:
method is_native_ref_expr (line 220) | def is_native_ref_expr(self, expr: RefExpr) -> bool:
method is_native_module_ref_expr (line 228) | def is_native_module_ref_expr(self, expr: RefExpr) -> bool:
FILE: mypyc/irbuild/match.py
class MatchVisitor (line 53) | class MatchVisitor(TraverserVisitor):
method __init__ (line 63) | def __init__(self, builder: IRBuilder, match_node: MatchStmt) -> None:
method build_match_body (line 73) | def build_match_body(self, index: int) -> None:
method visit_match_stmt (line 89) | def visit_match_stmt(self, m: MatchStmt) -> None:
method visit_value_pattern (line 101) | def visit_value_pattern(self, pattern: ValuePattern) -> None:
method visit_or_pattern (line 110) | def visit_or_pattern(self, pattern: OrPattern) -> None:
method visit_class_pattern (line 127) | def visit_class_pattern(self, pattern: ClassPattern) -> None:
method visit_as_pattern (line 194) | def visit_as_pattern(self, pattern: AsPattern) -> None:
method visit_singleton_pattern (line 208) | def visit_singleton_pattern(self, pattern: SingletonPattern) -> None:
method visit_mapping_pattern (line 220) | def visit_mapping_pattern(self, pattern: MappingPattern) -> None:
method visit_sequence_pattern (line 262) | def visit_sequence_pattern(self, seq_pattern: SequencePattern) -> None:
method bind_as_pattern (line 320) | def bind_as_pattern(self, value: Value, new_block: bool = False) -> None:
method enter_subpattern (line 335) | def enter_subpattern(self, subject: Value) -> Generator[None]:
function prep_sequence_pattern (line 342) | def prep_sequence_pattern(
FILE: mypyc/irbuild/nonlocalcontrol.py
class NonlocalControl (line 29) | class NonlocalControl:
method gen_break (line 42) | def gen_break(self, builder: IRBuilder, line: int) -> None:
method gen_continue (line 46) | def gen_continue(self, builder: IRBuilder, line: int) -> None:
method gen_return (line 50) | def gen_return(self, builder: IRBuilder, value: Value, line: int) -> N...
class BaseNonlocalControl (line 54) | class BaseNonlocalControl(NonlocalControl):
method gen_break (line 57) | def gen_break(self, builder: IRBuilder, line: int) -> None:
method gen_continue (line 60) | def gen_continue(self, builder: IRBuilder, line: int) -> None:
method gen_return (line 63) | def gen_return(self, builder: IRBuilder, value: Value, line: int) -> N...
class LoopNonlocalControl (line 67) | class LoopNonlocalControl(NonlocalControl):
method __init__ (line 70) | def __init__(
method gen_break (line 77) | def gen_break(self, builder: IRBuilder, line: int) -> None:
method gen_continue (line 80) | def gen_continue(self, builder: IRBuilder, line: int) -> None:
method gen_return (line 83) | def gen_return(self, builder: IRBuilder, value: Value, line: int) -> N...
class GeneratorNonlocalControl (line 87) | class GeneratorNonlocalControl(BaseNonlocalControl):
method gen_return (line 90) | def gen_return(self, builder: IRBuilder, value: Value, line: int) -> N...
class CleanupNonlocalControl (line 116) | class CleanupNonlocalControl(NonlocalControl):
method __init__ (line 119) | def __init__(self, outer: NonlocalControl) -> None:
method gen_cleanup (line 123) | def gen_cleanup(self, builder: IRBuilder, line: int) -> None: ...
method gen_break (line 125) | def gen_break(self, builder: IRBuilder, line: int) -> None:
method gen_continue (line 129) | def gen_continue(self, builder: IRBuilder, line: int) -> None:
method gen_return (line 133) | def gen_return(self, builder: IRBuilder, value: Value, line: int) -> N...
class TryFinallyNonlocalControl (line 138) | class TryFinallyNonlocalControl(NonlocalControl):
method __init__ (line 141) | def __init__(self, target: BasicBlock) -> None:
method gen_break (line 145) | def gen_break(self, builder: IRBuilder, line: int) -> None:
method gen_continue (line 148) | def gen_continue(self, builder: IRBuilder, line: int) -> None:
method gen_return (line 151) | def gen_return(self, builder: IRBuilder, value: Value, line: int) -> N...
class ExceptNonlocalControl (line 165) | class ExceptNonlocalControl(CleanupNonlocalControl):
method __init__ (line 172) | def __init__(self, outer: NonlocalControl, saved: Value | AssignmentTa...
method gen_cleanup (line 176) | def gen_cleanup(self, builder: IRBuilder, line: int) -> None:
class FinallyNonlocalControl (line 180) | class FinallyNonlocalControl(CleanupNonlocalControl):
method __init__ (line 187) | def __init__(self, outer: NonlocalControl, saved: Value) -> None:
method gen_cleanup (line 191) | def gen_cleanup(self, builder: IRBuilder, line: int) -> None:
FILE: mypyc/irbuild/prebuildvisitor.py
class PreBuildVisitor (line 22) | class PreBuildVisitor(ExtendedTraverserVisitor):
method __init__ (line 37) | def __init__(
method visit (line 85) | def visit(self, o: Node) -> bool:
method visit_block (line 90) | def visit_block(self, block: Block) -> None:
method visit_decorator (line 95) | def visit_decorator(self, dec: Decorator) -> None:
method visit_func_def (line 122) | def visit_func_def(self, fdef: FuncDef) -> None:
method visit_lambda_expr (line 127) | def visit_lambda_expr(self, expr: LambdaExpr) -> None:
method visit_func (line 130) | def visit_func(self, func: FuncItem) -> None:
method visit_import (line 147) | def visit_import(self, imp: Import) -> None:
method visit_name_expr (line 155) | def visit_name_expr(self, expr: NameExpr) -> None:
method visit_var (line 159) | def visit_var(self, var: Var) -> None:
method visit_symbol_node (line 162) | def visit_symbol_node(self, symbol: SymbolNode) -> None:
method is_parent (line 191) | def is_parent(self, fitem: FuncItem, child: FuncItem) -> bool:
method add_free_variable (line 199) | def add_free_variable(self, symbol: SymbolNode) -> None:
FILE: mypyc/irbuild/prepare.py
function build_type_map (line 67) | def build_type_map(
function is_from_module (line 143) | def is_from_module(node: SymbolNode, module: MypyFile) -> bool:
function load_type_map (line 147) | def load_type_map(mapper: Mapper, modules: list[MypyFile], deser_ctx: De...
function get_module_func_defs (line 163) | def get_module_func_defs(module: MypyFile) -> Iterable[FuncDef]:
function prepare_func_def (line 175) | def prepare_func_def(
function prepare_method_def (line 193) | def prepare_method_def(
function is_valid_multipart_property_def (line 227) | def is_valid_multipart_property_def(prop: OverloadedFuncDef) -> bool:
function can_subclass_builtin (line 245) | def can_subclass_builtin(builtin_base: str) -> bool:
function prepare_class_def (line 260) | def prepare_class_def(
function prepare_methods_and_attributes (line 344) | def prepare_methods_and_attributes(
function prepare_implicit_property_accessors (line 392) | def prepare_implicit_property_accessors(
function add_property_methods_for_attribute_if_needed (line 411) | def add_property_methods_for_attribute_if_needed(
function add_getter_declaration (line 442) | def add_getter_declaration(
function add_setter_declaration (line 454) | def add_setter_declaration(
function prepare_init_method (line 467) | def prepare_init_method(cdef: ClassDef, ir: ClassIR, module_name: str, m...
function prepare_non_ext_class_def (line 497) | def prepare_non_ext_class_def(
class SingledispatchInfo (line 531) | class SingledispatchInfo(NamedTuple):
function find_singledispatch_register_impls (line 536) | def find_singledispatch_register_impls(
class SingledispatchVisitor (line 546) | class SingledispatchVisitor(TraverserVisitor):
method __init__ (line 549) | def __init__(self, errors: Errors) -> None:
method visit_decorator (line 560) | def visit_decorator(self, dec: Decorator) -> None:
class RegisteredImpl (line 602) | class RegisteredImpl(NamedTuple):
function get_singledispatch_register_call_info (line 607) | def get_singledispatch_register_call_info(
function registered_impl_from_possible_register_call (line 639) | def registered_impl_from_possible_register_call(
FILE: mypyc/irbuild/specialize.py
function _apply_specialization (line 116) | def _apply_specialization(
function apply_function_specialization (line 132) | def apply_function_specialization(
function apply_method_specialization (line 139) | def apply_method_specialization(
function specialize_function (line 147) | def specialize_function(
function translate_globals (line 165) | def translate_globals(builder: IRBuilder, expr: CallExpr, callee: RefExp...
function translate_builtins_with_unary_dunder (line 179) | def translate_builtins_with_unary_dunder(
function translate_len (line 202) | def translate_len(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -...
function dict_methods_fast_path (line 222) | def dict_methods_fast_path(builder: IRBuilder, expr: CallExpr, callee: R...
function translate_list_from_generator_call (line 253) | def translate_list_from_generator_call(
function translate_tuple_from_generator_call (line 278) | def translate_tuple_from_generator_call(
function translate_set_from_generator_call (line 303) | def translate_set_from_generator_call(
function faster_min_max (line 322) | def faster_min_max(builder: IRBuilder, expr: CallExpr, callee: RefExpr) ...
function translate_safe_generator_call (line 359) | def translate_safe_generator_call(
function translate_any_call (line 396) | def translate_any_call(builder: IRBuilder, expr: CallExpr, callee: RefEx...
function translate_all_call (line 407) | def translate_all_call(builder: IRBuilder, expr: CallExpr, callee: RefEx...
function any_all_helper (line 423) | def any_all_helper(
function translate_sum_call (line 450) | def translate_sum_call(builder: IRBuilder, expr: CallExpr, callee: RefEx...
function translate_dataclasses_field_call (line 492) | def translate_dataclasses_field_call(
function translate_next_call (line 506) | def translate_next_call(builder: IRBuilder, expr: CallExpr, callee: RefE...
function translate_isinstance (line 550) | def translate_isinstance(builder: IRBuilder, expr: CallExpr, callee: Ref...
function translate_dict_setdefault (line 576) | def translate_dict_setdefault(builder: IRBuilder, expr: CallExpr, callee...
function translate_str_format (line 622) | def translate_str_format(builder: IRBuilder, expr: CallExpr, callee: Ref...
function translate_fstring (line 642) | def translate_fstring(builder: IRBuilder, expr: CallExpr, callee: RefExp...
function str_encode_fast_path (line 692) | def str_encode_fast_path(builder: IRBuilder, expr: CallExpr, callee: Ref...
function translate_i64 (line 744) | def translate_i64(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -...
function translate_i32 (line 764) | def translate_i32(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -...
function translate_i16 (line 788) | def translate_i16(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -...
function translate_u8 (line 809) | def translate_u8(builder: IRBuilder, expr: CallExpr, callee: RefExpr) ->...
function truncate_literal (line 830) | def truncate_literal(value: Value, rtype: RPrimitive) -> Value:
function translate_int (line 847) | def translate_int(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -...
function translate_bool (line 863) | def translate_bool(builder: IRBuilder, expr: CallExpr, callee: RefExpr) ...
function translate_float (line 872) | def translate_float(builder: IRBuilder, expr: CallExpr, callee: RefExpr)...
function translate_ord (line 884) | def translate_ord(builder: IRBuilder, expr: CallExpr, callee: RefExpr) -...
FILE: mypyc/irbuild/statement.py
function transform_block (line 126) | def transform_block(builder: IRBuilder, block: Block) -> None:
function transform_expression_stmt (line 147) | def transform_expression_stmt(builder: IRBuilder, stmt: ExpressionStmt) ...
function transform_return_stmt (line 157) | def transform_return_stmt(builder: IRBuilder, stmt: ReturnStmt) -> None:
function transform_assignment_stmt (line 166) | def transform_assignment_stmt(builder: IRBuilder, stmt: AssignmentStmt) ...
function is_simple_lvalue (line 229) | def is_simple_lvalue(expr: Expression) -> bool:
function transform_operator_assignment_stmt (line 233) | def transform_operator_assignment_stmt(builder: IRBuilder, stmt: Operato...
function import_globals_id_and_name (line 258) | def import_globals_id_and_name(module_id: str, as_name: str | None) -> t...
function transform_import (line 277) | def transform_import(builder: IRBuilder, node: Import) -> None:
function transform_import_from (line 347) | def transform_import_from(builder: IRBuilder, node: ImportFrom) -> None:
function transform_import_all (line 381) | def transform_import_all(builder: IRBuilder, node: ImportAll) -> None:
function transform_if_stmt (line 387) | def transform_if_stmt(builder: IRBuilder, stmt: IfStmt) -> None:
function transform_while_stmt (line 405) | def transform_while_stmt(builder: IRBuilder, s: WhileStmt) -> None:
function transform_for_stmt (line 430) | def transform_for_stmt(builder: IRBuilder, s: ForStmt) -> None:
function transform_break_stmt (line 443) | def transform_break_stmt(builder: IRBuilder, node: BreakStmt) -> None:
function transform_continue_stmt (line 447) | def transform_continue_stmt(builder: IRBuilder, node: ContinueStmt) -> N...
function transform_raise_stmt (line 451) | def transform_raise_stmt(builder: IRBuilder, s: RaiseStmt) -> None:
function transform_try_except (line 462) | def transform_try_except(
function transform_try_except_stmt (line 547) | def transform_try_except_stmt(builder: IRBuilder, t: TryStmt) -> None:
function try_finally_try (line 566) | def try_finally_try(
function try_finally_entry_blocks (line 587) | def try_finally_entry_blocks(
function try_finally_body (line 617) | def try_finally_body(
function try_finally_resolve_control (line 632) | def try_finally_resolve_control(
function transform_try_finally_stmt (line 676) | def transform_try_finally_stmt(
function transform_try_stmt (line 713) | def transform_try_stmt(builder: IRBuilder, t: TryStmt) -> None:
function get_sys_exc_info (line 736) | def get_sys_exc_info(builder: IRBuilder) -> list[Value]:
function transform_with (line 741) | def transform_with(
function transform_with_stmt (line 825) | def transform_with_stmt(builder: IRBuilder, o: WithStmt) -> None:
function transform_assert_stmt (line 838) | def transform_assert_stmt(builder: IRBuilder, a: AssertStmt) -> None:
function transform_del_stmt (line 861) | def transform_del_stmt(builder: IRBuilder, o: DelStmt) -> None:
function transform_del_item (line 865) | def transform_del_item(builder: IRBuilder, target: AssignmentTarget, lin...
function emit_yield (line 898) | def emit_yield(builder: IRBuilder, val: Value, line: int) -> Value:
function emit_yield_from_or_await (line 918) | def emit_yield_from_or_await(
function emit_await (line 1003) | def emit_await(builder: IRBuilder, val: Value, line: int) -> Value:
function transform_yield_expr (line 1007) | def transform_yield_expr(builder: IRBuilder, expr: YieldExpr) -> Value:
function transform_yield_from_expr (line 1018) | def transform_yield_from_expr(builder: IRBuilder, o: YieldFromExpr) -> V...
function transform_await_expr (line 1022) | def transform_await_expr(builder: IRBuilder, o: AwaitExpr) -> Value:
function transform_match_stmt (line 1026) | def transform_match_stmt(builder: IRBuilder, m: MatchStmt) -> None:
function transform_type_alias_stmt (line 1030) | def transform_type_alias_stmt(builder: IRBuilder, s: TypeAliasStmt) -> N...
FILE: mypyc/irbuild/targets.py
class AssignmentTarget (line 7) | class AssignmentTarget:
class AssignmentTargetRegister (line 13) | class AssignmentTargetRegister(AssignmentTarget):
method __init__ (line 19) | def __init__(self, register: Register) -> None:
class AssignmentTargetIndex (line 24) | class AssignmentTargetIndex(AssignmentTarget):
method __init__ (line 27) | def __init__(self, base: Value, index: Value) -> None:
class AssignmentTargetAttr (line 35) | class AssignmentTargetAttr(AssignmentTarget):
method __init__ (line 38) | def __init__(self, obj: Value, attr: str, can_borrow: bool = False) ->...
class AssignmentTargetTuple (line 52) | class AssignmentTargetTuple(AssignmentTarget):
method __init__ (line 55) | def __init__(self, items: list[AssignmentTarget], star_idx: int | None...
FILE: mypyc/irbuild/util.py
function is_final_decorator (line 36) | def is_final_decorator(d: Expression) -> bool:
function is_trait_decorator (line 40) | def is_trait_decorator(d: Expression) -> bool:
function is_trait (line 44) | def is_trait(cdef: ClassDef) -> bool:
function dataclass_decorator_type (line 48) | def dataclass_decorator_type(d: Expression) -> str | None:
function is_dataclass_decorator (line 68) | def is_dataclass_decorator(d: Expression) -> bool:
function is_dataclass (line 72) | def is_dataclass(cdef: ClassDef) -> bool:
function dataclass_type (line 78) | def dataclass_type(cdef: ClassDef) -> str | None:
function get_mypyc_attr_literal (line 86) | def get_mypyc_attr_literal(e: Expression) -> Any:
function get_mypyc_attr_call (line 101) | def get_mypyc_attr_call(d: Expression) -> CallExpr | None:
function get_mypyc_attrs (line 112) | def get_mypyc_attrs(stmt: ClassDef | Decorator) -> dict[str, Any]:
function is_extension_class (line 128) | def is_extension_class(cdef: ClassDef) -> bool:
function get_func_def (line 150) | def get_func_def(op: FuncDef | Decorator | OverloadedFuncDef) -> FuncDef:
function concrete_arg_kind (line 159) | def concrete_arg_kind(kind: ArgKind) -> ArgKind:
function is_constant (line 169) | def is_constant(e: Expression) -> bool:
function bytes_from_str (line 193) | def bytes_from_str(value: str) -> bytes:
FILE: mypyc/irbuild/visitor.py
class IRBuilderVisitor (line 148) | class IRBuilderVisitor(IRVisitor):
method visit_mypy_file (line 165) | def visit_mypy_file(self, mypyfile: MypyFile) -> None:
method visit_class_def (line 168) | def visit_class_def(self, cdef: ClassDef) -> None:
method visit_import (line 171) | def visit_import(self, node: Import) -> None:
method visit_import_from (line 174) | def visit_import_from(self, node: ImportFrom) -> None:
method visit_import_all (line 177) | def visit_import_all(self, node: ImportAll) -> None:
method visit_func_def (line 180) | def visit_func_def(self, fdef: FuncDef) -> None:
method visit_overloaded_func_def (line 183) | def visit_overloaded_func_def(self, o: OverloadedFuncDef) -> None:
method visit_decorator (line 186) | def visit_decorator(self, dec: Decorator) -> None:
method visit_block (line 189) | def visit_block(self, block: Block) -> None:
method visit_expression_stmt (line 194) | def visit_expression_stmt(self, stmt: ExpressionStmt) -> None:
method visit_return_stmt (line 197) | def visit_return_stmt(self, stmt: ReturnStmt) -> None:
method visit_assignment_stmt (line 201) | def visit_assignment_stmt(self, stmt: AssignmentStmt) -> None:
method visit_operator_assignment_stmt (line 204) | def visit_operator_assignment_stmt(self, stmt: OperatorAssignmentStmt)...
method visit_if_stmt (line 207) | def visit_if_stmt(self, stmt: IfStmt) -> None:
method visit_while_stmt (line 210) | def visit_while_stmt(self, stmt: WhileStmt) -> None:
method visit_for_stmt (line 213) | def visit_for_stmt(self, stmt: ForStmt) -> None:
method visit_break_stmt (line 216) | def visit_break_stmt(self, stmt: BreakStmt) -> None:
method visit_continue_stmt (line 220) | def visit_continue_stmt(self, stmt: ContinueStmt) -> None:
method visit_raise_stmt (line 224) | def visit_raise_stmt(self, stmt: RaiseStmt) -> None:
method visit_try_stmt (line 228) | def visit_try_stmt(self, stmt: TryStmt) -> None:
method visit_with_stmt (line 231) | def visit_with_stmt(self, stmt: WithStmt) -> None:
method visit_pass_stmt (line 234) | def visit_pass_stmt(self, stmt: PassStmt) -> None:
method visit_assert_stmt (line 237) | def visit_assert_stmt(self, stmt: AssertStmt) -> None:
method visit_del_stmt (line 240) | def visit_del_stmt(self, stmt: DelStmt) -> None:
method visit_global_decl (line 243) | def visit_global_decl(self, stmt: GlobalDecl) -> None:
method visit_nonlocal_decl (line 247) | def visit_nonlocal_decl(self, stmt: NonlocalDecl) -> None:
method visit_match_stmt (line 251) | def visit_match_stmt(self, stmt: MatchStmt) -> None:
method visit_type_alias_stmt (line 254) | def visit_type_alias_stmt(self, stmt: TypeAliasStmt) -> None:
method visit_name_expr (line 259) | def visit_name_expr(self, expr: NameExpr) -> Value:
method visit_member_expr (line 262) | def visit_member_expr(self, expr: MemberExpr) -> Value:
method visit_super_expr (line 265) | def visit_super_expr(self, expr: SuperExpr) -> Value:
method visit_call_expr (line 268) | def visit_call_expr(self, expr: CallExpr) -> Value:
method visit_unary_expr (line 271) | def visit_unary_expr(self, expr: UnaryExpr) -> Value:
method visit_op_expr (line 274) | def visit_op_expr(self, expr: OpExpr) -> Value:
method visit_index_expr (line 277) | def visit_index_expr(self, expr: IndexExpr) -> Value:
method visit_conditional_expr (line 280) | def visit_conditional_expr(self, expr: ConditionalExpr) -> Value:
method visit_comparison_expr (line 283) | def visit_comparison_expr(self, expr: ComparisonExpr) -> Value:
method visit_int_expr (line 286) | def visit_int_expr(self, expr: IntExpr) -> Value:
method visit_float_expr (line 289) | def visit_float_expr(self, expr: FloatExpr) -> Value:
method visit_complex_expr (line 292) | def visit_complex_expr(self, expr: ComplexExpr) -> Value:
method visit_str_expr (line 295) | def visit_str_expr(self, expr: StrExpr) -> Value:
method visit_bytes_expr (line 298) | def visit_bytes_expr(self, expr: BytesExpr) -> Value:
method visit_ellipsis (line 301) | def visit_ellipsis(self, expr: EllipsisExpr) -> Value:
method visit_list_expr (line 304) | def visit_list_expr(self, expr: ListExpr) -> Value:
method visit_tuple_expr (line 307) | def visit_tuple_expr(self, expr: TupleExpr) -> Value:
method visit_dict_expr (line 310) | def visit_dict_expr(self, expr: DictExpr) -> Value:
method visit_set_expr (line 313) | def visit_set_expr(self, expr: SetExpr) -> Value:
method visit_list_comprehension (line 316) | def visit_list_comprehension(self, expr: ListComprehension) -> Value:
method visit_set_comprehension (line 319) | def visit_set_comprehension(self, expr: SetComprehension) -> Value:
method visit_dictionary_comprehension (line 322) | def visit_dictionary_comprehension(self, expr: DictionaryComprehension...
method visit_slice_expr (line 325) | def visit_slice_expr(self, expr: SliceExpr) -> Value:
method visit_generator_expr (line 328) | def visit_generator_expr(self, expr: GeneratorExpr) -> Value:
method visit_lambda_expr (line 331) | def visit_lambda_expr(self, expr: LambdaExpr) -> Value:
method visit_yield_expr (line 334) | def visit_yield_expr(self, expr: YieldExpr) -> Value:
method visit_yield_from_expr (line 337) | def visit_yield_from_expr(self, o: YieldFromExpr) -> Value:
method visit_await_expr (line 340) | def visit_await_expr(self, o: AwaitExpr) -> Value:
method visit_assignment_expr (line 343) | def visit_assignment_expr(self, o: AssignmentExpr) -> Value:
method visit_enum_call_expr (line 348) | def visit_enum_call_expr(self, o: EnumCallExpr) -> Value:
method visit__promote_expr (line 351) | def visit__promote_expr(self, o: PromoteExpr) -> Value:
method visit_namedtuple_expr (line 354) | def visit_namedtuple_expr(self, o: NamedTupleExpr) -> Value:
method visit_newtype_expr (line 357) | def visit_newtype_expr(self, o: NewTypeExpr) -> Value:
method visit_temp_node (line 360) | def visit_temp_node(self, o: TempNode) -> Value:
method visit_type_alias_expr (line 363) | def visit_type_alias_expr(self, o: TypeAliasExpr) -> Value:
method visit_type_application (line 366) | def visit_type_application(self, o: TypeApplication) -> Value:
method visit_type_var_expr (line 369) | def visit_type_var_expr(self, o: TypeVarExpr) -> Value:
method visit_paramspec_expr (line 372) | def visit_paramspec_expr(self, o: ParamSpecExpr) -> Value:
method visit_type_var_tuple_expr (line 375) | def visit_type_var_tuple_expr(self, o: TypeVarTupleExpr) -> Value:
method visit_typeddict_expr (line 378) | def visit_typeddict_expr(self, o: TypedDictExpr) -> Value:
method visit_reveal_expr (line 381) | def visit_reveal_expr(self, o: RevealExpr) -> Value:
method visit_var (line 384) | def visit_var(self, o: Var) -> None:
method visit_cast_expr (line 387) | def visit_cast_expr(self, o: CastExpr) -> Value:
method visit_assert_type_expr (line 390) | def visit_assert_type_expr(self, o: AssertTypeExpr) -> Value:
method visit_star_expr (line 393) | def visit_star_expr(self, o: StarExpr) -> Value:
method bail (line 398) | def bail(self, msg: str, line: int) -> NoReturn:
FILE: mypyc/irbuild/vtable.py
function compute_vtable (line 11) | def compute_vtable(cls: ClassIR) -> None:
function specialize_parent_vtable (line 57) | def specialize_parent_vtable(cls: ClassIR, parent: ClassIR) -> VTableEnt...
FILE: mypyc/lib-rt/CPy.h
type tuple_T3OOO (line 39) | typedef struct tuple_T3OOO {
type tuple_T3CIO (line 49) | typedef struct tuple_T3CIO {
type tuple_T4CIOO (line 59) | typedef struct tuple_T4CIOO {
function CPyVTableItem (line 75) | static inline CPyVTableItem *CPy_FindTraitVtable(PyTypeObject *trait, CP...
function CPy_FindAttrOffset (line 85) | static inline size_t CPy_FindAttrOffset(PyTypeObject *trait, CPyVTableIt...
function CPyTagged_CheckLong (line 163) | static inline int CPyTagged_CheckLong(CPyTagged x) {
function CPyTagged_CheckShort (line 167) | static inline int CPyTagged_CheckShort(CPyTagged x) {
function CPyTagged_INCREF (line 171) | static inline void CPyTagged_INCREF(CPyTagged x) {
function CPyTagged_DECREF (line 177) | static inline void CPyTagged_DECREF(CPyTagged x) {
function CPyTagged_XDECREF (line 183) | static inline void CPyTagged_XDECREF(CPyTagged x) {
function Py_ssize_t (line 189) | static inline Py_ssize_t CPyTagged_ShortAsSsize_t(CPyTagged x) {
function PyObject (line 194) | static inline PyObject *CPyTagged_LongAsObject(CPyTagged x) {
function CPyTagged (line 199) | static inline CPyTagged CPyTagged_FromObject(PyObject *object) {
function CPyTagged (line 211) | static inline CPyTagged CPyTagged_StealFromObject(PyObject *object) {
function CPyTagged (line 223) | static inline CPyTagged CPyTagged_BorrowFromObject(PyObject *object) {
function CPyTagged_TooBig (line 234) | static inline bool CPyTagged_TooBig(Py_ssize_t value) {
function CPyTagged_TooBigInt64 (line 240) | static inline bool CPyTagged_TooBigInt64(int64_t value) {
function CPyTagged_IsAddOverflow (line 246) | static inline bool CPyTagged_IsAddOverflow(CPyTagged sum, CPyTagged left...
function CPyTagged_IsSubtractOverflow (line 251) | static inline bool CPyTagged_IsSubtractOverflow(CPyTagged diff, CPyTagge...
function CPyTagged_IsMultiplyOverflow (line 256) | static inline bool CPyTagged_IsMultiplyOverflow(CPyTagged left, CPyTagge...
function CPyTagged_MaybeFloorDivideFault (line 261) | static inline bool CPyTagged_MaybeFloorDivideFault(CPyTagged left, CPyTa...
function CPyTagged_MaybeRemainderFault (line 265) | static inline bool CPyTagged_MaybeRemainderFault(CPyTagged left, CPyTagg...
function CPyTagged_IsEq (line 273) | static inline bool CPyTagged_IsEq(CPyTagged left, CPyTagged right) {
function CPyTagged_IsNe (line 281) | static inline bool CPyTagged_IsNe(CPyTagged left, CPyTagged right) {
function CPyTagged_IsLt (line 289) | static inline bool CPyTagged_IsLt(CPyTagged left, CPyTagged right) {
function CPyTagged_IsGe (line 297) | static inline bool CPyTagged_IsGe(CPyTagged left, CPyTagged right) {
function CPyTagged_IsGt (line 305) | static inline bool CPyTagged_IsGt(CPyTagged left, CPyTagged right) {
function CPyTagged_IsLe (line 313) | static inline bool CPyTagged_IsLe(CPyTagged left, CPyTagged right) {
function CPyLong_AsInt64 (line 321) | static inline int64_t CPyLong_AsInt64(PyObject *o) {
function CPyLong_AsInt32 (line 336) | static inline int32_t CPyLong_AsInt32(PyObject *o) {
function CPyLong_AsInt16 (line 362) | static inline int16_t CPyLong_AsInt16(PyObject *o) {
function CPyLong_AsUInt8 (line 392) | static inline uint8_t CPyLong_AsUInt8(PyObject *o) {
function CPyTagged (line 422) | static inline CPyTagged CPyTagged_Negate(CPyTagged num) {
function CPyTagged (line 432) | static inline CPyTagged CPyTagged_Add(CPyTagged left, CPyTagged right) {
function CPyTagged (line 443) | static inline CPyTagged CPyTagged_Subtract(CPyTagged left, CPyTagged rig...
function CPyTagged (line 454) | static inline CPyTagged CPyTagged_Multiply(CPyTagged left, CPyTagged rig...
function CPyTagged (line 464) | static inline CPyTagged CPyTagged_FloorDivide(CPyTagged left, CPyTagged ...
function CPyTagged (line 480) | static inline CPyTagged CPyTagged_Remainder(CPyTagged left, CPyTagged ri...
function CPyTagged (line 493) | static inline CPyTagged CPyTagged_Invert(CPyTagged num) {
function CPyTagged (line 501) | static inline CPyTagged CPyTagged_And(CPyTagged left, CPyTagged right) {
function CPyTagged (line 509) | static inline CPyTagged CPyTagged_Or(CPyTagged left, CPyTagged right) {
function CPyTagged (line 517) | static inline CPyTagged CPyTagged_Xor(CPyTagged left, CPyTagged right) {
function CPyTagged (line 525) | static inline CPyTagged CPyTagged_Rshift(CPyTagged left, CPyTagged right) {
function IsShortLshiftOverflow (line 542) | static inline bool IsShortLshiftOverflow(Py_ssize_t short_int, Py_ssize_...
function CPyTagged (line 547) | static inline CPyTagged CPyTagged_Lshift(CPyTagged left, CPyTagged right) {
function CPy_NOINLINE (line 586) | CPy_NOINLINE
function CPy_NOINLINE (line 591) | CPy_NOINLINE
function CPyTagged (line 596) | static inline CPyTagged CPyObject_Size(PyObject *obj) {
function CPy_LogGetAttr (line 610) | static void CPy_LogGetAttr(const char *method, PyObject *obj, PyObject *...
function CPyDict_CheckSize (line 703) | static inline char CPyDict_CheckSize(PyObject *dict, CPyTagged size) {
type ExcDummyStruct (line 771) | struct ExcDummyStruct { PyObject_HEAD }
type ExcDummyStruct (line 772) | struct ExcDummyStruct
function _CPy_ToDummy (line 775) | static inline void _CPy_ToDummy(PyObject **p) {
function PyObject (line 782) | static inline PyObject *_CPy_FromDummy(PyObject *p) {
function CPy_NoErrOccurred (line 788) | static int CPy_NoErrOccurred(void) {
function CPy_KeepPropagating (line 792) | static inline bool CPy_KeepPropagating(void) {
type CPyArg_Parser (line 824) | typedef struct CPyArg_Parser {
function CPyFloat_Check (line 841) | static inline bool CPyFloat_Check(PyObject *o) {
function CPy_TypeCheck (line 847) | static inline bool CPy_TypeCheck(PyObject *o, PyObject *type) {
FILE: mypyc/lib-rt/bytes_ops.c
function CPyBytes_Compare (line 11) | int CPyBytes_Compare(PyObject *left, PyObject *right) {
function CPyTagged (line 33) | CPyTagged CPyBytes_GetItem(PyObject *o, CPyTagged index) {
function PyObject (line 52) | PyObject *CPyBytes_Concat(PyObject *a, PyObject *b) {
function Py_ssize_t (line 70) | static inline Py_ssize_t Clamp(Py_ssize_t a, Py_ssize_t b, Py_ssize_t c) {
function PyObject (line 74) | PyObject *CPyBytes_GetSlice(PyObject *obj, CPyTagged start, CPyTagged en...
function PyObject (line 100) | PyObject *CPyBytes_Join(PyObject *sep, PyObject *iter) {
function PyObject (line 109) | PyObject *CPyBytes_Build(Py_ssize_t len, ...) {
function CPyTagged (line 146) | CPyTagged CPyBytes_Ord(PyObject *obj) {
FILE: mypyc/lib-rt/dict_ops.c
function PyObject (line 16) | PyObject *CPyDict_GetItem(PyObject *dict, PyObject *key) {
function PyObject (line 32) | PyObject *CPyDict_Build(Py_ssize_t size, ...) {
function PyObject (line 56) | PyObject *CPyDict_Get(PyObject *dict, PyObject *key, PyObject *fallback) {
function PyObject (line 70) | PyObject *CPyDict_GetWithNone(PyObject *dict, PyObject *key) {
function PyObject (line 74) | PyObject *CPyDict_SetDefault(PyObject *dict, PyObject *key, PyObject *va...
function PyObject (line 88) | PyObject *CPyDict_SetDefaultWithNone(PyObject *dict, PyObject *key) {
function PyObject (line 92) | PyObject *CPyDict_SetDefaultWithEmptyDatatype(PyObject *dict, PyObject *...
function CPyDict_SetItem (line 121) | int CPyDict_SetItem(PyObject *dict, PyObject *key, PyObject *value) {
function CPy_ObjectToStatus (line 129) | static inline int CPy_ObjectToStatus(PyObject *obj) {
function CPyDict_UpdateGeneral (line 138) | static int CPyDict_UpdateGeneral(PyObject *dict, PyObject *stuff) {
function CPyDict_UpdateInDisplay (line 148) | int CPyDict_UpdateInDisplay(PyObject *dict, PyObject *stuff) {
function CPyDict_Update (line 161) | int CPyDict_Update(PyObject *dict, PyObject *stuff) {
function CPyDict_UpdateFromAny (line 169) | int CPyDict_UpdateFromAny(PyObject *dict, PyObject *stuff) {
function PyObject (line 183) | PyObject *CPyDict_FromAny(PyObject *obj) {
function PyObject (line 206) | PyObject *CPyDict_KeysView(PyObject *dict) {
function PyObject (line 214) | PyObject *CPyDict_ValuesView(PyObject *dict) {
function PyObject (line 222) | PyObject *CPyDict_ItemsView(PyObject *dict) {
function PyObject (line 230) | PyObject *CPyDict_Keys(PyObject *dict) {
function PyObject (line 249) | PyObject *CPyDict_Values(PyObject *dict) {
function PyObject (line 268) | PyObject *CPyDict_Items(PyObject *dict) {
function CPyDict_Clear (line 287) | char CPyDict_Clear(PyObject *dict) {
function PyObject (line 300) | PyObject *CPyDict_Copy(PyObject *dict) {
function PyObject (line 308) | PyObject *CPyDict_GetKeysIter(PyObject *dict) {
function PyObject (line 317) | PyObject *CPyDict_GetItemsIter(PyObject *dict) {
function PyObject (line 333) | PyObject *CPyDict_GetValuesIter(PyObject *dict) {
function _CPyDict_FromNext (line 349) | static void _CPyDict_FromNext(tuple_T3CIO *ret, PyObject *dict_iter) {
function tuple_T3CIO (line 364) | tuple_T3CIO CPyDict_NextKey(PyObject *dict_or_iter, CPyTagged offset) {
function tuple_T3CIO (line 388) | tuple_T3CIO CPyDict_NextValue(PyObject *dict_or_iter, CPyTagged offset) {
function tuple_T4CIOO (line 412) | tuple_T4CIOO CPyDict_NextItem(PyObject *dict_or_iter, CPyTagged offset) {
function CPyMapping_Check (line 449) | int CPyMapping_Check(PyObject *obj) {
FILE: mypyc/lib-rt/exc_ops.c
function CPy_Raise (line 8) | void CPy_Raise(PyObject *exc) {
function CPy_Reraise (line 20) | void CPy_Reraise(void) {
function CPyErr_SetObjectAndTraceback (line 26) | void CPyErr_SetObjectAndTraceback(PyObject *type, PyObject *value, PyObj...
function tuple_T3OOO (line 43) | tuple_T3OOO CPy_CatchError(void) {
function CPy_RestoreExcInfo (line 79) | void CPy_RestoreExcInfo(tuple_T3OOO info) {
function CPy_ExceptionMatches (line 83) | bool CPy_ExceptionMatches(PyObject *type) {
function PyObject (line 87) | PyObject *CPy_GetExcValue(void) {
function _CPy_ToNone (line 93) | static inline void _CPy_ToNone(PyObject **p) {
function _CPy_GetExcInfo (line 100) | void _CPy_GetExcInfo(PyObject **p_type, PyObject **p_value, PyObject **p...
function tuple_T3OOO (line 107) | tuple_T3OOO CPy_GetExcInfo(void) {
function CPyError_OutOfMemory (line 113) | void CPyError_OutOfMemory(void) {
function PyObject (line 120) | static PyObject *CPy_GetTypeName(PyObject *type) {
function PyObject (line 148) | static PyObject *CPy_FormatTypeName(PyObject *value) {
function CPy_NOINLINE (line 186) | CPy_NOINLINE
function CPy_AddTraceback (line 208) | void CPy_AddTraceback(const char *filename, const char *funcname, int li...
function CPy_NOINLINE (line 246) | CPy_NOINLINE
function CPy_AttributeError (line 253) | void CPy_AttributeError(const char *filename, const char *funcname, cons...
FILE: mypyc/lib-rt/float_ops.c
function CPy_DomainError (line 9) | static double CPy_DomainError(void) {
function CPy_MathRangeError (line 14) | static double CPy_MathRangeError(void) {
function CPyFloat_FromTagged (line 19) | double CPyFloat_FromTagged(CPyTagged x) {
function CPyFloat_Sin (line 30) | double CPyFloat_Sin(double x) {
function CPyFloat_Cos (line 38) | double CPyFloat_Cos(double x) {
function CPyFloat_Tan (line 46) | double CPyFloat_Tan(double x) {
function CPyFloat_Sqrt (line 53) | double CPyFloat_Sqrt(double x) {
function CPyFloat_Exp (line 60) | double CPyFloat_Exp(double x) {
function CPyFloat_Log (line 68) | double CPyFloat_Log(double x) {
function CPyTagged (line 75) | CPyTagged CPyFloat_Floor(double x) {
function CPyTagged (line 80) | CPyTagged CPyFloat_Ceil(double x) {
function CPyFloat_IsInf (line 85) | bool CPyFloat_IsInf(double x) {
function CPyFloat_IsNaN (line 89) | bool CPyFloat_IsNaN(double x) {
function _float_div_mod (line 94) | static void
function CPyFloat_FloorDivide (line 132) | double CPyFloat_FloorDivide(double x, double y) {
function CPyFloat_Pow (line 143) | double CPyFloat_Pow(double x, double y) {
FILE: mypyc/lib-rt/generic_ops.c
function CPyTagged (line 8) | CPyTagged CPyObject_Hash(PyObject *o) {
function PyObject (line 23) | PyObject *CPyObject_GetAttr3(PyObject *v, PyObject *name, PyObject *defl)
function PyObject (line 34) | PyObject *CPyIter_Next(PyObject *iter)
function PyObject (line 39) | PyObject *CPyNumber_Power(PyObject *base, PyObject *index)
function PyObject (line 44) | PyObject *CPyNumber_InPlacePower(PyObject *base, PyObject *index)
function PyObject (line 49) | PyObject *CPyObject_GetSlice(PyObject *obj, CPyTagged start, CPyTagged e...
FILE: mypyc/lib-rt/getargs.c
function CPyArg_ParseTupleAndKeywords (line 73) | int
function vgetargskeywords (line 91) | static int
function skipitem (line 436) | static void
FILE: mypyc/lib-rt/getargsfast.c
function CPyArg_ParseStackAndKeywords (line 32) | int
function CPyArg_ParseStackAndKeywordsNoArgs (line 46) | int
function CPyArg_ParseStackAndKeywordsOneArg (line 65) | int
function CPyArg_ParseStackAndKeywordsSimple (line 87) | int
type CPyArg_Parser (line 116) | struct CPyArg_Parser
function parser_init (line 118) | static int
function PyObject (line 255) | static PyObject*
function vgetargskeywordsfast_impl (line 281) | static int
function skipitem_fast (line 558) | static void
FILE: mypyc/lib-rt/init.c
type ExcDummyStruct (line 4) | struct ExcDummyStruct
function CPy_Init (line 11) | void CPy_Init(void) {
FILE: mypyc/lib-rt/int_ops.c
function CPyTagged (line 18) | CPyTagged CPyTagged_FromSsize_t(Py_ssize_t value) {
function CPyTagged (line 29) | CPyTagged CPyTagged_FromVoidPtr(void *ptr) {
function CPyTagged (line 38) | CPyTagged CPyTagged_FromInt64(int64_t value) {
function PyObject (line 47) | PyObject *CPyTagged_AsObject(CPyTagged x) {
function PyObject (line 61) | PyObject *CPyTagged_StealAsObject(CPyTagged x) {
function Py_ssize_t (line 74) | Py_ssize_t CPyTagged_AsSsize_t(CPyTagged x) {
function CPy_NOINLINE (line 82) | CPy_NOINLINE
function CPy_NOINLINE (line 89) | CPy_NOINLINE
function CPy_NOINLINE (line 96) | CPy_NOINLINE
function CPyTagged (line 104) | CPyTagged CPyTagged_Negate_(CPyTagged num) {
function CPyTagged (line 115) | CPyTagged CPyTagged_Add_(CPyTagged left, CPyTagged right) {
function CPyTagged (line 128) | CPyTagged CPyTagged_Subtract_(CPyTagged left, CPyTagged right) {
function CPyTagged (line 141) | CPyTagged CPyTagged_Multiply_(CPyTagged left, CPyTagged right) {
function CPyTagged (line 154) | CPyTagged CPyTagged_FloorDivide_(CPyTagged left, CPyTagged right) {
function CPyTagged (line 169) | CPyTagged CPyTagged_Remainder_(CPyTagged left, CPyTagged right) {
function CPyTagged_IsEq_ (line 183) | bool CPyTagged_IsEq_(CPyTagged left, CPyTagged right) {
function CPyTagged_IsLt_ (line 199) | bool CPyTagged_IsLt_(CPyTagged left, CPyTagged right) {
function PyObject (line 211) | PyObject *CPyLong_FromStrWithBase(PyObject *o, CPyTagged base) {
function PyObject (line 216) | PyObject *CPyLong_FromStr(PyObject *o) {
function CPyTagged (line 221) | CPyTagged CPyTagged_FromFloat(double f) {
function PyObject (line 231) | PyObject *CPyBool_Str(bool b) {
function CPyLong_NormalizeUnsigned (line 235) | static void CPyLong_NormalizeUnsigned(PyLongObject *v) {
function CPyTagged (line 243) | static CPyTagged GenericBitwiseOp(CPyTagged a, CPyTagged b, char op) {
function digit (line 266) | static digit *GetIntDigits(CPyTagged n, Py_ssize_t *size, digit *buf) {
function CPyTagged (line 296) | CPyTagged CPyTagged_BitwiseLongOp_(CPyTagged a, CPyTagged b, char op) {
function CPyTagged (line 348) | CPyTagged CPyTagged_Invert_(CPyTagged num) {
function CPyTagged (line 359) | CPyTagged CPyTagged_Rshift_(CPyTagged left, CPyTagged right) {
function CPyTagged (line 374) | CPyTagged CPyTagged_Lshift_(CPyTagged left, CPyTagged right) {
function CPyLong_AsInt64_ (line 389) | int64_t CPyLong_AsInt64_(PyObject *o) {
function CPyInt64_Divide (line 403) | int64_t CPyInt64_Divide(int64_t x, int64_t y) {
function CPyInt64_Remainder (line 420) | int64_t CPyInt64_Remainder(int64_t x, int64_t y) {
function CPyLong_AsInt32_ (line 438) | int32_t CPyLong_AsInt32_(PyObject *o) {
function CPyInt32_Divide (line 456) | int32_t CPyInt32_Divide(int32_t x, int32_t y) {
function CPyInt32_Remainder (line 473) | int32_t CPyInt32_Remainder(int32_t x, int32_t y) {
function CPyInt32_Overflow (line 490) | void CPyInt32_Overflow() {
function CPyLong_AsInt16_ (line 495) | int16_t CPyLong_AsInt16_(PyObject *o) {
function CPyInt16_Divide (line 513) | int16_t CPyInt16_Divide(int16_t x, int16_t y) {
function CPyInt16_Remainder (line 530) | int16_t CPyInt16_Remainder(int16_t x, int16_t y) {
function CPyInt16_Overflow (line 547) | void CPyInt16_Overflow() {
function CPyLong_AsUInt8_ (line 552) | uint8_t CPyLong_AsUInt8_(PyObject *o) {
function CPyUInt8_Overflow (line 570) | void CPyUInt8_Overflow() {
function CPyTagged_TrueDivide (line 574) | double CPyTagged_TrueDivide(CPyTagged x, CPyTagged y) {
FILE: mypyc/lib-rt/list_ops.c
function PyObject (line 12) | PyObject *CPyList_Build(Py_ssize_t len, ...) {
function PyObject (line 32) | PyObject *CPyList_GetItemUnsafe(PyObject *list, CPyTagged index) {
function PyObject (line 39) | PyObject *CPyList_GetItemShort(PyObject *list, CPyTagged index) {
function PyObject (line 59) | PyObject *CPyList_GetItemShortBorrow(PyObject *list, CPyTagged index) {
function PyObject (line 77) | PyObject *CPyList_GetItem(PyObject *list, CPyTagged index) {
function PyObject (line 102) | PyObject *CPyList_GetItemBorrow(PyObject *list, CPyTagged index) {
function PyObject (line 125) | PyObject *CPyList_GetItemInt64(PyObject *list, int64_t index) {
function PyObject (line 146) | PyObject *CPyList_GetItemInt64Borrow(PyObject *list, int64_t index) {
function CPyList_SetItem (line 163) | bool CPyList_SetItem(PyObject *list, CPyTagged index, PyObject *value) {
function CPyList_SetItemInt64 (line 190) | bool CPyList_SetItemInt64(PyObject *list, int64_t index, PyObject *value) {
function CPyList_SetItemUnsafe (line 211) | bool CPyList_SetItemUnsafe(PyObject *list, CPyTagged index, PyObject *va...
function PyObject (line 222) | PyObject *CPyList_PopLast(PyObject *obj)
function PyObject (line 230) | PyObject *CPyList_Pop(PyObject *obj, CPyTagged index)
function CPyTagged (line 241) | CPyTagged CPyList_Count(PyObject *obj, PyObject *value)
function CPyList_Insert (line 246) | int CPyList_Insert(PyObject *list, CPyTagged index, PyObject *value)
function PyObject (line 258) | PyObject *CPyList_Extend(PyObject *o1, PyObject *o2) {
function Py_ssize_t (line 266) | static Py_ssize_t _CPyList_Find(PyObject *list, PyObject *obj) {
function CPyList_Remove (line 284) | int CPyList_Remove(PyObject *list, PyObject *obj) {
function CPyTagged (line 296) | CPyTagged CPyList_Index(PyObject *list, PyObject *obj) {
function PyObject (line 308) | PyObject *CPySequence_Multiply(PyObject *seq, CPyTagged t_size) {
function PyObject (line 316) | PyObject *CPySequence_RMultiply(CPyTagged t_size, PyObject *seq) {
function PyObject (line 320) | PyObject *CPyList_GetSlice(PyObject *obj, CPyTagged start, CPyTagged end) {
function CPySequence_Check (line 336) | int CPySequence_Check(PyObject *obj) {
FILE: mypyc/lib-rt/misc_ops.c
function PyObject (line 9) | PyObject *CPy_GetCoro(PyObject *obj)
function PyObject (line 23) | PyObject *CPyIter_Send(PyObject *iter, PyObject *val)
function CPy_YieldFromErrorHandle (line 45) | int CPy_YieldFromErrorHandle(PyObject *iter, PyObject **outp)
function PyObject (line 98) | PyObject *CPy_FetchStopIterationValue(void)
function _CPy_IsSafeMetaClass (line 105) | static bool _CPy_IsSafeMetaClass(PyTypeObject *metaclass) {
function PyObject (line 138) | PyObject *CPy_CalculateMetaclass(PyObject *metatype, PyObject *bases)
function PyObject (line 174) | PyObject *CPy_CalculateMetaclass(PyObject *metatype, PyObject *bases) {
function PyObject (line 184) | PyObject *CPyType_FromTemplate(PyObject *template,
function _CPy_UpdateObjFromDict (line 314) | static int _CPy_UpdateObjFromDict(PyObject *obj, PyObject *dict)
function CPyDataclass_SleightOfHand (line 352) | int
function PyObject (line 422) | PyObject *
function PyObject (line 431) | PyObject *
function CPyTagged (line 478) | CPyTagged CPyTagged_Id(PyObject *o) {
function fmt_ssize_t (line 488) | static int fmt_ssize_t(char *out, Py_ssize_t n) {
function PyObject (line 517) | static PyObject *CPyTagged_ShortToStr(Py_ssize_t n) {
function PyObject (line 525) | PyObject *CPyTagged_Str(CPyTagged n) {
function CPyDebug_Print (line 533) | void CPyDebug_Print(const char *msg) {
function CPySequence_CheckUnpackCount (line 538) | int CPySequence_CheckUnpackCount(PyObject *sequence, Py_ssize_t expected) {
function CPyStatics_Initialize (line 565) | int CPyStatics_Initialize(PyObject **statics,
function PyObject (line 694) | PyObject *
function import_single (line 705) | static bool import_single(PyObject *mod_id, PyObject **mod_static,
function CPyImport_ImportMany (line 730) | bool CPyImport_ImportMany(PyObject *modules, CPyModule **statics[], PyOb...
function PyObject (line 759) | static PyObject *CPyImport_ImportFrom(PyObject *module, PyObject *packag...
function PyObject (line 791) | PyObject *CPyImport_ImportFromMany(PyObject *mod_id, PyObject *names, Py...
function PyObject (line 817) | static PyObject *
function PyObject (line 828) | PyObject *
function PyObject (line 848) | PyObject *CPySingledispatch_RegisterFunction(PyObject *singledispatch_func,
function PyObject (line 924) | PyObject *CPy_GetAIter(PyObject *obj)
function PyObject (line 962) | PyObject *CPy_GetANext(PyObject *aiter)
type typealiasobject (line 1020) | typedef struct {
function CPy_SetTypeAliasTypeComputeFunction (line 1029) | void CPy_SetTypeAliasTypeComputeFunction(PyObject *alias, PyObject *comp...
FILE: mypyc/lib-rt/mypyc_util.h
type CPyTagged (line 41) | typedef size_t CPyTagged;
type CPyPtr (line 43) | typedef size_t CPyPtr;
type PyObject (line 51) | typedef PyObject CPyModule;
function CPyTagged (line 67) | static inline CPyTagged CPyTagged_ShortFromInt(int x) {
function CPyTagged (line 71) | static inline CPyTagged CPyTagged_ShortFromSsize_t(Py_ssize_t x) {
function CPyLong_SetUnsignedSize (line 98) | static inline void CPyLong_SetUnsignedSize(PyLongObject *o, Py_ssize_t n) {
function CPyLong_SetUnsignedSize (line 112) | static inline void CPyLong_SetUnsignedSize(PyLongObject *o, Py_ssize_t n) {
FILE: mypyc/lib-rt/pythoncapi_compat.h
function PyObject (line 61) | static inline PyObject* _Py_NewRef(PyObject *obj)
function PyObject (line 72) | static inline PyObject* _Py_XNewRef(PyObject *obj)
function _Py_SET_REFCNT (line 83) | static inline void _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt)
function _Py_SET_TYPE (line 130) | static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type)
function _Py_SET_SIZE (line 140) | static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size)
function PyCodeObject (line 150) | static inline PyCodeObject* PyFrame_GetCode(PyFrameObject *frame)
function PyCodeObject (line 158) | static inline PyCodeObject* _PyFrame_GetCodeBorrow(PyFrameObject *frame)
function PyFrameObject (line 168) | static inline PyFrameObject* PyFrame_GetBack(PyFrameObject *frame)
function PyFrameObject (line 176) | static inline PyFrameObject* _PyFrame_GetBackBorrow(PyFrameObject *frame)
function PyObject (line 187) | static inline PyObject* PyFrame_GetLocals(PyFrameObject *frame)
function PyObject (line 203) | static inline PyObject* PyFrame_GetGlobals(PyFrameObject *frame)
function PyObject (line 212) | static inline PyObject* PyFrame_GetBuiltins(PyFrameObject *frame)
function PyFrame_GetLasti (line 221) | static inline int PyFrame_GetLasti(PyFrameObject *frame)
function PyObject (line 240) | static inline PyObject* PyFrame_GetVar(PyFrameObject *frame, PyObject *n...
function PyObject (line 273) | static inline PyObject*
function PyInterpreterState (line 294) | static inline PyInterpreterState *
function PyFrameObject (line 305) | static inline PyFrameObject* PyThreadState_GetFrame(PyThreadState *tstate)
function PyFrameObject (line 313) | static inline PyFrameObject*
function PyInterpreterState (line 325) | static inline PyInterpreterState* PyInterpreterState_Get(void)
function PyThreadState_GetID (line 345) | static inline uint64_t PyThreadState_GetID(PyThreadState *tstate)
function PyThreadState_EnterTracing (line 354) | static inline void PyThreadState_EnterTracing(PyThreadState *tstate)
function PyThreadState_LeaveTracing (line 367) | static inline void PyThreadState_LeaveTracing(PyThreadState *tstate)
function PyObject (line 384) | static inline PyObject* PyObject_CallNoArgs(PyObject *func)
function PyObject (line 395) | static inline PyObject* PyObject_CallOneArg(PyObject *func, PyObject *arg)
function PyModule_AddObjectRef (line 404) | static inline int
function PyModule_AddType (line 429) | static inline int PyModule_AddType(PyObject *module, PyTypeObject *type)
function PyObject_GC_IsTracked (line 453) | static inline int PyObject_GC_IsTracked(PyObject* obj)
function PyObject_GC_IsFinalized (line 462) | static inline int PyObject_GC_IsFinalized(PyObject *obj)
function _Py_IS_TYPE (line 472) | static inline int _Py_IS_TYPE(PyObject *ob, PyTypeObject *type) {
function PyFloat_Pack2 (line 484) | static inline int PyFloat_Pack2(double x, char *p, int le)
function PyFloat_Unpack2 (line 487) | static inline double PyFloat_Unpack2(const char *p, int le)
function PyFloat_Pack4 (line 498) | static inline int PyFloat_Pack4(double x, char *p, int le)
function PyFloat_Pack8 (line 501) | static inline int PyFloat_Pack8(double x, char *p, int le)
function PyFloat_Unpack4 (line 504) | static inline double PyFloat_Unpack4(const char *p, int le)
function PyFloat_Unpack8 (line 507) | static inline double PyFloat_Unpack8(const char *p, int le)
function PyObject (line 514) | static inline PyObject* PyCode_GetCode(PyCodeObject *code)
function PyObject (line 523) | static inline PyObject* PyCode_GetVarnames(PyCodeObject *code)
function PyObject (line 531) | static inline PyObject* PyCode_GetFreevars(PyCodeObject *code)
function PyObject (line 539) | static inline PyObject* PyCode_GetCellvars(PyCodeObject *code)
function PyObject (line 558) | static inline PyObject* PyImport_AddModuleRef(const char *name)
function PyWeakref_GetRef (line 567) | static inline int PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
function Py_ssize_t (line 598) | static inline Py_ssize_t PyVectorcall_NARGS(size_t n)
function PyObject (line 607) | static inline PyObject*
function PyObject_GetOptionalAttr (line 683) | static inline int
function PyObject_GetOptionalAttrString (line 705) | static inline int
function PyMapping_GetOptionalItem (line 729) | static inline int
function PyMapping_GetOptionalItemString (line 743) | static inline int
function PyMapping_HasKeyWithError (line 766) | static inline int
function PyMapping_HasKeyStringWithError (line 775) | static inline int
function PyObject_HasAttrWithError (line 789) | static inline int
function PyObject_HasAttrStringWithError (line 798) | static inline int
function PyDict_GetItemRef (line 812) | static inline int
function PyDict_GetItemStringRef (line 832) | static inline int
function PyModule_Add (line 854) | static inline int
function Py_IsFinalizing (line 869) | static inline int Py_IsFinalizing(void)
function PyDict_ContainsString (line 883) | static inline int PyDict_ContainsString(PyObject *op, const char *key)
function PyLong_AsInt (line 898) | static inline int PyLong_AsInt(PyObject *obj)
function PyObject_VisitManagedDict (line 920) | static inline int
function PyObject_ClearManagedDict (line 931) | static inline void
function PyThreadState (line 945) | static inline PyThreadState*
function PyUnicode_EqualToUTF8AndSize (line 955) | static inline int
function PyUnicode_EqualToUTF8 (line 1018) | static inline int
function PyList_Extend (line 1028) | static inline int
function PyList_Clear (line 1034) | static inline int
function PyDict_Pop (line 1043) | static inline int
function PyDict_PopString (line 1085) | static inline int
type Py_ssize_t (line 1105) | typedef Py_ssize_t Py_hash_t;
function Py_hash_t (line 1111) | static inline Py_hash_t Py_HashPointer(const void *ptr)
type _PyTime_t (line 1125) | typedef _PyTime_t PyTime_t;
function PyTime_AsSecondsDouble (line 1129) | static inline double PyTime_AsSecondsDouble(PyTime_t t)
function PyTime_Monotonic (line 1132) | static inline int PyTime_Monotonic(PyTime_t *result)
function PyTime_Time (line 1135) | static inline int PyTime_Time(PyTime_t *result)
function PyTime_PerfCounter (line 1138) | static inline int PyTime_PerfCounter(PyTime_t *result)
function PyObject (line 1237) | static inline PyObject* Py_GetConstant(unsigned int constant_id)
function PyObject (line 1290) | static inline PyObject* Py_GetConstantBorrowed(unsigned int constant_id)
function PyObject (line 1301) | static inline PyObject *
function PyDict_SetDefaultRef (line 1313) | static inline int
type PyUnicodeWriter (line 1359) | typedef struct PyUnicodeWriter PyUnicodeWriter;
function PyUnicodeWriter_Discard (line 1361) | static inline void PyUnicodeWriter_Discard(PyUnicodeWriter *writer)
function PyUnicodeWriter (line 1367) | static inline PyUnicodeWriter* PyUnicodeWriter_Create(Py_ssize_t length)
function PyObject (line 1392) | static inline PyObject* PyUnicodeWriter_Finish(PyUnicodeWriter *writer)
function PyUnicodeWriter_WriteChar (line 1400) | static inline int
function PyUnicodeWriter_WriteStr (line 1412) | static inline int
function PyUnicodeWriter_WriteRepr (line 1425) | static inline int
function PyUnicodeWriter_WriteUTF8 (line 1438) | static inline int
function PyUnicodeWriter_WriteWideChar (line 1456) | static inline int
function PyUnicodeWriter_WriteSubstring (line 1474) | static inline int
function PyUnicodeWriter_Format (line 1495) | static inline int
function PyLong_GetSign (line 1514) | static inline int PyLong_GetSign(PyObject *obj, int *sign)
function PyLong_IsPositive (line 1528) | static inline int PyLong_IsPositive(PyObject *obj)
function PyLong_IsNegative (line 1537) | static inline int PyLong_IsNegative(PyObject *obj)
function PyLong_IsZero (line 1546) | static inline int PyLong_IsZero(PyObject *obj)
function PyUnicode_Equal (line 1559) | static inline int PyUnicode_Equal(PyObject *str1, PyObject *str2)
function PyObject (line 1589) | static inline PyObject* PyBytes_Join(PyObject *sep, PyObject *iterable)
function Py_hash_t (line 1597) | static inline Py_hash_t Py_HashBuffer(const void *ptr, Py_ssize_t len)
function PyIter_NextItem (line 1618) | static inline int PyIter_NextItem(PyObject *iter, PyObject **item)
function PyObject (line 1649) | static inline PyObject* PyLong_FromInt32(int32_t value)
function PyObject (line 1655) | static inline PyObject* PyLong_FromInt64(int64_t value)
function PyObject (line 1661) | static inline PyObject* PyLong_FromUInt32(uint32_t value)
function PyObject (line 1667) | static inline PyObject* PyLong_FromUInt64(uint64_t value)
function PyLong_AsInt32 (line 1673) | static inline int PyLong_AsInt32(PyObject *obj, int32_t *pvalue)
function PyLong_AsInt64 (line 1684) | static inline int PyLong_AsInt64(PyObject *obj, int64_t *pvalue)
function PyLong_AsUInt32 (line 1695) | static inline int PyLong_AsUInt32(PyObject *obj, uint32_t *pvalue)
function PyLong_AsUInt64 (line 1713) | static inline int PyLong_AsUInt64(PyObject *obj, uint64_t *pvalue)
function _PyLong_SetSignAndDigitCount (line 1729) | static inline void
function Py_ssize_t (line 1741) | static inline Py_ssize_t
function digit (line 1751) | static inline digit*
type PyLongLayout (line 1761) | typedef struct PyLongLayout {
type PyLongExport (line 1768) | typedef struct PyLongExport {
type PyLongWriter (line 1776) | typedef struct PyLongWriter PyLongWriter;
function PyLongLayout (line 1778) | static inline const PyLongLayout*
function PyLong_Export (line 1791) | static inline int
function PyLong_FreeExport (line 1834) | static inline void
function PyLongWriter (line 1845) | static inline PyLongWriter*
function PyLongWriter_Discard (line 1864) | static inline void
function PyObject (line 1873) | static inline PyObject*
FILE: mypyc/lib-rt/pythonsupport.c
function Py_ssize_t (line 11) | Py_ssize_t
function Py_ssize_t (line 59) | Py_ssize_t
FILE: mypyc/lib-rt/pythonsupport.h
function PyObject (line 40) | static PyObject*
function init_subclass (line 115) | static int
function Py_ssize_t (line 147) | static inline Py_ssize_t
function Py_ssize_t (line 190) | static inline Py_ssize_t
function list_resize (line 222) | static int
function PyObject (line 269) | static PyObject *
function CPyTagged (line 304) | static CPyTagged
function CPyGen_SetStopIterationValue (line 328) | static int
type _CPyDictViewObject (line 360) | typedef struct {
function PyObject (line 365) | static PyObject *
function _CPyObject_HasAttrId (line 382) | static int
function gen_is_coroutine (line 409) | static int
function gen_is_coroutine (line 424) | static int
function PyObject (line 446) | static PyObject *
FILE: mypyc/lib-rt/set_ops.c
function CPySet_Remove (line 8) | bool CPySet_Remove(PyObject *set, PyObject *key) {
FILE: mypyc/lib-rt/setup.py
class build_ext_custom (line 24) | class build_ext_custom(build_ext): # noqa: N801
method get_library_names (line 25) | def get_library_names(self):
method run (line 28) | def run(self):
FILE: mypyc/lib-rt/str_ops.c
function PyObject (line 8) | PyObject *CPyStr_GetItem(PyObject *str, CPyTagged index) {
function PyObject (line 46) | PyObject *CPyStr_Build(Py_ssize_t len, ...) {
function PyObject (line 136) | PyObject *CPyStr_Split(PyObject *str, PyObject *sep, CPyTagged max_split) {
function PyObject (line 145) | PyObject *CPyStr_Replace(PyObject *str, PyObject *old_substr,
function CPyStr_Startswith (line 155) | bool CPyStr_Startswith(PyObject *self, PyObject *subobj) {
function CPyStr_Endswith (line 161) | bool CPyStr_Endswith(PyObject *self, PyObject *subobj) {
function PyObject (line 168) | PyObject *CPyStr_Append(PyObject *o1, PyObject *o2) {
function PyObject (line 173) | PyObject *CPyStr_GetSlice(PyObject *obj, CPyTagged start, CPyTagged end) {
function CPyStr_IsTrue (line 196) | bool CPyStr_IsTrue(PyObject *obj) {
function Py_ssize_t (line 201) | Py_ssize_t CPyStr_Size_size_t(PyObject *str) {
function PyObject (line 208) | PyObject *CPy_Decode(PyObject *obj, PyObject *encoding, PyObject *errors) {
function PyObject (line 228) | PyObject *CPy_Encode(PyObject *obj, PyObject *encoding, PyObject *errors) {
function CPyTagged (line 248) | CPyTagged CPyStr_Ord(PyObject *obj) {
FILE: mypyc/lib-rt/test_capi.cc
function PyObject (line 9) | static PyObject *int_from_str(const char *str) {
function str_from_object (line 13) | static std::string str_from_object(PyObject *x) {
function str_from_int (line 19) | static std::string str_from_int(CPyTagged x) {
function is_py_equal (line 23) | static bool is_py_equal(PyObject *x, PyObject *y) {
function is_int_equal (line 31) | static bool is_int_equal(CPyTagged x, CPyTagged y) {
function fail (line 41) | static void fail(std::string message) {
function PyObject (line 46) | static PyObject *eval(std::string expr) {
function CPyTagged (line 56) | static CPyTagged eval_int(std::string expr) {
function PyObject (line 62) | static PyObject *empty_list() {
function list_append (line 68) | static void list_append(PyObject *list, std::string expr) {
class CAPITest (line 74) | class CAPITest : public ::testing::Test {
method SetUp (line 85) | virtual void SetUp() {
method TearDown (line 100) | virtual void TearDown() {
function TEST_F (line 108) | TEST_F(CAPITest, test_cint_conversions) {
function TEST_F (line 117) | TEST_F(CAPITest, test_is_long_int) {
function TEST_F (line 125) | TEST_F(CAPITest, test_is_short_int) {
function TEST_F (line 133) | TEST_F(CAPITest, test_obj_to_short_int) {
function TEST_F (line 142) | TEST_F(CAPITest, test_obj_to_long_int) {
function TEST_F (line 165) | TEST_F(CAPITest, test_short_int_to_obj) {
function TEST_F (line 177) | TEST_F(CAPITest, test_long_int_to_obj) {
function TEST_F (line 204) | TEST_F(CAPITest, test_add_short_int) {
function TEST_F (line 212) | TEST_F(CAPITest, test_add_long_ints) {
function TEST_F (line 217) | TEST_F(CAPITest, test_add_long_and_short) {
function TEST_F (line 222) | TEST_F(CAPITest, test_add_short_overflow) {
function TEST_F (line 228) | TEST_F(CAPITest, test_add_short_edge_cases) {
function TEST_F (line 240) | TEST_F(CAPITest, test_subtract_short_int) {
function TEST_F (line 248) | TEST_F(CAPITest, test_subtract_long_int) {
function TEST_F (line 253) | TEST_F(CAPITest, test_subtract_long_and_short) {
function TEST_F (line 258) | TEST_F(CAPITest, test_subtract_short_overflow) {
function TEST_F (line 266) | TEST_F(CAPITest, test_subtract_short_edge_cases) {
function TEST_F (line 278) | TEST_F(CAPITest, test_multiply_int) {
function TEST_F (line 295) | TEST_F(CAPITest, test_floor_divide_short_int) {
function TEST_F (line 324) | TEST_F(CAPITest, test_floor_divide_long_int) {
function TEST_F (line 333) | TEST_F(CAPITest, test_remainder_short_int) {
function TEST_F (line 355) | TEST_F(CAPITest, test_remainder_long_int) {
function TEST_F (line 364) | TEST_F(CAPITest, test_int_equality) {
function TEST_F (line 384) | TEST_F(CAPITest, test_int_non_equality) {
function TEST_F (line 404) | TEST_F(CAPITest, test_int_less_than) {
function TEST_F (line 437) | TEST_F(CAPITest, test_int_greater_than_or_equal) {
function TEST_F (line 456) | TEST_F(CAPITest, test_int_greater_than) {
function TEST_F (line 484) | TEST_F(CAPITest, test_int_less_than_or_equal) {
function TEST_F (line 514) | TEST_F(CAPITest, test_list_get) {
function TEST_F (line 527) | TEST_F(CAPITest, test_tagged_as_long_long) {
function PyObject (line 552) | static PyObject *run_tests(PyObject *dummy, PyObject *should_be_null) {
type PyModuleDef (line 569) | struct PyModuleDef
function PyMODINIT_FUNC (line 577) | PyMODINIT_FUNC
FILE: mypyc/lib-rt/tuple_ops.c
function PyObject (line 8) | PyObject *CPySequenceTuple_GetItem(PyObject *tuple, CPyTagged index) {
function PyObject (line 33) | PyObject *CPySequenceTuple_GetSlice(PyObject *obj, CPyTagged start, CPyT...
function CPySequenceTuple_SetItemUnsafe (line 51) | bool CPySequenceTuple_SetItemUnsafe(PyObject *tuple, CPyTagged index, Py...
FILE: mypyc/lower/int_ops.py
class IntComparisonOpDescription (line 22) | class IntComparisonOpDescription(NamedTuple):
function compare_tagged (line 41) | def compare_tagged(self: LowLevelIRBuilder, lhs: Value, rhs: Value, op: ...
function lower_int_eq (line 87) | def lower_int_eq(builder: LowLevelIRBuilder, args: list[Value], line: in...
function lower_int_ne (line 92) | def lower_int_ne(builder: LowLevelIRBuilder, args: list[Value], line: in...
function lower_int_lt (line 97) | def lower_int_lt(builder: LowLevelIRBuilder, args: list[Value], line: in...
function lower_int_le (line 102) | def lower_int_le(builder: LowLevelIRBuilder, args: list[Value], line: in...
function lower_int_gt (line 107) | def lower_int_gt(builder: LowLevelIRBuilder, args: list[Value], line: in...
function lower_int_ge (line 112) | def lower_int_ge(builder: LowLevelIRBuilder, args: list[Value], line: in...
FILE: mypyc/lower/list_ops.py
function buf_init_item (line 16) | def buf_init_item(builder: LowLevelIRBuilder, args: list[Value], line: i...
function list_items (line 43) | def list_items(builder: LowLevelIRBuilder, args: list[Value], line: int)...
function list_item_ptr (line 48) | def list_item_ptr(builder: LowLevelIRBuilder, obj: Value, index: Value, ...
function list_get_item_unsafe (line 68) | def list_get_item_unsafe(builder: LowLevelIRBuilder, args: list[Value], ...
FILE: mypyc/lower/misc_ops.py
function var_object_size (line 10) | def var_object_size(builder: LowLevelIRBuilder, args: list[Value], line:...
FILE: mypyc/lower/registry.py
function lower_primitive_op (line 14) | def lower_primitive_op(name: str) -> Callable[[LowerFunc], LowerFunc]:
FILE: mypyc/namegen.py
class NameGenerator (line 6) | class NameGenerator:
method __init__ (line 40) | def __init__(self, groups: Iterable[list[str]]) -> None:
method private_name (line 54) | def private_name(self, module: str, partial_name: str | None = None) -...
function exported_name (line 83) | def exported_name(fullname: str) -> str:
function make_module_translation_map (line 94) | def make_module_translation_map(names: list[str]) -> dict[str, str]:
function candidate_suffixes (line 109) | def candidate_suffixes(fullname: str) -> list[str]:
FILE: mypyc/options.py
class CompilerOptions (line 6) | class CompilerOptions:
method __init__ (line 7) | def __init__(
FILE: mypyc/primitives/int_ops.py
function int_binary_primitive (line 101) | def int_binary_primitive(
function int_binary_op (line 121) | def int_binary_op(
function int_unary_op (line 172) | def int_unary_op(name: str, c_function_name: str) -> PrimitiveDescription:
FILE: mypyc/primitives/registry.py
class CFunctionDescription (line 50) | class CFunctionDescription(NamedTuple):
class LoadAddressDescription (line 67) | class LoadAddressDescription(NamedTuple):
function method_op (line 88) | def method_op(
function function_op (line 151) | def function_op(
function binary_op (line 197) | def binary_op(
function custom_op (line 243) | def custom_op(
function custom_primitive_op (line 280) | def custom_primitive_op(
function unary_op (line 317) | def unary_op(
function load_address_op (line 360) | def load_address_op(name: str, type: RType, src: str) -> LoadAddressDesc...
FILE: mypyc/rt_subtype.py
function is_runtime_subtype (line 36) | def is_runtime_subtype(left: RType, right: RType) -> bool:
class RTSubtypeVisitor (line 40) | class RTSubtypeVisitor(RTypeVisitor[bool]):
method __init__ (line 47) | def __init__(self, right: RType) -> None:
method visit_rinstance (line 50) | def visit_rinstance(self, left: RInstance) -> bool:
method visit_runion (line 53) | def visit_runion(self, left: RUnion) -> bool:
method visit_rprimitive (line 56) | def visit_rprimitive(self, left: RPrimitive) -> bool:
method visit_rtuple (line 63) | def visit_rtuple(self, left: RTuple) -> bool:
method visit_rstruct (line 70) | def visit_rstruct(self, left: RStruct) -> bool:
method visit_rarray (line 73) | def visit_rarray(self, left: RArray) -> bool:
method visit_rvoid (line 76) | def visit_rvoid(self, left: RVoid) -> bool:
FILE: mypyc/sametype.py
function is_same_type (line 19) | def is_same_type(a: RType, b: RType) -> bool:
function is_same_signature (line 23) | def is_same_signature(a: FuncSignature, b: FuncSignature) -> bool:
function is_same_method_signature (line 33) | def is_same_method_signature(a: FuncSignature, b: FuncSignature) -> bool:
class SameTypeVisitor (line 46) | class SameTypeVisitor(RTypeVisitor[bool]):
method __init__ (line 47) | def __init__(self, right: RType) -> None:
method visit_rinstance (line 50) | def visit_rinstance(self, left: RInstance) -> bool:
method visit_runion (line 53) | def visit_runion(self, left: RUnion) -> bool:
method visit_rprimitive (line 66) | def visit_rprimitive(self, left: RPrimitive) -> bool:
method visit_rtuple (line 69) | def visit_rtuple(self, left: RTuple) -> bool:
method visit_rstruct (line 76) | def visit_rstruct(self, left: RStruct) -> bool:
method visit_rarray (line 79) | def visit_rarray(self, left: RArray) -> bool:
method visit_rvoid (line 82) | def visit_rvoid(self, left: RVoid) -> bool:
FILE: mypyc/subtype.py
function is_subtype (line 26) | def is_subtype(left: RType, right: RType) -> bool:
class SubtypeVisitor (line 40) | class SubtypeVisitor(RTypeVisitor[bool]):
method __init__ (line 47) | def __init__(self, right: RType) -> None:
method visit_rinstance (line 50) | def visit_rinstance(self, left: RInstance) -> bool:
method visit_runion (line 53) | def visit_runion(self, left: RUnion) -> bool:
method visit_rprimitive (line 56) | def visit_rprimitive(self, left: RPrimitive) -> bool:
method visit_rtuple (line 72) | def visit_rtuple(self, left: RTuple) -> bool:
method visit_rstruct (line 81) | def visit_rstruct(self, left: RStruct) -> bool:
method visit_rarray (line 84) | def visit_rarray(self, left: RArray) -> bool:
method visit_rvoid (line 87) | def visit_rvoid(self, left: RVoid) -> bool:
FILE: mypyc/test-data/driver/driver.py
function extract_line (line 27) | def extract_line(tb):
FILE: mypyc/test-data/fixtures/ir.py
class __SupportsAbs (line 17) | class __SupportsAbs(Protocol[T_co]):
method __abs__ (line 18) | def __abs__(self) -> T_co: pass
class __SupportsDivMod (line 20) | class __SupportsDivMod(Protocol[T_contra, T_co]):
method __divmod__ (line 21) | def __divmod__(self, other: T_contra) -> T_co: ...
class __SupportsRDivMod (line 23) | class __SupportsRDivMod(Protocol[T_contra, T_co]):
method __rdivmod__ (line 24) | def __rdivmod__(self, other: T_contra) -> T_co: ...
class __SupportsPow2 (line 28) | class __SupportsPow2(Protocol[T_contra, T_co]):
method __pow__ (line 29) | def __pow__(self, other: T_contra) -> T_co: ...
class __SupportsPow3NoneOnly (line 31) | class __SupportsPow3NoneOnly(Protocol[T_contra, T_co]):
method __pow__ (line 32) | def __pow__(self, other: T_contra, modulo: None = ...) -> T_co: ...
class __SupportsPow3 (line 34) | class __SupportsPow3(Protocol[T_contra, _M, T_co]):
method __pow__ (line 35) | def __pow__(self, other: T_contra, modulo: _M) -> T_co: ...
class object (line 41) | class object:
method __init__ (line 42) | def __init__(self) -> None: pass
method __eq__ (line 43) | def __eq__(self, x: object) -> bool: pass
method __ne__ (line 44) | def __ne__(self, x: object) -> bool: pass
class type (line 46) | class type:
method __init__ (line 47) | def __init__(self, o: object) -> None: ...
method __or__ (line 48) | def __or__(self, o: object) -> Any: ...
class ellipsis (line 52) | class ellipsis: pass
class int (line 56) | class int:
method __init__ (line 58) | def __init__(self) -> None: pass
method __init__ (line 60) | def __init__(self, x: object, base: int = 10) -> None: pass
method __add__ (line 61) | def __add__(self, n: int) -> int: pass
method __sub__ (line 62) | def __sub__(self, n: int) -> int: pass
method __mul__ (line 63) | def __mul__(self, n: int) -> int: pass
method __pow__ (line 64) | def __pow__(self, n: int, modulo: Optional[int] = None) -> int: pass
method __floordiv__ (line 65) | def __floordiv__(self, x: int) -> int: pass
method __truediv__ (line 66) | def __truediv__(self, x: float) -> float: pass
method __mod__ (line 67) | def __mod__(self, x: int) -> int: pass
method __divmod__ (line 68) | def __divmod__(self, x: float) -> Tuple[float, float]: pass
method __neg__ (line 69) | def __neg__(self) -> int: pass
method __pos__ (line 70) | def __pos__(self) -> int: pass
method __abs__ (line 71) | def __abs__(self) -> int: pass
method __invert__ (line 72) | def __invert__(self) -> int: pass
method __and__ (line 73) | def __and__(self, n: int) -> int: pass
method __or__ (line 74) | def __or__(self, n: int) -> int: pass
method __xor__ (line 75) | def __xor__(self, n: int) -> int: pass
method __lshift__ (line 76) | def __lshift__(self, x: int) -> int: pass
method __rshift__ (line 77) | def __rshift__(self, x: int) -> int: pass
method __eq__ (line 78) | def __eq__(self, n: object) -> bool: pass
method __ne__ (line 79) | def __ne__(self, n: object) -> bool: pass
method __lt__ (line 80) | def __lt__(self, n: int) -> bool: pass
method __gt__ (line 81) | def __gt__(self, n: int) -> bool: pass
method __le__ (line 82) | def __le__(self, n: int) -> bool: pass
method __ge__ (line 83) | def __ge__(self, n: int) -> bool: pass
class str (line 85) | class str:
method __init__ (line 87) | def __init__(self) -> None: pass
method __init__ (line 89) | def __init__(self, x: object) -> None: pass
method __add__ (line 90) | def __add__(self, x: str) -> str: pass
method __mul__ (line 91) | def __mul__(self, x: int) -> str: pass
method __rmul__ (line 92) | def __rmul__(self, x: int) -> str: pass
method __eq__ (line 93) | def __eq__(self, x: object) -> bool: pass
method __ne__ (line 94) | def __ne__(self, x: object) -> bool: pass
method __lt__ (line 95) | def __lt__(self, x: str) -> bool: ...
method __le__ (line 96) | def __le__(self, x: str) -> bool: ...
method __gt__ (line 97) | def __gt__(self, x: str) -> bool: ...
method __ge__ (line 98) | def __ge__(self, x: str) -> bool: ...
method __getitem__ (line 100) | def __getitem__(self, i: int) -> str: pass
method __getitem__ (line 102) | def __getitem__(self, i: slice) -> str: pass
method __contains__ (line 103) | def __contains__(self, item: str) -> bool: pass
method __iter__ (line 104) | def __iter__(self) -> Iterator[str]: ...
method split (line 105) | def split(self, sep: Optional[str] = None, max: Optional[int] = None) ...
method strip (line 106) | def strip (self, item: str) -> str: pass
method join (line 107) | def join(self, x: Iterable[str]) -> str: pass
method format (line 108) | def format(self, *args: Any, **kwargs: Any) -> str: ...
method upper (line 109) | def upper(self) -> str: ...
method startswith (line 110) | def startswith(self, x: str, start: int=..., end: int=...) -> bool: ...
method endswith (line 111) | def endswith(self, x: str, start: int=..., end: int=...) -> bool: ...
method replace (line 112) | def replace(self, old: str, new: str, maxcount: int=...) -> str: ...
method encode (line 113) | def encode(self, encoding: str=..., errors: str=...) -> bytes: ...
class float (line 115) | class float:
method __init__ (line 116) | def __init__(self, x: object) -> None: pass
method __add__ (line 117) | def __add__(self, n: float) -> float: pass
method __radd__ (line 118) | def __radd__(self, n: float) -> float: pass
method __sub__ (line 119) | def __sub__(self, n: float) -> float: pass
method __rsub__ (line 120) | def __rsub__(self, n: float) -> float: pass
method __mul__ (line 121) | def __mul__(self, n: float) -> float: pass
method __truediv__ (line 122) | def __truediv__(self, n: float) -> float: pass
method __floordiv__ (line 123) | def __floordiv__(self, n: float) -> float: pass
method __mod__ (line 124) | def __mod__(self, n: float) -> float: pass
method __pow__ (line 125) | def __pow__(self, n: float) -> float: pass
method __neg__ (line 126) | def __neg__(self) -> float: pass
method __pos__ (line 127) | def __pos__(self) -> float: pass
method __abs__ (line 128) | def __abs__(self) -> float: pass
method __invert__ (line 129) | def __invert__(self) -> float: pass
method __eq__ (line 130) | def __eq__(self, x: object) -> bool: pass
method __ne__ (line 131) | def __ne__(self, x: object) -> bool: pass
method __lt__ (line 132) | def __lt__(self, x: float) -> bool: ...
method __le__ (line 133) | def __le__(self, x: float) -> bool: ...
method __gt__ (line 134) | def __gt__(self, x: float) -> bool: ...
method __ge__ (line 135) | def __ge__(self, x: float) -> bool: ...
class complex (line 137) | class complex:
method __init__ (line 138) | def __init__(self, x: object, y: object = None) -> None: pass
method __add__ (line 139) | def __add__(self, n: complex) -> complex: pass
method __radd__ (line 140) | def __radd__(self, n: float) -> complex: pass
method __sub__ (line 141) | def __sub__(self, n: complex) -> complex: pass
method __rsub__ (line 142) | def __rsub__(self, n: float) -> complex: pass
method __mul__ (line 143) | def __mul__(self, n: complex) -> complex: pass
method __truediv__ (line 144) | def __truediv__(self, n: complex) -> complex: pass
method __neg__ (line 145) | def __neg__(self) -> complex: pass
class bytes (line 147) | class bytes:
method __init__ (line 149) | def __init__(self) -> None: ...
method __init__ (line 151) | def __init__(self, x: object) -> None: ...
method __add__ (line 152) | def __add__(self, x: bytes) -> bytes: ...
method __mul__ (line 153) | def __mul__(self, x: int) -> bytes: ...
method __rmul__ (line 154) | def __rmul__(self, x: int) -> bytes: ...
method __eq__ (line 155) | def __eq__(self, x: object) -> bool: ...
method __ne__ (line 156) | def __ne__(self, x: object) -> bool: ...
method __getitem__ (line 158) | def __getitem__(self, i: int) -> int: ...
method __getitem__ (line 160) | def __getitem__(self, i: slice) -> bytes: ...
method join (line 161) | def join(self, x: Iterable[object]) -> bytes: ...
method decode (line 162) | def decode(self, x: str=..., y: str=...) -> str: ...
class bytearray (line 164) | class bytearray:
method __init__ (line 166) | def __init__(self) -> None: pass
method __init__ (line 168) | def __init__(self, x: object) -> None: pass
method __init__ (line 170) | def __init__(self, string: str, encoding: str, err: str = ...) -> None...
method __add__ (line 171) | def __add__(self, s: bytes) -> bytearray: ...
method __setitem__ (line 172) | def __setitem__(self, i: int, o: int) -> None: ...
method __getitem__ (line 174) | def __getitem__(self, i: int) -> int: ...
method __getitem__ (line 176) | def __getitem__(self, i: slice) -> bytearray: ...
method decode (line 177) | def decode(self, x: str = ..., y: str = ...) -> str: ...
method join (line 178) | def join(self, __iterable_of_bytes: Iterable[bytes]) -> bytearray: ...
class bool (line 180) | class bool(int):
method __init__ (line 181) | def __init__(self, o: object = ...) -> None: ...
method __and__ (line 183) | def __and__(self, n: bool) -> bool: ...
method __and__ (line 185) | def __and__(self, n: int) -> int: ...
method __or__ (line 187) | def __or__(self, n: bool) -> bool: ...
method __or__ (line 189) | def __or__(self, n: int) -> int: ...
method __xor__ (line 191) | def __xor__(self, n: bool) -> bool: ...
method __xor__ (line 193) | def __xor__(self, n: int) -> int: ...
class tuple (line 195) | class tuple(Generic[T_co], Sequence[T_co], Iterable[T_co]):
method __init__ (line 196) | def __init__(self, i: Iterable[T_co]) -> None: pass
method __getitem__ (line 198) | def __getitem__(self, i: int) -> T_co: pass
method __getitem__ (line 200) | def __getitem__(self, i: slice) -> Tuple[T_co, ...]: pass
method __len__ (line 201) | def __len__(self) -> int: pass
method __iter__ (line 202) | def __iter__(self) -> Iterator[T_co]: ...
method __contains__ (line 203) | def __contains__(self, item: object) -> int: ...
class function (line 205) | class function: pass
class list (line 207) | class list(Generic[_T], Sequence[_T], Iterable[_T]):
method __init__ (line 208) | def __init__(self, i: Optional[Iterable[_T]] = None) -> None: pass
method __getitem__ (line 210) | def __getitem__(self, i: int) -> _T: ...
method __getitem__ (line 212) | def __getitem__(self, s: slice) -> List[_T]: ...
method __setitem__ (line 213) | def __setitem__(self, i: int, o: _T) -> None: pass
method __delitem__ (line 214) | def __delitem__(self, i: int) -> None: pass
method __mul__ (line 215) | def __mul__(self, i: int) -> List[_T]: pass
method __rmul__ (line 216) | def __rmul__(self, i: int) -> List[_T]: pass
method __iter__ (line 217) | def __iter__(self) -> Iterator[_T]: pass
method __len__ (line 218) | def __len__(self) -> int: pass
method __contains__ (line 219) | def __contains__(self, item: object) -> int: ...
method __add__ (line 220) | def __add__(self, x: List[_T]) -> List[_T]: ...
method append (line 221) | def append(self, x: _T) -> None: pass
method pop (line 222) | def pop(self, i: int = -1) -> _T: pass
method count (line 223) | def count(self, _T) -> int: pass
method extend (line 224) | def extend(self, l: Iterable[_T]) -> None: pass
method insert (line 225) | def insert(self, i: int, x: _T) -> None: pass
method sort (line 226) | def sort(self) -> None: pass
method reverse (line 227) | def reverse(self) -> None: pass
method remove (line 228) | def remove(self, o: _T) -> None: pass
method index (line 229) | def index(self, o: _T) -> int: pass
class dict (line 231) | class dict(Mapping[_K, _V]):
method __init__ (line 233) | def __init__(self, **kwargs: _K) -> None: ...
method __init__ (line 235) | def __init__(self, map: Mapping[_K, _V], **kwargs: _V) -> None: ...
method __init__ (line 237) | def __init__(self, iterable: Iterable[Tuple[_K, _V]], **kwargs: _V) ->...
method __getitem__ (line 238) | def __getitem__(self, key: _K) -> _V: pass
method __setitem__ (line 239) | def __setitem__(self, k: _K, v: _V) -> None: pass
method __delitem__ (line 240) | def __delitem__(self, k: _K) -> None: pass
method __contains__ (line 241) | def __contains__(self, item: object) -> int: pass
method __iter__ (line 242) | def __iter__(self) -> Iterator[_K]: pass
method __len__ (line 243) | def __len__(self) -> int: pass
method update (line 245) | def update(self, __m: Mapping[_K, _V], **kwargs: _V) -> None: pass
method update (line 247) | def update(self, __m: Iterable[Tuple[_K, _V]], **kwargs: _V) -> None: ...
method update (line 249) | def update(self, **kwargs: _V) -> None: ...
method pop (line 250) | def pop(self, x: int) -> _K: pass
method keys (line 251) | def keys(self) -> Iterable[_K]: pass
method values (line 252) | def values(self) -> Iterable[_V]: pass
method items (line 253) | def items(self) -> Iterable[Tuple[_K, _V]]: pass
method clear (line 254) | def clear(self) -> None: pass
method copy (line 255) | def copy(self) -> Dict[_K, _V]: pass
method setdefault (line 256) | def setdefault(self, key: _K, val: _V = ...) -> _V: pass
class set (line 258) | class set(Generic[_T]):
method __init__ (line 259) | def __init__(self, i: Optional[Iterable[_T]] = None) -> None: pass
method __iter__ (line 260) | def __iter__(self) -> Iterator[_T]: pass
method __len__ (line 261) | def __len__(self) -> int: pass
method add (line 262) | def add(self, x: _T) -> None: pass
method remove (line 263) | def remove(self, x: _T) -> None: pass
method discard (line 264) | def discard(self, x: _T) -> None: pass
method clear (line 265) | def clear(self) -> None: pass
method pop (line 266) | def pop(self) -> _T: pass
method update (line 267) | def update(self, x: Iterable[_S]) -> None: pass
method __or__ (line 268) | def __or__(self, s: Union[Set[_S], FrozenSet[_S]]) -> Set[Union[_T, _S...
method __xor__ (line 269) | def __xor__(self, s: Union[Set[_S], FrozenSet[_S]]) -> Set[Union[_T, _...
class frozenset (line 271) | class frozenset(Generic[_T]):
method __init__ (line 272) | def __init__(self, i: Optional[Iterable[_T]] = None) -> None: pass
method __iter__ (line 273) | def __iter__(self) -> Iterator[_T]: pass
method __len__ (line 274) | def __len__(self) -> int: pass
method __or__ (line 275) | def __or__(self, s: Union[Set[_S], FrozenSet[_S]]) -> FrozenSet[Union[...
method __xor__ (line 276) | def __xor__(self, s: Union[Set[_S], FrozenSet[_S]]) -> FrozenSet[Union...
class slice (line 278) | class slice: pass
class range (line 280) | class range(Iterable[int]):
method __init__ (line 281) | def __init__(self, x: int, y: int = ..., z: int = ...) -> None: pass
method __iter__ (line 282) | def __iter__(self) -> Iterator[int]: pass
method __len__ (line 283) | def __len__(self) -> int: pass
method __next__ (line 284) | def __next__(self) -> int: pass
class property (line 286) | class property:
method __init__ (line 287) | def __init__(self, fget: Optional[Callable[[Any], Any]] = ...,
method getter (line 291) | def getter(self, fget: Callable[[Any], Any]) -> property: ...
method setter (line 292) | def setter(self, fset: Callable[[Any, Any], None]) -> property: ...
method deleter (line 293) | def deleter(self, fdel: Callable[[Any], None]) -> property: ...
method __get__ (line 294) | def __get__(self, obj: Any, type: Optional[type] = ...) -> Any: ...
method __set__ (line 295) | def __set__(self, obj: Any, value: Any) -> None: ...
method __delete__ (line 296) | def __delete__(self, obj: Any) -> None: ...
method fget (line 297) | def fget(self) -> Any: ...
method fset (line 298) | def fset(self, value: Any) -> None: ...
method fdel (line 299) | def fdel(self) -> None: ...
class BaseException (line 301) | class BaseException: pass
class Exception (line 303) | class Exception(BaseException):
method __init__ (line 304) | def __init__(self, message: Optional[str] = None) -> None: pass
class Warning (line 306) | class Warning(Exception): pass
class UserWarning (line 307) | class UserWarning(Warning): pass
class TypeError (line 308) | class TypeError(Exception): pass
class ValueError (line 309) | class ValueError(Exception): pass
class AttributeError (line 310) | class AttributeError(Exception): pass
class ImportError (line 311) | class ImportError(Exception): pass
class NameError (line 312) | class NameError(Exception): pass
class UnboundLocalError (line 313) | class UnboundLocalError(NameError): pass
class LookupError (line 314) | class LookupError(Exception): pass
class KeyError (line 315) | class KeyError(LookupError): pass
class IndexError (line 316) | class IndexError(LookupError): pass
class RuntimeError (line 317) | class RuntimeError(Exception): pass
class UnicodeEncodeError (line 318) | class UnicodeEncodeError(RuntimeError): pass
class UnicodeDecodeError (line 319) | class UnicodeDecodeError(RuntimeError): pass
class NotImplementedError (line 320) | class NotImplementedError(RuntimeError): pass
class StopIteration (line 322) | class StopIteration(Exception):
class ArithmeticError (line 325) | class ArithmeticError(Exception): pass
class ZeroDivisionError (line 326) | class ZeroDivisionError(ArithmeticError): pass
class OverflowError (line 327) | class OverflowError(ArithmeticError): pass
class GeneratorExit (line 329) | class GeneratorExit(BaseException): pass
function any (line 331) | def any(i: Iterable[_T]) -> bool: pass
function all (line 332) | def all(i: Iterable[_T]) -> bool: pass
function sum (line 333) | def sum(i: Iterable[_T]) -> int: pass
function reversed (line 334) | def reversed(object: Sequence[_T]) -> Iterator[_T]: ...
function id (line 335) | def id(o: object) -> int: pass
function len (line 337) | def len(o: object) -> int: pass
function print (line 338) | def print(*object) -> None: pass
function isinstance (line 339) | def isinstance(x: object, t: object) -> bool: pass
function iter (line 340) | def iter(i: Iterable[_T]) -> Iterator[_T]: pass
function next (line 342) | def next(i: Iterator[_T]) -> _T: pass
function next (line 344) | def next(i: Iterator[_T], default: _T) -> _T: pass
function hash (line 345) | def hash(o: object) -> int: ...
function globals (line 346) | def globals() -> Dict[str, Any]: ...
function getattr (line 347) | def getattr(obj: object, name: str, default: Any = None) -> Any: ...
function setattr (line 348) | def setattr(obj: object, name: str, value: Any) -> None: ...
function enumerate (line 349) | def enumerate(x: Iterable[_T]) -> Iterator[Tuple[int, _T]]: ...
function zip (line 351) | def zip(x: Iterable[_T], y: Iterable[_S]) -> Iterator[Tuple[_T, _S]]: ...
function zip (line 353) | def zip(x: Iterable[_T], y: Iterable[_S], z: Iterable[_V]) -> Iterator[T...
function eval (line 354) | def eval(e: str) -> Any: ...
function abs (line 355) | def abs(x: __SupportsAbs[_T]) -> _T: ...
function divmod (line 357) | def divmod(x: __SupportsDivMod[T_contra, T_co], y: T_contra) -> T_co: ...
function divmod (line 359) | def divmod(x: T_contra, y: __SupportsRDivMod[T_contra, T_co]) -> T_co: ...
function pow (line 361) | def pow(base: __SupportsPow2[T_contra, T_co], exp: T_contra, mod: None =...
function pow (line 363) | def pow(base: __SupportsPow3NoneOnly[T_contra, T_co], exp: T_contra, mod...
function pow (line 365) | def pow(base: __SupportsPow3[T_contra, _M, T_co], exp: T_contra, mod: _M...
function exit (line 366) | def exit() -> None: ...
function min (line 367) | def min(x: _T, y: _T) -> _T: ...
function max (line 368) | def max(x: _T, y: _T) -> _T: ...
function repr (line 369) | def repr(o: object) -> str: ...
function ascii (line 370) | def ascii(o: object) -> str: ...
function ord (line 371) | def ord(o: object) -> int: ...
function chr (line 372) | def chr(i: int) -> str: ...
class classmethod (line 375) | class classmethod: pass
class staticmethod (line 376) | class staticmethod: pass
FILE: mypyc/test-data/fixtures/testutil.py
function assertRaises (line 44) | def assertRaises(typ: type, msg: str = '') -> Iterator[None]:
function assertDomainError (line 53) | def assertDomainError() -> Any:
function assertMathRangeError (line 56) | def assertMathRangeError() -> Any:
function run_generator (line 63) | def run_generator(gen: Generator[T, V, U],
class async_val (line 89) | class async_val(Awaitable[V], Generic[T, V]):
method __init__ (line 90) | def __init__(self, val: T) -> None:
method __await__ (line 93) | def __await__(self) -> Generator[T, V, V]:
function make_python_function (line 100) | def make_python_function(f: F) -> F:
FILE: mypyc/test-data/fixtures/typing-full.pyi
class GenericMeta (line 11) | class GenericMeta(type): pass
class _SpecialForm (line 13) | class _SpecialForm:
method __getitem__ (line 14) | def __getitem__(self, index): ...
class Callable (line 47) | class Callable:
method __call__ (line 48) | def __call__(self): pass
class _NamedCallable (line 49) | class _NamedCallable(Callable):
class Container (line 53) | class Container(Protocol[T_co]):
method __contains__ (line 56) | def __contains__(self, arg: object) -> int: pass
class Sized (line 59) | class Sized(Protocol):
method __len__ (line 61) | def __len__(self) -> int: pass
class Iterable (line 64) | class Iterable(Protocol[T_co]):
method __iter__ (line 66) | def __iter__(self) -> 'Iterator[T_co]': pass
class Iterator (line 69) | class Iterator(Iterable[T_co], Protocol):
method __next__ (line 71) | def __next__(self) -> T_co: pass
class Generator (line 73) | class Generator(Iterator[T], Generic[T, U, V]):
method send (line 75) | def send(self, value: U) -> T: pass
method throw (line 78) | def throw(self, typ: Any, val: Any=None, tb: Any=None) -> None: pass
method close (line 81) | def close(self) -> None: pass
method __iter__ (line 84) | def __iter__(self) -> 'Generator[T, U, V]': pass
class AsyncGenerator (line 86) | class AsyncGenerator(AsyncIterator[T], Generic[T, U]):
method __anext__ (line 88) | def __anext__(self) -> Awaitable[T]: pass
method asend (line 91) | def asend(self, value: U) -> Awaitable[T]: pass
method athrow (line 94) | def athrow(self, typ: Any, val: Any=None, tb: Any=None) -> Awaitable[T...
method aclose (line 97) | def aclose(self) -> Awaitable[T]: pass
method __aiter__ (line 100) | def __aiter__(self) -> 'AsyncGenerator[T, U]': pass
class Awaitable (line 103) | class Awaitable(Protocol[T]):
method __await__ (line 105) | def __await__(self) -> Generator[Any, Any, T]: pass
class AwaitableGenerator (line 107) | class AwaitableGenerator(Generator[T, U, V], Awaitable[V], Generic[T, U,...
class Coroutine (line 110) | class Coroutine(Awaitable[V], Generic[T, U, V]):
method send (line 112) | def send(self, value: U) -> T: pass
method throw (line 115) | def throw(self, typ: Any, val: Any=None, tb: Any=None) -> None: pass
method close (line 118) | def close(self) -> None: pass
class AsyncIterable (line 121) | class AsyncIterable(Protocol[T]):
method __aiter__ (line 123) | def __aiter__(self) -> 'AsyncIterator[T]': pass
class AsyncIterator (line 126) | class AsyncIterator(AsyncIterable[T], Protocol):
method __aiter__ (line 127) | def __aiter__(self) -> 'AsyncIterator[T]': return self
method __anext__ (line 129) | def __anext__(self) -> Awaitable[T]: pass
class Sequence (line 131) | class Sequence(Iterable[T_co], Container[T_co]):
method __getitem__ (line 133) | def __getitem__(self, n: Any) -> T_co: pass
class Mapping (line 135) | class Mapping(Iterable[T], Generic[T, T_co], metaclass=ABCMeta):
method keys (line 136) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 137) | def __getitem__(self, key: T) -> T_co: pass
method get (line 139) | def get(self, k: T) -> Optional[T_co]: pass
method get (line 141) | def get(self, k: T, default: Union[T_co, V]) -> Union[T_co, V]: pass
method values (line 142) | def values(self) -> Iterable[T_co]: pass # Approximate return type
method items (line 143) | def items(self) -> Iterable[Tuple[T, T_co]]: pass # Approximate retur...
method __len__ (line 144) | def __len__(self) -> int: ...
method __contains__ (line 145) | def __contains__(self, arg: object) -> int: pass
class MutableMapping (line 147) | class MutableMapping(Mapping[T, U], metaclass=ABCMeta):
method __setitem__ (line 148) | def __setitem__(self, k: T, v: U) -> None: pass
class SupportsInt (line 150) | class SupportsInt(Protocol):
method __int__ (line 151) | def __int__(self) -> int: pass
class SupportsFloat (line 153) | class SupportsFloat(Protocol):
method __float__ (line 154) | def __float__(self) -> float: pass
function runtime_checkable (line 156) | def runtime_checkable(cls: T) -> T:
class ContextManager (line 159) | class ContextManager(Generic[T]):
method __enter__ (line 160) | def __enter__(self) -> T: pass
method __exit__ (line 162) | def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> A...
class _TypedDict (line 167) | class _TypedDict(Mapping[str, object]):
method __iter__ (line 170) | def __iter__(self) -> Iterator[str]: ...
method copy (line 171) | def copy(self: T) -> T: ...
method setdefault (line 173) | def setdefault(self, k: NoReturn, default: object) -> object: ...
method pop (line 175) | def pop(self, k: NoReturn, default: T = ...) -> object: ...
method update (line 176) | def update(self: T, __m: T) -> None: ...
method __delitem__ (line 177) | def __delitem__(self, k: NoReturn) -> None: ...
class TypeAliasType (line 179) | class TypeAliasType:
FILE: mypyc/test/test_alwaysdefined.py
class TestAlwaysDefined (line 22) | class TestAlwaysDefined(MypycDataSuite):
method run_case (line 26) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypyc/test/test_analysis.py
class TestAnalysis (line 27) | class TestAnalysis(MypycDataSuite):
method run_case (line 32) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypyc/test/test_cheader.py
class TestHeaderInclusion (line 14) | class TestHeaderInclusion(unittest.TestCase):
method test_primitives_included_in_header (line 15) | def test_primitives_included_in_header(self) -> None:
FILE: mypyc/test/test_commandline.py
class TestCommandLine (line 28) | class TestCommandLine(MypycDataSuite):
method run_case (line 33) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypyc/test/test_emit.py
class TestEmitter (line 11) | class TestEmitter(unittest.TestCase):
method setUp (line 12) | def setUp(self) -> None:
method test_label (line 16) | def test_label(self) -> None:
method test_reg (line 20) | def test_reg(self) -> None:
method test_object_annotation (line 25) | def test_object_annotation(self) -> None:
method test_emit_line (line 35) | def test_emit_line(self) -> None:
method test_emit_undefined_value_for_simple_type (line 53) | def test_emit_undefined_value_for_simple_type(self) -> None:
method test_emit_undefined_value_for_tuple (line 59) | def test_emit_undefined_value_for_tuple(self) -> None:
FILE: mypyc/test/test_emitclass.py
class TestEmitClass (line 10) | class TestEmitClass(unittest.TestCase):
method test_slot_key (line 11) | def test_slot_key(self) -> None:
method test_setter_name (line 24) | def test_setter_name(self) -> None:
method test_getter_name (line 31) | def test_getter_name(self) -> None:
FILE: mypyc/test/test_emitfunc.py
class TestFunctionEmitterVisitor (line 75) | class TestFunctionEmitterVisitor(unittest.TestCase):
method setUp (line 78) | def setUp(self) -> None:
method test_goto (line 120) | def test_goto(self) -> None:
method test_goto_next_block (line 123) | def test_goto_next_block(self) -> None:
method test_return (line 127) | def test_return(self) -> None:
method test_integer (line 130) | def test_integer(self) -> None:
method test_tuple_get (line 134) | def test_tuple_get(self) -> None:
method test_load_None (line 137) | def test_load_None(self) -> None: # noqa: N802
method test_assign_int (line 143) | def test_assign_int(self) -> None:
method test_int_add (line 146) | def test_int_add(self) -> None:
method test_int_sub (line 151) | def test_int_sub(self) -> None:
method test_int_neg (line 156) | def test_int_neg(self) -> None:
method test_branch (line 172) | def test_branch(self) -> None:
method test_branch_no_else (line 192) | def test_branch_no_else(self) -> None:
method test_branch_no_else_negated (line 201) | def test_branch_no_else_negated(self) -> None:
method test_branch_is_error (line 210) | def test_branch_is_error(self) -> None:
method test_branch_is_error_next_block (line 231) | def test_branch_is_error_next_block(self) -> None:
method test_branch_rare (line 239) | def test_branch_rare(self) -> None:
method test_call (line 262) | def test_call(self) -> None:
method test_call_two_args (line 268) | def test_call_two_args(self) -> None:
method test_inc_ref (line 281) | def test_inc_ref(self) -> None:
method test_dec_ref (line 285) | def test_dec_ref(self) -> None:
method test_inc_ref_int (line 289) | def test_inc_ref_int(self) -> None:
method test_dec_ref_int (line 293) | def test_dec_ref_int(self) -> None:
method test_dec_ref_tuple (line 297) | def test_dec_ref_tuple(self) -> None:
method test_dec_ref_tuple_nested (line 300) | def test_dec_ref_tuple_nested(self) -> None:
method test_list_get_item (line 303) | def test_list_get_item(self) -> None:
method test_list_set_item (line 317) | def test_list_set_item(self) -> None:
method test_box_int (line 331) | def test_box_int(self) -> None:
method test_unbox_int (line 334) | def test_unbox_int(self) -> None:
method test_box_i64 (line 345) | def test_box_i64(self) -> None:
method test_unbox_i64 (line 348) | def test_unbox_i64(self) -> None:
method test_list_append (line 353) | def test_list_append(self) -> None:
method test_get_attr (line 367) | def test_get_attr(self) -> None:
method test_get_attr_non_refcounted (line 379) | def test_get_attr_non_refcounted(self) -> None:
method test_get_attr_merged (line 389) | def test_get_attr_merged(self) -> None:
method test_get_attr_with_bitmap (line 408) | def test_get_attr_with_bitmap(self) -> None:
method test_set_attr (line 418) | def test_set_attr(self) -> None:
method test_set_attr_non_refcounted (line 429) | def test_set_attr_non_refcounted(self) -> None:
method test_set_attr_no_error (line 437) | def test_set_attr_no_error(self) -> None:
method test_set_attr_non_refcounted_no_error (line 449) | def test_set_attr_non_refcounted_no_error(self) -> None:
method test_set_attr_with_bitmap (line 458) | def test_set_attr_with_bitmap(self) -> None:
method test_set_attr_init_with_bitmap (line 480) | def test_set_attr_init_with_bitmap(self) -> None:
method test_dict_get_item (line 493) | def test_dict_get_item(self) -> None:
method test_dict_set_item (line 507) | def test_dict_set_item(self) -> None:
method test_dict_update (line 521) | def test_dict_update(self) -> None:
method test_new_dict (line 535) | def test_new_dict(self) -> None:
method test_dict_contains (line 549) | def test_dict_contains(self) -> None:
method test_int_op (line 554) | def test_int_op(self) -> None:
method test_comparison_op (line 600) | def test_comparison_op(self) -> None:
method test_load_mem (line 638) | def test_load_mem(self) -> None:
method test_set_mem (line 641) | def test_set_mem(self) -> None:
method test_get_element_ptr (line 646) | def test_get_element_ptr(self) -> None:
method test_load_address (line 660) | def test_load_address(self) -> None:
method test_assign_multi (line 666) | def test_assign_multi(self) -> None:
method test_long_unsigned (line 674) | def test_long_unsigned(self) -> None:
method test_long_signed (line 683) | def test_long_signed(self) -> None:
method test_cast_and_branch_merge (line 692) | def test_cast_and_branch_merge(self) -> None:
method test_cast_and_branch_no_merge_1 (line 712) | def test_cast_and_branch_no_merge_1(self) -> None:
method test_cast_and_branch_no_merge_2 (line 731) | def test_cast_and_branch_no_merge_2(self) -> None:
method test_cast_and_branch_no_merge_3 (line 751) | def test_cast_and_branch_no_merge_3(self) -> None:
method test_cast_and_branch_no_merge_4 (line 770) | def test_cast_and_branch_no_merge_4(self) -> None:
method test_extend (line 788) | def test_extend(self) -> None:
method assert_emit (line 808) | def assert_emit(
method assert_emit_binary_op (line 853) | def assert_emit_binary_op(
class TestGenerateFunction (line 884) | class TestGenerateFunction(unittest.TestCase):
method setUp (line 885) | def setUp(self) -> None:
method test_simple (line 890) | def test_simple(self) -> None:
method test_register (line 907) | def test_register(self) -> None:
FILE: mypyc/test/test_emitwrapper.py
class TestArgCheck (line 12) | class TestArgCheck(unittest.TestCase):
method setUp (line 13) | def setUp(self) -> None:
method test_check_list (line 16) | def test_check_list(self) -> None:
method test_check_int (line 33) | def test_check_int(self) -> None:
method assert_lines (line 58) | def assert_lines(self, expected: list[str], actual: list[str]) -> None:
FILE: mypyc/test/test_exceptions.py
class TestExceptionTransform (line 31) | class TestExceptionTransform(MypycDataSuite):
method run_case (line 35) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypyc/test/test_external.py
class TestExternal (line 14) | class TestExternal(unittest.TestCase):
method test_c_unit_test (line 18) | def test_c_unit_test(self) -> None:
FILE: mypyc/test/test_irbuild.py
class TestGenOps (line 61) | class TestGenOps(MypycDataSuite):
method run_case (line 66) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypyc/test/test_ircheck.py
function assert_has_error (line 34) | def assert_has_error(fn: FuncIR, error: FnError) -> None:
function assert_no_errors (line 39) | def assert_no_errors(fn: FuncIR) -> None:
class TestIrcheck (line 46) | class TestIrcheck(unittest.TestCase):
method setUp (line 47) | def setUp(self) -> None:
method basic_block (line 50) | def basic_block(self, ops: list[Op]) -> BasicBlock:
method func_decl (line 56) | def func_decl(self, name: str, ret_type: RType | None = None) -> FuncD...
method test_valid_fn (line 66) | def test_valid_fn(self) -> None:
method test_block_not_terminated_empty_block (line 75) | def test_block_not_terminated_empty_block(self) -> None:
method test_valid_goto (line 80) | def test_valid_goto(self) -> None:
method test_invalid_goto (line 86) | def test_invalid_goto(self) -> None:
method test_invalid_register_source (line 98) | def test_invalid_register_source(self) -> None:
method test_invalid_op_source (line 104) | def test_invalid_op_source(self) -> None:
method test_invalid_return_type (line 112) | def test_invalid_return_type(self) -> None:
method test_invalid_assign (line 123) | def test_invalid_assign(self) -> None:
method test_can_coerce_to (line 136) | def test_can_coerce_to(self) -> None:
method test_duplicate_op (line 159) | def test_duplicate_op(self) -> None:
method test_pprint (line 166) | def test_pprint(self) -> None:
method test_load_address_declares_register (line 185) | def test_load_address_declares_register(self) -> None:
FILE: mypyc/test/test_literals.py
class TestLiterals (line 16) | class TestLiterals(unittest.TestCase):
method test_format_str_literal (line 17) | def test_format_str_literal(self) -> None:
method test_encode_str_values (line 24) | def test_encode_str_values(self) -> None:
method test_encode_bytes_values (line 35) | def test_encode_bytes_values(self) -> None:
method test_encode_int_values (line 46) | def test_encode_int_values(self) -> None:
method test_simple_literal_index (line 57) | def test_simple_literal_index(self) -> None:
method test_tuple_literal (line 70) | def test_tuple_literal(self) -> None:
FILE: mypyc/test/test_lowering.py
class TestLowering (line 30) | class TestLowering(MypycDataSuite):
method run_case (line 34) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypyc/test/test_namegen.py
class TestNameGen (line 13) | class TestNameGen(unittest.TestCase):
method test_candidate_suffixes (line 14) | def test_candidate_suffixes(self) -> None:
method test_exported_name (line 18) | def test_exported_name(self) -> None:
method test_make_module_translation_map (line 22) | def test_make_module_translation_map(self) -> None:
method test_name_generator (line 45) | def test_name_generator(self) -> None:
FILE: mypyc/test/test_optimizations.py
class OptimizationSuite (line 27) | class OptimizationSuite(MypycDataSuite):
method run_case (line 35) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method do_optimizations (line 53) | def do_optimizations(self, fn: FuncIR) -> None:
class TestCopyPropagation (line 57) | class TestCopyPropagation(OptimizationSuite):
method do_optimizations (line 60) | def do_optimizations(self, fn: FuncIR) -> None:
class TestFlagElimination (line 64) | class TestFlagElimination(OptimizationSuite):
method do_optimizations (line 67) | def do_optimizations(self, fn: FuncIR) -> None:
FILE: mypyc/test/test_pprint.py
function register (line 10) | def register(name: str) -> Register:
function make_block (line 14) | def make_block(ops: list[Op]) -> BasicBlock:
class TestGenerateNames (line 20) | class TestGenerateNames(unittest.TestCase):
method test_empty (line 21) | def test_empty(self) -> None:
method test_arg (line 24) | def test_arg(self) -> None:
method test_int_op (line 28) | def test_int_op(self) -> None:
method test_assign (line 36) | def test_assign(self) -> None:
FILE: mypyc/test/test_rarray.py
class TestRArray (line 17) | class TestRArray(unittest.TestCase):
method test_basics (line 18) | def test_basics(self) -> None:
method test_str_conversion (line 23) | def test_str_conversion(self) -> None:
method test_eq (line 28) | def test_eq(self) -> None:
method test_hash (line 34) | def test_hash(self) -> None:
method test_alignment (line 38) | def test_alignment(self) -> None:
method test_size (line 44) | def test_size(self) -> None:
FILE: mypyc/test/test_refcount.py
class TestRefCountTransform (line 32) | class TestRefCountTransform(MypycDataSuite):
method run_case (line 37) | def run_case(self, testcase: DataDrivenTestCase) -> None:
FILE: mypyc/test/test_run.py
function run_setup (line 94) | def run_setup(script_name: str, script_args: list[str]) -> bool:
function chdir_manager (line 130) | def chdir_manager(target: str) -> Iterator[None]:
class TestRun (line 139) | class TestRun(MypycDataSuite):
method run_case (line 149) | def run_case(self, testcase: DataDrivenTestCase) -> None:
method run_case_inner (line 158) | def run_case_inner(self, testcase: DataDrivenTestCase) -> None:
method run_case_step (line 193) | def run_case_step(self, testcase: DataDrivenTestCase, incremental_step...
method get_separate (line 392) | def get_separate(self, program_text: str, incremental_step: int) -> Any:
class TestRunMultiFile (line 403) | class TestRunMultiFile(TestRun):
class TestRunSeparate (line 415) | class TestRunSeparate(TestRun):
class TestRunStrictDunderTyping (line 436) | class TestRunStrictDunderTyping(TestRun):
function fix_native_line_number (line 444) | def fix_native_line_number(message: str, fnam: str, delta: int) -> str:
function copy_output_files (line 471) | def copy_output_files(target_dir: str) -> None:
FILE: mypyc/test/test_serialization.py
function get_dict (line 19) | def get_dict(x: Any) -> dict[str, Any]:
function get_function_dict (line 26) | def get_function_dict(x: FuncIR) -> dict[str, Any]:
function assert_blobs_same (line 34) | def assert_blobs_same(x: Any, y: Any, trail: tuple[Any, ...]) -> None:
function assert_modules_same (line 76) | def assert_modules_same(ir1: ModuleIR, ir2: ModuleIR) -> None:
function check_serialization_roundtrip (line 99) | def check_serialization_roundtrip(irs: dict[str, ModuleIR]) -> None:
FILE: mypyc/test/test_struct.py
class TestStruct (line 16) | class TestStruct(unittest.TestCase):
method test_struct_offsets (line 17) | def test_struct_offsets(self) -> None:
method test_struct_str (line 50) | def test_struct_str(self) -> None:
method test_runtime_subtype (line 64) | def test_runtime_subtype(self) -> None:
method test_eq_and_hash (line 91) | def test_eq_and_hash(self) -> None:
FILE: mypyc/test/test_tuplename.py
class TestTupleNames (line 17) | class TestTupleNames(unittest.TestCase):
method setUp (line 18) | def setUp(self) -> None:
method test_names (line 22) | def test_names(self) -> None:
FILE: mypyc/test/test_typeops.py
class TestSubtype (line 25) | class TestSubtype(unittest.TestCase):
method test_bit (line 26) | def test_bit(self) -> None:
method test_bool (line 33) | def test_bool(self) -> None:
method test_int64 (line 40) | def test_int64(self) -> None:
method test_int32 (line 47) | def test_int32(self) -> None:
method test_int16 (line 54) | def test_int16(self) -> None:
class TestRuntimeSubtype (line 62) | class TestRuntimeSubtype(unittest.TestCase):
method test_bit (line 63) | def test_bit(self) -> None:
method test_bool (line 67) | def test_bool(self) -> None:
method test_union (line 71) | def test_union(self) -> None:
class TestUnionSimplification (line 79) | class TestUnionSimplification(unittest.TestCase):
method test_simple_type_result (line 80) | def test_simple_type_result(self) -> None:
method test_remove_duplicate (line 83) | def test_remove_duplicate(self) -> None:
method test_cannot_simplify (line 86) | def test_cannot_simplify(self) -> None:
method test_nested (line 91) | def test_nested(self) -> None:
FILE: mypyc/test/testutil.py
class MypycDataSuite (line 35) | class MypycDataSuite(DataSuite):
function builtins_wrapper (line 41) | def builtins_wrapper(
function use_custom_builtins (line 52) | def use_custom_builtins(builtins_path: str, testcase: DataDrivenTestCase...
function perform_test (line 72) | def perform_test(
function build_ir_for_single_file (line 93) | def build_ir_for_single_file(
function build_ir_for_single_file2 (line 99) | def build_ir_for_single_file2(
function update_testcase_output (line 148) | def update_testcase_output(testcase: DataDrivenTestCase, output: list[st...
function assert_test_output (line 176) | def assert_test_output(
function get_func_names (line 194) | def get_func_names(expected: list[str]) -> list[str]:
function remove_comment_lines (line 203) | def remove_comment_lines(a: list[str]) -> list[str]:
function print_with_line_numbers (line 217) | def print_with_line_numbers(s: str) -> None:
function heading (line 223) | def heading(text: str) -> None:
function show_c (line 227) | def show_c(cfiles: list[list[tuple[str, str]]]) -> None:
function fudge_dir_mtimes (line 236) | def fudge_dir_mtimes(dir: str, delta: int) -> None:
function replace_word_size (line 244) | def replace_word_size(text: list[str]) -> list[str]:
function infer_ir_build_options_from_test_name (line 260) | def infer_ir_build_options_from_test_name(name: str) -> CompilerOptions ...
FILE: mypyc/transform/copy_propagation.py
function do_copy_propagation (line 25) | def do_copy_propagation(fn: FuncIR, options: CompilerOptions) -> None:
class CopyPropagationTransform (line 85) | class CopyPropagationTransform(IRTransform):
method __init__ (line 86) | def __init__(self, builder: LowLevelIRBuilder, map: dict[Value, Value]...
method visit_assign (line 91) | def visit_assign(self, op: Assign) -> Value | None:
FILE: mypyc/transform/exceptions.py
function insert_exception_handling (line 44) | def insert_exception_handling(ir: FuncIR) -> None:
function add_default_handler_block (line 57) | def add_default_handler_block(ir: FuncIR) -> BasicBlock:
function split_blocks_at_errors (line 66) | def split_blocks_at_errors(
function primitive_call (line 142) | def primitive_call(desc: CFunctionDescription, args: list[Value], line: ...
function adjust_error_kinds (line 154) | def adjust_error_kinds(block: BasicBlock) -> None:
function insert_overlapping_error_value_check (line 169) | def insert_overlapping_error_value_check(ops: list[Op], target: Value) -...
FILE: mypyc/transform/flag_elimination.py
function do_flag_elimination (line 38) | def do_flag_elimination(fn: FuncIR, options: CompilerOptions) -> None:
class FlagEliminationTransform (line 74) | class FlagEliminationTransform(IRTransform):
method __init__ (line 75) | def __init__(self, builder: LowLevelIRBuilder, branch_map: dict[Regist...
method visit_assign (line 80) | def visit_assign(self, op: Assign) -> None:
method visit_goto (line 99) | def visit_goto(self, op: Goto) -> None:
method visit_branch (line 103) | def visit_branch(self, op: Branch) -> None:
FILE: mypyc/transform/ir_transform.py
class IRTransform (line 54) | class IRTransform(OpVisitor[Optional[Value]]):
method __init__ (line 71) | def __init__(self, builder: LowLevelIRBuilder) -> None:
method transform_blocks (line 77) | def transform_blocks(self, blocks: list[BasicBlock]) -> None:
method add (line 106) | def add(self, op: Op) -> Value:
method visit_goto (line 109) | def visit_goto(self, op: Goto) -> None:
method visit_branch (line 112) | def visit_branch(self, op: Branch) -> None:
method visit_return (line 115) | def visit_return(self, op: Return) -> None:
method visit_unreachable (line 118) | def visit_unreachable(self, op: Unreachable) -> None:
method visit_assign (line 121) | def visit_assign(self, op: Assign) -> Value | None:
method visit_assign_multi (line 124) | def visit_assign_multi(self, op: AssignMulti) -> Value | None:
method visit_load_error_value (line 127) | def visit_load_error_value(self, op: LoadErrorValue) -> Value | None:
method visit_load_literal (line 130) | def visit_load_literal(self, op: LoadLiteral) -> Value | None:
method visit_get_attr (line 133) | def visit_get_attr(self, op: GetAttr) -> Value | None:
method visit_set_attr (line 136) | def visit_set_attr(self, op: SetAttr) -> Value | None:
method visit_load_static (line 139) | def visit_load_static(self, op: LoadStatic) -> Value | None:
method visit_init_static (line 142) | def visit_init_static(self, op: InitStatic) -> Value | None:
method visit_tuple_get (line 145) | def visit_tuple_get(self, op: TupleGet) -> Value | None:
method visit_tuple_set (line 148) | def visit_tuple_set(self, op: TupleSet) -> Value | None:
method visit_inc_ref (line 151) | def visit_inc_ref(self, op: IncRef) -> Value | None:
method visit_dec_ref (line 154) | def visit_dec_ref(self, op: DecRef) -> Value | None:
method visit_call (line 157) | def visit_call(self, op: Call) -> Value | None:
method visit_method_call (line 160) | def visit_method_call(self, op: MethodCall) -> Value | None:
method visit_cast (line 163) | def visit_cast(self, op: Cast) -> Value | None:
method visit_box (line 166) | def visit_box(self, op: Box) -> Value | None:
method visit_unbox (line 169) | def visit_unbox(self, op: Unbox) -> Value | None:
method visit_raise_standard_error (line 172) | def visit_raise_standard_error(self, op: RaiseStandardError) -> Value ...
method visit_call_c (line 175) | def visit_call_c(self, op: CallC) -> Value | None:
method visit_primitive_op (line 178) | def visit_primitive_op(self, op: PrimitiveOp) -> Value | None:
method visit_truncate (line 181) | def visit_truncate(self, op: Truncate) -> Value | None:
method visit_extend (line 184) | def visit_extend(self, op: Extend) -> Value | None:
method visit_load_global (line 187) | def visit_load_global(self, op: LoadGlobal) -> Value | None:
method visit_int_op (line 190) | def visit_int_op(self, op: IntOp) -> Value | None:
method visit_comparison_op (line 193) | def visit_comparison_op(self, op: ComparisonOp) -> Value | None:
method visit_float_op (line 196) | def visit_float_op(self, op: FloatOp) -> Value | None:
method visit_float_neg (line 199) | def visit_float_neg(self, op: FloatNeg) -> Value | None:
method visit_float_comparison_op (line 202) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> Value | ...
method visit_load_mem (line 205) | def visit_load_mem(self, op: LoadMem) -> Value | None:
method visit_set_mem (line 208) | def visit_set_mem(self, op: SetMem) -> Value | None:
method visit_get_element_ptr (line 211) | def visit_get_element_ptr(self, op: GetElementPtr) -> Value | None:
method visit_load_address (line 214) | def visit_load_address(self, op: LoadAddress) -> Value | None:
method visit_keep_alive (line 217) | def visit_keep_alive(self, op: KeepAlive) -> Value | None:
method visit_unborrow (line 220) | def visit_unborrow(self, op: Unborrow) -> Value | None:
class PatchVisitor (line 224) | class PatchVisitor(OpVisitor[None]):
method __init__ (line 225) | def __init__(
method fix_op (line 231) | def fix_op(self, op: Value) -> Value:
method fix_block (line 236) | def fix_block(self, block: BasicBlock) -> BasicBlock:
method visit_goto (line 239) | def visit_goto(self, op: Goto) -> None:
method visit_branch (line 242) | def visit_branch(self, op: Branch) -> None:
method visit_return (line 247) | def visit_return(self, op: Return) -> None:
method visit_unreachable (line 250) | def visit_unreachable(self, op: Unreachable) -> None:
method visit_assign (line 253) | def visit_assign(self, op: Assign) -> None:
method visit_assign_multi (line 256) | def visit_assign_multi(self, op: AssignMulti) -> None:
method visit_load_error_value (line 259) | def visit_load_error_value(self, op: LoadErrorValue) -> None:
method visit_load_literal (line 262) | def visit_load_literal(self, op: LoadLiteral) -> None:
method visit_get_attr (line 265) | def visit_get_attr(self, op: GetAttr) -> None:
method visit_set_attr (line 268) | def visit_set_attr(self, op: SetAttr) -> None:
method visit_load_static (line 272) | def visit_load_static(self, op: LoadStatic) -> None:
method visit_init_static (line 275) | def visit_init_static(self, op: InitStatic) -> None:
method visit_tuple_get (line 278) | def visit_tuple_get(self, op: TupleGet) -> None:
method visit_tuple_set (line 281) | def visit_tuple_set(self, op: TupleSet) -> None:
method visit_inc_ref (line 284) | def visit_inc_ref(self, op: IncRef) -> None:
method visit_dec_ref (line 287) | def visit_dec_ref(self, op: DecRef) -> None:
method visit_call (line 290) | def visit_call(self, op: Call) -> None:
method visit_method_call (line 293) | def visit_method_call(self, op: MethodCall) -> None:
method visit_cast (line 297) | def visit_cast(self, op: Cast) -> None:
method visit_box (line 300) | def visit_box(self, op: Box) -> None:
method visit_unbox (line 303) | def visit_unbox(self, op: Unbox) -> None:
method visit_raise_standard_error (line 306) | def visit_raise_standard_error(self, op: RaiseStandardError) -> None:
method visit_call_c (line 310) | def visit_call_c(self, op: CallC) -> None:
method visit_primitive_op (line 313) | def visit_primitive_op(self, op: PrimitiveOp) -> None:
method visit_truncate (line 316) | def visit_truncate(self, op: Truncate) -> None:
method visit_extend (line 319) | def visit_extend(self, op: Extend) -> None:
method visit_load_global (line 322) | def visit_load_global(self, op: LoadGlobal) -> None:
method visit_int_op (line 325) | def visit_int_op(self, op: IntOp) -> None:
method visit_comparison_op (line 329) | def visit_comparison_op(self, op: ComparisonOp) -> None:
method visit_float_op (line 333) | def visit_float_op(self, op: FloatOp) -> None:
method visit_float_neg (line 337) | def visit_float_neg(self, op: FloatNeg) -> None:
method visit_float_comparison_op (line 340) | def visit_float_comparison_op(self, op: FloatComparisonOp) -> None:
method visit_load_mem (line 344) | def visit_load_mem(self, op: LoadMem) -> None:
method visit_set_mem (line 347) | def visit_set_mem(self, op: SetMem) -> None:
method visit_get_element_ptr (line 351) | def visit_get_element_ptr(self, op: GetElementPtr) -> None:
method visit_load_address (line 354) | def visit_load_address(self, op: LoadAddress) -> None:
method visit_keep_alive (line 360) | def visit_keep_alive(self, op: KeepAlive) -> None:
method visit_unborrow (line 363) | def visit_unborrow(self, op: Unborrow) -> None:
function is_empty_block (line 367) | def is_empty_block(block: BasicBlock) -> bool:
FILE: mypyc/transform/lower.py
function lower_ir (line 20) | def lower_ir(ir: FuncIR, options: CompilerOptions) -> None:
class LoweringVisitor (line 27) | class LoweringVisitor(IRTransform):
method visit_primitive_op (line 28) | def visit_primitive_op(self, op: PrimitiveOp) -> Value:
FILE: mypyc/transform/refcount.py
function insert_ref_count_opcodes (line 58) | def insert_ref_count_opcodes(ir: FuncIR) -> None:
function is_maybe_undefined (line 90) | def is_maybe_undefined(post_must_defined: set[Value], src: Value) -> bool:
function maybe_append_dec_ref (line 94) | def maybe_append_dec_ref(
function maybe_append_inc_ref (line 101) | def maybe_append_inc_ref(ops: list[Op], dest: Value) -> None:
function transform_block (line 106) | def transform_block(
function insert_branch_inc_and_decrefs (line 157) | def insert_branch_inc_and_decrefs(
function after_branch_decrefs (line 207) | def after_branch_decrefs(
function after_branch_increfs (line 227) | def after_branch_increfs(
function add_block (line 244) | def add_block(
function make_value_ordering (line 263) | def make_value_ordering(ir: FuncIR) -> dict[Value, int]:
FILE: mypyc/transform/uninit.py
function insert_uninit_checks (line 26) | def insert_uninit_checks(ir: FuncIR) -> None:
function split_blocks_at_uninits (line 39) | def split_blocks_at_uninits(
function check_for_uninit_using_bitmap (line 128) | def check_for_uninit_using_bitmap(
function update_register_assignments_to_set_bitmap (line 162) | def update_register_assignments_to_set_bitmap(
FILE: runtests.py
function run_cmd (line 104) | def run_cmd(name: str) -> int:
function start_background_cmd (line 117) | def start_background_cmd(name: str) -> Popen:
function wait_background_cmd (line 123) | def wait_background_cmd(name: str, proc: Popen) -> int:
function main (line 135) | def main() -> None:
FILE: setup.py
function is_list_of_setuptools_extension (line 30) | def is_list_of_setuptools_extension(items: list[Any]) -> TypeGuard[list[...
function find_package_data (line 34) | def find_package_data(base, globs, root="mypy"):
class CustomPythonBuild (line 54) | class CustomPythonBuild(build_py):
method pin_version (line 55) | def pin_version(self):
method run (line 64) | def run(self):
FILE: test-data/packages/typedpkg-stubs/typedpkg-stubs/sample.pyi
function ex (line 2) | def ex(a: Iterable[str]) -> List[str]: ...
FILE: test-data/packages/typedpkg/typedpkg/pkg/aaa.py
function af (line 1) | def af(a: str) -> str:
FILE: test-data/packages/typedpkg/typedpkg/sample.py
function ex (line 4) | def ex(a):
FILE: test-data/packages/typedpkg_ns_a/typedpkg_ns/a/bbb.py
function bf (line 1) | def bf(a: bool) -> bool:
FILE: test-data/packages/typedpkg_ns_b-stubs/typedpkg_ns-stubs/b/bbb.pyi
function bf (line 1) | def bf(a: bool) -> bool: ...
FILE: test-data/packages/typedpkg_ns_b/typedpkg_ns/b/bbb.py
function bf (line 1) | def bf(a):
FILE: test-data/pybind11_fixtures/expected_stubs_no_docs/pybind11_fixtures/__init__.pyi
class StaticMethods (line 5) | class StaticMethods:
method __init__ (line 6) | def __init__(self, *args, **kwargs) -> None: ...
method overloaded_static_method (line 9) | def overloaded_static_method(value: int) -> int: ...
method overloaded_static_method (line 12) | def overloaded_static_method(value: float) -> float: ...
method some_static_method (line 14) | def some_static_method(a: int, b: int) -> int: ...
class TestStruct (line 16) | class TestStruct:
method __init__ (line 19) | def __init__(self, *args, **kwargs) -> None: ...
method field_readonly (line 21) | def field_readonly(self) -> int: ...
function func_incomplete_signature (line 23) | def func_incomplete_signature(*args, **kwargs): ...
function func_returning_optional (line 24) | def func_returning_optional() -> int | None: ...
function func_returning_pair (line 25) | def func_returning_pair() -> tuple[int, float]: ...
function func_returning_path (line 26) | def func_returning_path() -> os.PathLike: ...
function func_returning_vector (line 27) | def func_returning_vector() -> list[float]: ...
FILE: test-data/pybind11_fixtures/expected_stubs_no_docs/pybind11_fixtures/demo.pyi
class Point (line 6) | class Point:
class AngleUnit (line 7) | class AngleUnit:
method __init__ (line 12) | def __init__(self, value: int) -> None: ...
method __eq__ (line 13) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 14) | def __hash__(self) -> int: ...
method __index__ (line 15) | def __index__(self) -> int: ...
method __int__ (line 16) | def __int__(self) -> int: ...
method __ne__ (line 17) | def __ne__(self, other: object) -> bool: ...
method name (line 19) | def name(self) -> str: ...
method value (line 21) | def value(self) -> int: ...
class LengthUnit (line 23) | class LengthUnit:
method __init__ (line 29) | def __init__(self, value: int) -> None: ...
method __eq__ (line 30) | def __eq__(self, other: object) -> bool: ...
method __hash__ (line 31) | def __hash__(self) -> int: ...
method __index__ (line 32) | def __index__(self) -> int: ...
method __int__ (line 33) | def __int__(self) -> int: ...
method __ne__ (line 34) | def __ne__(self, other: object) -> bool: ...
method name (line 36) | def name(self) -> str: ...
method value (line 38) | def value(self) -> int: ...
method __init__ (line 47) | def __init__(self) -> None: ...
method __init__ (line 49) | def __init__(self, x: float, y: float) -> None: ...
method as_list (line 50) | def as_list(self) -> list[float]: ...
method distance_to (line 52) | def distance_to(self, x: float, y: float) -> float: ...
method distance_to (line 54) | def distance_to(self, other: Point) -> float: ...
method length (line 56) | def length(self) -> float: ...
function answer (line 58) | def answer() -> int: ...
function midpoint (line 59) | def midpoint(left: float, right: float) -> float: ...
function sum (line 60) | def sum(arg0: int, arg1: int) -> int: ...
function weighted_midpoint (line 61) | def weighted_midpoint(left: float, right: float, alpha: float = ...) -> ...
FILE: test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/__init__.pyi
class StaticMethods (line 5) | class StaticMethods:
method __init__ (line 6) | def __init__(self, *args, **kwargs) -> None:
method overloaded_static_method (line 10) | def overloaded_static_method(value: int) -> int:
method overloaded_static_method (line 20) | def overloaded_static_method(value: float) -> float:
method some_static_method (line 29) | def some_static_method(a: int, b: int) -> int:
class TestStruct (line 35) | class TestStruct:
method __init__ (line 38) | def __init__(self, *args, **kwargs) -> None:
method field_readonly (line 41) | def field_readonly(self) -> int: ...
function func_incomplete_signature (line 43) | def func_incomplete_signature(*args, **kwargs):
function func_returning_optional (line 45) | def func_returning_optional() -> int | None:
function func_returning_pair (line 47) | def func_returning_pair() -> tuple[int, float]:
function func_returning_path (line 49) | def func_returning_path() -> os.PathLike:
function func_returning_vector (line 51) | def func_returning_vector() -> list[float]:
FILE: test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/demo.pyi
class Point (line 6) | class Point:
class AngleUnit (line 7) | class AngleUnit:
method __init__ (line 12) | def __init__(self, value: int) -> None:
method __eq__ (line 14) | def __eq__(self, other: object) -> bool:
method __hash__ (line 16) | def __hash__(self) -> int:
method __index__ (line 18) | def __index__(self) -> int:
method __int__ (line 20) | def __int__(self) -> int:
method __ne__ (line 22) | def __ne__(self, other: object) -> bool:
method name (line 25) | def name(self) -> str: ...
method value (line 27) | def value(self) -> int: ...
class LengthUnit (line 29) | class LengthUnit:
method __init__ (line 35) | def __init__(self, value: int) -> None:
method __eq__ (line 37) | def __eq__(self, other: object) -> bool:
method __hash__ (line 39) | def __hash__(self) -> int:
method __index__ (line 41) | def __index__(self) -> int:
method __int__ (line 43) | def __int__(self) -> int:
method __ne__ (line 45) | def __ne__(self, other: object) -> bool:
method name (line 48) | def name(self) -> str: ...
method value (line 50) | def value(self) -> int: ...
method __init__ (line 59) | def __init__(self) -> None:
method __init__ (line 68) | def __init__(self, x: float, y: float) -> None:
method as_list (line 76) | def as_list(self) -> list[float]:
method distance_to (line 79) | def distance_to(self, x: float, y: float) -> float:
method distance_to (line 88) | def distance_to(self, other: Point) -> float:
method length (line 97) | def length(self) -> float: ...
function answer (line 99) | def answer() -> int:
function midpoint (line 104) | def midpoint(left: float, right: float) -> float:
function sum (line 106) | def sum(arg0: int, arg1: int) -> int:
function weighted_midpoint (line 111) | def weighted_midpoint(left: float, right: float, alpha: float = ...) -> ...
FILE: test-data/pybind11_fixtures/src/main.cpp
function funcReturningVector (line 61) | std::vector funcReturningVector()
function funcReturningPair (line 66) | std::pair funcReturningPair()
function funcReturningOptional (line 71) | std::optional funcReturningOptional()
function funcReturningPath (line 76) | std::filesystem::path funcReturningPath()
type dummy_sub_namespace (line 81) | namespace dummy_sub_namespace {
type HasNoBinding (line 82) | struct HasNoBinding{}
function funcIncompleteSignature (line 87) | dummy_sub_namespace::HasNoBinding funcIncompleteSignature()
type TestStruct (line 92) | struct TestStruct
type StaticMethods (line 99) | struct StaticMethods
method some_static_method (line 101) | static int some_static_method(int a, int b) { return 42; }
method overloaded_static_method (line 102) | static int overloaded_static_method(int value) { return 42; }
method overloaded_static_method (line 103) | static double overloaded_static_method(double value) { return 1.0; }
function bind_test_cases (line 108) | void bind_test_cases(py::module& m) {
type demo (line 145) | namespace demo {
function answer (line 147) | int answer() {
function sum (line 151) | int sum(int a, int b) {
function midpoint (line 155) | double midpoint(double left, double right){
function weighted_midpoint (line 159) | double weighted_midpoint(double left, double right, double alpha=0.5) {
type Point (line 163) | struct Point {
type LengthUnit (line 165) | enum class LengthUnit {
type AngleUnit (line 171) | enum class AngleUnit {
method Point (line 176) | Point() : Point(0, 0) {}
method Point (line 177) | Point(double x, double y) : x(x), y(y) {}
method length (line 186) | double length() const {
method distance_to (line 190) | double distance_to(double other_x, double other_y) const {
method distance_to (line 196) | double distance_to(const Point& other) const {
method as_vector (line 200) | std::vector as_vector()
function bind_demo (line 219) | void bind_demo(py::module& m) {
function PYBIND11_MODULE (line 274) | PYBIND11_MODULE(pybind11_fixtures, m) {
FILE: test-data/unit/fixtures/__init_subclass__.pyi
class object (line 5) | class object:
method __init_subclass__ (line 6) | def __init_subclass__(cls) -> None: pass
class type (line 8) | class type: pass
class int (line 10) | class int: pass
class bool (line 11) | class bool: pass
class str (line 12) | class str: pass
class function (line 13) | class function: pass
class dict (line 14) | class dict: pass
FILE: test-data/unit/fixtures/__new__.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
method __new__ (line 10) | def __new__(cls) -> Any: pass
class type (line 12) | class type:
method __init__ (line 13) | def __init__(self, x) -> None: pass
class int (line 15) | class int: pass
class bool (line 16) | class bool: pass
class str (line 17) | class str: pass
class function (line 18) | class function: pass
class dict (line 19) | class dict: pass
FILE: test-data/unit/fixtures/alias.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
class type (line 7) | class type:
method __init__ (line 8) | def __init__(self, x) -> None: pass
class int (line 10) | class int: pass
class str (line 11) | class str: pass
class function (line 12) | class function: pass
class dict (line 16) | class dict: pass
FILE: test-data/unit/fixtures/any.pyi
class int (line 5) | class int: pass
class str (line 6) | class str: pass
function any (line 8) | def any(i: Iterable[T]) -> bool: pass
class dict (line 10) | class dict: pass
FILE: test-data/unit/fixtures/args.pyi
class object (line 10) | class object:
method __init__ (line 11) | def __init__(self) -> None: pass
method __eq__ (line 12) | def __eq__(self, o: object) -> bool: pass
method __ne__ (line 13) | def __ne__(self, o: object) -> bool: pass
class type (line 15) | class type:
method __init__ (line 17) | def __init__(self, o: object) -> None: pass
method __init__ (line 19) | def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str,...
method __call__ (line 20) | def __call__(self, *args: Any, **kwargs: Any) -> Any: pass
class tuple (line 22) | class tuple(Iterable[Tco], Generic[Tco]): pass
class dict (line 24) | class dict(Mapping[T, S], Generic[T, S]): pass
class list (line 26) | class list(Sequence[T], Generic[T]): pass
class int (line 28) | class int:
method __eq__ (line 29) | def __eq__(self, o: object) -> bool: pass
class float (line 30) | class float: pass
class str (line 31) | class str: pass
class bytes (line 32) | class bytes: pass
class bool (line 33) | class bool: pass
class function (line 34) | class function: pass
class ellipsis (line 35) | class ellipsis: pass
FILE: test-data/unit/fixtures/async_await.pyi
class list (line 5) | class list(typing.Sequence[T]):
method __iter__ (line 6) | def __iter__(self) -> typing.Iterator[T]: ...
method __getitem__ (line 7) | def __getitem__(self, i: int) -> T: ...
method __contains__ (line 8) | def __contains__(self, item: object) -> bool: ...
class object (line 10) | class object:
method __init__ (line 11) | def __init__(self) -> None: pass
class type (line 12) | class type: pass
class function (line 13) | class function: pass
class int (line 14) | class int: pass
class float (line 15) | class float: pass
class str (line 16) | class str: pass
class bool (line 17) | class bool(int): pass
class dict (line 18) | class dict(typing.Generic[T, U]): pass
class set (line 19) | class set(typing.Generic[T]): pass
class tuple (line 20) | class tuple(typing.Generic[T]): pass
class BaseException (line 21) | class BaseException: pass
class StopIteration (line 22) | class StopIteration(BaseException): pass
class StopAsyncIteration (line 23) | class StopAsyncIteration(BaseException): pass
function iter (line 24) | def iter(obj: typing.Any) -> typing.Any: pass
function next (line 25) | def next(obj: typing.Any) -> typing.Any: pass
class ellipsis (line 26) | class ellipsis: ...
FILE: test-data/unit/fixtures/bool.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
method __eq__ (line 7) | def __eq__(self, other: object) -> bool: pass
method __ne__ (line 8) | def __ne__(self, other: object) -> bool: pass
class type (line 10) | class type: pass
class tuple (line 11) | class tuple(Generic[T]): pass
class function (line 12) | class function: pass
class int (line 13) | class int: pass
class bool (line 14) | class bool(int): pass
class float (line 15) | class float: pass
class str (line 16) | class str: pass
class ellipsis (line 17) | class ellipsis: pass
class list (line 18) | class list(Generic[T]): pass
class property (line 19) | class property: pass
class dict (line 20) | class dict: pass
FILE: test-data/unit/fixtures/callable.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
class type (line 8) | class type:
method __init__ (line 9) | def __init__(self, x) -> None: pass
class tuple (line 11) | class tuple(Generic[T]): pass
class classmethod (line 13) | class classmethod: pass
class staticmethod (line 14) | class staticmethod: pass
class function (line 15) | class function: pass
function isinstance (line 17) | def isinstance(x: object, t: Union[type, Tuple[type, ...]]) -> bool: pass
function callable (line 19) | def callable(x: object) -> bool: pass
class int (line 21) | class int:
method __add__ (line 22) | def __add__(self, other: 'int') -> 'int': pass
method __eq__ (line 23) | def __eq__(self, other: 'int') -> 'bool': pass
class float (line 24) | class float: pass
class bool (line 25) | class bool(int): pass
class str (line 26) | class str:
method __add__ (line 27) | def __add__(self, other: 'str') -> 'str': pass
method __eq__ (line 28) | def __eq__(self, other: 'str') -> bool: pass
class ellipsis (line 29) | class ellipsis: pass
class list (line 30) | class list: ...
class dict (line 31) | class dict: pass
FILE: test-data/unit/fixtures/classmethod.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
class type (line 8) | class type:
method __init__ (line 9) | def __init__(self, x) -> None: pass
method mro (line 10) | def mro(self) -> typing.Any: pass
class function (line 12) | class function: pass
class classmethod (line 15) | class classmethod: pass
class staticmethod (line 16) | class staticmethod: pass
class int (line 18) | class int:
method from_bytes (line 20) | def from_bytes(cls, bytes: bytes, byteorder: str) -> int: pass
class float (line 22) | class float: pass
class str (line 23) | class str: pass
class bytes (line 24) | class bytes: pass
class bool (line 25) | class bool: pass
class ellipsis (line 26) | class ellipsis: pass
class tuple (line 28) | class tuple(typing.Generic[_T]): pass
class list (line 30) | class list: pass
class dict (line 31) | class dict: pass
FILE: test-data/unit/fixtures/complex.pyi
class object (line 4) | class object:
method __init__ (line 5) | def __init__(self): pass
class type (line 7) | class type: pass
class function (line 8) | class function: pass
class int (line 9) | class int: pass
class float (line 10) | class float: pass
class complex (line 11) | class complex: pass
class str (line 12) | class str: pass
class dict (line 13) | class dict: pass
FILE: test-data/unit/fixtures/complex_tuple.pyi
class object (line 4) | class object:
method __init__ (line 5) | def __init__(self): pass
class tuple (line 7) | class tuple(Generic[_T]): pass
class type (line 9) | class type: pass
class function (line 10) | class function: pass
class int (line 11) | class int: pass
class float (line 12) | class float: pass
class complex (line 13) | class complex: pass
class str (line 14) | class str: pass
class ellipsis (line 15) | class ellipsis: pass
class dict (line 16) | class dict: pass
FILE: test-data/unit/fixtures/dataclasses.pyi
class object (line 13) | class object:
method __init__ (line 14) | def __init__(self) -> None: pass
method __init_subclass__ (line 15) | def __init_subclass__(cls) -> None: pass
method __eq__ (line 16) | def __eq__(self, o: object) -> bool: pass
method __ne__ (line 17) | def __ne__(self, o: object) -> bool: pass
class type (line 19) | class type: pass
class ellipsis (line 20) | class ellipsis: pass
class tuple (line 21) | class tuple(Generic[_T]): pass
class int (line 22) | class int: pass
class float (line 23) | class float: pass
class complex (line 24) | class complex: pass
class bytes (line 25) | class bytes: pass
class str (line 26) | class str: pass
class bool (line 27) | class bool(int): pass
class dict (line 29) | class dict(Mapping[KT, VT]):
method __init__ (line 31) | def __init__(self, **kwargs: VT) -> None: pass
method __init__ (line 33) | def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None...
method __getitem__ (line 35) | def __getitem__(self, key: KT) -> VT: pass
method __setitem__ (line 36) | def __setitem__(self, k: KT, v: VT) -> None: pass
method __iter__ (line 38) | def __iter__(self) -> Iterator[KT]: pass
method __contains__ (line 39) | def __contains__(self, item: object) -> int: pass
method update (line 40) | def update(self, a: Mapping[KT, VT]) -> None: pass
method get (line 42) | def get(self, k: KT) -> Optional[VT]: pass
method get (line 44) | def get(self, k: KT, default: Union[KT, _T]) -> Union[VT, _T]: pass
method __len__ (line 45) | def __len__(self) -> int: ...
class list (line 47) | class list(Generic[_T], Sequence[_T]):
method __contains__ (line 48) | def __contains__(self, item: object) -> int: pass
method __getitem__ (line 50) | def __getitem__(self, key: int) -> _T: pass
method __iter__ (line 52) | def __iter__(self) -> Iterator[_T]: pass
class function (line 54) | class function: pass
class classmethod (line 55) | class classmethod: pass
class staticmethod (line 56) | class staticmethod: pass
FILE: test-data/unit/fixtures/dict-full.pyi
class object (line 15) | class object:
method __init__ (line 16) | def __init__(self) -> None: pass
method __init_subclass__ (line 17) | def __init_subclass__(cls) -> None: pass
method __eq__ (line 18) | def __eq__(self, other: object) -> bool: pass
class type (line 20) | class type:
class dict (line 23) | class dict(Mapping[KT, VT]):
method __init__ (line 25) | def __init__(self, **kwargs: VT) -> None: pass
method __init__ (line 27) | def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None...
method __getitem__ (line 28) | def __getitem__(self, key: KT) -> VT: pass
method __setitem__ (line 29) | def __setitem__(self, k: KT, v: VT) -> None: pass
method __iter__ (line 30) | def __iter__(self) -> Iterator[KT]: pass
method __contains__ (line 31) | def __contains__(self, item: object) -> int: pass
method update (line 32) | def update(self, a: SupportsKeysAndGetItem[KT, VT]) -> None: pass
method get (line 34) | def get(self, k: KT) -> Optional[VT]: pass
method get (line 36) | def get(self, k: KT, default: Union[VT, T]) -> Union[VT, T]: pass
method __len__ (line 37) | def __len__(self) -> int: ...
method __or__ (line 41) | def __or__(self, __value: dict[KT, VT]) -> dict[KT, VT]: ...
method __or__ (line 43) | def __or__(self, __value: dict[T, T2]) -> dict[Union[KT, T], Union[VT,...
method __ror__ (line 45) | def __ror__(self, __value: dict[KT, VT]) -> dict[KT, VT]: ...
method __ror__ (line 47) | def __ror__(self, __value: dict[T, T2]) -> dict[Union[KT, T], Union[VT...
method __ior__ (line 50) | def __ior__(self, __value: _typeshed.SupportsKeysAndGetItem[KT, VT]) -...
method __ior__ (line 52) | def __ior__(self, __value: Iterable[Tuple[KT, VT]]) -> Self: ...
class int (line 54) | class int: # for convenience
method __add__ (line 55) | def __add__(self, x: Union[int, complex]) -> int: pass
method __radd__ (line 56) | def __radd__(self, x: int) -> int: pass
method __sub__ (line 57) | def __sub__(self, x: Union[int, complex]) -> int: pass
method __neg__ (line 58) | def __neg__(self) -> int: pass
class str (line 62) | class str: pass # for keyword argument key type
class bytes (line 63) | class bytes: pass
class list (line 65) | class list(Sequence[T]): # needed by some test cases
method __getitem__ (line 66) | def __getitem__(self, x: int) -> T: pass
method __iter__ (line 67) | def __iter__(self) -> Iterator[T]: pass
method __mul__ (line 68) | def __mul__(self, x: int) -> list[T]: pass
method __contains__ (line 69) | def __contains__(self, item: object) -> bool: pass
method append (line 70) | def append(self, item: T) -> None: pass
class tuple (line 72) | class tuple(Generic[T]): pass
class function (line 73) | class function: pass
class float (line 74) | class float: pass
class complex (line 75) | class complex: pass
class bool (line 76) | class bool(int): pass
class ellipsis (line 78) | class ellipsis:
function isinstance (line 80) | def isinstance(x: object, t: Union[type, Tuple[type, ...]]) -> bool: pass
class BaseException (line 81) | class BaseException: pass
function iter (line 83) | def iter(__iterable: Iterable[T]) -> Iterator[T]: pass
FILE: test-data/unit/fixtures/dict.pyi
class object (line 18) | class object:
method __init__ (line 19) | def __init__(self) -> None: pass
method __eq__ (line 20) | def __eq__(self, other: object) -> bool: pass
class type (line 22) | class type: pass
class dict (line 24) | class dict(Mapping[KT, VT]):
method __init__ (line 26) | def __init__(self, **kwargs: VT) -> None: pass
method __init__ (line 28) | def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None...
method __getitem__ (line 29) | def __getitem__(self, key: KT) -> VT: pass
method __setitem__ (line 30) | def __setitem__(self, k: KT, v: VT) -> None: pass
method __iter__ (line 31) | def __iter__(self) -> Iterator[KT]: pass
method __contains__ (line 32) | def __contains__(self, item: object) -> int: pass
method update (line 33) | def update(self, a: SupportsKeysAndGetItem[KT, VT]) -> None: pass
method get (line 35) | def get(self, k: KT) -> Optional[VT]: pass
method get (line 37) | def get(self, k: KT, default: Union[VT, T]) -> Union[VT, T]: pass
method __len__ (line 38) | def __len__(self) -> int: ...
class int (line 40) | class int: # for convenience
method __add__ (line 41) | def __add__(self, x: Union[int, complex]) -> int: pass
method __radd__ (line 42) | def __radd__(self, x: int) -> int: pass
method __sub__ (line 43) | def __sub__(self, x: Union[int, complex]) -> int: pass
class str (line 45) | class str: pass # for keyword argument key type
class bytes (line 46) | class bytes: pass
class list (line 48) | class list(Sequence[T]): # needed by some test cases
method __getitem__ (line 49) | def __getitem__(self, x: int) -> T: pass
method __iter__ (line 50) | def __iter__(self) -> Iterator[T]: pass
method __mul__ (line 51) | def __mul__(self, x: int) -> list[T]: pass
method __contains__ (line 52) | def __contains__(self, item: object) -> bool: pass
method append (line 53) | def append(self, item: T) -> None: pass
class tuple (line 55) | class tuple(Generic[T]): pass
class function (line 56) | class function: pass
class float (line 57) | class float: pass
class complex (line 58) | class complex: pass
class bool (line 59) | class bool(int): pass
class ellipsis (line 60) | class ellipsis: pass
class BaseException (line 61) | class BaseException: pass
function isinstance (line 63) | def isinstance(x: object, t: Union[type, Tuple[type, ...]]) -> bool: pass
function iter (line 64) | def iter(__iterable: Iterable[T]) -> Iterator[T]: pass
FILE: test-data/unit/fixtures/divmod.pyi
class object (line 2) | class object:
method __init__ (line 3) | def __init__(self): pass
class int (line 5) | class int(SupportsInt):
method __divmod__ (line 6) | def __divmod__(self, other: int) -> Tuple[int, int]: pass
method __rdivmod__ (line 7) | def __rdivmod__(self, other: int) -> Tuple[int, int]: pass
class float (line 9) | class float(SupportsInt):
method __divmod__ (line 10) | def __divmod__(self, other: float) -> Tuple[float, float]: pass
method __rdivmod__ (line 11) | def __rdivmod__(self, other: float) -> Tuple[float, float]: pass
class tuple (line 14) | class tuple: pass
class function (line 15) | class function: pass
class str (line 16) | class str: pass
class type (line 17) | class type: pass
class ellipsis (line 18) | class ellipsis: pass
function divmod (line 21) | def divmod(_x: _N, _y: _N) -> Tuple[_N, _N]: ...
class dict (line 23) | class dict: pass
FILE: test-data/unit/fixtures/enum.pyi
class object (line 6) | class object:
method __init__ (line 7) | def __init__(self): pass
class type (line 9) | class type: pass
class tuple (line 10) | class tuple(Generic[T]):
method __getitem__ (line 11) | def __getitem__(self, x: int) -> T: pass
class int (line 13) | class int: pass
class str (line 14) | class str:
method __len__ (line 15) | def __len__(self) -> int: pass
class dict (line 17) | class dict: pass
class ellipsis (line 18) | class ellipsis: pass
FILE: test-data/unit/fixtures/exception.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self): pass
class type (line 8) | class type: pass
class tuple (line 9) | class tuple(Generic[T]):
method __ge__ (line 10) | def __ge__(self, other: object) -> bool: ...
class list (line 11) | class list: pass
class dict (line 12) | class dict: pass
class function (line 13) | class function: pass
class int (line 14) | class int: pass
class str (line 15) | class str: pass
class bool (line 16) | class bool: pass
class ellipsis (line 17) | class ellipsis: pass
class BaseException (line 19) | class BaseException:
method __init__ (line 20) | def __init__(self, *args: object) -> None: ...
class Exception (line 21) | class Exception(BaseException): pass
class RuntimeError (line 22) | class RuntimeError(Exception): pass
class NotImplementedError (line 23) | class NotImplementedError(RuntimeError): pass
class BaseExceptionGroup (line 28) | class BaseExceptionGroup(BaseException, Generic[_BT_co]): ...
class ExceptionGroup (line 29) | class ExceptionGroup(BaseExceptionGroup[_T_co], Exception): ...
FILE: test-data/unit/fixtures/f_string.pyi
class object (line 8) | class object:
method __init__ (line 9) | def __init__(self): pass
class type (line 11) | class type:
method __init__ (line 12) | def __init__(self, x: object) -> None: pass
class ellipsis (line 14) | class ellipsis: pass
class list (line 16) | class list(Iterable[T], Generic[T]):
method __init__ (line 18) | def __init__(self) -> None: pass
method __init__ (line 20) | def __init__(self, x: Iterable[T]) -> None: pass
method append (line 21) | def append(self, x: T) -> None: pass
class tuple (line 23) | class tuple(Generic[T]): pass
class function (line 25) | class function: pass
class int (line 26) | class int:
method __add__ (line 27) | def __add__(self, i: int) -> int: pass
class float (line 29) | class float: pass
class bool (line 30) | class bool(int): pass
class str (line 32) | class str:
method __add__ (line 33) | def __add__(self, s: str) -> str: pass
method format (line 34) | def format(self, *args: object) -> str: pass
method join (line 35) | def join(self, l: List[str]) -> str: pass
class bytes (line 37) | class bytes: pass
class complex (line 39) | class complex: pass
class dict (line 41) | class dict: pass
FILE: test-data/unit/fixtures/fine_grained.pyi
class Any (line 11) | class Any: pass
class object (line 13) | class object:
method __init__ (line 14) | def __init__(self) -> None: pass
class type (line 16) | class type:
method __init__ (line 17) | def __init__(self, x: Any) -> None: pass
class int (line 19) | class int:
method __add__ (line 20) | def __add__(self, other: 'int') -> 'int': pass
class str (line 21) | class str:
method __add__ (line 22) | def __add__(self, other: 'str') -> 'str': pass
class float (line 24) | class float: pass
class bytes (line 25) | class bytes: pass
class tuple (line 26) | class tuple(Generic[T]): pass
class function (line 27) | class function: pass
class ellipsis (line 28) | class ellipsis: pass
class list (line 29) | class list(Generic[T]): pass
class dict (line 30) | class dict: pass
FILE: test-data/unit/fixtures/float.pyi
class object (line 6) | class object:
method __init__ (line 7) | def __init__(self) -> None: pass
class type (line 9) | class type:
method __init__ (line 10) | def __init__(self, x: Any) -> None: pass
class str (line 12) | class str:
method __add__ (line 13) | def __add__(self, other: 'str') -> 'str': pass
method __rmul__ (line 14) | def __rmul__(self, n: int) -> str: ...
class bytes (line 16) | class bytes: pass
class tuple (line 18) | class tuple(Generic[T]): pass
class function (line 19) | class function: pass
class ellipsis (line 21) | class ellipsis: pass
class int (line 24) | class int:
method __abs__ (line 25) | def __abs__(self) -> int: ...
method __float__ (line 26) | def __float__(self) -> float: ...
method __int__ (line 27) | def __int__(self) -> int: ...
method __mul__ (line 28) | def __mul__(self, x: int) -> int: ...
method __neg__ (line 29) | def __neg__(self) -> int: ...
method __rmul__ (line 30) | def __rmul__(self, x: int) -> int: ...
class float (line 32) | class float:
method __float__ (line 33) | def __float__(self) -> float: ...
method __int__ (line 34) | def __int__(self) -> int: ...
method __mul__ (line 35) | def __mul__(self, x: float) -> float: ...
method __rmul__ (line 36) | def __rmul__(self, x: float) -> float: ...
class dict (line 38) | class dict: pass
FILE: test-data/unit/fixtures/floatdict.pyi
class object (line 9) | class object:
method __init__ (line 10) | def __init__(self) -> None: pass
class type (line 12) | class type:
method __init__ (line 13) | def __init__(self, x: Any) -> None: pass
class str (line 15) | class str:
method __add__ (line 16) | def __add__(self, other: 'str') -> 'str': pass
method __rmul__ (line 17) | def __rmul__(self, n: int) -> str: ...
class bytes (line 19) | class bytes: pass
class tuple (line 21) | class tuple(Generic[T]): pass
class slice (line 22) | class slice: pass
class function (line 23) | class function: pass
class ellipsis (line 25) | class ellipsis: pass
class list (line 27) | class list(Iterable[T], Generic[T]):
method __init__ (line 29) | def __init__(self) -> None: pass
method __init__ (line 31) | def __init__(self, x: Iterable[T]) -> None: pass
method __iter__ (line 32) | def __iter__(self) -> Iterator[T]: pass
method __add__ (line 33) | def __add__(self, x: list[T]) -> list[T]: pass
method __mul__ (line 34) | def __mul__(self, x: int) -> list[T]: pass
method __getitem__ (line 35) | def __getitem__(self, x: int) -> T: pass
method append (line 36) | def append(self, x: T) -> None: pass
method extend (line 37) | def extend(self, x: Iterable[T]) -> None: pass
class dict (line 39) | class dict(Mapping[KT, VT], Generic[KT, VT]):
method __init__ (line 41) | def __init__(self, **kwargs: VT) -> None: pass
method __init__ (line 43) | def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None...
method __setitem__ (line 44) | def __setitem__(self, k: KT, v: VT) -> None: pass
method __getitem__ (line 45) | def __getitem__(self, k: KT) -> VT: pass
method __iter__ (line 46) | def __iter__(self) -> Iterator[KT]: pass
method update (line 47) | def update(self, a: Mapping[KT, VT]) -> None: pass
method get (line 49) | def get(self, k: KT) -> Optional[VT]: pass
method get (line 51) | def get(self, k: KT, default: Union[KT, T]) -> Union[VT, T]: pass
class int (line 54) | class int:
method __float__ (line 55) | def __float__(self) -> float: ...
method __int__ (line 56) | def __int__(self) -> int: ...
method __mul__ (line 57) | def __mul__(self, x: int) -> int: ...
method __rmul__ (line 58) | def __rmul__(self, x: int) -> int: ...
method __truediv__ (line 59) | def __truediv__(self, x: int) -> int: ...
method __rtruediv__ (line 60) | def __rtruediv__(self, x: int) -> int: ...
class float (line 62) | class float:
method __float__ (line 63) | def __float__(self) -> float: ...
method __int__ (line 64) | def __int__(self) -> int: ...
method __mul__ (line 65) | def __mul__(self, x: float) -> float: ...
method __rmul__ (line 66) | def __rmul__(self, x: float) -> float: ...
method __truediv__ (line 67) | def __truediv__(self, x: float) -> float: ...
method __rtruediv__ (line 68) | def __rtruediv__(self, x: float) -> float: ...
FILE: test-data/unit/fixtures/for.pyi
class object (line 8) | class object:
method __init__ (line 9) | def __init__(self) -> None: pass
class type (line 11) | class type: pass
class tuple (line 12) | class tuple(Generic[t]):
method __iter__ (line 13) | def __iter__(self) -> Iterator[t]: pass
class function (line 14) | class function: pass
class ellipsis (line 15) | class ellipsis: pass
class bool (line 16) | class bool: pass
class int (line 17) | class int: pass # for convenience
class str (line 18) | class str: # for convenience
method upper (line 19) | def upper(self) -> str: ...
class list (line 21) | class list(Iterable[t], Generic[t]):
method __iter__ (line 22) | def __iter__(self) -> Iterator[t]: pass
class dict (line 23) | class dict: pass
FILE: test-data/unit/fixtures/function.pyi
class object (line 1) | class object:
method __init__ (line 2) | def __init__(self): pass
class type (line 4) | class type: pass
class function (line 5) | class function: pass
class int (line 6) | class int: pass
class str (line 7) | class str: pass
class dict (line 8) | class dict: pass
FILE: test-data/unit/fixtures/isinstance.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
class type (line 8) | class type:
method __init__ (line 9) | def __init__(self, x) -> None: pass
method __or__ (line 10) | def __or__(self, other: type) -> type: pass
class tuple (line 12) | class tuple(Generic[T]): pass
class function (line 14) | class function: pass
function isinstance (line 16) | def isinstance(x: object, t: Union[Type[object], Tuple[Type[object], ......
function issubclass (line 17) | def issubclass(x: object, t: Union[Type[object], Tuple[Type[object], ......
function hasattr (line 18) | def hasattr(x: object, name: str) -> bool: pass
class int (line 20) | class int:
method __add__ (line 21) | def __add__(self, other: 'int') -> 'int': pass
class float (line 22) | class float: pass
class bool (line 23) | class bool(int): pass
class str (line 24) | class str:
method __add__ (line 25) | def __add__(self, other: 'str') -> 'str': pass
class ellipsis (line 26) | class ellipsis: pass
class dict (line 30) | class dict: pass
FILE: test-data/unit/fixtures/isinstance_python3_10.pyi
class object (line 7) | class object:
method __init__ (line 8) | def __init__(self) -> None: pass
class type (line 10) | class type:
method __init__ (line 11) | def __init__(self, x) -> None: pass
method __or__ (line 12) | def __or__(self, x) -> types.UnionType: pass
class tuple (line 14) | class tuple(Generic[T]): pass
class function (line 16) | class function: pass
function isinstance (line 18) | def isinstance(x: object, t: Union[Type[object], Tuple[Type[object], ......
function issubclass (line 19) | def issubclass(x: object, t: Union[Type[object], Tuple[Type[object], ......
class int (line 21) | class int:
method __add__ (line 22) | def __add__(self, other: 'int') -> 'int': pass
class float (line 23) | class float: pass
class bool (line 24) | class bool(int): pass
class str (line 25) | class str:
method __add__ (line 26) | def __add__(self, other: 'str') -> 'str': pass
class ellipsis (line 27) | class ellipsis: pass
class dict (line 31) | class dict: pass
FILE: test-data/unit/fixtures/isinstancelist.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
method __eq__ (line 7) | def __eq__(self, other: object) -> bool: pass
class type (line 9) | class type:
method __init__ (line 10) | def __init__(self, x) -> None: pass
class function (line 12) | class function: pass
class classmethod (line 13) | class classmethod: pass
class ellipsis (line 15) | class ellipsis: pass
function isinstance (line 19) | def isinstance(x: object, t: Union[type, Tuple]) -> bool: pass
function issubclass (line 20) | def issubclass(x: object, t: Union[type, Tuple]) -> bool: pass
class int (line 22) | class int:
method __add__ (line 23) | def __add__(self, x: int) -> int: pass
class float (line 24) | class float: pass
class bool (line 25) | class bool(int): pass
class str (line 26) | class str:
method __add__ (line 27) | def __add__(self, x: str) -> str: pass
method __getitem__ (line 28) | def __getitem__(self, x: int) -> str: pass
class tuple (line 34) | class tuple(Generic[T]):
method __len__ (line 35) | def __len__(self) -> int: pass
class list (line 37) | class list(Sequence[T]):
method __iter__ (line 38) | def __iter__(self) -> Iterator[T]: pass
method __mul__ (line 39) | def __mul__(self, x: int) -> list[T]: pass
method __setitem__ (line 40) | def __setitem__(self, x: int, v: T) -> None: pass
method __getitem__ (line 41) | def __getitem__(self, x: int) -> T: pass
method __add__ (line 42) | def __add__(self, x: List[T]) -> T: pass
method __contains__ (line 43) | def __contains__(self, item: object) -> bool: pass
method append (line 44) | def append(self, x: T) -> None: pass
method extend (line 45) | def extend(self, x: Iterable[T]) -> None: pass
class dict (line 47) | class dict(Mapping[KT, VT]):
method __init__ (line 49) | def __init__(self, **kwargs: VT) -> None: pass
method __init__ (line 51) | def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None...
method __setitem__ (line 52) | def __setitem__(self, k: KT, v: VT) -> None: pass
method __iter__ (line 53) | def __iter__(self) -> Iterator[KT]: pass
method update (line 54) | def update(self, a: Mapping[KT, VT]) -> None: pass
class set (line 56) | class set(Generic[T]):
method __iter__ (line 57) | def __iter__(self) -> Iterator[T]: pass
method add (line 58) | def add(self, x: T) -> None: pass
method discard (line 59) | def discard(self, x: T) -> None: pass
method update (line 60) | def update(self, x: Set[T]) -> None: pass
method pop (line 61) | def pop(self) -> T: pass
FILE: test-data/unit/fixtures/len.pyi
class object (line 7) | class object:
method __init__ (line 8) | def __init__(self) -> None: pass
class type (line 10) | class type:
method __init__ (line 11) | def __init__(self, x) -> None: pass
class tuple (line 13) | class tuple(Sequence[T]):
method __len__ (line 14) | def __len__(self) -> int: pass
class list (line 16) | class list(Sequence[T]): pass
class dict (line 17) | class dict(Mapping[T, V]): pass
class function (line 19) | class function: pass
class Sized (line 21) | class Sized(Protocol):
method __len__ (line 22) | def __len__(self) -> int: pass
function len (line 24) | def len(__obj: Sized) -> int: ...
function isinstance (line 25) | def isinstance(x: object, t: Union[Type[object], Tuple[Type[object], ......
class int (line 27) | class int:
method __add__ (line 28) | def __add__(self, other: int) -> int: pass
method __eq__ (line 29) | def __eq__(self, other: int) -> bool: pass
method __ne__ (line 30) | def __ne__(self, other: int) -> bool: pass
method __lt__ (line 31) | def __lt__(self, n: int) -> bool: pass
method __gt__ (line 32) | def __gt__(self, n: int) -> bool: pass
method __le__ (line 33) | def __le__(self, n: int) -> bool: pass
method __ge__ (line 34) | def __ge__(self, n: int) -> bool: pass
method __neg__ (line 35) | def __neg__(self) -> int: pass
class float (line 36) | class float: pass
class bool (line 37) | class bool(int): pass
class str (line 38) | class str(Sequence[str]): pass
class ellipsis (line 39) | class ellipsis: pass
FILE: test-data/unit/fixtures/list.pyi
class object (line 7) | class object:
method __init__ (line 8) | def __init__(self) -> None: pass
method __eq__ (line 9) | def __eq__(self, other: object) -> bool: pass
class type (line 11) | class type: pass
class ellipsis (line 12) | class ellipsis: pass
class list (line 14) | class list(Sequence[T]):
method __init__ (line 16) | def __init__(self) -> None: pass
method __init__ (line 18) | def __init__(self, x: Iterable[T]) -> None: pass
method __iter__ (line 19) | def __iter__(self) -> Iterator[T]: pass
method __len__ (line 20) | def __len__(self) -> int: pass
method __contains__ (line 21) | def __contains__(self, item: object) -> bool: pass
method __add__ (line 22) | def __add__(self, x: list[T]) -> list[T]: pass
method __mul__ (line 23) | def __mul__(self, x: int) -> list[T]: pass
method __getitem__ (line 24) | def __getitem__(self, x: int) -> T: pass
method __setitem__ (line 25) | def __setitem__(self, x: int, v: T) -> None: pass
method append (line 26) | def append(self, x: T) -> None: pass
method extend (line 27) | def extend(self, x: Iterable[T]) -> None: pass
class tuple (line 29) | class tuple(Generic[T]): pass
class function (line 30) | class function: pass
class int (line 31) | class int:
method __bool__ (line 32) | def __bool__(self) -> bool: pass
class float (line 33) | class float:
method __bool__ (line 34) | def __bool__(self) -> bool: pass
class str (line 35) | class str:
method __len__ (line 36) | def __len__(self) -> bool: pass
class bool (line 37) | class bool(int): pass
class dict (line 41) | class dict: pass
FILE: test-data/unit/fixtures/module.pyi
class list (line 7) | class list(Generic[T], Sequence[T]): pass
class object (line 9) | class object:
method __init__ (line 10) | def __init__(self) -> None: pass
class type (line 11) | class type: pass
class function (line 12) | class function: pass
class int (line 13) | class int: pass
class str (line 14) | class str: pass
class bool (line 15) | class bool: pass
class tuple (line 16) | class tuple(Generic[T]): pass
class dict (line 17) | class dict(Generic[T, S]): pass
class ellipsis (line 18) | class ellipsis: pass
function hasattr (line 23) | def hasattr(x: object, name: str) -> bool: pass
FILE: test-data/unit/fixtures/module_all.pyi
class object (line 6) | class object:
method __init__ (line 7) | def __init__(self) -> None: pass
class type (line 8) | class type: pass
class function (line 9) | class function: pass
class int (line 10) | class int: pass
class str (line 11) | class str: pass
class bool (line 12) | class bool: pass
class list (line 13) | class list(Generic[_T], Sequence[_T]):
method append (line 14) | def append(self, x: _T): pass
method extend (line 15) | def extend(self, x: Sequence[_T]): pass
method remove (line 16) | def remove(self, x: _T): pass
method __add__ (line 17) | def __add__(self, rhs: Sequence[_T]) -> list[_T]: pass
class tuple (line 18) | class tuple(Generic[_T]): pass
class ellipsis (line 19) | class ellipsis: pass
class dict (line 20) | class dict: pass
FILE: test-data/unit/fixtures/narrowing.pyi
class object (line 9) | class object:
method __init__ (line 10) | def __init__(self) -> None: pass
class type (line 12) | class type: pass
class tuple (line 13) | class tuple(Sequence[Tco], Generic[Tco]): pass
class function (line 14) | class function: pass
class ellipsis (line 15) | class ellipsis: pass
class int (line 16) | class int: pass
class str (line 17) | class str: pass
class dict (line 18) | class dict(Generic[KT, VT]): pass
function isinstance (line 20) | def isinstance(x: object, t: Union[Type[object], Tuple[Type[object], ......
FILE: test-data/unit/fixtures/notimplemented.pyi
class object (line 4) | class object:
method __init__ (line 5) | def __init__(self) -> None: pass
class type (line 7) | class type: pass
class function (line 8) | class function: pass
class bool (line 9) | class bool: pass
class int (line 10) | class int: pass
class str (line 11) | class str: pass
class dict (line 12) | class dict: pass
class _NotImplementedType (line 14) | class _NotImplementedType(Any):
class BaseException (line 18) | class BaseException: pass
FILE: test-data/unit/fixtures/object_hashable.pyi
class object (line 1) | class object:
method __hash__ (line 2) | def __hash__(self) -> int: ...
class type (line 4) | class type: ...
class int (line 5) | class int: ...
class float (line 6) | class float: ...
class str (line 7) | class str: ...
class ellipsis (line 8) | class ellipsis: ...
class tuple (line 9) | class tuple: ...
class dict (line 10) | class dict: pass
FILE: test-data/unit/fixtures/object_with_init_subclass.pyi
class object (line 3) | class object:
method __init__ (line 4) | def __init__(self) -> None: ...
method __init_subclass__ (line 5) | def __init_subclass__(cls) -> None: ...
class type (line 11) | class type:
method __init__ (line 12) | def __init__(self, x) -> None: pass
class int (line 14) | class int:
method __init__ (line 16) | def __init__(self, x: object = ..., base: int = ...) -> None: pass
method __add__ (line 17) | def __add__(self, i: int) -> int: pass
class float (line 18) | class float:
method __float__ (line 19) | def __float__(self) -> float: pass
class complex (line 20) | class complex: pass
class bool (line 21) | class bool(int): pass
class str (line 22) | class str(Sequence[str]):
method __add__ (line 23) | def __add__(self, s: str) -> str: pass
method __iter__ (line 24) | def __iter__(self) -> Iterator[str]: pass
method __contains__ (line 25) | def __contains__(self, other: object) -> bool: pass
method __getitem__ (line 26) | def __getitem__(self, item: int) -> str: pass
method format (line 27) | def format(self, *args) -> str: pass
class bytes (line 28) | class bytes(Sequence[int]):
method __iter__ (line 29) | def __iter__(self) -> Iterator[int]: pass
method __contains__ (line 30) | def __contains__(self, other: object) -> bool: pass
method __getitem__ (line 31) | def __getitem__(self, item: int) -> int: pass
class bytearray (line 32) | class bytearray: pass
class tuple (line 33) | class tuple(Generic[T]): pass
class function (line 34) | class function: pass
class ellipsis (line 35) | class ellipsis: pass
class list (line 38) | class list(Sequence[T]):
method __iter__ (line 39) | def __iter__(self) -> Iterator[T]: pass
method __mul__ (line 40) | def __mul__(self, x: int) -> list[T]: pass
method __setitem__ (line 41) | def __setitem__(self, x: int, v: T) -> None: pass
method __getitem__ (line 42) | def __getitem__(self, x: int) -> T: pass
method __add__ (line 43) | def __add__(self, x: List[T]) -> T: pass
method __contains__ (line 44) | def __contains__(self, item: object) -> bool: pass
class dict (line 47) | class dict(Mapping[KT, VT]):
method __init__ (line 49) | def __init__(self, **kwargs: VT) -> None: pass
method __init__ (line 51) | def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None...
method __getitem__ (line 52) | def __getitem__(self, key: KT) -> VT: pass
method __setitem__ (line 53) | def __setitem__(self, k: KT, v: VT) -> None: pass
method __iter__ (line 54) | def __iter__(self) -> Iterator[KT]: pass
method __contains__ (line 55) | def __contains__(self, item: object) -> int: pass
method update (line 56) | def update(self, a: Mapping[KT, VT]) -> None: pass
method get (line 58) | def get(self, k: KT) -> Optional[VT]: pass
method get (line 60) | def get(self, k: KT, default: Union[KT, T]) -> Union[VT, T]: pass
method __len__ (line 61) | def __len__(self) -> int: ...
FILE: test-data/unit/fixtures/ops.pyi
class object (line 7) | class object:
method __init__ (line 8) | def __init__(self) -> None: pass
method __eq__ (line 9) | def __eq__(self, o: 'object') -> 'bool': pass
method __ne__ (line 10) | def __ne__(self, o: 'object') -> 'bool': pass
class type (line 12) | class type: pass
class slice (line 14) | class slice: pass
class tuple (line 16) | class tuple(Sequence[Tco]):
method __getitem__ (line 17) | def __getitem__(self, x: int) -> Tco: pass
method __eq__ (line 18) | def __eq__(self, x: object) -> bool: pass
method __ne__ (line 19) | def __ne__(self, x: object) -> bool: pass
method __lt__ (line 20) | def __lt__(self, x: Tuple[Tco, ...]) -> bool: pass
method __le__ (line 21) | def __le__(self, x: Tuple[Tco, ...]) -> bool: pass
method __gt__ (line 22) | def __gt__(self, x: Tuple[Tco, ...]) -> bool: pass
method __ge__ (line 23) | def __ge__(self, x: Tuple[Tco, ...]) -> bool: pass
class function (line 25) | class function: pass
class str (line 27) | class str:
method __init__ (line 28) | def __init__(self, x: 'int') -> None: pass
method __add__ (line 29) | def __add__(self, x: 'str') -> 'str': pass
method __eq__ (line 30) | def __eq__(self, x: object) -> bool: pass
method startswith (line 31) | def startswith(self, x: 'str') -> bool: pass
method strip (line 32) | def strip(self) -> 'str': pass
class int (line 34) | class int:
method __add__ (line 35) | def __add__(self, x: 'int') -> 'int': pass
method __radd__ (line 36) | def __radd__(self, x: 'int') -> 'int': pass
method __sub__ (line 37) | def __sub__(self, x: 'int') -> 'int': pass
method __mul__ (line 38) | def __mul__(self, x: 'int') -> 'int': pass
method __div__ (line 39) | def __div__(self, x: 'int') -> 'int': pass
method __rdiv__ (line 40) | def __rdiv__(self, x: 'int') -> 'int': pass
method __truediv__ (line 41) | def __truediv__(self, x: 'int') -> 'int': pass
method __rtruediv__ (line 42) | def __rtruediv__(self, x: 'int') -> 'int': pass
method __mod__ (line 43) | def __mod__(self, x: 'int') -> 'int': pass
method __floordiv__ (line 44) | def __floordiv__(self, x: 'int') -> 'int': pass
method __pow__ (line 45) | def __pow__(self, x: 'int', __modulo: Optional[int] = ...) -> Any: pass
method __pos__ (line 46) | def __pos__(self) -> 'int': pass
method __neg__ (line 47) | def __neg__(self) -> 'int': pass
method __eq__ (line 48) | def __eq__(self, x: object) -> bool: pass
method __ne__ (line 49) | def __ne__(self, x: object) -> bool: pass
method __lt__ (line 50) | def __lt__(self, x: 'int') -> bool: pass
method __le__ (line 51) | def __le__(self, x: 'int') -> bool: pass
method __gt__ (line 52) | def __gt__(self, x: 'int') -> bool: pass
method __ge__ (line 53) | def __ge__(self, x: 'int') -> bool: pass
class bool (line 55) | class bool(int): pass
class float (line 57) | class float:
method __add__ (line 58) | def __add__(self, x: 'float') -> 'float': pass
method __radd__ (line 59) | def __radd__(self, x: 'float') -> 'float': pass
method __div__ (line 60) | def __div__(self, x: 'float') -> 'float': pass
method __rdiv__ (line 61) | def __rdiv__(self, x: 'float') -> 'float': pass
method __truediv__ (line 62) | def __truediv__(self, x: 'float') -> 'float': pass
method __rtruediv__ (line 63) | def __rtruediv__(self, x: 'float') -> 'float': pass
class complex (line 65) | class complex:
method __add__ (line 66) | def __add__(self, x: complex) -> complex: pass
method __radd__ (line 67) | def __radd__(self, x: complex) -> complex: pass
class BaseException (line 69) | class BaseException: pass
function __print (line 71) | def __print(a1: object = None, a2: object = None, a3: object = None,
class ellipsis (line 74) | class ellipsis: pass
class dict (line 76) | class dict: pass
FILE: test-data/unit/fixtures/paramspec.pyi
class object (line 14) | class object:
method __init__ (line 15) | def __init__(self) -> None: ...
class function (line 17) | class function: ...
class ellipsis (line 18) | class ellipsis: ...
class classmethod (line 19) | class classmethod: ...
class type (line 21) | class type:
method __init__ (line 22) | def __init__(self, *a: object) -> None: ...
method __call__ (line 23) | def __call__(self, *a: object) -> object: ...
class list (line 25) | class list(Sequence[T], Generic[T]):
method __getitem__ (line 27) | def __getitem__(self, i: int) -> T: ...
method __getitem__ (line 29) | def __getitem__(self, s: slice) -> list[T]: ...
method __contains__ (line 30) | def __contains__(self, item: object) -> bool: ...
method __iter__ (line 31) | def __iter__(self) -> Iterator[T]: ...
class int (line 33) | class int:
method __neg__ (line 34) | def __neg__(self) -> int: ...
method __add__ (line 35) | def __add__(self, other: int) -> int: ...
class bool (line 37) | class bool(int): ...
class float (line 38) | class float: ...
class slice (line 39) | class slice: ...
class str (line 40) | class str: ...
class bytes (line 41) | class bytes: ...
class tuple (line 43) | class tuple(Sequence[T_co], Generic[T_co]):
method __new__ (line 44) | def __new__(cls: Type[T], iterable: Iterable[T_co] = ...) -> T: ...
method __iter__ (line 45) | def __iter__(self) -> Iterator[T_co]: ...
method __contains__ (line 46) | def __contains__(self, item: object) -> bool: ...
method __getitem__ (line 47) | def __getitem__(self, x: int) -> T_co: ...
method __mul__ (line 48) | def __mul__(self, n: int) -> Tuple[T_co, ...]: ...
method __rmul__ (line 49) | def __rmul__(self, n: int) -> Tuple[T_co, ...]: ...
method __add__ (line 50) | def __add__(self, x: Tuple[T_co, ...]) -> Tuple[T_co, ...]: ...
method __len__ (line 51) | def __len__(self) -> int: ...
method count (line 52) | def count(self, obj: object) -> int: ...
class _ItemsView (line 54) | class _ItemsView(Iterable[Tuple[KT, VT]]): ...
class dict (line 56) | class dict(Mapping[KT, VT]):
method __init__ (line 58) | def __init__(self, **kwargs: VT) -> None: ...
method __init__ (line 60) | def __init__(self, arg: Iterable[Tuple[KT, VT]], **kwargs: VT) -> None...
method __getitem__ (line 61) | def __getitem__(self, key: KT) -> VT: ...
method __setitem__ (line 62) | def __setitem__(self, k: KT, v: VT) -> None: ...
method __iter__ (line 63) | def __iter__(self) -> Iterator[KT]: ...
method __contains__ (line 64) | def __contains__(self, item: object) -> int: ...
method update (line 65) | def update(self, a: Mapping[KT, VT]) -> None: ...
method get (line 67) | def get(self, k: KT) -> Optional[VT]: ...
method get (line 69) | def get(self, k: KT, default: Union[KT, T]) -> Union[VT, T]: ...
method __len__ (line 70) | def __len__(self) -> int: ...
method pop (line 71) | def pop(self, k: KT) -> VT: ...
method items (line 72) | def items(self) -> _ItemsView[KT, VT]: ...
function isinstance (line 74) | def isinstance(x: object, t: type) -> bool: ...
class _Sized (line 76) | class _Sized(Protocol):
method __len__ (line 77) | def __len__(self) -> int: ...
function len (line 79) | def len(x: _Sized) -> int: ...
FILE: test-data/unit/fixtures/plugin_attrs.pyi
class object (line 4) | class object:
method __init__ (line 5) | def __init__(self) -> None: pass
method __eq__ (line 6) | def __eq__(self, o: object) -> bool: pass
method __ne__ (line 7) | def __ne__(self, o: object) -> bool: pass
method __hash__ (line 8) | def __hash__(self) -> int: ...
class type (line 10) | class type: pass
class bytes (line 11) | class bytes: pass
class function (line 12) | class function: pass
class float (line 13) | class float: pass
class int (line 14) | class int:
method __init__ (line 16) | def __init__(self, x: Union[str, bytes, int] = ...) -> None: ...
method __init__ (line 18) | def __init__(self, x: Union[str, bytes], base: int) -> None: ...
class bool (line 19) | class bool(int): pass
class complex (line 20) | class complex:
method __init__ (line 22) | def __init__(self, real: float = ..., im: float = ...) -> None: ...
method __init__ (line 24) | def __init__(self, real: str = ...) -> None: ...
class str (line 26) | class str: pass
class ellipsis (line 27) | class ellipsis: pass
class list (line 28) | class list: pass
class dict (line 29) | class dict: pass
class tuple (line 33) | class tuple(Sequence[Tco], Generic[Tco]):
method __new__ (line 34) | def __new__(cls: Type[T], iterable: Iterable[Tco] = ...) -> T: ...
method __iter__ (line 35) | def __iter__(self) -> Iterator[Tco]: pass
method __contains__ (line 36) | def __contains__(self, item: object) -> bool: pass
method __getitem__ (line 37) | def __getitem__(self, x: int) -> Tco: pass
FILE: test-data/unit/fixtures/primitives.pyi
class object (line 8) | class object:
method __init__ (line 9) | def __init__(self) -> None: pass
method __str__ (line 10) | def __str__(self) -> str: pass
method __eq__ (line 11) | def __eq__(self, other: object) -> bool: pass
method __ne__ (line 12) | def __ne__(self, other: object) -> bool: pass
class type (line 14) | class type:
method __init__ (line 15) | def __init__(self, x: object) -> None: pass
class int (line 17) | class int:
method __init__ (line 19) | def __init__(self, x: object = ..., base: int = ...) -> None: pass
method __add__ (line 20) | def __add__(self, i: int) -> int: pass
method __rmul__ (line 21) | def __rmul__(self, x: int) -> int: pass
class float (line 22) | class float:
method __float__ (line 23) | def __float__(self) -> float: pass
method __add__ (line 24) | def __add__(self, x: float) -> float: pass
method hex (line 25) | def hex(self) -> str: pass
class complex (line 26) | class complex:
method __add__ (line 27) | def __add__(self, x: complex) -> complex: pass
class bool (line 28) | class bool(int): pass
class str (line 29) | class str(Sequence[str]):
method __add__ (line 30) | def __add__(self, s: str) -> str: pass
method __iter__ (line 31) | def __iter__(self) -> Iterator[str]: pass
method __contains__ (line 32) | def __contains__(self, other: object) -> bool: pass
method __getitem__ (line 33) | def __getitem__(self, item: int) -> str: pass
method format (line 34) | def format(self, *args: object, **kwargs: object) -> str: pass
class bytes (line 35) | class bytes(Sequence[int]):
method __iter__ (line 36) | def __iter__(self) -> Iterator[int]: pass
method __contains__ (line 37) | def __contains__(self, other: object) -> bool: pass
method __getitem__ (line 38) | def __getitem__(self, item: int) -> int: pass
class bytearray (line 39) | class bytearray(Sequence[int]):
method __init__ (line 40) | def __init__(self, x: bytes) -> None: pass
method __iter__ (line 41) | def __iter__(self) -> Iterator[int]: pass
method __contains__ (line 42) | def __contains__(self, other: object) -> bool: pass
method __getitem__ (line 43) | def __getitem__(self, item: int) -> int: pass
class memoryview (line 44) | class memoryview(Sequence[int]):
method __init__ (line 45) | def __init__(self, x: bytes) -> None: pass
method __iter__ (line 46) | def __iter__(self) -> Iterator[int]: pass
method __contains__ (line 47) | def __contains__(self, other: object) -> bool: pass
method __getitem__ (line 48) | def __getitem__(self, item: int) -> int: pass
class tuple (line 49) | class tuple(Generic[T]):
method __contains__ (line 50) | def __contains__(self, other: object) -> bool: pass
class list (line 51) | class list(Sequence[T]):
method append (line 52) | def append(self, v: T) -> None: pass
method __iter__ (line 53) | def __iter__(self) -> Iterator[T]: pass
method __contains__ (line 54) | def __contains__(self, other: object) -> bool: pass
method __getitem__ (line 55) | def __getitem__(self, item: int) -> T: pass
class dict (line 56) | class dict(Mapping[T, V]):
method __iter__ (line 57) | def __iter__(self) -> Iterator[T]: pass
class set (line 58) | class set(Iterable[T]):
method __iter__ (line 59) | def __iter__(self) -> Iterator[T]: pass
class frozenset (line 60) | class frozenset(Iterable[T]):
method __iter__ (line 61) | def __iter__(self) -> Iterator[T]: pass
class function (line 62) | class function: pass
class ellipsis (line 63) | class ellipsis: pass
class range (line 65) | class range(Sequence[int]):
method __init__ (line 66) | def __init__(self, __x: int, __y: int = ..., __z: int = ...) -> None: ...
method count (line 67) | def count(self, value: int) -> int: pass
method index (line 68) | def index(self, value: int) -> int: pass
method __getitem__ (line 69) | def __getitem__(self, i: int) -> int: pass
method __iter__ (line 70) | def __iter__(self) -> Iterator[int]: pass
method __contains__ (line 71) | def __contains__(self, other: object) -> bool: pass
function isinstance (line 73) | def isinstance(x: object, t: Union[type, Tuple]) -> bool: pass
FILE: test-data/unit/fixtures/property.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self) -> None: pass
class type (line 8) | class type:
method __init__ (line 9) | def __init__(self, x: typing.Any) -> None: pass
class function (line 11) | class function: pass
class classmethod (line 14) | class classmethod: pass
class list (line 16) | class list: pass
class dict (line 17) | class dict: pass
class int (line 18) | class int: pass
class float (line 19) | class float: pass
class str (line 20) | class str: pass
class bytes (line 21) | class bytes: pass
class bool (line 22) | class bool: pass
class ellipsis (line 23) | class ellipsis: pass
class tuple (line 25) | class tuple(typing.Generic[_T]): pass
FILE: test-data/unit/fixtures/set.pyi
class object (line 7) | class object:
method __init__ (line 8) | def __init__(self) -> None: pass
method __eq__ (line 9) | def __eq__(self, other): pass
class type (line 11) | class type: pass
class tuple (line 12) | class tuple(Generic[T]): pass
class function (line 13) | class function: pass
class int (line 15) | class int: pass
class str (line 16) | class str: pass
class bool (line 17) | class bool: pass
class ellipsis (line 18) | class ellipsis: pass
class set (line 20) | class set(Iterable[T], Generic[T]):
method __init__ (line 21) | def __init__(self, iterable: Iterable[T] = ...) -> None: ...
method __iter__ (line 22) | def __iter__(self) -> Iterator[T]: pass
method __contains__ (line 23) | def __contains__(self, item: object) -> bool: pass
method __ior__ (line 24) | def __ior__(self, x: Set[T]) -> None: pass
method add (line 25) | def add(self, x: T) -> None: pass
method discard (line 26) | def discard(self, x: T) -> None: pass
method update (line 27) | def update(self, x: Set[T]) -> None: pass
class dict (line 29) | class dict: pass
FILE: test-data/unit/fixtures/slice.pyi
class object (line 5) | class object:
method __init__ (line 6) | def __init__(self): pass
class type (line 8) | class type: pass
class tuple (line 9) | class tuple(Generic[T]): pass
class function (line 10) | class function: pass
class int (line 12) | class int: pass
class str (line 13) | class str: pass
class slice (line 15) | class slice: pass
class ellipsis (line 16) | class ellipsis: pass
class dict (line 17) | class dict: pass
class list (line 18) | class list(Generic[T]):
method __getitem__ (line 19) | def __getitem__(self, x: slice) -> list[T]: pass
FILE: test-data/unit/fixtures/staticmethod.pyi
class object (line 3) | class object:
method __init__ (line 4) | def __init__(self) -> None: pass
class type (line 6) | class type:
method __init__ (line 7) | def __init__(self, x) -> None: pass
class function (line 9) | class function: pass
class int (line 14) | class int:
method from_bytes (line 16) | def from_bytes(bytes: bytes, byteorder: str) -> int: pass
class str (line 18) | class str: pass
class bytes (line 19) | class bytes: pass
class ellipsis (line 20) | class ellipsis: pass
class dict (line 21) | class dict: pass
class tuple (line 22) | class tuple: pass
FILE: test-data/unit/fixtures/transform.pyi
class object (line 3) | class object:
method __init__ (line 4) | def __init__(self) -> None: pass
class type (line 6) | class type: pass
class str (line 9) | class str: pass
class int (line 14) | class int: pass
class float (line 16) | class float: pass
function __print (line 27) | def __print(a1=None, a2=None, a3=None, a4=None):
class dict (line 32) | class dict: pass
FILE: test-data/unit/fixtures/tuple-simple.pyi
class object (line 10) | class object:
method __init__ (line 11) | def __init__(self): pass
class type (line 13) | class type: pass
class tuple (line 14) | class tuple(Generic[T]):
method __getitem__ (line 15) | def __getitem__(self, x: int) -> T: pass
class function (line 16) | class function: pass
class int (line 19) | class int: pass
class str (line 20) | class str: pass # For convenience
class dict (line 21) | class dict: pass
FILE: test-data/unit/fixtures/tuple.pyi
class object (line 9) | class object:
method __init__ (line 10) | def __init__(self) -> None: pass
class type (line 12) | class type:
method __init__ (line 13) | def __init__(self, *a: object) -> None: pass
method __call__ (line 14) | def __call__(self, *a: object) -> object: pass
class tuple (line 15) | class tuple(Sequence[_Tco], Generic[_Tco]):
method __new__ (line 16) | def __new__(cls: Type[_T], iterable: Iterable[_Tco] = ...) -> _T: ...
method __iter__ (line 17) | def __iter__(self) -> Iterator[_Tco]: pass
method __contains__ (line 18) | def __contains__(self, item: object) -> bool: pass
method __getitem__ (line 20) | def __getitem__(self, x: int) -> _Tco: pass
method __getitem__ (line 22) | def __getitem__(self, x: slice) -> Tuple[_Tco, ...]: ...
method __mul__ (line 23) | def __mul__(self, n: int) -> Tuple[_Tco, ...]: pass
method __rmul__ (line 24) | def __rmul__(self, n: int) -> Tuple[_Tco, ...]: pass
method __add__ (line 25) | def __add__(self, x: Tuple[_Tco, ...]) -> Tuple[_Tco, ...]: pass
method count (line 26) | def count(self, obj: object) -> int: pass
class function (line 27) | class function:
class ellipsis (line 29) | class ellipsis: pass
class classmethod (line 30) | class classmethod: pass
class complex (line 32) | class complex: pass
class int (line 34) | class int:
method __neg__ (line 35) | def __neg__(self) -> 'int': pass
method __pos__ (line 36) | def __pos__(self) -> 'int': pass
class float (line 37) | class float: pass
class slice (line 38) | class slice: pass
class bool (line 39) | class bool(int): pass
class str (line 40) | class str: pass # For convenience
class bytes (line 41) | class bytes: pass
class bytearray (line 42) | class bytearray: pass
class list (line 44) | class list(Sequence[_T], Generic[_T]):
method __getitem__ (line 46) | def __getitem__(self, i: int) -> _T: ...
method __getitem__ (line 48) | def __getitem__(self, s: slice) -> list[_T]: ...
method __contains__ (line 49) | def __contains__(self, item: object) -> bool: ...
method __iter__ (line 50) | def __iter__(self) -> Iterator[_T]: ...
function isinstance (line 52) | def isinstance(x: object, t: type) -> bool: pass
class BaseException (line 54) | class BaseException: pass
class dict (line 56) | class dict: pass
FILE: test-data/unit/fixtures/type.pyi
class object (line 10) | class object:
method __init__ (line 11) | def __init__(self) -> None: pass
method __str__ (line 12) | def __str__(self) -> 'str': pass
class list (line 14) | class list(Generic[T]): pass
class type (line 16) | class type:
method __call__ (line 18) | def __call__(self, *args: Any, **kwargs: Any) -> Any: pass
method __or__ (line 19) | def __or__(self, other: Union[type, None]) -> type: pass
method __ror__ (line 20) | def __ror__(self, other: Union[type, None]) -> type: pass
method mro (line 21) | def mro(self) -> List['type']: pass
class tuple (line 23) | class tuple(Generic[T]): pass
class dict (line 24) | class dict(Generic[T, S]): pass
class function (line 25) | class function: pass
class bool (line 26) | class bool: pass
class int (line 27) | class int: pass
class str (line 28) | class str: pass
class ellipsis (line 29) | class ellipsis: pass
class float (line 30) | class float: pass
function isinstance (line 33) | def isinstance(obj: object, class_or_tuple: type | types.UnionType, /) -...
function isinstance (line 35) | def isinstance(obj: object, class_or_tuple: type, /) -> bool: ...
FILE: test-data/unit/fixtures/typing-async.pyi
class Callable (line 38) | class Callable:
method __call__ (line 39) | def __call__(self): pass
class _NamedCallable (line 40) | class _NamedCallable(Callable):
class Container (line 43) | class Container(Protocol[T_co]):
method __contains__ (line 46) | def __contains__(self, arg: object) -> int: pass
class Iterable (line 48) | class Iterable(Protocol[T_co]):
method __iter__ (line 50) | def __iter__(self) -> 'Iterator[T_co]': pass
class Iterator (line 52) | class Iterator(Iterable[T_co], Protocol):
method __next__ (line 54) | def __next__(self) -> T_co: pass
class Generator (line 56) | class Generator(Iterator[T], Generic[T, U, V]):
method send (line 58) | def send(self, value: U) -> T: pass
method throw (line 61) | def throw(self, typ: Any, val: Any=None, tb: Any=None) -> None: pass
method close (line 64) | def close(self) -> None: pass
method __iter__ (line 67) | def __iter__(self) -> 'Generator[T, U, V]': pass
class AsyncGenerator (line 69) | class AsyncGenerator(AsyncIterator[T], Generic[T, U]):
method __anext__ (line 71) | def __anext__(self) -> Awaitable[T]: pass
method asend (line 74) | def asend(self, value: U) -> Awaitable[T]: pass
method athrow (line 77) | def athrow(self, typ: Any, val: Any=None, tb: Any=None) -> Awaitable[T...
method aclose (line 80) | def aclose(self) -> Awaitable[T]: pass
method __aiter__ (line 83) | def __aiter__(self) -> 'AsyncGenerator[T, U]': pass
class Awaitable (line 85) | class Awaitable(Protocol[T]):
method __await__ (line 87) | def __await__(self) -> Generator[Any, Any, T]: pass
class AwaitableGenerator (line 89) | class AwaitableGenerator(Generator[T, U, V], Awaitable[V], Generic[T, U,...
class Coroutine (line 92) | class Coroutine(Awaitable[V], Generic[T, U, V]):
method send (line 94) | def send(self, value: U) -> T: pass
method throw (line 97) | def throw(self, typ: Any, val: Any=None, tb: Any=None) -> None: pass
method close (line 100) | def close(self) -> None: pass
class AsyncIterable (line 102) | class AsyncIterable(Protocol[T]):
method __aiter__ (line 104) | def __aiter__(self) -> 'AsyncIterator[T]': pass
class AsyncIterator (line 106) | class AsyncIterator(AsyncIterable[T], Protocol):
method __aiter__ (line 107) | def __aiter__(self) -> 'AsyncIterator[T]': return self
method __anext__ (line 109) | def __anext__(self) -> Awaitable[T]: pass
class Sequence (line 111) | class Sequence(Iterable[T_co], Container[T_co]):
method __getitem__ (line 113) | def __getitem__(self, n: Any) -> T_co: pass
class Mapping (line 115) | class Mapping(Iterable[T], Generic[T, T_co], metaclass=ABCMeta):
method keys (line 116) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 117) | def __getitem__(self, key: T) -> T_co: pass
method get (line 119) | def get(self, k: T) -> Optional[T_co]: pass
method get (line 121) | def get(self, k: T, default: Union[T_co, V]) -> Union[T_co, V]: pass
class ContextManager (line 123) | class ContextManager(Generic[T]):
method __enter__ (line 124) | def __enter__(self) -> T: pass
method __exit__ (line 126) | def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> A...
class AsyncContextManager (line 128) | class AsyncContextManager(Generic[T]):
method __aenter__ (line 129) | def __aenter__(self) -> Awaitable[T]: pass
method __aexit__ (line 131) | def __aexit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> ...
class _SpecialForm (line 133) | class _SpecialForm: pass
FILE: test-data/unit/fixtures/typing-full.pyi
class GenericMeta (line 11) | class GenericMeta(type): pass
class _SpecialForm (line 13) | class _SpecialForm:
method __getitem__ (line 14) | def __getitem__(self, index: Any) -> Any: ...
method __or__ (line 15) | def __or__(self, other): ...
method __ror__ (line 16) | def __ror__(self, other): ...
class TypeVar (line 17) | class TypeVar:
method __init__ (line 18) | def __init__(self, name, *args, bound=None): ...
method __or__ (line 19) | def __or__(self, other): ...
class ParamSpec (line 20) | class ParamSpec: ...
class TypeVarTuple (line 21) | class TypeVarTuple: ...
function cast (line 23) | def cast(t, o): ...
function assert_type (line 24) | def assert_type(o, t): ...
class Callable (line 53) | class Callable(Protocol[P, T_co]):
method __call__ (line 54) | def __call__(self): pass
class _NamedCallable (line 55) | class _NamedCallable(Callable):
function final (line 58) | def final(x: T) -> T: ...
class NamedTuple (line 60) | class NamedTuple(tuple[Any, ...]): ...
class Hashable (line 66) | class Hashable(Protocol, metaclass=ABCMeta):
method __hash__ (line 68) | def __hash__(self) -> int: pass
class Container (line 71) | class Container(Protocol[T_co]):
method __contains__ (line 74) | def __contains__(self, arg: object) -> int: pass
class Sized (line 77) | class Sized(Protocol):
method __len__ (line 79) | def __len__(self) -> int: pass
class Iterable (line 82) | class Iterable(Protocol[T_co]):
method __iter__ (line 84) | def __iter__(self) -> 'Iterator[T_co]': pass
class Iterator (line 87) | class Iterator(Iterable[T_co], Protocol):
method __next__ (line 89) | def __next__(self) -> T_co: pass
class Generator (line 91) | class Generator(Iterator[T], Generic[T, U, V]):
method send (line 93) | def send(self, value: U) -> T: pass
method throw (line 96) | def throw(self, typ: Any, val: Any=None, tb: Any=None) -> None: pass
method close (line 99) | def close(self) -> None: pass
method __iter__ (line 102) | def __iter__(self) -> 'Generator[T, U, V]': pass
class AsyncGenerator (line 104) | class AsyncGenerator(AsyncIterator[T], Generic[T, U]):
method __anext__ (line 106) | def __anext__(self) -> Awaitable[T]: pass
method asend (line 109) | def asend(self, value: U) -> Awaitable[T]: pass
method athrow (line 112) | def athrow(self, typ: Any, val: Any=None, tb: Any=None) -> Awaitable[T...
method aclose (line 115) | def aclose(self) -> Awaitable[T]: pass
method __aiter__ (line 118) | def __aiter__(self) -> 'AsyncGenerator[T, U]': pass
class Awaitable (line 121) | class Awaitable(Protocol[T]):
method __await__ (line 123) | def __await__(self) -> Generator[Any, Any, T]: pass
class AwaitableGenerator (line 125) | class AwaitableGenerator(Generator[T, U, V], Awaitable[V], Generic[T, U,...
class Coroutine (line 128) | class Coroutine(Awaitable[V], Generic[T, U, V]):
method send (line 130) | def send(self, value: U) -> T: pass
method throw (line 133) | def throw(self, typ: Any, val: Any=None, tb: Any=None) -> None: pass
method close (line 136) | def close(self) -> None: pass
class AsyncIterable (line 139) | class AsyncIterable(Protocol[T]):
method __aiter__ (line 141) | def __aiter__(self) -> 'AsyncIterator[T]': pass
class AsyncIterator (line 144) | class AsyncIterator(AsyncIterable[T], Protocol):
method __aiter__ (line 145) | def __aiter__(self) -> 'AsyncIterator[T]': return self
method __anext__ (line 147) | def __anext__(self) -> Awaitable[T]: pass
class Sequence (line 149) | class Sequence(Iterable[T_co], Container[T_co]):
method __getitem__ (line 151) | def __getitem__(self, n: Any) -> T_co: pass
class MutableSequence (line 153) | class MutableSequence(Sequence[T]):
method __setitem__ (line 155) | def __setitem__(self, n: Any, o: T) -> None: pass
class Mapping (line 157) | class Mapping(Iterable[T], Generic[T, T_co], metaclass=ABCMeta):
method keys (line 158) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 159) | def __getitem__(self, key: T) -> T_co: pass
method get (line 161) | def get(self, k: T) -> Optional[T_co]: pass
method get (line 163) | def get(self, k: T, default: Union[T_co, V]) -> Union[T_co, V]: pass
method values (line 164) | def values(self) -> Iterable[T_co]: pass # Approximate return type
method __len__ (line 165) | def __len__(self) -> int: ...
method __contains__ (line 166) | def __contains__(self, arg: object) -> int: pass
class MutableMapping (line 168) | class MutableMapping(Mapping[T, U], metaclass=ABCMeta):
method __setitem__ (line 169) | def __setitem__(self, k: T, v: U) -> None: pass
class SupportsInt (line 171) | class SupportsInt(Protocol):
method __int__ (line 172) | def __int__(self) -> int: pass
class SupportsFloat (line 174) | class SupportsFloat(Protocol):
method __float__ (line 175) | def __float__(self) -> float: pass
class SupportsAbs (line 177) | class SupportsAbs(Protocol[T_co]):
method __abs__ (line 178) | def __abs__(self) -> T_co: pass
function runtime_checkable (line 180) | def runtime_checkable(cls: T) -> T:
class ContextManager (line 183) | class ContextManager(Generic[T_co]):
method __enter__ (line 184) | def __enter__(self) -> T_co: pass
method __exit__ (line 186) | def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> A...
class _TypedDict (line 191) | class _TypedDict(Mapping[str, object]):
method __iter__ (line 194) | def __iter__(self) -> Iterator[str]: ...
method copy (line 195) | def copy(self: T) -> T: ...
method setdefault (line 197) | def setdefault(self, k: NoReturn, default: object) -> object: ...
method pop (line 199) | def pop(self, k: NoReturn, default: T = ...) -> object: ...
method update (line 200) | def update(self: T, __m: T) -> None: ...
method __delitem__ (line 201) | def __delitem__(self, k: NoReturn) -> None: ...
function dataclass_transform (line 203) | def dataclass_transform(
function override (line 211) | def override(__arg: T) -> T: ...
function reveal_type (line 214) | def reveal_type(__obj: T) -> T: ...
function type_check_only (line 217) | def type_check_only(__func_or_class: T) -> T: ...
class TypeAliasType (line 221) | class TypeAliasType:
method __init__ (line 222) | def __init__(
method __or__ (line 226) | def __or__(self, other: Any) -> Any: ...
method __ror__ (line 227) | def __ror__(self, other: Any) -> Any: ...
FILE: test-data/unit/fixtures/typing-medium.pyi
class Callable (line 42) | class Callable:
method __call__ (line 43) | def __call__(self): pass
class _NamedCallable (line 44) | class _NamedCallable(Callable):
class Sized (line 47) | class Sized(Protocol):
method __len__ (line 48) | def __len__(self) -> int: pass
class Iterable (line 50) | class Iterable(Protocol[T_co]):
method __iter__ (line 51) | def __iter__(self) -> 'Iterator[T_co]': pass
class Iterator (line 53) | class Iterator(Iterable[T_co], Protocol):
method __next__ (line 54) | def __next__(self) -> T_co: pass
class Generator (line 56) | class Generator(Iterator[T], Generic[T, U, V]):
method __iter__ (line 57) | def __iter__(self) -> 'Generator[T, U, V]': pass
class Sequence (line 59) | class Sequence(Iterable[T_co]):
method __getitem__ (line 60) | def __getitem__(self, n: Any) -> T_co: pass
class Mapping (line 62) | class Mapping(Iterable[T], Generic[T, T_co]):
method keys (line 63) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 64) | def __getitem__(self, key: T) -> T_co: pass
class SupportsInt (line 66) | class SupportsInt(Protocol):
method __int__ (line 67) | def __int__(self) -> int: pass
class SupportsFloat (line 69) | class SupportsFloat(Protocol):
method __float__ (line 70) | def __float__(self) -> float: pass
class ContextManager (line 72) | class ContextManager(Generic[T]):
method __enter__ (line 73) | def __enter__(self) -> T: pass
method __exit__ (line 75) | def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> A...
class _SpecialForm (line 78) | class _SpecialForm: pass
FILE: test-data/unit/fixtures/typing-namedtuple.pyi
class Callable (line 17) | class Callable:
method __call__ (line 18) | def __call__(self): pass
class _NamedCallable (line 19) | class _NamedCallable(Callable):
class Iterable (line 22) | class Iterable(Generic[T_co]): pass
class Iterator (line 23) | class Iterator(Iterable[T_co]): pass
class Sequence (line 24) | class Sequence(Iterable[T_co]): pass
class Mapping (line 25) | class Mapping(Iterable[KT], Generic[KT, T_co]):
method keys (line 26) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 27) | def __getitem__(self, key: T) -> T_co: pass
class NamedTuple (line 29) | class NamedTuple(tuple[Any, ...]):
method __init__ (line 32) | def __init__(self, typename: str, fields: Iterable[tuple[str, Any]] = ...
method __init__ (line 34) | def __init__(self, typename: str, fields: None = None, **kwargs: Any) ...
class _SpecialForm (line 36) | class _SpecialForm: pass
FILE: test-data/unit/fixtures/typing-override.pyi
class Callable (line 16) | class Callable:
method __call__ (line 17) | def __call__(self): pass
class _NamedCallable (line 18) | class _NamedCallable(Callable):
class Iterable (line 21) | class Iterable(Generic[T_co]): pass
class Iterator (line 22) | class Iterator(Iterable[T_co]): pass
class Sequence (line 23) | class Sequence(Iterable[T_co]): pass
class Mapping (line 24) | class Mapping(Iterable[KT], Generic[KT, T_co]):
method keys (line 25) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 26) | def __getitem__(self, key: T) -> T_co: pass
function override (line 28) | def override(__arg: T) -> T: ...
class _SpecialForm (line 30) | class _SpecialForm: pass
FILE: test-data/unit/fixtures/typing-typeddict-iror.pyi
class Callable (line 38) | class Callable:
method __call__ (line 39) | def __call__(self): pass
class _NamedCallable (line 40) | class _NamedCallable(Callable):
class Sized (line 43) | class Sized(Protocol):
method __len__ (line 44) | def __len__(self) -> int: pass
class Iterable (line 46) | class Iterable(Protocol[T_co]):
method __iter__ (line 47) | def __iter__(self) -> 'Iterator[T_co]': pass
class Iterator (line 49) | class Iterator(Iterable[T_co], Protocol):
method __next__ (line 50) | def __next__(self) -> T_co: pass
class Sequence (line 52) | class Sequence(Iterable[T_co]):
method __getitem__ (line 54) | def __getitem__(self, n: Any) -> T_co: pass # type: ignore[misc]
class Mapping (line 56) | class Mapping(Iterable[T], Generic[T, T_co], metaclass=ABCMeta):
class _TypedDict (line 60) | class _TypedDict(Mapping[str, object]):
method __or__ (line 62) | def __or__(self, __value: Self) -> Self: ...
method __or__ (line 64) | def __or__(self, __value: dict[str, Any]) -> dict[str, object]: ...
method __ror__ (line 66) | def __ror__(self, __value: Self) -> Self: ...
method __ror__ (line 68) | def __ror__(self, __value: dict[str, Any]) -> dict[str, object]: ...
method __ior__ (line 70) | def __ior__(self, __value: Self) -> Self: ... # type: ignore[misc]
class _SpecialForm (line 72) | class _SpecialForm: pass
FILE: test-data/unit/fixtures/typing-typeddict.pyi
class Callable (line 39) | class Callable:
method __call__ (line 40) | def __call__(self): pass
class _NamedCallable (line 41) | class _NamedCallable(Callable):
class Sized (line 44) | class Sized(Protocol):
method __len__ (line 45) | def __len__(self) -> int: pass
class Iterable (line 47) | class Iterable(Protocol[T_co]):
method __iter__ (line 48) | def __iter__(self) -> 'Iterator[T_co]': pass
class Iterator (line 50) | class Iterator(Iterable[T_co], Protocol):
method __next__ (line 51) | def __next__(self) -> T_co: pass
class Sequence (line 53) | class Sequence(Iterable[T_co]):
method __getitem__ (line 54) | def __getitem__(self, n: Any) -> T_co: pass # type: ignore[explicit-any]
class Mapping (line 56) | class Mapping(Iterable[T], Generic[T, T_co], metaclass=ABCMeta):
method keys (line 57) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 58) | def __getitem__(self, key: T) -> T_co: pass
method get (line 60) | def get(self, k: T) -> Optional[T_co]: pass
method get (line 62) | def get(self, k: T, default: Union[T_co, V]) -> Union[T_co, V]: pass
method values (line 63) | def values(self) -> Iterable[T_co]: pass # Approximate return type
method __len__ (line 64) | def __len__(self) -> int: ...
method __contains__ (line 65) | def __contains__(self, arg: object) -> int: pass
class MutableMapping (line 67) | class MutableMapping(Mapping[T, T_co], Generic[T, T_co], metaclass=ABCMe...
method clear (line 69) | def clear(self) -> None: ...
class _TypedDict (line 72) | class _TypedDict(Mapping[str, object]):
method __iter__ (line 75) | def __iter__(self) -> Iterator[str]: ...
method copy (line 76) | def copy(self: T) -> T: ...
method setdefault (line 78) | def setdefault(self, k: NoReturn, default: object) -> object: ...
method pop (line 80) | def pop(self, k: NoReturn, default: T = ...) -> object: ...
method update (line 81) | def update(self: T, __m: T) -> None: ...
method __delitem__ (line 82) | def __delitem__(self, k: NoReturn) -> None: ...
class _SpecialForm (line 84) | class _SpecialForm: pass
FILE: test-data/unit/fixtures/union.pyi
class object (line 7) | class object:
method __init__ (line 8) | def __init__(self): pass
class type (line 10) | class type: pass
class function (line 11) | class function: pass
class tuple (line 13) | class tuple(Generic[T]): pass
class int (line 16) | class int: pass
class str (line 17) | class str: pass # For convenience
class dict (line 18) | class dict: pass
FILE: test-data/unit/lib-stub/_decimal.pyi
class Decimal (line 3) | class Decimal:
method __new__ (line 4) | def __new__(cls, value: str = ...) -> Decimal: ...
method __format__ (line 5) | def __format__(self, spec: str) -> str: ...
FILE: test-data/unit/lib-stub/_typeshed.pyi
class SupportsKeysAndGetItem (line 6) | class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
method keys (line 7) | def keys(self) -> Iterable[_KT]: pass
method __getitem__ (line 8) | def __getitem__(self, __key: _KT) -> _VT_co: pass
FILE: test-data/unit/lib-stub/abc.pyi
class ABCMeta (line 5) | class ABCMeta(type):
method register (line 6) | def register(cls, tp: T) -> T: pass
class ABC (line 7) | class ABC(metaclass=ABCMeta): pass
FILE: test-data/unit/lib-stub/attr/__init__.pyi
function attrib (line 13) | def attrib(default: None = ...,
function attrib (line 30) | def attrib(default: None = ...,
function attrib (line 47) | def attrib(default: _T,
function attrib (line 64) | def attrib(default: Optional[_T] = ...,
function attrs (line 81) | def attrs(maybe_cls: _C,
function attrs (line 100) | def attrs(maybe_cls: None = ...,
class Attribute (line 120) | class Attribute(Generic[_T]): pass
function define (line 129) | def define(
function define (line 152) | def define(
function field (line 179) | def field(
function field (line 198) | def field(
function field (line 216) | def field(
function field (line 234) | def field(
function evolve (line 250) | def evolve(inst: _T, **changes: Any) -> _T: ...
function assoc (line 251) | def assoc(inst: _T, **changes: Any) -> _T: ...
function fields (line 253) | def fields(cls: type) -> Any: ...
FILE: test-data/unit/lib-stub/attr/converters.pyi
function optional (line 6) | def optional(
function default_if_none (line 10) | def default_if_none(default: _T) -> _ConverterType[_T]: ...
function default_if_none (line 12) | def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]:...
FILE: test-data/unit/lib-stub/attrs/__init__.pyi
class AttrsInstance (line 8) | class AttrsInstance(Protocol):
function define (line 20) | def define(
function define (line 43) | def define(
function field (line 70) | def field(
function field (line 90) | def field(
function field (line 109) | def field(
function field (line 128) | def field(
function evolve (line 145) | def evolve(inst: _T, **changes: Any) -> _T: ...
function assoc (line 146) | def assoc(inst: _T, **changes: Any) -> _T: ...
function has (line 147) | def has(cls: type) -> TypeGuard[Type[AttrsInstance]]: ...
function fields (line 148) | def fields(cls: Type[AttrsInstance]) -> Any: ...
FILE: test-data/unit/lib-stub/attrs/converters.pyi
function optional (line 6) | def optional(
function default_if_none (line 10) | def default_if_none(default: _T) -> _ConverterType[_T]: ...
function default_if_none (line 12) | def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]:...
FILE: test-data/unit/lib-stub/builtins.pyi
class object (line 7) | class object:
method __init__ (line 8) | def __init__(self) -> None: pass
class type (line 10) | class type:
method __init__ (line 11) | def __init__(self, x: object) -> None: pass
class int (line 14) | class int:
method __add__ (line 15) | def __add__(self, other: int) -> int: pass
class bool (line 16) | class bool(int): pass
class float (line 17) | class float: pass
class str (line 19) | class str: pass
class bytes (line 20) | class bytes: pass
class function (line 22) | class function:
class ellipsis (line 24) | class ellipsis: pass
class list (line 28) | class list(Generic[_T], Sequence[_T]):
method __contains__ (line 29) | def __contains__(self, item: object) -> bool: pass
method __getitem__ (line 30) | def __getitem__(self, key: int) -> _T: pass
method __iter__ (line 31) | def __iter__(self) -> Iterator[_T]: pass
class dict (line 33) | class dict: pass
FILE: test-data/unit/lib-stub/collections.pyi
function namedtuple (line 3) | def namedtuple(
class OrderedDict (line 16) | class OrderedDict(Dict[KT, VT]): ...
class defaultdict (line 18) | class defaultdict(Dict[KT, VT]):
method __init__ (line 19) | def __init__(self, default_factory: Optional[Callable[[], VT]]) -> Non...
class Counter (line 21) | class Counter(Dict[KT, int], Generic[KT]): ...
class deque (line 23) | class deque(Sequence[KT], Generic[KT]): ...
class ChainMap (line 25) | class ChainMap(MutableMapping[KT, VT], Generic[KT, VT]): ...
FILE: test-data/unit/lib-stub/contextlib.pyi
class GeneratorContextManager (line 6) | class GeneratorContextManager(ContextManager[_T], Generic[_T]):
method __call__ (line 7) | def __call__(self, func: Callable[..., _T]) -> Callable[..., _T]: ...
function contextmanager (line 10) | def contextmanager(func: Callable[..., Iterator[_T]]) -> Callable[..., G...
function asynccontextmanager (line 13) | def asynccontextmanager(func: Callable[..., AsyncIterator[_T]]) -> Calla...
FILE: test-data/unit/lib-stub/dataclasses.pyi
class DataclassInstance (line 7) | class DataclassInstance(Protocol):
class InitVar (line 13) | class InitVar(Generic[_T]):
class KW_ONLY (line 16) | class KW_ONLY: ...
function dataclass (line 19) | def dataclass(_cls: Type[_T]) -> Type[_T]: ...
function dataclass (line 22) | def dataclass(*, init: bool = ..., repr: bool = ..., eq: bool = ..., ord...
function field (line 27) | def field(*, default: _T,
function field (line 32) | def field(*, default_factory: Callable[[], _T],
function field (line 37) | def field(*,
class Field (line 42) | class Field(Generic[_T]): pass
function is_dataclass (line 45) | def is_dataclass(obj: DataclassInstance) -> Literal[True]: ...
function is_dataclass (line 47) | def is_dataclass(obj: type) -> TypeGuard[type[DataclassInstance]]: ...
function is_dataclass (line 49) | def is_dataclass(obj: object) -> TypeGuard[DataclassInstance | type[Data...
function replace (line 52) | def replace(__obj: _DataclassT, **changes: Any) -> _DataclassT: ...
FILE: test-data/unit/lib-stub/datetime.pyi
class date (line 3) | class date:
method __new__ (line 4) | def __new__(
method __format__ (line 10) | def __format__(self, __fmt: str) -> str: ...
class datetime (line 13) | class datetime(date):
method __new__ (line 14) | def __new__(
FILE: test-data/unit/lib-stub/enum.pyi
class EnumMeta (line 6) | class EnumMeta(type, Sized):
method __len__ (line 7) | def __len__(self) -> int: pass # to make it non-abstract
method __iter__ (line 8) | def __iter__(self: Type[_T]) -> Iterator[_T]: pass
method __reversed__ (line 9) | def __reversed__(self: Type[_T]) -> Iterator[_T]: pass
method __getitem__ (line 10) | def __getitem__(self: Type[_T], name: str) -> _T: pass
method __bool__ (line 11) | def __bool__(self) -> Literal[True]: pass
class Enum (line 13) | class Enum(metaclass=EnumMeta):
method __new__ (line 14) | def __new__(cls: Type[_T], value: object) -> _T: pass
method __repr__ (line 15) | def __repr__(self) -> str: pass
method __str__ (line 16) | def __str__(self) -> str: pass
method __format__ (line 17) | def __format__(self, format_spec: str) -> str: pass
method __hash__ (line 18) | def __hash__(self) -> Any: pass
method __reduce_ex__ (line 19) | def __reduce_ex__(self, proto: Any) -> Any: pass
method _generate_next_value_ (line 28) | def _generate_next_value_(self) -> Any: pass
class IntEnum (line 30) | class IntEnum(int, Enum):
method __new__ (line 32) | def __new__(cls: Type[_T], value: Union[int, _T]) -> _T: ...
function unique (line 34) | def unique(enumeration: _T) -> _T: pass
class Flag (line 38) | class Flag(Enum):
method __or__ (line 39) | def __or__(self: _T, other: Union[int, _T]) -> _T: pass
class IntFlag (line 42) | class IntFlag(int, Flag):
method __and__ (line 43) | def __and__(self: _T, other: Union[int, _T]) -> _T: pass
class auto (line 46) | class auto(IntFlag):
class StrEnum (line 51) | class StrEnum(str, Enum):
method __new__ (line 52) | def __new__(cls: Type[_T], value: str | _T) -> _T: ...
class nonmember (line 55) | class nonmember(Generic[_T]):
method __init__ (line 57) | def __init__(self, value: _T) -> None: ...
class member (line 60) | class member(Generic[_T]):
method __init__ (line 62) | def __init__(self, value: _T) -> None: ...
FILE: test-data/unit/lib-stub/functools.pyi
class _SingleDispatchCallable (line 5) | class _SingleDispatchCallable(Generic[_T]):
method dispatch (line 7) | def dispatch(self, cls: Any) -> Callable[..., _T]: ...
method register (line 11) | def register(self, cls: type[Any], func: None = ...) -> Callable[[Call...
method register (line 15) | def register(self, cls: Callable[..., _T], func: None = ...) -> Callab...
method register (line 18) | def register(self, cls: type[Any], func: Callable[..., _T]) -> Callabl...
method _clear_cache (line 19) | def _clear_cache(self) -> None: ...
method __call__ (line 20) | def __call__(__self, *args: Any, **kwargs: Any) -> _T: ...
function singledispatch (line 22) | def singledispatch(func: Callable[..., _T]) -> _SingleDispatchCallable[_...
function total_ordering (line 24) | def total_ordering(cls: type[_T]) -> type[_T]: ...
class cached_property (line 26) | class cached_property(Generic[_T]):
method __init__ (line 29) | def __init__(self, func: Callable[[Any], _T]) -> None: ...
method __get__ (line 31) | def __get__(self, instance: None, owner: type[Any] | None = ...) -> ca...
method __get__ (line 33) | def __get__(self, instance: object, owner: type[Any] | None = ...) -> ...
method __set_name__ (line 34) | def __set_name__(self, owner: type[Any], name: str) -> None: ...
method __class_getitem__ (line 35) | def __class_getitem__(cls, item: Any) -> Any: ...
class partial (line 37) | class partial(Generic[_T]):
method __new__ (line 38) | def __new__(cls, __func: Callable[..., _T], *args: Any, **kwargs: Any)...
method __call__ (line 39) | def __call__(__self, *args: Any, **kwargs: Any) -> _T: ...
FILE: test-data/unit/lib-stub/future/utils.pyi
function with_metaclass (line 2) | def with_metaclass(meta: Type[type], *bases: type) -> type: pass
FILE: test-data/unit/lib-stub/math.pyi
function sqrt (line 6) | def sqrt(__x: float) -> float: ...
function sin (line 7) | def sin(__x: float) -> float: ...
function cos (line 8) | def cos(__x: float) -> float: ...
function tan (line 9) | def tan(__x: float) -> float: ...
function exp (line 10) | def exp(__x: float) -> float: ...
function log (line 11) | def log(__x: float) -> float: ...
function floor (line 12) | def floor(__x: float) -> int: ...
function ceil (line 13) | def ceil(__x: float) -> int: ...
function fabs (line 14) | def fabs(__x: float) -> float: ...
function pow (line 15) | def pow(__x: float, __y: float) -> float: ...
function copysign (line 16) | def copysign(__x: float, __y: float) -> float: ...
function isinf (line 17) | def isinf(__x: float) -> bool: ...
function isnan (line 18) | def isnan(__x: float) -> bool: ...
function isfinite (line 19) | def isfinite(__x: float) -> bool: ...
function nextafter (line 20) | def nextafter(__x: float, __y: float) -> float: ...
FILE: test-data/unit/lib-stub/mypy_extensions.pyi
function Arg (line 11) | def Arg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
function DefaultArg (line 13) | def DefaultArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
function NamedArg (line 15) | def NamedArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
function DefaultNamedArg (line 17) | def DefaultNamedArg(type: _T = ..., name: Optional[str] = ...) -> _T: ...
function VarArg (line 19) | def VarArg(type: _T = ...) -> _T: ...
function KwArg (line 21) | def KwArg(type: _T = ...) -> _T: ...
class _TypedDict (line 25) | class _TypedDict(Mapping[str, object]):
method __iter__ (line 28) | def __iter__(self) -> Iterator[str]: ...
method copy (line 29) | def copy(self: _T) -> _T: ...
method setdefault (line 31) | def setdefault(self, k: NoReturn, default: object) -> object: ...
method pop (line 33) | def pop(self, k: NoReturn, default: _T = ...) -> object: ...
method update (line 34) | def update(self: _T, __m: _T) -> None: ...
method __delitem__ (line 35) | def __delitem__(self, k: NoReturn) -> None: ...
function TypedDict (line 37) | def TypedDict(typename: str, fields: Dict[str, Type[_T]], *, total: Any ...
function trait (line 41) | def trait(cls: Any) -> Any: ...
class FlexibleAlias (line 48) | class FlexibleAlias(Generic[_T, _U]): ...
class __SupportsInt (line 50) | class __SupportsInt(Protocol[T_co]):
method __int__ (line 51) | def __int__(self) -> int: pass
class u8 (line 55) | class u8:
method __init__ (line 56) | def __init__(self, x: Union[_Int, str, bytes, SupportsInt], base: int ...
method __add__ (line 57) | def __add__(self, x: u8) -> u8: ...
method __radd__ (line 58) | def __radd__(self, x: u8) -> u8: ...
method __sub__ (line 59) | def __sub__(self, x: u8) -> u8: ...
method __rsub__ (line 60) | def __rsub__(self, x: u8) -> u8: ...
method __mul__ (line 61) | def __mul__(self, x: u8) -> u8: ...
method __rmul__ (line 62) | def __rmul__(self, x: u8) -> u8: ...
method __floordiv__ (line 63) | def __floordiv__(self, x: u8) -> u8: ...
method __rfloordiv__ (line 64) | def __rfloordiv__(self, x: u8) -> u8: ...
method __mod__ (line 65) | def __mod__(self, x: u8) -> u8: ...
method __rmod__ (line 66) | def __rmod__(self, x: u8) -> u8: ...
method __and__ (line 67) | def __and__(self, x: u8) -> u8: ...
method __rand__ (line 68) | def __rand__(self, x: u8) -> u8: ...
method __or__ (line 69) | def __or__(self, x: u8) -> u8: ...
method __ror__ (line 70) | def __ror__(self, x: u8) -> u8: ...
method __xor__ (line 71) | def __xor__(self, x: u8) -> u8: ...
method __rxor__ (line 72) | def __rxor__(self, x: u8) -> u8: ...
method __lshift__ (line 73) | def __lshift__(self, x: u8) -> u8: ...
method __rlshift__ (line 74) | def __rlshift__(self, x: u8) -> u8: ...
method __rshift__ (line 75) | def __rshift__(self, x: u8) -> u8: ...
method __rrshift__ (line 76) | def __rrshift__(self, x: u8) -> u8: ...
method __neg__ (line 77) | def __neg__(self) -> u8: ...
method __invert__ (line 78) | def __invert__(self) -> u8: ...
method __pos__ (line 79) | def __pos__(self) -> u8: ...
method __lt__ (line 80) | def __lt__(self, x: u8) -> bool: ...
method __le__ (line 81) | def __le__(self, x: u8) -> bool: ...
method __ge__ (line 82) | def __ge__(self, x: u8) -> bool: ...
method __gt__ (line 83) | def __gt__(self, x: u8) -> bool: ...
class i16 (line 85) | class i16:
method __init__ (line 86) | def __init__(self, x: Union[_Int, str, bytes, SupportsInt], base: int ...
method __add__ (line 87) | def __add__(self, x: i16) -> i16: ...
method __radd__ (line 88) | def __radd__(self, x: i16) -> i16: ...
method __sub__ (line 89) | def __sub__(self, x: i16) -> i16: ...
method __rsub__ (line 90) | def __rsub__(self, x: i16) -> i16: ...
method __mul__ (line 91) | def __mul__(self, x: i16) -> i16: ...
method __rmul__ (line 92) | def __rmul__(self, x: i16) -> i16: ...
method __floordiv__ (line 93) | def __floordiv__(self, x: i16) -> i16: ...
method __rfloordiv__ (line 94) | def __rfloordiv__(self, x: i16) -> i16: ...
method __mod__ (line 95) | def __mod__(self, x: i16) -> i16: ...
method __rmod__ (line 96) | def __rmod__(self, x: i16) -> i16: ...
method __and__ (line 97) | def __and__(self, x: i16) -> i16: ...
method __rand__ (line 98) | def __rand__(self, x: i16) -> i16: ...
method __or__ (line 99) | def __or__(self, x: i16) -> i16: ...
method __ror__ (line 100) | def __ror__(self, x: i16) -> i16: ...
method __xor__ (line 101) | def __xor__(self, x: i16) -> i16: ...
method __rxor__ (line 102) | def __rxor__(self, x: i16) -> i16: ...
method __lshift__ (line 103) | def __lshift__(self, x: i16) -> i16: ...
method __rlshift__ (line 104) | def __rlshift__(self, x: i16) -> i16: ...
method __rshift__ (line 105) | def __rshift__(self, x: i16) -> i16: ...
method __rrshift__ (line 106) | def __rrshift__(self, x: i16) -> i16: ...
method __neg__ (line 107) | def __neg__(self) -> i16: ...
method __invert__ (line 108) | def __invert__(self) -> i16: ...
method __pos__ (line 109) | def __pos__(self) -> i16: ...
method __lt__ (line 110) | def __lt__(self, x: i16) -> bool: ...
method __le__ (line 111) | def __le__(self, x: i16) -> bool: ...
method __ge__ (line 112) | def __ge__(self, x: i16) -> bool: ...
method __gt__ (line 113) | def __gt__(self, x: i16) -> bool: ...
class i32 (line 115) | class i32:
method __init__ (line 116) | def __init__(self, x: Union[_Int, str, bytes, SupportsInt], base: int ...
method __add__ (line 117) | def __add__(self, x: i32) -> i32: ...
method __radd__ (line 118) | def __radd__(self, x: i32) -> i32: ...
method __sub__ (line 119) | def __sub__(self, x: i32) -> i32: ...
method __rsub__ (line 120) | def __rsub__(self, x: i32) -> i32: ...
method __mul__ (line 121) | def __mul__(self, x: i32) -> i32: ...
method __rmul__ (line 122) | def __rmul__(self, x: i32) -> i32: ...
method __floordiv__ (line 123) | def __floordiv__(self, x: i32) -> i32: ...
method __rfloordiv__ (line 124) | def __rfloordiv__(self, x: i32) -> i32: ...
method __mod__ (line 125) | def __mod__(self, x: i32) -> i32: ...
method __rmod__ (line 126) | def __rmod__(self, x: i32) -> i32: ...
method __and__ (line 127) | def __and__(self, x: i32) -> i32: ...
method __rand__ (line 128) | def __rand__(self, x: i32) -> i32: ...
method __or__ (line 129) | def __or__(self, x: i32) -> i32: ...
method __ror__ (line 130) | def __ror__(self, x: i32) -> i32: ...
method __xor__ (line 131) | def __xor__(self, x: i32) -> i32: ...
method __rxor__ (line 132) | def __rxor__(self, x: i32) -> i32: ...
method __lshift__ (line 133) | def __lshift__(self, x: i32) -> i32: ...
method __rlshift__ (line 134) | def __rlshift__(self, x: i32) -> i32: ...
method __rshift__ (line 135) | def __rshift__(self, x: i32) -> i32: ...
method __rrshift__ (line 136) | def __rrshift__(self, x: i32) -> i32: ...
method __neg__ (line 137) | def __neg__(self) -> i32: ...
method __invert__ (line 138) | def __invert__(self) -> i32: ...
method __pos__ (line 139) | def __pos__(self) -> i32: ...
method __lt__ (line 140) | def __lt__(self, x: i32) -> bool: ...
method __le__ (line 141) | def __le__(self, x: i32) -> bool: ...
method __ge__ (line 142) | def __ge__(self, x: i32) -> bool: ...
method __gt__ (line 143) | def __gt__(self, x: i32) -> bool: ...
class i64 (line 145) | class i64:
method __init__ (line 146) | def __init__(self, x: Union[_Int, str, bytes, SupportsInt], base: int ...
method __add__ (line 147) | def __add__(self, x: i64) -> i64: ...
method __radd__ (line 148) | def __radd__(self, x: i64) -> i64: ...
method __sub__ (line 149) | def __sub__(self, x: i64) -> i64: ...
method __rsub__ (line 150) | def __rsub__(self, x: i64) -> i64: ...
method __mul__ (line 151) | def __mul__(self, x: i64) -> i64: ...
method __rmul__ (line 152) | def __rmul__(self, x: i64) -> i64: ...
method __floordiv__ (line 153) | def __floordiv__(self, x: i64) -> i64: ...
method __rfloordiv__ (line 154) | def __rfloordiv__(self, x: i64) -> i64: ...
method __mod__ (line 155) | def __mod__(self, x: i64) -> i64: ...
method __rmod__ (line 156) | def __rmod__(self, x: i64) -> i64: ...
method __and__ (line 157) | def __and__(self, x: i64) -> i64: ...
method __rand__ (line 158) | def __rand__(self, x: i64) -> i64: ...
method __or__ (line 159) | def __or__(self, x: i64) -> i64: ...
method __ror__ (line 160) | def __ror__(self, x: i64) -> i64: ...
method __xor__ (line 161) | def __xor__(self, x: i64) -> i64: ...
method __rxor__ (line 162) | def __rxor__(self, x: i64) -> i64: ...
method __lshift__ (line 163) | def __lshift__(self, x: i64) -> i64: ...
method __rlshift__ (line 164) | def __rlshift__(self, x: i64) -> i64: ...
method __rshift__ (line 165) | def __rshift__(self, x: i64) -> i64: ...
method __rrshift__ (line 166) | def __rrshift__(self, x: i64) -> i64: ...
method __neg__ (line 167) | def __neg__(self) -> i64: ...
method __invert__ (line 168) | def __invert__(self) -> i64: ...
method __pos__ (line 169) | def __pos__(self) -> i64: ...
method __lt__ (line 170) | def __lt__(self, x: i64) -> bool: ...
method __le__ (line 171) | def __le__(self, x: i64) -> bool: ...
method __ge__ (line 172) | def __ge__(self, x: i64) -> bool: ...
method __gt__ (line 173) | def __gt__(self, x: i64) -> bool: ...
FILE: test-data/unit/lib-stub/numbers.pyi
class Number (line 6) | class Number: pass
class Complex (line 7) | class Complex: pass
class Real (line 8) | class Real: pass
class Rational (line 9) | class Rational: pass
class Integral (line 10) | class Integral: pass
FILE: test-data/unit/lib-stub/six.pyi
function with_metaclass (line 2) | def with_metaclass(mcls: Type[type], *args: type) -> type: pass
function add_metaclass (line 3) | def add_metaclass(mcls: Type[type]) -> Callable[[type], type]: pass
FILE: test-data/unit/lib-stub/traceback.pyi
function print_tb (line 3) | def print_tb(*args, **kwargs) -> None: ...
FILE: test-data/unit/lib-stub/types.pyi
function coroutine (line 6) | def coroutine(func: _T) -> _T: pass
class ModuleType (line 8) | class ModuleType:
method __getattr__ (line 10) | def __getattr__(self, name: str) -> Any: pass
class GenericAlias (line 12) | class GenericAlias:
method __or__ (line 13) | def __or__(self, o): ...
method __ror__ (line 14) | def __ror__(self, o): ...
class NoneType (line 17) | class NoneType:
class UnionType (line 20) | class UnionType:
method __or__ (line 21) | def __or__(self, x) -> UnionType: ...
class FunctionType (line 23) | class FunctionType:
method __call__ (line 24) | def __call__(self): ...
class MethodType (line 26) | class MethodType:
FILE: test-data/unit/lib-stub/typing.pyi
class Callable (line 40) | class Callable:
method __call__ (line 41) | def __call__(self): pass
class _NamedCallable (line 42) | class _NamedCallable(Callable):
class Iterable (line 45) | class Iterable(Protocol[T_co]):
method __iter__ (line 46) | def __iter__(self) -> Iterator[T_co]: pass
class Iterator (line 48) | class Iterator(Iterable[T_co], Protocol):
method __next__ (line 49) | def __next__(self) -> T_co: pass
class Generator (line 51) | class Generator(Iterator[T], Generic[T, U, V]):
method __iter__ (line 52) | def __iter__(self) -> Generator[T, U, V]: pass
class Sequence (line 54) | class Sequence(Iterable[T_co]):
method __getitem__ (line 55) | def __getitem__(self, n: Any) -> T_co: pass
method __len__ (line 56) | def __len__(self) -> int: pass
class Mapping (line 59) | class Mapping(Iterable[T], Generic[T, T_co]):
method keys (line 60) | def keys(self) -> Iterable[T]: pass # Approximate return type
method __getitem__ (line 61) | def __getitem__(self, key: T) -> T_co: pass
class Awaitable (line 63) | class Awaitable(Protocol[T]):
method __await__ (line 64) | def __await__(self) -> Generator[Any, Any, T]: pass
class Coroutine (line 66) | class Coroutine(Awaitable[V], Generic[T, U, V]): pass
function final (line 68) | def final(meth: T) -> T: pass
function reveal_type (line 70) | def reveal_type(__obj: T) -> T: pass
class _SpecialForm (line 72) | class _SpecialForm: pass
FILE: test-data/unit/lib-stub/typing_extensions.pyi
class _SpecialForm (line 10) | class _SpecialForm:
method __getitem__ (line 11) | def __getitem__(self, typeargs: Any) -> Any:
method __call__ (line 14) | def __call__(self, arg: Any) -> Any:
function runtime_checkable (line 19) | def runtime_checkable(x: _T) -> _T: pass
function final (line 23) | def final(x: _T) -> _T: pass
class TypeAliasType (line 49) | class TypeAliasType:
method __init__ (line 50) | def __init__(
class _TypedDict (line 55) | class _TypedDict(Mapping[str, object]):
method __iter__ (line 58) | def __iter__(self) -> Iterator[str]: ...
method copy (line 59) | def copy(self: _T) -> _T: ...
method setdefault (line 61) | def setdefault(self, k: NoReturn, default: object) -> object: ...
method pop (line 63) | def pop(self, k: NoReturn, default: _T = ...) -> object: ...
method update (line 64) | def update(self: _T, __m: _T) -> None: ...
method items (line 65) | def items(self) -> Iterable[Tuple[str, object]]: ...
method keys (line 66) | def keys(self) -> Iterable[str]: ...
method values (line 67) | def values(self) -> Iterable[object]: ...
method has_key (line 69) | def has_key(self, k: str) -> bool: ...
method __delitem__ (line 70) | def __delitem__(self, k: NoReturn) -> None: ...
function TypedDict (line 80) | def TypedDict(typename: str, fields: Dict[str, Type[_T]], *, total: Any ...
function reveal_type (line 82) | def reveal_type(__obj: _T) -> _T: pass
function assert_type (line 83) | def assert_type(__val: _T, __typ: Any) -> _T: pass
function dataclass_transform (line 85) | def dataclass_transform(
function override (line 94) | def override(__arg: _T) -> _T: ...
function deprecated (line 95) | def deprecated(__msg: str) -> Callable[[_T], _T]: ...
FILE: test-data/unit/lib-stub/unannotated_lib.pyi
function f (line 1) | def f(x): ...
FILE: test-data/unit/plugins/add_classmethod.py
class ClassMethodPlugin (line 11) | class ClassMethodPlugin(Plugin):
method get_base_class_hook (line 12) | def get_base_class_hook(self, fullname: str) -> Callable[[ClassDefCont...
function add_extra_methods_hook (line 18) | def add_extra_methods_hook(ctx: ClassDefContext) -> None:
function plugin (line 29) | def plugin(version: str) -> type[ClassMethodPlugin]:
FILE: test-data/unit/plugins/add_method.py
class AddOverrideMethodPlugin (line 10) | class AddOverrideMethodPlugin(Plugin):
method get_class_decorator_hook_2 (line 11) | def get_class_decorator_hook_2(self, fullname: str) -> Callable[[Class...
function add_extra_methods_hook (line 17) | def add_extra_methods_hook(ctx: ClassDefContext) -> bool:
function plugin (line 22) | def plugin(version: str) -> type[AddOverrideMethodPlugin]:
FILE: test-data/unit/plugins/add_overloaded_method.py
class OverloadedMethodPlugin (line 10) | class OverloadedMethodPlugin(Plugin):
method get_base_class_hook (line 11) | def get_base_class_hook(self, fullname: str) -> Callable[[ClassDefCont...
function add_overloaded_method_hook (line 17) | def add_overloaded_method_hook(ctx: ClassDefContext) -> None:
function _generate_method_specs (line 27) | def _generate_method_specs(ctx: ClassDefContext) -> list[MethodSpec]:
function plugin (line 40) | def plugin(version: str) -> type[OverloadedMethodPlugin]:
FILE: test-data/unit/plugins/arg_kinds.py
class ArgKindsPlugin (line 9) | class ArgKindsPlugin(Plugin):
method get_function_hook (line 10) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
method get_method_hook (line 15) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
function extract_arg_kinds_from_function (line 21) | def extract_arg_kinds_from_function(ctx: FunctionContext) -> Type:
function extract_arg_kinds_from_method (line 26) | def extract_arg_kinds_from_method(ctx: MethodContext) -> Type:
function plugin (line 31) | def plugin(version: str) -> type[ArgKindsPlugin]:
FILE: test-data/unit/plugins/arg_names.py
class ArgNamesPlugin (line 10) | class ArgNamesPlugin(Plugin):
method get_function_hook (line 11) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
method get_method_hook (line 22) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
function extract_classname_and_set_as_return_type_function (line 36) | def extract_classname_and_set_as_return_type_function(ctx: FunctionConte...
function extract_classname_and_set_as_return_type_method (line 43) | def extract_classname_and_set_as_return_type_method(ctx: MethodContext) ...
function plugin (line 50) | def plugin(version: str) -> type[ArgNamesPlugin]:
FILE: test-data/unit/plugins/attrhook.py
class AttrPlugin (line 9) | class AttrPlugin(Plugin):
method get_attribute_hook (line 10) | def get_attribute_hook(self, fullname: str) -> Callable[[AttributeCont...
function signal_call_callback (line 16) | def signal_call_callback(ctx: AttributeContext) -> Type:
function plugin (line 22) | def plugin(version: str) -> type[AttrPlugin]:
FILE: test-data/unit/plugins/attrhook2.py
class AttrPlugin (line 9) | class AttrPlugin(Plugin):
method get_attribute_hook (line 10) | def get_attribute_hook(self, fullname: str) -> Callable[[AttributeCont...
function magic_field_callback (line 20) | def magic_field_callback(ctx: AttributeContext) -> Type:
function nonexistent_field_callback (line 24) | def nonexistent_field_callback(ctx: AttributeContext) -> Type:
function no_assignment_field_callback (line 29) | def no_assignment_field_callback(ctx: AttributeContext) -> Type:
function plugin (line 36) | def plugin(version: str) -> type[AttrPlugin]:
FILE: test-data/unit/plugins/badreturn.py
function plugin (line 1) | def plugin(version: str) -> None:
FILE: test-data/unit/plugins/badreturn2.py
class MyPlugin (line 4) | class MyPlugin:
function plugin (line 8) | def plugin(version: str) -> type[MyPlugin]:
FILE: test-data/unit/plugins/callable_instance.py
class CallableInstancePlugin (line 9) | class CallableInstancePlugin(Plugin):
method get_function_hook (line 10) | def get_function_hook(self, fullname: str) -> None:
method get_method_hook (line 13) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
function my_hook (line 23) | def my_hook(ctx: MethodContext) -> Type:
function plugin (line 29) | def plugin(version: str) -> type[CallableInstancePlugin]:
FILE: test-data/unit/plugins/class_attr_hook.py
class ClassAttrPlugin (line 9) | class ClassAttrPlugin(Plugin):
method get_class_attribute_hook (line 10) | def get_class_attribute_hook(
function my_hook (line 18) | def my_hook(ctx: AttributeContext) -> MypyType:
function plugin (line 22) | def plugin(_version: str) -> type[ClassAttrPlugin]:
FILE: test-data/unit/plugins/class_callable.py
class AttrPlugin (line 10) | class AttrPlugin(Plugin):
method get_function_hook (line 11) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
function attr_hook (line 17) | def attr_hook(ctx: FunctionContext) -> Type:
function plugin (line 42) | def plugin(version: str) -> type[AttrPlugin]:
FILE: test-data/unit/plugins/common_api_incremental.py
class DynPlugin (line 9) | class DynPlugin(Plugin):
method get_dynamic_class_hook (line 10) | def get_dynamic_class_hook(
method get_base_class_hook (line 17) | def get_base_class_hook(self, fullname: str) -> Callable[[ClassDefCont...
function add_info_hook (line 25) | def add_info_hook(ctx: DynamicClassDefContext) -> None:
function add_magic_hook (line 38) | def add_magic_hook(ctx: ClassDefContext) -> None:
function plugin (line 47) | def plugin(version: str) -> type[DynPlugin]:
FILE: test-data/unit/plugins/config_data.py
class ConfigDataPlugin (line 10) | class ConfigDataPlugin(Plugin):
method report_config_data (line 11) | def report_config_data(self, ctx: ReportConfigContext) -> Any:
function plugin (line 18) | def plugin(version: str) -> type[ConfigDataPlugin]:
FILE: test-data/unit/plugins/custom_errorcode.py
class CustomErrorCodePlugin (line 12) | class CustomErrorCodePlugin(Plugin):
method get_function_hook (line 13) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
method emit_error (line 18) | def emit_error(self, ctx: FunctionContext) -> Type:
function plugin (line 23) | def plugin(version: str) -> type[CustomErrorCodePlugin]:
FILE: test-data/unit/plugins/customentry.py
class MyPlugin (line 9) | class MyPlugin(Plugin):
method get_function_hook (line 10) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
function my_hook (line 17) | def my_hook(ctx: FunctionContext) -> Type:
function register (line 21) | def register(version: str) -> type[MyPlugin]:
FILE: test-data/unit/plugins/customize_mro.py
class DummyPlugin (line 8) | class DummyPlugin(Plugin):
method get_customize_class_mro_hook (line 9) | def get_customize_class_mro_hook(self, fullname: str) -> Callable[[Cla...
function plugin (line 16) | def plugin(version: str) -> type[DummyPlugin]:
FILE: test-data/unit/plugins/decimal_to_int.py
class MyPlugin (line 9) | class MyPlugin(Plugin):
method get_type_analyze_hook (line 10) | def get_type_analyze_hook(self, fullname: str) -> Callable[[AnalyzeTyp...
function decimal_to_int_hook (line 16) | def decimal_to_int_hook(ctx: AnalyzeTypeContext) -> Type:
function plugin (line 20) | def plugin(version: str) -> type[MyPlugin]:
FILE: test-data/unit/plugins/depshook.py
class DepsPlugin (line 7) | class DepsPlugin(Plugin):
method get_additional_deps (line 8) | def get_additional_deps(self, file: MypyFile) -> list[tuple[int, str, ...
function plugin (line 14) | def plugin(version: str) -> type[DepsPlugin]:
FILE: test-data/unit/plugins/descriptor.py
class DescriptorPlugin (line 9) | class DescriptorPlugin(Plugin):
method get_method_hook (line 10) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
method get_method_signature_hook (line 15) | def get_method_signature_hook(
function get_hook (line 23) | def get_hook(ctx: MethodContext) -> Type:
function set_hook (line 30) | def set_hook(ctx: MethodSigContext) -> CallableType:
function plugin (line 43) | def plugin(version: str) -> type[DescriptorPlugin]:
FILE: test-data/unit/plugins/dyn_class.py
class DynPlugin (line 12) | class DynPlugin(Plugin):
method get_dynamic_class_hook (line 13) | def get_dynamic_class_hook(
method get_base_class_hook (line 20) | def get_base_class_hook(self, fullname: str) -> Callable[[ClassDefCont...
function add_info_hook (line 26) | def add_info_hook(ctx: DynamicClassDefContext) -> None:
function replace_col_hook (line 39) | def replace_col_hook(ctx: ClassDefContext) -> None:
function plugin (line 56) | def plugin(version: str) -> type[DynPlugin]:
FILE: test-data/unit/plugins/dyn_class_from_method.py
class DynPlugin (line 22) | class DynPlugin(Plugin):
method get_dynamic_class_hook (line 23) | def get_dynamic_class_hook(
function add_info_hook (line 33) | def add_info_hook(ctx: DynamicClassDefContext) -> None:
function as_manager_hook (line 51) | def as_manager_hook(ctx: DynamicClassDefContext) -> None:
function plugin (line 75) | def plugin(version: str) -> type[DynPlugin]:
FILE: test-data/unit/plugins/fnplugin.py
class MyPlugin (line 9) | class MyPlugin(Plugin):
method get_function_hook (line 10) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
function my_hook (line 17) | def my_hook(ctx: FunctionContext) -> Type:
function plugin (line 21) | def plugin(version: str) -> type[MyPlugin]:
FILE: test-data/unit/plugins/fully_qualified_test_hook.py
class FullyQualifiedTestPlugin (line 9) | class FullyQualifiedTestPlugin(Plugin):
method get_method_signature_hook (line 10) | def get_method_signature_hook(
function my_hook (line 21) | def my_hook(ctx: MethodSigContext) -> CallableType:
function plugin (line 27) | def plugin(version: str) -> type[FullyQualifiedTestPlugin]:
FILE: test-data/unit/plugins/function_sig_hook.py
class FunctionSigPlugin (line 9) | class FunctionSigPlugin(Plugin):
method get_function_signature_hook (line 10) | def get_function_signature_hook(
function my_hook (line 18) | def my_hook(ctx: FunctionSigContext) -> CallableType:
function plugin (line 26) | def plugin(version: str) -> type[FunctionSigPlugin]:
FILE: test-data/unit/plugins/method_in_decorator.py
class MethodDecoratorPlugin (line 9) | class MethodDecoratorPlugin(Plugin):
method get_method_hook (line 10) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
function method_decorator_callback (line 16) | def method_decorator_callback(ctx: MethodContext) -> Type:
function plugin (line 24) | def plugin(version: str) -> type[MethodDecoratorPlugin]:
FILE: test-data/unit/plugins/method_sig_hook.py
class MethodSigPlugin (line 9) | class MethodSigPlugin(Plugin):
method get_method_signature_hook (line 10) | def get_method_signature_hook(
function _str_to_int (line 22) | def _str_to_int(api: CheckerPluginInterface, typ: Type) -> Type:
function my_hook (line 33) | def my_hook(ctx: MethodSigContext) -> CallableType:
function plugin (line 40) | def plugin(version: str) -> type[MethodSigPlugin]:
FILE: test-data/unit/plugins/named_callable.py
class MyPlugin (line 9) | class MyPlugin(Plugin):
method get_function_hook (line 10) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
function decorator_call_hook (line 18) | def decorator_call_hook(ctx: FunctionContext) -> Type:
function decorate_hook (line 25) | def decorate_hook(ctx: FunctionContext) -> Type:
function plugin (line 32) | def plugin(version: str) -> type[MyPlugin]:
FILE: test-data/unit/plugins/plugin2.py
class Plugin2 (line 9) | class Plugin2(Plugin):
method get_function_hook (line 10) | def get_function_hook(self, fullname: str) -> Callable[[FunctionContex...
function str_hook (line 16) | def str_hook(ctx: FunctionContext) -> Type:
function plugin (line 20) | def plugin(version: str) -> type[Plugin2]:
FILE: test-data/unit/plugins/type_anal_hook.py
class TypeAnalyzePlugin (line 12) | class TypeAnalyzePlugin(Plugin):
method get_type_analyze_hook (line 13) | def get_type_analyze_hook(self, fullname: str) -> Callable[[AnalyzeTyp...
function signal_type_analyze_callback (line 19) | def signal_type_analyze_callback(ctx: AnalyzeTypeContext) -> Type:
function plugin (line 37) | def plugin(version: str) -> type[TypeAnalyzePlugin]:
FILE: test-data/unit/plugins/union_method.py
class MethodPlugin (line 9) | class MethodPlugin(Plugin):
method get_method_signature_hook (line 10) | def get_method_signature_hook(
method get_method_hook (line 17) | def get_method_hook(self, fullname: str) -> Callable[[MethodContext], ...
function _str_to_int (line 23) | def _str_to_int(api: CheckerPluginInterface, typ: Type) -> Type:
function _float_to_int (line 33) | def _float_to_int(api: CheckerPluginInterface, typ: Type) -> Type:
function my_meth_sig_hook (line 43) | def my_meth_sig_hook(ctx: MethodSigContext) -> CallableType:
function my_meth_hook (line 50) | def my_meth_hook(ctx: MethodContext) -> Type:
function plugin (line 54) | def plugin(version: str) -> type[MethodPlugin]: