@gnost-cli/darwin-arm64 0.0.0-stage → 0.5.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bundle/_internal/6ec57f84c680d3a3778b__mypyc.cpython-312-darwin.so +4 -0
- package/bundle/_internal/Python +0 -0
- package/bundle/_internal/Python.framework/Python +0 -0
- package/bundle/_internal/Python.framework/Resources/Info.plist +30 -0
- package/bundle/_internal/Python.framework/Versions/3.12/Python +0 -0
- package/bundle/_internal/Python.framework/Versions/3.12/Resources/Info.plist +30 -0
- package/bundle/_internal/Python.framework/Versions/Current/Python +0 -0
- package/bundle/_internal/Python.framework/Versions/Current/Resources/Info.plist +30 -0
- package/bundle/_internal/ast_serialize/ast_serialize.abi3.so +0 -0
- package/bundle/_internal/bandit/__init__.py +20 -0
- package/bundle/_internal/bandit/__main__.py +17 -0
- package/bundle/_internal/bandit/blacklists/__init__.py +0 -0
- package/bundle/_internal/bandit/blacklists/calls.py +670 -0
- package/bundle/_internal/bandit/blacklists/imports.py +425 -0
- package/bundle/_internal/bandit/blacklists/utils.py +17 -0
- package/bundle/_internal/bandit/cli/__init__.py +0 -0
- package/bundle/_internal/bandit/cli/baseline.py +252 -0
- package/bundle/_internal/bandit/cli/config_generator.py +207 -0
- package/bundle/_internal/bandit/cli/main.py +701 -0
- package/bundle/_internal/bandit/core/__init__.py +15 -0
- package/bundle/_internal/bandit/core/blacklisting.py +72 -0
- package/bundle/_internal/bandit/core/config.py +271 -0
- package/bundle/_internal/bandit/core/constants.py +40 -0
- package/bundle/_internal/bandit/core/context.py +316 -0
- package/bundle/_internal/bandit/core/docs_utils.py +54 -0
- package/bundle/_internal/bandit/core/extension_loader.py +114 -0
- package/bundle/_internal/bandit/core/issue.py +245 -0
- package/bundle/_internal/bandit/core/manager.py +499 -0
- package/bundle/_internal/bandit/core/meta_ast.py +44 -0
- package/bundle/_internal/bandit/core/metrics.py +106 -0
- package/bundle/_internal/bandit/core/node_visitor.py +297 -0
- package/bundle/_internal/bandit/core/test_properties.py +83 -0
- package/bundle/_internal/bandit/core/test_set.py +114 -0
- package/bundle/_internal/bandit/core/tester.py +168 -0
- package/bundle/_internal/bandit/core/utils.py +398 -0
- package/bundle/_internal/bandit/formatters/__init__.py +0 -0
- package/bundle/_internal/bandit/formatters/csv.py +82 -0
- package/bundle/_internal/bandit/formatters/custom.py +161 -0
- package/bundle/_internal/bandit/formatters/html.py +394 -0
- package/bundle/_internal/bandit/formatters/json.py +155 -0
- package/bundle/_internal/bandit/formatters/sarif.py +374 -0
- package/bundle/_internal/bandit/formatters/screen.py +244 -0
- package/bundle/_internal/bandit/formatters/text.py +200 -0
- package/bundle/_internal/bandit/formatters/utils.py +14 -0
- package/bundle/_internal/bandit/formatters/xml.py +97 -0
- package/bundle/_internal/bandit/formatters/yaml.py +126 -0
- package/bundle/_internal/bandit/plugins/__init__.py +0 -0
- package/bundle/_internal/bandit/plugins/app_debug.py +63 -0
- package/bundle/_internal/bandit/plugins/asserts.py +83 -0
- package/bundle/_internal/bandit/plugins/crypto_request_no_cert_validation.py +75 -0
- package/bundle/_internal/bandit/plugins/django_sql_injection.py +155 -0
- package/bundle/_internal/bandit/plugins/django_xss.py +287 -0
- package/bundle/_internal/bandit/plugins/exec.py +55 -0
- package/bundle/_internal/bandit/plugins/general_bad_file_permissions.py +99 -0
- package/bundle/_internal/bandit/plugins/general_bind_all_interfaces.py +52 -0
- package/bundle/_internal/bandit/plugins/general_hardcoded_password.py +282 -0
- package/bundle/_internal/bandit/plugins/general_hardcoded_tmp.py +79 -0
- package/bundle/_internal/bandit/plugins/hashlib_insecure_functions.py +121 -0
- package/bundle/_internal/bandit/plugins/huggingface_unsafe_download.py +166 -0
- package/bundle/_internal/bandit/plugins/injection_paramiko.py +63 -0
- package/bundle/_internal/bandit/plugins/injection_shell.py +706 -0
- package/bundle/_internal/bandit/plugins/injection_sql.py +143 -0
- package/bundle/_internal/bandit/plugins/injection_wildcard.py +144 -0
- package/bundle/_internal/bandit/plugins/insecure_ssl_tls.py +285 -0
- package/bundle/_internal/bandit/plugins/jinja2_templates.py +134 -0
- package/bundle/_internal/bandit/plugins/logging_config_insecure_listen.py +58 -0
- package/bundle/_internal/bandit/plugins/mako_templates.py +69 -0
- package/bundle/_internal/bandit/plugins/markupsafe_markup_xss.py +118 -0
- package/bundle/_internal/bandit/plugins/pytorch_load.py +77 -0
- package/bundle/_internal/bandit/plugins/request_without_timeout.py +84 -0
- package/bundle/_internal/bandit/plugins/snmp_security_check.py +110 -0
- package/bundle/_internal/bandit/plugins/ssh_no_host_key_verification.py +76 -0
- package/bundle/_internal/bandit/plugins/tarfile_unsafe_members.py +121 -0
- package/bundle/_internal/bandit/plugins/trojansource.py +82 -0
- package/bundle/_internal/bandit/plugins/try_except_continue.py +108 -0
- package/bundle/_internal/bandit/plugins/try_except_pass.py +106 -0
- package/bundle/_internal/bandit/plugins/weak_cryptographic_key.py +165 -0
- package/bundle/_internal/bandit/plugins/yaml_load.py +76 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/INSTALLER +1 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/METADATA +212 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/RECORD +150 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/WHEEL +5 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/entry_points.txt +63 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/licenses/LICENSE +175 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/pbr.json +1 -0
- package/bundle/_internal/bandit-1.9.4.dist-info/top_level.txt +1 -0
- package/bundle/_internal/base_library.zip +0 -0
- package/bundle/_internal/bin/ruff +0 -0
- package/bundle/_internal/gnost/__init__.py +1 -0
- package/bundle/_internal/gnost/analysis/__init__.py +0 -0
- package/bundle/_internal/gnost/analysis/analyzers/__init__.py +11 -0
- package/bundle/_internal/gnost/analysis/analyzers/maintainability_analyzer.py +901 -0
- package/bundle/_internal/gnost/analysis/analyzers/observability_analyzer.py +592 -0
- package/bundle/_internal/gnost/analysis/analyzers/readability_analyzer.py +968 -0
- package/bundle/_internal/gnost/analysis/analyzers/robustness_analyzer.py +944 -0
- package/bundle/_internal/gnost/analysis/config/mypy.ini +4 -0
- package/bundle/_internal/gnost/analysis/core/__init__.py +0 -0
- package/bundle/_internal/gnost/analysis/core/aggregator.py +584 -0
- package/bundle/_internal/gnost/analysis/core/engine.py +430 -0
- package/bundle/_internal/gnost/analysis/core/file_utils.py +209 -0
- package/bundle/_internal/gnost/analysis/core/interfaces.py +304 -0
- package/bundle/_internal/gnost/analysis/core/models.py +479 -0
- package/bundle/_internal/gnost/analysis/core/tool_runner.py +153 -0
- package/bundle/_internal/gnost/analysis/core/transformers.py +779 -0
- package/bundle/_internal/gnost/analysis/utils/__init__.py +0 -0
- package/bundle/_internal/gnost/analysis/utils/analyze.py +132 -0
- package/bundle/_internal/gnost/analysis/utils/df_handling.py +215 -0
- package/bundle/_internal/gnost/analysis/utils/duplicate_code.py +42 -0
- package/bundle/_internal/gnost/analysis/utils/extract.py +172 -0
- package/bundle/_internal/gnost/analysis/utils/mi.py +130 -0
- package/bundle/_internal/gnost/analysis/utils/tool_command.py +63 -0
- package/bundle/_internal/gnost/cli/__init__.py +3 -0
- package/bundle/_internal/gnost/cli/app.py +696 -0
- package/bundle/_internal/gnost/cli/commands/__init__.py +3 -0
- package/bundle/_internal/gnost/cli/commands/analysis.py +190 -0
- package/bundle/_internal/gnost/cli/commands/onboard.py +507 -0
- package/bundle/_internal/gnost/cli/commands/show.py +70 -0
- package/bundle/_internal/gnost/config/__init__.py +0 -0
- package/bundle/_internal/gnost/config/languages.py +10 -0
- package/bundle/_internal/gnost/config/settings.py +240 -0
- package/bundle/_internal/gnost/core/__init__.py +0 -0
- package/bundle/_internal/gnost/core/callgraph.py +399 -0
- package/bundle/_internal/gnost/core/caution.py +315 -0
- package/bundle/_internal/gnost/core/cycles.py +148 -0
- package/bundle/_internal/gnost/core/flow.py +204 -0
- package/bundle/_internal/gnost/core/graph.py +108 -0
- package/bundle/_internal/gnost/core/insight_builder.py +164 -0
- package/bundle/_internal/gnost/core/ranker.py +119 -0
- package/bundle/_internal/gnost/core/resolver.py +304 -0
- package/bundle/_internal/gnost/languages/base.py +108 -0
- package/bundle/_internal/gnost/languages/java.py +104 -0
- package/bundle/_internal/gnost/languages/javascript.py +153 -0
- package/bundle/_internal/gnost/languages/manifests.py +45 -0
- package/bundle/_internal/gnost/languages/python.py +318 -0
- package/bundle/_internal/gnost/languages/typescript.py +6 -0
- package/bundle/_internal/gnost/models/__init__.py +0 -0
- package/bundle/_internal/gnost/models/insights.py +68 -0
- package/bundle/_internal/gnost/reporters/__init__.py +3 -0
- package/bundle/_internal/gnost/reporters/analysis_html.py +1292 -0
- package/bundle/_internal/gnost/reporters/diagram_viewer.py +153 -0
- package/bundle/_internal/gnost/reporters/files.py +18 -0
- package/bundle/_internal/gnost/reporters/folders.py +18 -0
- package/bundle/_internal/gnost/reporters/insights_json.py +189 -0
- package/bundle/_internal/gnost/reporters/loc_summary.py +19 -0
- package/bundle/_internal/gnost/reporters/markdown.py +372 -0
- package/bundle/_internal/gnost/reporters/mermaid.py +543 -0
- package/bundle/_internal/gnost/reporters/mermaid_graph.py +309 -0
- package/bundle/_internal/gnost/reporters/readme.py +81 -0
- package/bundle/_internal/gnost/reporters/stats.py +13 -0
- package/bundle/_internal/gnost/reporters/summary.py +223 -0
- package/bundle/_internal/gnost/reporters/templates/analyzer_guides.json +247 -0
- package/bundle/_internal/gnost/reporters/templates/analyzer_guides_layout.html +9 -0
- package/bundle/_internal/gnost/reporters/templates/graph_viewer.html +427 -0
- package/bundle/_internal/gnost/reporters/vendor/THIRD_PARTY_NOTICES.md +205 -0
- package/bundle/_internal/gnost/reporters/vendor/cose-base.js +3214 -0
- package/bundle/_internal/gnost/reporters/vendor/cytoscape-fcose.js +1549 -0
- package/bundle/_internal/gnost/reporters/vendor/cytoscape.min.js +32 -0
- package/bundle/_internal/gnost/reporters/vendor/layout-base.js +5230 -0
- package/bundle/_internal/gnost/reporters/vendor/marked.min.js +6 -0
- package/bundle/_internal/gnost/reporters/vendor/mermaid.min.js +2314 -0
- package/bundle/_internal/gnost/reporters/vendor/svg-pan-zoom.min.js +3 -0
- package/bundle/_internal/gnost/reporters/vendor/vendor.json +44 -0
- package/bundle/_internal/gnost/routes/__init__.py +45 -0
- package/bundle/_internal/gnost/routes/java.py +72 -0
- package/bundle/_internal/gnost/routes/javascript.py +275 -0
- package/bundle/_internal/gnost/routes/models.py +58 -0
- package/bundle/_internal/gnost/routes/python.py +429 -0
- package/bundle/_internal/gnost/scanner/__init__.py +4 -0
- package/bundle/_internal/gnost/scanner/classify.py +13 -0
- package/bundle/_internal/gnost/scanner/engine.py +169 -0
- package/bundle/_internal/gnost/scanner/filters.py +196 -0
- package/bundle/_internal/gnost/scanner/loc.py +93 -0
- package/bundle/_internal/gnost/scanner/models.py +27 -0
- package/bundle/_internal/gnost/schemas/insights.schema.json +517 -0
- package/bundle/_internal/gnost/utils/__init__.py +0 -0
- package/bundle/_internal/gnost/utils/logger.py +85 -0
- package/bundle/_internal/gnost/utils/paths.py +29 -0
- package/bundle/_internal/gnost/utils/printer.py +46 -0
- package/bundle/_internal/gnost/utils/progress.py +20 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/INSTALLER +1 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/METADATA +130 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/RECORD +178 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/REQUESTED +0 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/WHEEL +5 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/direct_url.json +1 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/entry_points.txt +2 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/licenses/LICENSE +21 -0
- package/bundle/_internal/gnost-0.5.1rc1.dist-info/top_level.txt +1 -0
- package/bundle/_internal/libcrypto.3.dylib +0 -0
- package/bundle/_internal/libncurses.6.dylib +0 -0
- package/bundle/_internal/librt/base64.cpython-312-darwin.so +0 -0
- package/bundle/_internal/librt/internal.cpython-312-darwin.so +0 -0
- package/bundle/_internal/libssl.3.dylib +0 -0
- package/bundle/_internal/mypy/__init__.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/__init__.py +1 -0
- package/bundle/_internal/mypy/__main__.py +52 -0
- package/bundle/_internal/mypy/api.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/api.py +95 -0
- package/bundle/_internal/mypy/applytype.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/applytype.py +317 -0
- package/bundle/_internal/mypy/argmap.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/argmap.py +269 -0
- package/bundle/_internal/mypy/binder.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/binder.py +710 -0
- package/bundle/_internal/mypy/bogus_type.py +27 -0
- package/bundle/_internal/mypy/build.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/build.py +5533 -0
- package/bundle/_internal/mypy/build_worker/__init__.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/build_worker/__init__.py +0 -0
- package/bundle/_internal/mypy/build_worker/__main__.py +6 -0
- package/bundle/_internal/mypy/build_worker/worker.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/build_worker/worker.py +379 -0
- package/bundle/_internal/mypy/cache.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/cache.py +626 -0
- package/bundle/_internal/mypy/checker.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/checker.py +10110 -0
- package/bundle/_internal/mypy/checker_shared.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/checker_shared.py +377 -0
- package/bundle/_internal/mypy/checker_state.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/checker_state.py +30 -0
- package/bundle/_internal/mypy/checkexpr.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/checkexpr.py +7018 -0
- package/bundle/_internal/mypy/checkmember.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/checkmember.py +1593 -0
- package/bundle/_internal/mypy/checkpattern.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/checkpattern.py +883 -0
- package/bundle/_internal/mypy/checkstrformat.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/checkstrformat.py +1103 -0
- package/bundle/_internal/mypy/config_parser.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/config_parser.py +749 -0
- package/bundle/_internal/mypy/constant_fold.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/constant_fold.py +187 -0
- package/bundle/_internal/mypy/constraints.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/constraints.py +1748 -0
- package/bundle/_internal/mypy/copytype.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/copytype.py +137 -0
- package/bundle/_internal/mypy/defaults.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/defaults.py +67 -0
- package/bundle/_internal/mypy/dmypy/__init__.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/dmypy/__init__.py +0 -0
- package/bundle/_internal/mypy/dmypy/__main__.py +6 -0
- package/bundle/_internal/mypy/dmypy/client.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/dmypy/client.py +732 -0
- package/bundle/_internal/mypy/dmypy_os.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/dmypy_os.py +43 -0
- package/bundle/_internal/mypy/dmypy_server.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/dmypy_server.py +1132 -0
- package/bundle/_internal/mypy/dmypy_util.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/dmypy_util.py +117 -0
- package/bundle/_internal/mypy/erasetype.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/erasetype.py +301 -0
- package/bundle/_internal/mypy/error_formatter.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/error_formatter.py +39 -0
- package/bundle/_internal/mypy/errorcodes.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/errorcodes.py +340 -0
- package/bundle/_internal/mypy/errors.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/errors.py +1468 -0
- package/bundle/_internal/mypy/evalexpr.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/evalexpr.py +211 -0
- package/bundle/_internal/mypy/expandtype.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/expandtype.py +662 -0
- package/bundle/_internal/mypy/exportjson.py +616 -0
- package/bundle/_internal/mypy/exprtotype.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/exprtotype.py +285 -0
- package/bundle/_internal/mypy/fastparse.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/fastparse.py +2267 -0
- package/bundle/_internal/mypy/find_sources.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/find_sources.py +257 -0
- package/bundle/_internal/mypy/fixup.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/fixup.py +438 -0
- package/bundle/_internal/mypy/freetree.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/freetree.py +23 -0
- package/bundle/_internal/mypy/fscache.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/fscache.py +312 -0
- package/bundle/_internal/mypy/fswatcher.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/fswatcher.py +106 -0
- package/bundle/_internal/mypy/gclogger.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/gclogger.py +48 -0
- package/bundle/_internal/mypy/git.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/git.py +69 -0
- package/bundle/_internal/mypy/graph_utils.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/graph_utils.py +161 -0
- package/bundle/_internal/mypy/indirection.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/indirection.py +176 -0
- package/bundle/_internal/mypy/infer.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/infer.py +80 -0
- package/bundle/_internal/mypy/inspections.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/inspections.py +626 -0
- package/bundle/_internal/mypy/ipc.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/ipc.py +508 -0
- package/bundle/_internal/mypy/join.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/join.py +962 -0
- package/bundle/_internal/mypy/known_modules.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/known_modules.py +174 -0
- package/bundle/_internal/mypy/literals.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/literals.py +327 -0
- package/bundle/_internal/mypy/lookup.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/lookup.py +80 -0
- package/bundle/_internal/mypy/main.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/main.py +1793 -0
- package/bundle/_internal/mypy/maptype.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/maptype.py +109 -0
- package/bundle/_internal/mypy/meet.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/meet.py +1371 -0
- package/bundle/_internal/mypy/memprofile.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/memprofile.py +122 -0
- package/bundle/_internal/mypy/message_registry.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/message_registry.py +378 -0
- package/bundle/_internal/mypy/messages.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/messages.py +3535 -0
- package/bundle/_internal/mypy/metastore.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/metastore.py +278 -0
- package/bundle/_internal/mypy/mixedtraverser.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/mixedtraverser.py +147 -0
- package/bundle/_internal/mypy/modulefinder.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/modulefinder.py +1008 -0
- package/bundle/_internal/mypy/moduleinspect.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/moduleinspect.py +184 -0
- package/bundle/_internal/mypy/modules_state.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/modules_state.py +20 -0
- package/bundle/_internal/mypy/mro.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/mro.py +62 -0
- package/bundle/_internal/mypy/nativeparse.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/nativeparse.py +2199 -0
- package/bundle/_internal/mypy/nodes.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/nodes.py +5608 -0
- package/bundle/_internal/mypy/operators.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/operators.py +126 -0
- package/bundle/_internal/mypy/options.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/options.py +678 -0
- package/bundle/_internal/mypy/parse.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/parse.py +135 -0
- package/bundle/_internal/mypy/partially_defined.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/partially_defined.py +703 -0
- package/bundle/_internal/mypy/patterns.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/patterns.py +162 -0
- package/bundle/_internal/mypy/plugin.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugin.py +945 -0
- package/bundle/_internal/mypy/plugins/__init__.py +0 -0
- package/bundle/_internal/mypy/plugins/attrs.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/attrs.py +1179 -0
- package/bundle/_internal/mypy/plugins/common.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/common.py +441 -0
- package/bundle/_internal/mypy/plugins/constants.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/constants.py +20 -0
- package/bundle/_internal/mypy/plugins/ctypes.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/ctypes.py +245 -0
- package/bundle/_internal/mypy/plugins/dataclasses.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/dataclasses.py +1135 -0
- package/bundle/_internal/mypy/plugins/default.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/default.py +612 -0
- package/bundle/_internal/mypy/plugins/enums.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/enums.py +299 -0
- package/bundle/_internal/mypy/plugins/functools.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/functools.py +399 -0
- package/bundle/_internal/mypy/plugins/proper_plugin.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/proper_plugin.py +178 -0
- package/bundle/_internal/mypy/plugins/singledispatch.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/plugins/singledispatch.py +212 -0
- package/bundle/_internal/mypy/py.typed +1 -0
- package/bundle/_internal/mypy/pyinfo.py +79 -0
- package/bundle/_internal/mypy/reachability.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/reachability.py +388 -0
- package/bundle/_internal/mypy/refinfo.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/refinfo.py +92 -0
- package/bundle/_internal/mypy/renaming.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/renaming.py +583 -0
- package/bundle/_internal/mypy/report.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/report.py +930 -0
- package/bundle/_internal/mypy/scope.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/scope.py +125 -0
- package/bundle/_internal/mypy/semanal.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal.py +8674 -0
- package/bundle/_internal/mypy/semanal_classprop.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_classprop.py +188 -0
- package/bundle/_internal/mypy/semanal_enum.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_enum.py +259 -0
- package/bundle/_internal/mypy/semanal_infer.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_infer.py +135 -0
- package/bundle/_internal/mypy/semanal_main.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_main.py +542 -0
- package/bundle/_internal/mypy/semanal_namedtuple.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_namedtuple.py +679 -0
- package/bundle/_internal/mypy/semanal_newtype.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_newtype.py +272 -0
- package/bundle/_internal/mypy/semanal_pass1.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_pass1.py +159 -0
- package/bundle/_internal/mypy/semanal_shared.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_shared.py +499 -0
- package/bundle/_internal/mypy/semanal_typeargs.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_typeargs.py +309 -0
- package/bundle/_internal/mypy/semanal_typeddict.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/semanal_typeddict.py +826 -0
- package/bundle/_internal/mypy/server/__init__.py +0 -0
- package/bundle/_internal/mypy/server/astdiff.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/astdiff.py +552 -0
- package/bundle/_internal/mypy/server/astmerge.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/astmerge.py +583 -0
- package/bundle/_internal/mypy/server/aststrip.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/aststrip.py +255 -0
- package/bundle/_internal/mypy/server/deps.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/deps.py +1153 -0
- package/bundle/_internal/mypy/server/mergecheck.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/mergecheck.py +84 -0
- package/bundle/_internal/mypy/server/objgraph.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/objgraph.py +101 -0
- package/bundle/_internal/mypy/server/subexpr.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/subexpr.py +208 -0
- package/bundle/_internal/mypy/server/target.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/target.py +11 -0
- package/bundle/_internal/mypy/server/trigger.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/trigger.py +26 -0
- package/bundle/_internal/mypy/server/update.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/server/update.py +1372 -0
- package/bundle/_internal/mypy/sharedparse.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/sharedparse.py +114 -0
- package/bundle/_internal/mypy/solve.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/solve.py +602 -0
- package/bundle/_internal/mypy/split_namespace.py +35 -0
- package/bundle/_internal/mypy/state.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/state.py +29 -0
- package/bundle/_internal/mypy/stats.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/stats.py +494 -0
- package/bundle/_internal/mypy/strconv.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/strconv.py +707 -0
- package/bundle/_internal/mypy/stubdoc.py +545 -0
- package/bundle/_internal/mypy/stubgen.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/stubgen.py +2064 -0
- package/bundle/_internal/mypy/stubgenc.py +1046 -0
- package/bundle/_internal/mypy/stubinfo.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/stubinfo.py +321 -0
- package/bundle/_internal/mypy/stubtest.py +2676 -0
- package/bundle/_internal/mypy/stubutil.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/stubutil.py +895 -0
- package/bundle/_internal/mypy/subtypes.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/subtypes.py +2572 -0
- package/bundle/_internal/mypy/suggestions.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/suggestions.py +1068 -0
- package/bundle/_internal/mypy/test/__init__.py +0 -0
- package/bundle/_internal/mypy/test/config.py +31 -0
- package/bundle/_internal/mypy/test/data.py +864 -0
- package/bundle/_internal/mypy/test/helpers.py +546 -0
- package/bundle/_internal/mypy/test/meta/__init__.py +0 -0
- package/bundle/_internal/mypy/test/meta/_pytest.py +72 -0
- package/bundle/_internal/mypy/test/meta/test_diff_helper.py +47 -0
- package/bundle/_internal/mypy/test/meta/test_parse_data.py +69 -0
- package/bundle/_internal/mypy/test/meta/test_update_data.py +131 -0
- package/bundle/_internal/mypy/test/test_config_parser.py +130 -0
- package/bundle/_internal/mypy/test/test_diff_cache.py +209 -0
- package/bundle/_internal/mypy/test/test_find_sources.py +376 -0
- package/bundle/_internal/mypy/test/test_nativeparse.py +306 -0
- package/bundle/_internal/mypy/test/test_ref_info.py +46 -0
- package/bundle/_internal/mypy/test/testapi.py +45 -0
- package/bundle/_internal/mypy/test/testargs.py +202 -0
- package/bundle/_internal/mypy/test/testcheck.py +360 -0
- package/bundle/_internal/mypy/test/testcmdline.py +162 -0
- package/bundle/_internal/mypy/test/testconstraints.py +134 -0
- package/bundle/_internal/mypy/test/testdaemon.py +132 -0
- package/bundle/_internal/mypy/test/testdeps.py +85 -0
- package/bundle/_internal/mypy/test/testdiff.py +70 -0
- package/bundle/_internal/mypy/test/testerrorstream.py +46 -0
- package/bundle/_internal/mypy/test/testexportjson.py +104 -0
- package/bundle/_internal/mypy/test/testfinegrained.py +453 -0
- package/bundle/_internal/mypy/test/testfinegrainedcache.py +18 -0
- package/bundle/_internal/mypy/test/testformatter.py +85 -0
- package/bundle/_internal/mypy/test/testfscache.py +100 -0
- package/bundle/_internal/mypy/test/testgraph.py +138 -0
- package/bundle/_internal/mypy/test/testinfer.py +373 -0
- package/bundle/_internal/mypy/test/testipc.py +154 -0
- package/bundle/_internal/mypy/test/testmerge.py +235 -0
- package/bundle/_internal/mypy/test/testmodulefinder.py +284 -0
- package/bundle/_internal/mypy/test/testmypyc.py +26 -0
- package/bundle/_internal/mypy/test/testoutput.py +64 -0
- package/bundle/_internal/mypy/test/testparse.py +131 -0
- package/bundle/_internal/mypy/test/testpep561.py +174 -0
- package/bundle/_internal/mypy/test/testpythoneval.py +116 -0
- package/bundle/_internal/mypy/test/testreports.py +59 -0
- package/bundle/_internal/mypy/test/testsemanal.py +219 -0
- package/bundle/_internal/mypy/test/testsolve.py +287 -0
- package/bundle/_internal/mypy/test/teststubgen.py +1650 -0
- package/bundle/_internal/mypy/test/teststubinfo.py +24 -0
- package/bundle/_internal/mypy/test/teststubtest.py +3417 -0
- package/bundle/_internal/mypy/test/testsubtypes.py +306 -0
- package/bundle/_internal/mypy/test/testtransform.py +64 -0
- package/bundle/_internal/mypy/test/testtypegen.py +83 -0
- package/bundle/_internal/mypy/test/testtypes.py +1666 -0
- package/bundle/_internal/mypy/test/testutil.py +111 -0
- package/bundle/_internal/mypy/test/typefixture.py +419 -0
- package/bundle/_internal/mypy/test/update_data.py +87 -0
- package/bundle/_internal/mypy/test/visitors.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/test/visitors.py +77 -0
- package/bundle/_internal/mypy/traverser.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/traverser.py +1106 -0
- package/bundle/_internal/mypy/treetransform.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/treetransform.py +820 -0
- package/bundle/_internal/mypy/tvar_scope.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/tvar_scope.py +154 -0
- package/bundle/_internal/mypy/type_visitor.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/type_visitor.py +630 -0
- package/bundle/_internal/mypy/typeanal.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/typeanal.py +2961 -0
- package/bundle/_internal/mypy/typeops.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/typeops.py +1355 -0
- package/bundle/_internal/mypy/types.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/types.py +4639 -0
- package/bundle/_internal/mypy/types_utils.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/types_utils.py +183 -0
- package/bundle/_internal/mypy/typeshed/LICENSE +237 -0
- package/bundle/_internal/mypy/typeshed/stdlib/VERSIONS +349 -0
- package/bundle/_internal/mypy/typeshed/stdlib/__future__.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/__main__.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_ast.pyi +141 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_asyncio.pyi +114 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_bisect.pyi +103 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_blake2.pyi +119 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_bz2.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_codecs.pyi +125 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_collections_abc.pyi +105 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_compat_pickle.pyi +10 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_compression.pyi +39 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_contextvars.pyi +69 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_csv.pyi +116 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_ctypes.pyi +375 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_curses.pyi +583 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_curses_panel.pyi +27 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_dbm.pyi +46 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_decimal.pyi +73 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_frozen_importlib.pyi +121 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_frozen_importlib_external.pyi +218 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_gdbm.pyi +50 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_hashlib.pyi +127 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_heapq.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_imp.pyi +30 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_interpchannels.pyi +86 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_interpqueues.pyi +31 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_interpreters.pyi +68 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_io.pyi +330 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_json.pyi +59 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_locale.pyi +121 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_lsprof.pyi +34 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_lzma.pyi +71 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_markupbase.pyi +10 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_msi.pyi +97 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_multibytecodec.pyi +49 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_operator.pyi +130 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_osx_support.pyi +34 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_pickle.pyi +114 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_posixsubprocess.pyi +59 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_py_abc.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_pydecimal.pyi +50 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_queue.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_random.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_remote_debugging.pyi +186 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_sitebuiltins.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_socket.pyi +966 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_sqlite3.pyi +311 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_ssl.pyi +303 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_stat.pyi +119 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_struct.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_thread.pyi +125 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_threading_local.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_tkinter.pyi +156 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_tracemalloc.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/README.md +34 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/__init__.pyi +415 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/_type_checker_internals.pyi +102 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/dbapi.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/importlib.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/wsgi.pyi +43 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_typeshed/xml.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_warnings.pyi +54 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_weakref.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_weakrefset.pyi +49 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_winapi.pyi +319 -0
- package/bundle/_internal/mypy/typeshed/stdlib/_zstd.pyi +102 -0
- package/bundle/_internal/mypy/typeshed/stdlib/abc.pyi +50 -0
- package/bundle/_internal/mypy/typeshed/stdlib/aifc.pyi +79 -0
- package/bundle/_internal/mypy/typeshed/stdlib/annotationlib.pyi +156 -0
- package/bundle/_internal/mypy/typeshed/stdlib/antigravity.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/argparse.pyi +866 -0
- package/bundle/_internal/mypy/typeshed/stdlib/array.pyi +113 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ast.pyi +2199 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asynchat.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/__init__.pyi +1022 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_events.pyi +607 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_futures.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_subprocess.pyi +62 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/base_tasks.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/constants.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/coroutines.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/events.pyi +803 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/exceptions.pyi +44 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/format_helpers.pyi +31 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/futures.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/graph.pyi +29 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/locks.pyi +83 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/log.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/mixins.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/proactor_events.pyi +53 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/protocols.pyi +39 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/queues.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/runners.pyi +41 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/selector_events.pyi +10 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/sslproto.pyi +164 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/staggered.pyi +10 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/streams.pyi +124 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/subprocess.pyi +166 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/taskgroups.pyi +41 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/tasks.pyi +315 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/threads.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/timeouts.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/tools.pyi +51 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/transports.pyi +57 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/trsock.pyi +137 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/unix_events.pyi +277 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/windows_events.pyi +122 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncio/windows_utils.pyi +49 -0
- package/bundle/_internal/mypy/typeshed/stdlib/asyncore.pyi +91 -0
- package/bundle/_internal/mypy/typeshed/stdlib/atexit.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/audioop.pyi +44 -0
- package/bundle/_internal/mypy/typeshed/stdlib/base64.pyi +124 -0
- package/bundle/_internal/mypy/typeshed/stdlib/bdb.pyi +139 -0
- package/bundle/_internal/mypy/typeshed/stdlib/binascii.pyi +102 -0
- package/bundle/_internal/mypy/typeshed/stdlib/binhex.pyi +44 -0
- package/bundle/_internal/mypy/typeshed/stdlib/bisect.pyi +4 -0
- package/bundle/_internal/mypy/typeshed/stdlib/builtins.pyi +2470 -0
- package/bundle/_internal/mypy/typeshed/stdlib/bz2.pyi +121 -0
- package/bundle/_internal/mypy/typeshed/stdlib/cProfile.pyi +33 -0
- package/bundle/_internal/mypy/typeshed/stdlib/calendar.pyi +249 -0
- package/bundle/_internal/mypy/typeshed/stdlib/cgi.pyi +120 -0
- package/bundle/_internal/mypy/typeshed/stdlib/cgitb.pyi +32 -0
- package/bundle/_internal/mypy/typeshed/stdlib/chunk.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/cmath.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/cmd.pyi +46 -0
- package/bundle/_internal/mypy/typeshed/stdlib/code.pyi +55 -0
- package/bundle/_internal/mypy/typeshed/stdlib/codecs.pyi +357 -0
- package/bundle/_internal/mypy/typeshed/stdlib/codeop.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/collections/__init__.pyi +565 -0
- package/bundle/_internal/mypy/typeshed/stdlib/collections/abc.pyi +2 -0
- package/bundle/_internal/mypy/typeshed/stdlib/colorsys.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compileall.pyi +51 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/_common/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/_common/_streams.pyi +37 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/bz2.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/gzip.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/lzma.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/zlib.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/zstd/__init__.pyi +94 -0
- package/bundle/_internal/mypy/typeshed/stdlib/compression/zstd/_zstdfile.pyi +117 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/__init__.pyi +71 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/_base.pyi +119 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/interpreter.pyi +82 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/process.pyi +248 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/futures/thread.pyi +143 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/interpreters/__init__.pyi +68 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/interpreters/_crossinterp.pyi +30 -0
- package/bundle/_internal/mypy/typeshed/stdlib/concurrent/interpreters/_queues.pyi +74 -0
- package/bundle/_internal/mypy/typeshed/stdlib/configparser.pyi +509 -0
- package/bundle/_internal/mypy/typeshed/stdlib/contextlib.pyi +211 -0
- package/bundle/_internal/mypy/typeshed/stdlib/contextvars.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/copy.pyi +37 -0
- package/bundle/_internal/mypy/typeshed/stdlib/copyreg.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/crypt.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/csv.pyi +153 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/__init__.pyi +394 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/_endian.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/__init__.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/dyld.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/dylib.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/macholib/framework.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/util.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ctypes/wintypes.pyi +321 -0
- package/bundle/_internal/mypy/typeshed/stdlib/curses/__init__.pyi +38 -0
- package/bundle/_internal/mypy/typeshed/stdlib/curses/ascii.pyi +62 -0
- package/bundle/_internal/mypy/typeshed/stdlib/curses/has_key.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/curses/panel.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/curses/textpad.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/dataclasses.pyi +401 -0
- package/bundle/_internal/mypy/typeshed/stdlib/datetime.pyi +381 -0
- package/bundle/_internal/mypy/typeshed/stdlib/dbm/__init__.pyi +105 -0
- package/bundle/_internal/mypy/typeshed/stdlib/dbm/dumb.pyi +41 -0
- package/bundle/_internal/mypy/typeshed/stdlib/dbm/gnu.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/dbm/ndbm.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/dbm/sqlite3.pyi +34 -0
- package/bundle/_internal/mypy/typeshed/stdlib/decimal.pyi +278 -0
- package/bundle/_internal/mypy/typeshed/stdlib/difflib.pyi +157 -0
- package/bundle/_internal/mypy/typeshed/stdlib/dis.pyi +302 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/__init__.pyi +5 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/_msvccompiler.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/archive_util.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/bcppcompiler.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/ccompiler.pyi +182 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/cmd.pyi +238 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/__init__.pyi +41 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist.pyi +27 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_dumb.pyi +22 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_msi.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_packager.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/bdist_rpm.pyi +53 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build.pyi +34 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_clib.pyi +29 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_ext.pyi +52 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_py.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/build_scripts.pyi +25 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/check.pyi +39 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/clean.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/config.pyi +84 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install.pyi +67 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_data.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_egg_info.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_headers.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_lib.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/install_scripts.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/register.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/sdist.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/command/upload.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/config.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/core.pyi +58 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/cygwinccompiler.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/debug.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/dep_util.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/dir_util.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/dist.pyi +318 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/errors.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/extension.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/fancy_getopt.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/file_util.pyi +40 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/filelist.pyi +61 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/log.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/msvccompiler.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/spawn.pyi +10 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/sysconfig.pyi +32 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/text_file.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/unixccompiler.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/util.pyi +53 -0
- package/bundle/_internal/mypy/typeshed/stdlib/distutils/version.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/doctest.pyi +265 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/__init__.pyi +68 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/_header_value_parser.pyi +415 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/_policybase.pyi +80 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/base64mime.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/charset.pyi +44 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/contentmanager.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/encoders.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/errors.pyi +38 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/feedparser.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/generator.pyi +79 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/header.pyi +32 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/headerregistry.pyi +196 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/iterators.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/message.pyi +191 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/application.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/audio.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/base.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/image.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/message.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/multipart.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/nonmultipart.pyi +5 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/mime/text.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/parser.pyi +42 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/policy.pyi +78 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/quoprimime.pyi +28 -0
- package/bundle/_internal/mypy/typeshed/stdlib/email/utils.pyi +72 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/__init__.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/aliases.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/ascii.pyi +30 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/base64_codec.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/big5.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/big5hkscs.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/bz2_codec.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/charmap.pyi +33 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp037.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1006.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1026.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1125.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1140.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1250.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1251.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1252.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1253.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1254.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1255.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1256.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1257.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp1258.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp273.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp424.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp437.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp500.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp720.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp737.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp775.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp850.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp852.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp855.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp856.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp857.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp858.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp860.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp861.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp862.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp863.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp864.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp865.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp866.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp869.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp874.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp875.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp932.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp949.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/cp950.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_jis_2004.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_jisx0213.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_jp.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/euc_kr.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/gb18030.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/gb2312.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/gbk.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/hex_codec.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/hp_roman8.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/hz.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/idna.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_1.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_2.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_2004.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_3.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_jp_ext.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso2022_kr.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_1.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_10.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_11.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_13.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_14.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_15.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_16.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_2.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_3.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_4.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_5.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_6.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_7.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_8.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/iso8859_9.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/johab.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/koi8_r.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/koi8_t.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/koi8_u.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/kz1048.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/latin_1.pyi +30 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_arabic.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_croatian.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_cyrillic.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_farsi.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_greek.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_iceland.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_latin2.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_roman.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_romanian.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mac_turkish.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/mbcs.pyi +28 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/oem.pyi +28 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/palmos.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/ptcp154.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/punycode.pyi +33 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/quopri_codec.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/raw_unicode_escape.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/rot_13.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/shift_jis.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/shift_jis_2004.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/shift_jisx0213.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/tis_620.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/undefined.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/unicode_escape.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_16.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_16_be.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_16_le.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_32.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_32_be.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_32_le.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_7.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_8.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/utf_8_sig.pyi +22 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/uu_codec.pyi +28 -0
- package/bundle/_internal/mypy/typeshed/stdlib/encodings/zlib_codec.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ensurepip/__init__.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/enum.pyi +374 -0
- package/bundle/_internal/mypy/typeshed/stdlib/errno.pyi +227 -0
- package/bundle/_internal/mypy/typeshed/stdlib/faulthandler.pyi +61 -0
- package/bundle/_internal/mypy/typeshed/stdlib/fcntl.pyi +157 -0
- package/bundle/_internal/mypy/typeshed/stdlib/filecmp.pyi +65 -0
- package/bundle/_internal/mypy/typeshed/stdlib/fileinput.pyi +141 -0
- package/bundle/_internal/mypy/typeshed/stdlib/fnmatch.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/fractions.pyi +185 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ftplib.pyi +174 -0
- package/bundle/_internal/mypy/typeshed/stdlib/functools.pyi +287 -0
- package/bundle/_internal/mypy/typeshed/stdlib/gc.pyi +32 -0
- package/bundle/_internal/mypy/typeshed/stdlib/genericpath.pyi +98 -0
- package/bundle/_internal/mypy/typeshed/stdlib/getopt.pyi +27 -0
- package/bundle/_internal/mypy/typeshed/stdlib/getpass.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/gettext.pyi +190 -0
- package/bundle/_internal/mypy/typeshed/stdlib/glob.pyi +50 -0
- package/bundle/_internal/mypy/typeshed/stdlib/graphlib.pyi +29 -0
- package/bundle/_internal/mypy/typeshed/stdlib/grp.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/gzip.pyi +181 -0
- package/bundle/_internal/mypy/typeshed/stdlib/hashlib.pyi +112 -0
- package/bundle/_internal/mypy/typeshed/stdlib/heapq.pyi +32 -0
- package/bundle/_internal/mypy/typeshed/stdlib/hmac.pyi +33 -0
- package/bundle/_internal/mypy/typeshed/stdlib/html/__init__.pyi +7 -0
- package/bundle/_internal/mypy/typeshed/stdlib/html/entities.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/html/parser.pyi +40 -0
- package/bundle/_internal/mypy/typeshed/stdlib/http/__init__.pyi +118 -0
- package/bundle/_internal/mypy/typeshed/stdlib/http/client.pyi +318 -0
- package/bundle/_internal/mypy/typeshed/stdlib/http/cookiejar.pyi +158 -0
- package/bundle/_internal/mypy/typeshed/stdlib/http/cookies.pyi +57 -0
- package/bundle/_internal/mypy/typeshed/stdlib/http/server.pyi +139 -0
- package/bundle/_internal/mypy/typeshed/stdlib/imaplib.pyi +212 -0
- package/bundle/_internal/mypy/typeshed/stdlib/imghdr.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/imp.pyi +63 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/__init__.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/_abc.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/_bootstrap.pyi +2 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/_bootstrap_external.pyi +2 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/abc.pyi +165 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/machinery.pyi +43 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/metadata/__init__.pyi +310 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/metadata/_meta.pyi +65 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/metadata/diagnose.pyi +2 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/readers.pyi +69 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/__init__.pyi +81 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/_common.pyi +48 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/_functional.pyi +35 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/abc.pyi +64 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/readers.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/resources/simple.pyi +59 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/simple.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/importlib/util.pyi +75 -0
- package/bundle/_internal/mypy/typeshed/stdlib/inspect.pyi +749 -0
- package/bundle/_internal/mypy/typeshed/stdlib/io.pyi +75 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ipaddress.pyi +249 -0
- package/bundle/_internal/mypy/typeshed/stdlib/itertools.pyi +376 -0
- package/bundle/_internal/mypy/typeshed/stdlib/json/__init__.pyi +93 -0
- package/bundle/_internal/mypy/typeshed/stdlib/json/decoder.pyi +50 -0
- package/bundle/_internal/mypy/typeshed/stdlib/json/encoder.pyi +40 -0
- package/bundle/_internal/mypy/typeshed/stdlib/json/scanner.pyi +7 -0
- package/bundle/_internal/mypy/typeshed/stdlib/json/tool.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/keyword.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/btm_matcher.pyi +28 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixer_base.pyi +42 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_apply.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_dict.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_except.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_exec.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_filter.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_future.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_import.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_input.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_intern.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_long.pyi +7 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_map.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_ne.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_next.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_operator.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_paren.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_print.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_raise.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_reload.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_renames.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_repr.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_throw.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_tuple_params.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_types.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/fixes/fix_zip.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/main.pyi +42 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/__init__.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/driver.pyi +27 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/grammar.pyi +25 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/literals.pyi +7 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/parse.pyi +30 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/pgen.pyi +53 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/token.pyi +69 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pgen2/tokenize.pyi +96 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pygram.pyi +114 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/pytree.pyi +118 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lib2to3/refactor.pyi +86 -0
- package/bundle/_internal/mypy/typeshed/stdlib/linecache.pyi +18 -0
- package/bundle/_internal/mypy/typeshed/stdlib/locale.pyi +160 -0
- package/bundle/_internal/mypy/typeshed/stdlib/logging/__init__.pyi +674 -0
- package/bundle/_internal/mypy/typeshed/stdlib/logging/config.pyi +141 -0
- package/bundle/_internal/mypy/typeshed/stdlib/logging/handlers.pyi +258 -0
- package/bundle/_internal/mypy/typeshed/stdlib/lzma.pyi +181 -0
- package/bundle/_internal/mypy/typeshed/stdlib/mailbox.pyi +307 -0
- package/bundle/_internal/mypy/typeshed/stdlib/mailcap.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/marshal.pyi +51 -0
- package/bundle/_internal/mypy/typeshed/stdlib/math/__init__.pyi +157 -0
- package/bundle/_internal/mypy/typeshed/stdlib/math/integer.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/mimetypes.pyi +56 -0
- package/bundle/_internal/mypy/typeshed/stdlib/mmap.pyi +191 -0
- package/bundle/_internal/mypy/typeshed/stdlib/modulefinder.pyi +68 -0
- package/bundle/_internal/mypy/typeshed/stdlib/msilib/__init__.pyi +177 -0
- package/bundle/_internal/mypy/typeshed/stdlib/msilib/schema.pyi +95 -0
- package/bundle/_internal/mypy/typeshed/stdlib/msilib/sequence.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stdlib/msilib/text.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/msvcrt.pyi +31 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/__init__.pyi +90 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/connection.pyi +97 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/context.pyi +220 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/dummy/__init__.pyi +89 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/dummy/connection.pyi +39 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/forkserver.pyi +78 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/heap.pyi +41 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/managers.pyi +390 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/pool.pyi +101 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_fork.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_forkserver.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_spawn_posix.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/process.pyi +57 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/queues.pyi +46 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/reduction.pyi +95 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/resource_sharer.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/resource_tracker.pyi +21 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/shared_memory.pyi +43 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/sharedctypes.pyi +140 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/spawn.pyi +32 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/synchronize.pyi +63 -0
- package/bundle/_internal/mypy/typeshed/stdlib/multiprocessing/util.pyi +109 -0
- package/bundle/_internal/mypy/typeshed/stdlib/netrc.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/nis.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/nntplib.pyi +120 -0
- package/bundle/_internal/mypy/typeshed/stdlib/nt.pyi +116 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ntpath.pyi +134 -0
- package/bundle/_internal/mypy/typeshed/stdlib/nturl2path.pyi +6 -0
- package/bundle/_internal/mypy/typeshed/stdlib/numbers.pyi +220 -0
- package/bundle/_internal/mypy/typeshed/stdlib/opcode.pyi +53 -0
- package/bundle/_internal/mypy/typeshed/stdlib/operator.pyi +219 -0
- package/bundle/_internal/mypy/typeshed/stdlib/optparse.pyi +312 -0
- package/bundle/_internal/mypy/typeshed/stdlib/os/__init__.pyi +1878 -0
- package/bundle/_internal/mypy/typeshed/stdlib/os/path.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ossaudiodev.pyi +132 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pathlib/__init__.pyi +358 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pathlib/types.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pdb.pyi +275 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pickle.pyi +240 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pickletools.pyi +176 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pipes.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pkgutil.pyi +60 -0
- package/bundle/_internal/mypy/typeshed/stdlib/platform.pyi +100 -0
- package/bundle/_internal/mypy/typeshed/stdlib/plistlib.pyi +84 -0
- package/bundle/_internal/mypy/typeshed/stdlib/poplib.pyi +93 -0
- package/bundle/_internal/mypy/typeshed/stdlib/posix.pyi +427 -0
- package/bundle/_internal/mypy/typeshed/stdlib/posixpath.pyi +230 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pprint.pyi +170 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profile.pyi +31 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/__init__.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/__init__.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/collector.pyi +25 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/gecko_collector.pyi +111 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/heatmap_collector.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/jsonl_collector.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/pstats_collector.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/stack_collector.pyi +40 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/sampling/string_table.pyi +5 -0
- package/bundle/_internal/mypy/typeshed/stdlib/profiling/tracing.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pstats.pyi +96 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pty.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pwd.pyi +27 -0
- package/bundle/_internal/mypy/typeshed/stdlib/py_compile.pyi +28 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pyclbr.pyi +57 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pydoc.pyi +348 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pydoc_data/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pydoc_data/module_docs.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pydoc_data/topics.pyi +3 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pyexpat/__init__.pyi +88 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pyexpat/errors.pyi +53 -0
- package/bundle/_internal/mypy/typeshed/stdlib/pyexpat/model.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stdlib/queue.pyi +55 -0
- package/bundle/_internal/mypy/typeshed/stdlib/quopri.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/random.pyi +135 -0
- package/bundle/_internal/mypy/typeshed/stdlib/re.pyi +347 -0
- package/bundle/_internal/mypy/typeshed/stdlib/readline.pyi +39 -0
- package/bundle/_internal/mypy/typeshed/stdlib/reprlib.pyi +64 -0
- package/bundle/_internal/mypy/typeshed/stdlib/resource.pyi +102 -0
- package/bundle/_internal/mypy/typeshed/stdlib/rlcompleter.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/runpy.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sched.pyi +34 -0
- package/bundle/_internal/mypy/typeshed/stdlib/secrets.pyi +17 -0
- package/bundle/_internal/mypy/typeshed/stdlib/select.pyi +171 -0
- package/bundle/_internal/mypy/typeshed/stdlib/selectors.pyi +67 -0
- package/bundle/_internal/mypy/typeshed/stdlib/shelve.pyi +110 -0
- package/bundle/_internal/mypy/typeshed/stdlib/shlex.pyi +63 -0
- package/bundle/_internal/mypy/typeshed/stdlib/shutil.pyi +243 -0
- package/bundle/_internal/mypy/typeshed/stdlib/signal.pyi +174 -0
- package/bundle/_internal/mypy/typeshed/stdlib/site.pyi +46 -0
- package/bundle/_internal/mypy/typeshed/stdlib/smtpd.pyi +92 -0
- package/bundle/_internal/mypy/typeshed/stdlib/smtplib.pyi +223 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sndhdr.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/socket.pyi +1587 -0
- package/bundle/_internal/mypy/typeshed/stdlib/socketserver.pyi +170 -0
- package/bundle/_internal/mypy/typeshed/stdlib/spwd.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sqlite3/__init__.pyi +510 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sqlite3/dbapi2.pyi +244 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sqlite3/dump.pyi +2 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sre_compile.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sre_constants.pyi +135 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sre_parse.pyi +102 -0
- package/bundle/_internal/mypy/typeshed/stdlib/ssl.pyi +540 -0
- package/bundle/_internal/mypy/typeshed/stdlib/stat.pyi +126 -0
- package/bundle/_internal/mypy/typeshed/stdlib/statistics.pyi +161 -0
- package/bundle/_internal/mypy/typeshed/stdlib/string/__init__.pyi +81 -0
- package/bundle/_internal/mypy/typeshed/stdlib/string/templatelib.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/stringprep.pyi +29 -0
- package/bundle/_internal/mypy/typeshed/stdlib/struct.pyi +5 -0
- package/bundle/_internal/mypy/typeshed/stdlib/subprocess.pyi +1484 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sunau.pyi +82 -0
- package/bundle/_internal/mypy/typeshed/stdlib/symtable.pyi +95 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sys/__init__.pyi +538 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sys/__jit.pyi +11 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sys/_monitoring.pyi +69 -0
- package/bundle/_internal/mypy/typeshed/stdlib/sysconfig.pyi +59 -0
- package/bundle/_internal/mypy/typeshed/stdlib/syslog.pyi +58 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tabnanny.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tarfile.pyi +868 -0
- package/bundle/_internal/mypy/typeshed/stdlib/telnetlib.pyi +123 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tempfile.pyi +474 -0
- package/bundle/_internal/mypy/typeshed/stdlib/termios.pyi +303 -0
- package/bundle/_internal/mypy/typeshed/stdlib/textwrap.pyi +103 -0
- package/bundle/_internal/mypy/typeshed/stdlib/this.pyi +2 -0
- package/bundle/_internal/mypy/typeshed/stdlib/threading.pyi +221 -0
- package/bundle/_internal/mypy/typeshed/stdlib/time.pyi +117 -0
- package/bundle/_internal/mypy/typeshed/stdlib/timeit.pyi +46 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/__init__.pyi +4376 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/colorchooser.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/commondialog.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/constants.pyi +80 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/dialog.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/dnd.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/filedialog.pyi +149 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/font.pyi +123 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/messagebox.pyi +98 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/scrolledtext.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/simpledialog.pyi +58 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/tix.pyi +299 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tkinter/ttk.pyi +1434 -0
- package/bundle/_internal/mypy/typeshed/stdlib/token.pyi +166 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tokenize.pyi +201 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tomllib.pyi +27 -0
- package/bundle/_internal/mypy/typeshed/stdlib/trace.pyi +85 -0
- package/bundle/_internal/mypy/typeshed/stdlib/traceback.pyi +293 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tracemalloc.pyi +123 -0
- package/bundle/_internal/mypy/typeshed/stdlib/tty.pyi +29 -0
- package/bundle/_internal/mypy/typeshed/stdlib/turtle.pyi +856 -0
- package/bundle/_internal/mypy/typeshed/stdlib/types.pyi +744 -0
- package/bundle/_internal/mypy/typeshed/stdlib/typing.pyi +1250 -0
- package/bundle/_internal/mypy/typeshed/stdlib/typing_extensions.pyi +749 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unicodedata.pyi +94 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/__init__.pyi +63 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/_log.pyi +29 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/async_case.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/case.pyi +352 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/loader.pyi +55 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/main.pyi +74 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/mock.pyi +555 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/result.pyi +46 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/runner.pyi +93 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/signals.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/suite.pyi +23 -0
- package/bundle/_internal/mypy/typeshed/stdlib/unittest/util.pyi +39 -0
- package/bundle/_internal/mypy/typeshed/stdlib/urllib/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/urllib/error.pyi +29 -0
- package/bundle/_internal/mypy/typeshed/stdlib/urllib/parse.pyi +354 -0
- package/bundle/_internal/mypy/typeshed/stdlib/urllib/request.pyi +447 -0
- package/bundle/_internal/mypy/typeshed/stdlib/urllib/response.pyi +45 -0
- package/bundle/_internal/mypy/typeshed/stdlib/urllib/robotparser.pyi +20 -0
- package/bundle/_internal/mypy/typeshed/stdlib/uu.pyi +12 -0
- package/bundle/_internal/mypy/typeshed/stdlib/uuid.pyi +106 -0
- package/bundle/_internal/mypy/typeshed/stdlib/venv/__init__.pyi +86 -0
- package/bundle/_internal/mypy/typeshed/stdlib/warnings.pyi +146 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wave.pyi +105 -0
- package/bundle/_internal/mypy/typeshed/stdlib/weakref.pyi +217 -0
- package/bundle/_internal/mypy/typeshed/stdlib/webbrowser.pyi +93 -0
- package/bundle/_internal/mypy/typeshed/stdlib/winreg.pyi +137 -0
- package/bundle/_internal/mypy/typeshed/stdlib/winsound.pyi +40 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/handlers.pyi +91 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/headers.pyi +27 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/simple_server.pyi +37 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/types.pyi +31 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/util.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/wsgiref/validate.pyi +50 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xdrlib.pyi +57 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/__init__.pyi +9 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/NodeFilter.pyi +22 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/__init__.pyi +101 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/domreg.pyi +8 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/expatbuilder.pyi +126 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/minicompat.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/minidom.pyi +693 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/pulldom.pyi +109 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/dom/xmlbuilder.pyi +82 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/ElementInclude.pyi +28 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/ElementPath.pyi +42 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/ElementTree.pyi +402 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/etree/cElementTree.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/__init__.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/expat/__init__.pyi +7 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/expat/errors.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/parsers/expat/model.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/__init__.pyi +42 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/_exceptions.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/expatreader.pyi +72 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/handler.pyi +85 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/saxutils.pyi +69 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/sax/xmlreader.pyi +94 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xml/utils.pyi +2 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xmlrpc/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xmlrpc/client.pyi +300 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xmlrpc/server.pyi +149 -0
- package/bundle/_internal/mypy/typeshed/stdlib/xxlimited.pyi +15 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zipapp.pyi +19 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zipfile/__init__.pyi +411 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zipfile/_path/__init__.pyi +87 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zipfile/_path/glob.pyi +26 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zipimport.pyi +44 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zlib.pyi +81 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zoneinfo/__init__.pyi +36 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zoneinfo/_common.pyi +14 -0
- package/bundle/_internal/mypy/typeshed/stdlib/zoneinfo/_tzpath.pyi +13 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/__init__.pyi +0 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/base64.pyi +4 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/internal.pyi +22 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/random.pyi +22 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/strings.pyi +61 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/threading.pyi +16 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/time.pyi +1 -0
- package/bundle/_internal/mypy/typeshed/stubs/librt/librt/vecs.pyi +24 -0
- package/bundle/_internal/mypy/typeshed/stubs/mypy-extensions/mypy_extensions.pyi +226 -0
- package/bundle/_internal/mypy/typestate.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/typestate.py +334 -0
- package/bundle/_internal/mypy/typetraverser.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/typetraverser.py +166 -0
- package/bundle/_internal/mypy/typevars.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/typevars.py +84 -0
- package/bundle/_internal/mypy/typevartuples.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/typevartuples.py +36 -0
- package/bundle/_internal/mypy/util.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/util.py +1055 -0
- package/bundle/_internal/mypy/version.py +1 -0
- package/bundle/_internal/mypy/visitor.cpython-312-darwin.so +0 -0
- package/bundle/_internal/mypy/visitor.py +639 -0
- package/bundle/_internal/mypy/xml/mypy-html.css +104 -0
- package/bundle/_internal/mypy/xml/mypy-html.xslt +81 -0
- package/bundle/_internal/mypy/xml/mypy-txt.xslt +100 -0
- package/bundle/_internal/mypy/xml/mypy.xsd +50 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/INSTALLER +1 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/METADATA +56 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/RECORD +1814 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/WHEEL +6 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/entry_points.txt +6 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/licenses/LICENSE +264 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/licenses/mypy/typeshed/LICENSE +237 -0
- package/bundle/_internal/mypy-2.4.1.dist-info/top_level.txt +3 -0
- package/bundle/_internal/mypyc/__init__.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_asyncio.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_bisect.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_blake2.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_bz2.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_codecs_cn.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_codecs_hk.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_codecs_iso2022.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_codecs_jp.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_codecs_kr.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_codecs_tw.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_contextvars.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_csv.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_ctypes.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_curses.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_datetime.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_decimal.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_elementtree.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_heapq.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_json.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_lzma.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_md5.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_multibytecodec.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_multiprocessing.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_opcode.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_pickle.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_posixshmem.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_queue.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_random.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_scproxy.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_sha1.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_sha2.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_sha3.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_socket.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_sqlite3.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_ssl.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_statistics.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_struct.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/_uuid.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/array.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/binascii.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/fcntl.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/grp.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/math.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/mmap.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/pyexpat.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/readline.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/resource.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/select.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/syslog.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/termios.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so +0 -0
- package/bundle/_internal/python3.12/lib-dynload/zlib.cpython-312-darwin.so +0 -0
- package/bundle/_internal/radon/__init__.py +21 -0
- package/bundle/_internal/radon/__main__.py +4 -0
- package/bundle/_internal/radon/cli/__init__.py +433 -0
- package/bundle/_internal/radon/cli/colors.py +49 -0
- package/bundle/_internal/radon/cli/harvest.py +449 -0
- package/bundle/_internal/radon/cli/tools.py +597 -0
- package/bundle/_internal/radon/complexity.py +108 -0
- package/bundle/_internal/radon/contrib/__init__.py +0 -0
- package/bundle/_internal/radon/contrib/flake8.py +72 -0
- package/bundle/_internal/radon/metrics.py +157 -0
- package/bundle/_internal/radon/raw.py +245 -0
- package/bundle/_internal/radon/tests/__init__.py +0 -0
- package/bundle/_internal/radon/tests/conftest.py +31 -0
- package/bundle/_internal/radon/tests/data/__init__.py +5 -0
- package/bundle/_internal/radon/tests/data/no_encoding.py +2 -0
- package/bundle/_internal/radon/tests/data/py3unicode.py +5 -0
- package/bundle/_internal/radon/tests/run.py +14 -0
- package/bundle/_internal/radon/tests/test_cli.py +282 -0
- package/bundle/_internal/radon/tests/test_cli_colors.py +22 -0
- package/bundle/_internal/radon/tests/test_cli_harvest.py +392 -0
- package/bundle/_internal/radon/tests/test_cli_tools.py +616 -0
- package/bundle/_internal/radon/tests/test_complexity_utils.py +118 -0
- package/bundle/_internal/radon/tests/test_complexity_visitor.py +754 -0
- package/bundle/_internal/radon/tests/test_halstead.py +113 -0
- package/bundle/_internal/radon/tests/test_ipynb.py +141 -0
- package/bundle/_internal/radon/tests/test_other_metrics.py +169 -0
- package/bundle/_internal/radon/tests/test_raw.py +467 -0
- package/bundle/_internal/radon/visitors.py +460 -0
- package/bundle/_internal/radon-6.0.1.dist-info/INSTALLER +1 -0
- package/bundle/_internal/radon-6.0.1.dist-info/LICENSE +22 -0
- package/bundle/_internal/radon-6.0.1.dist-info/METADATA +263 -0
- package/bundle/_internal/radon-6.0.1.dist-info/RECORD +64 -0
- package/bundle/_internal/radon-6.0.1.dist-info/WHEEL +6 -0
- package/bundle/_internal/radon-6.0.1.dist-info/entry_points.txt +8 -0
- package/bundle/_internal/radon-6.0.1.dist-info/top_level.txt +1 -0
- package/bundle/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +2 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/INSTALLER +1 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/METADATA +56 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/RECORD +84 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/WHEEL +5 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/entry_points.txt +10 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/licenses/AUTHORS +76 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/licenses/LICENSE +202 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/pbr.json +1 -0
- package/bundle/_internal/stevedore-5.10.0.dist-info/top_level.txt +1 -0
- package/bundle/_internal/tqdm-4.70.1.dist-info/INSTALLER +1 -0
- package/bundle/_internal/tqdm-4.70.1.dist-info/METADATA +1600 -0
- package/bundle/_internal/tqdm-4.70.1.dist-info/RECORD +72 -0
- package/bundle/_internal/tqdm-4.70.1.dist-info/WHEEL +5 -0
- package/bundle/_internal/tqdm-4.70.1.dist-info/entry_points.txt +2 -0
- package/bundle/_internal/tqdm-4.70.1.dist-info/licenses/LICENCE +49 -0
- package/bundle/_internal/tqdm-4.70.1.dist-info/top_level.txt +1 -0
- package/bundle/_internal/yaml/_yaml.cpython-312-darwin.so +0 -0
- package/bundle/gnost +0 -0
- package/package.json +21 -4
|
@@ -0,0 +1,2470 @@
|
|
|
1
|
+
import _ast
|
|
2
|
+
import _sitebuiltins
|
|
3
|
+
import _typeshed
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
from _collections_abc import dict_items, dict_keys, dict_values
|
|
7
|
+
from _typeshed import (
|
|
8
|
+
AnnotationForm,
|
|
9
|
+
ConvertibleToFloat,
|
|
10
|
+
ConvertibleToInt,
|
|
11
|
+
FileDescriptorOrPath,
|
|
12
|
+
OpenBinaryMode,
|
|
13
|
+
OpenBinaryModeReading,
|
|
14
|
+
OpenBinaryModeUpdating,
|
|
15
|
+
OpenBinaryModeWriting,
|
|
16
|
+
OpenTextMode,
|
|
17
|
+
ReadableBuffer,
|
|
18
|
+
SupportsAdd,
|
|
19
|
+
SupportsAiter,
|
|
20
|
+
SupportsAnext,
|
|
21
|
+
SupportsDivMod,
|
|
22
|
+
SupportsFlush,
|
|
23
|
+
SupportsIter,
|
|
24
|
+
SupportsKeysAndGetItem,
|
|
25
|
+
SupportsLenAndGetItem,
|
|
26
|
+
SupportsNext,
|
|
27
|
+
SupportsRAdd,
|
|
28
|
+
SupportsRDivMod,
|
|
29
|
+
SupportsRichComparison,
|
|
30
|
+
SupportsRichComparisonT,
|
|
31
|
+
SupportsWrite,
|
|
32
|
+
)
|
|
33
|
+
from collections.abc import Awaitable, Callable, Iterable, Iterator, MutableSet, Set as AbstractSet, Sized
|
|
34
|
+
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
|
|
35
|
+
from os import PathLike
|
|
36
|
+
from types import CellType, CodeType, EllipsisType, GenericAlias, NotImplementedType, TracebackType, UnionType
|
|
37
|
+
|
|
38
|
+
# mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping}
|
|
39
|
+
# are imported from collections.abc in builtins.pyi
|
|
40
|
+
from typing import ( # noqa: Y022,UP035
|
|
41
|
+
IO,
|
|
42
|
+
Any,
|
|
43
|
+
BinaryIO,
|
|
44
|
+
ClassVar,
|
|
45
|
+
Concatenate,
|
|
46
|
+
Final,
|
|
47
|
+
Generic,
|
|
48
|
+
Mapping,
|
|
49
|
+
MutableMapping,
|
|
50
|
+
MutableSequence,
|
|
51
|
+
ParamSpec,
|
|
52
|
+
Protocol,
|
|
53
|
+
Sequence,
|
|
54
|
+
SupportsAbs,
|
|
55
|
+
SupportsBytes,
|
|
56
|
+
SupportsComplex,
|
|
57
|
+
SupportsFloat,
|
|
58
|
+
SupportsIndex,
|
|
59
|
+
TypeAlias,
|
|
60
|
+
TypeGuard,
|
|
61
|
+
TypeVar,
|
|
62
|
+
final,
|
|
63
|
+
overload,
|
|
64
|
+
type_check_only,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# we can't import `Literal` from typing or mypy crashes: see #11247
|
|
68
|
+
from typing_extensions import Literal, Self, TypeIs, TypeVarTuple, deprecated, disjoint_base # noqa: Y023, UP035
|
|
69
|
+
|
|
70
|
+
if sys.version_info >= (3, 14):
|
|
71
|
+
from _typeshed import AnnotateFunc
|
|
72
|
+
|
|
73
|
+
_T = TypeVar("_T")
|
|
74
|
+
_I = TypeVar("_I", default=int)
|
|
75
|
+
_T_co = TypeVar("_T_co", covariant=True)
|
|
76
|
+
_T_contra = TypeVar("_T_contra", contravariant=True)
|
|
77
|
+
_R_co = TypeVar("_R_co", covariant=True)
|
|
78
|
+
_KT = TypeVar("_KT")
|
|
79
|
+
_VT = TypeVar("_VT")
|
|
80
|
+
_S = TypeVar("_S")
|
|
81
|
+
_T1 = TypeVar("_T1")
|
|
82
|
+
_T2 = TypeVar("_T2")
|
|
83
|
+
_T3 = TypeVar("_T3")
|
|
84
|
+
_T4 = TypeVar("_T4")
|
|
85
|
+
_T5 = TypeVar("_T5")
|
|
86
|
+
_SupportsNextT_co = TypeVar("_SupportsNextT_co", bound=SupportsNext[Any], covariant=True)
|
|
87
|
+
_SupportsAnextT_co = TypeVar("_SupportsAnextT_co", bound=SupportsAnext[Any], covariant=True)
|
|
88
|
+
_AwaitableT = TypeVar("_AwaitableT", bound=Awaitable[Any])
|
|
89
|
+
_AwaitableT_co = TypeVar("_AwaitableT_co", bound=Awaitable[Any], covariant=True)
|
|
90
|
+
_P = ParamSpec("_P")
|
|
91
|
+
|
|
92
|
+
# Type variables for slice
|
|
93
|
+
_StartT_co = TypeVar("_StartT_co", covariant=True, default=Any) # slice -> slice[Any, Any, Any]
|
|
94
|
+
_StopT_co = TypeVar("_StopT_co", covariant=True, default=_StartT_co) # slice[A] -> slice[A, A, A]
|
|
95
|
+
# NOTE: step could differ from start and stop, (e.g. datetime/timedelta)l
|
|
96
|
+
# the default (start|stop) is chosen to cater to the most common case of int/index slices.
|
|
97
|
+
# FIXME: https://github.com/python/typing/issues/213 (replace step=start|stop with step=start&stop)
|
|
98
|
+
_StepT_co = TypeVar("_StepT_co", covariant=True, default=_StartT_co | _StopT_co) # slice[A,B] -> slice[A, B, A|B]
|
|
99
|
+
|
|
100
|
+
@disjoint_base
|
|
101
|
+
class object:
|
|
102
|
+
__doc__: str | None
|
|
103
|
+
__dict__: dict[str, Any]
|
|
104
|
+
__module__: str
|
|
105
|
+
__annotations__: dict[str, Any]
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def __class__(self) -> type[Self]: ...
|
|
109
|
+
@__class__.setter
|
|
110
|
+
def __class__(self, type: type[Self], /) -> None: ...
|
|
111
|
+
|
|
112
|
+
def __init__(self) -> None: ...
|
|
113
|
+
def __new__(cls) -> Self: ...
|
|
114
|
+
# N.B. `object.__setattr__` and `object.__delattr__` are heavily special-cased by type checkers.
|
|
115
|
+
# Overriding them in subclasses has different semantics, even if the override has an identical signature.
|
|
116
|
+
def __setattr__(self, name: str, value: Any, /) -> None: ...
|
|
117
|
+
def __delattr__(self, name: str, /) -> None: ...
|
|
118
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
119
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
120
|
+
def __str__(self) -> str: ... # noqa: Y029
|
|
121
|
+
def __repr__(self) -> str: ... # noqa: Y029
|
|
122
|
+
def __hash__(self) -> int: ...
|
|
123
|
+
def __format__(self, format_spec: str, /) -> str: ...
|
|
124
|
+
def __getattribute__(self, name: str, /) -> Any: ...
|
|
125
|
+
def __sizeof__(self) -> int: ...
|
|
126
|
+
# return type of pickle methods is rather hard to express in the current type system
|
|
127
|
+
# see #6661 and https://docs.python.org/3/library/pickle.html#object.__reduce__
|
|
128
|
+
def __reduce__(self) -> str | tuple[Any, ...]: ...
|
|
129
|
+
def __reduce_ex__(self, protocol: SupportsIndex, /) -> str | tuple[Any, ...]: ...
|
|
130
|
+
if sys.version_info >= (3, 11):
|
|
131
|
+
def __getstate__(self) -> object: ...
|
|
132
|
+
|
|
133
|
+
def __dir__(self) -> Iterable[str]: ...
|
|
134
|
+
def __init_subclass__(cls) -> None: ...
|
|
135
|
+
@classmethod
|
|
136
|
+
def __subclasshook__(cls, subclass: type, /) -> bool: ...
|
|
137
|
+
|
|
138
|
+
@disjoint_base
|
|
139
|
+
class staticmethod(Generic[_P, _R_co]):
|
|
140
|
+
__name__: str
|
|
141
|
+
__qualname__: str
|
|
142
|
+
@property
|
|
143
|
+
def __func__(self) -> Callable[_P, _R_co]: ...
|
|
144
|
+
@property
|
|
145
|
+
def __isabstractmethod__(self) -> bool: ...
|
|
146
|
+
def __init__(self, f: Callable[_P, _R_co], /) -> None: ...
|
|
147
|
+
|
|
148
|
+
@overload
|
|
149
|
+
def __get__(self, instance: None, owner: type, /) -> Callable[_P, _R_co]: ...
|
|
150
|
+
@overload
|
|
151
|
+
def __get__(self, instance: _T, owner: type[_T] | None = None, /) -> Callable[_P, _R_co]: ...
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def __wrapped__(self) -> Callable[_P, _R_co]: ...
|
|
155
|
+
def __call__(self, *args: _P.args, **kwargs: _P.kwargs) -> _R_co: ...
|
|
156
|
+
if sys.version_info >= (3, 14):
|
|
157
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
158
|
+
__annotate__: AnnotateFunc | None
|
|
159
|
+
|
|
160
|
+
@disjoint_base
|
|
161
|
+
class classmethod(Generic[_T, _P, _R_co]):
|
|
162
|
+
__name__: str
|
|
163
|
+
__qualname__: str
|
|
164
|
+
@property
|
|
165
|
+
def __func__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
|
|
166
|
+
@property
|
|
167
|
+
def __isabstractmethod__(self) -> bool: ...
|
|
168
|
+
def __init__(self, f: Callable[Concatenate[type[_T], _P], _R_co], /) -> None: ...
|
|
169
|
+
|
|
170
|
+
@overload
|
|
171
|
+
def __get__(self, instance: _T, owner: type[_T] | None = None, /) -> Callable[_P, _R_co]: ...
|
|
172
|
+
@overload
|
|
173
|
+
def __get__(self, instance: None, owner: type[_T], /) -> Callable[_P, _R_co]: ...
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
def __wrapped__(self) -> Callable[Concatenate[type[_T], _P], _R_co]: ...
|
|
177
|
+
if sys.version_info >= (3, 14):
|
|
178
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
179
|
+
__annotate__: AnnotateFunc | None
|
|
180
|
+
|
|
181
|
+
@disjoint_base
|
|
182
|
+
class type:
|
|
183
|
+
# object.__base__ is None. Otherwise, it would be a type.
|
|
184
|
+
@property
|
|
185
|
+
def __base__(self) -> type | None: ...
|
|
186
|
+
__bases__: tuple[type, ...]
|
|
187
|
+
@property
|
|
188
|
+
def __basicsize__(self) -> int: ...
|
|
189
|
+
# type.__dict__ is read-only at runtime, but that can't be expressed currently.
|
|
190
|
+
# See https://github.com/python/typeshed/issues/11033 for a discussion.
|
|
191
|
+
__dict__: Final[types.MappingProxyType[str, Any]] # type: ignore[assignment]
|
|
192
|
+
@property
|
|
193
|
+
def __dictoffset__(self) -> int: ...
|
|
194
|
+
@property
|
|
195
|
+
def __flags__(self) -> int: ...
|
|
196
|
+
@property
|
|
197
|
+
def __itemsize__(self) -> int: ...
|
|
198
|
+
__module__: str
|
|
199
|
+
@property
|
|
200
|
+
def __mro__(self) -> tuple[type, ...]: ...
|
|
201
|
+
__name__: str
|
|
202
|
+
__qualname__: str
|
|
203
|
+
@property
|
|
204
|
+
def __text_signature__(self) -> str | None: ...
|
|
205
|
+
@property
|
|
206
|
+
def __weakrefoffset__(self) -> int: ...
|
|
207
|
+
|
|
208
|
+
@overload
|
|
209
|
+
def __init__(self, o: object, /) -> None: ...
|
|
210
|
+
@overload
|
|
211
|
+
def __init__(self, name: str, bases: tuple[type, ...], dict: dict[str, Any], /, **kwds: Any) -> None: ...
|
|
212
|
+
|
|
213
|
+
@overload
|
|
214
|
+
def __new__(cls, o: object, /) -> type: ...
|
|
215
|
+
@overload
|
|
216
|
+
def __new__(
|
|
217
|
+
cls: type[_typeshed.Self], name: str, bases: tuple[type, ...], namespace: dict[str, Any], /, **kwds: Any
|
|
218
|
+
) -> _typeshed.Self: ...
|
|
219
|
+
|
|
220
|
+
def __call__(self, *args: Any, **kwds: Any) -> Any: ...
|
|
221
|
+
def __subclasses__(self: type[_T]) -> list[type[_T]]: ...
|
|
222
|
+
# Note: the documentation doesn't specify what the return type is, the standard
|
|
223
|
+
# implementation seems to be returning a list.
|
|
224
|
+
def mro(self) -> list[type]: ...
|
|
225
|
+
def __instancecheck__(self, instance: Any, /) -> bool: ...
|
|
226
|
+
def __subclasscheck__(self, subclass: type, /) -> bool: ...
|
|
227
|
+
@classmethod
|
|
228
|
+
def __prepare__(metacls, name: str, bases: tuple[type, ...], /, **kwds: Any) -> MutableMapping[str, object]: ...
|
|
229
|
+
# `int | str` produces an instance of `UnionType`, but `int | int` produces an instance of `type`,
|
|
230
|
+
# and `abc.ABC | abc.ABC` produces an instance of `abc.ABCMeta`.
|
|
231
|
+
def __or__(self: _typeshed.Self, value: Any, /) -> types.UnionType | _typeshed.Self: ...
|
|
232
|
+
def __ror__(self: _typeshed.Self, value: Any, /) -> types.UnionType | _typeshed.Self: ...
|
|
233
|
+
if sys.version_info >= (3, 12):
|
|
234
|
+
__type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
|
|
235
|
+
__annotations__: dict[str, AnnotationForm]
|
|
236
|
+
if sys.version_info >= (3, 14):
|
|
237
|
+
__annotate__: AnnotateFunc | None
|
|
238
|
+
|
|
239
|
+
@disjoint_base
|
|
240
|
+
class super:
|
|
241
|
+
@overload
|
|
242
|
+
def __init__(self, t: Any, obj: Any, /) -> None: ...
|
|
243
|
+
@overload
|
|
244
|
+
def __init__(self, t: Any, /) -> None: ...
|
|
245
|
+
@overload
|
|
246
|
+
def __init__(self) -> None: ...
|
|
247
|
+
|
|
248
|
+
_PositiveInteger: TypeAlias = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
|
|
249
|
+
_NegativeInteger: TypeAlias = Literal[-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20]
|
|
250
|
+
_LiteralInteger = _PositiveInteger | _NegativeInteger | Literal[0] # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
|
|
251
|
+
|
|
252
|
+
@disjoint_base
|
|
253
|
+
class int:
|
|
254
|
+
@overload
|
|
255
|
+
def __new__(cls, x: ConvertibleToInt = 0, /) -> Self: ...
|
|
256
|
+
@overload
|
|
257
|
+
def __new__(cls, x: str | bytes | bytearray, /, base: SupportsIndex) -> Self: ...
|
|
258
|
+
|
|
259
|
+
def as_integer_ratio(self) -> tuple[int, Literal[1]]: ...
|
|
260
|
+
@property
|
|
261
|
+
def real(self) -> int: ...
|
|
262
|
+
@property
|
|
263
|
+
def imag(self) -> Literal[0]: ...
|
|
264
|
+
@property
|
|
265
|
+
def numerator(self) -> int: ...
|
|
266
|
+
@property
|
|
267
|
+
def denominator(self) -> Literal[1]: ...
|
|
268
|
+
def conjugate(self) -> int: ...
|
|
269
|
+
def bit_length(self) -> int: ...
|
|
270
|
+
def bit_count(self) -> int: ...
|
|
271
|
+
|
|
272
|
+
if sys.version_info >= (3, 11):
|
|
273
|
+
def to_bytes(
|
|
274
|
+
self, length: SupportsIndex = 1, byteorder: Literal["little", "big"] = "big", *, signed: bool = False
|
|
275
|
+
) -> bytes: ...
|
|
276
|
+
@classmethod
|
|
277
|
+
def from_bytes(
|
|
278
|
+
cls,
|
|
279
|
+
bytes: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer,
|
|
280
|
+
byteorder: Literal["little", "big"] = "big",
|
|
281
|
+
*,
|
|
282
|
+
signed: bool = False,
|
|
283
|
+
) -> Self: ...
|
|
284
|
+
|
|
285
|
+
else:
|
|
286
|
+
def to_bytes(self, length: SupportsIndex, byteorder: Literal["little", "big"], *, signed: bool = False) -> bytes: ...
|
|
287
|
+
@classmethod
|
|
288
|
+
def from_bytes(
|
|
289
|
+
cls,
|
|
290
|
+
bytes: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer,
|
|
291
|
+
byteorder: Literal["little", "big"],
|
|
292
|
+
*,
|
|
293
|
+
signed: bool = False,
|
|
294
|
+
) -> Self: ...
|
|
295
|
+
|
|
296
|
+
if sys.version_info >= (3, 12):
|
|
297
|
+
def is_integer(self) -> Literal[True]: ...
|
|
298
|
+
|
|
299
|
+
def __add__(self, value: int, /) -> int: ...
|
|
300
|
+
def __sub__(self, value: int, /) -> int: ...
|
|
301
|
+
def __mul__(self, value: int, /) -> int: ...
|
|
302
|
+
def __floordiv__(self, value: int, /) -> int: ...
|
|
303
|
+
def __truediv__(self, value: int, /) -> float: ...
|
|
304
|
+
def __mod__(self, value: int, /) -> int: ...
|
|
305
|
+
def __divmod__(self, value: int, /) -> tuple[int, int]: ...
|
|
306
|
+
def __radd__(self, value: int, /) -> int: ...
|
|
307
|
+
def __rsub__(self, value: int, /) -> int: ...
|
|
308
|
+
def __rmul__(self, value: int, /) -> int: ...
|
|
309
|
+
def __rfloordiv__(self, value: int, /) -> int: ...
|
|
310
|
+
def __rtruediv__(self, value: int, /) -> float: ...
|
|
311
|
+
def __rmod__(self, value: int, /) -> int: ...
|
|
312
|
+
def __rdivmod__(self, value: int, /) -> tuple[int, int]: ...
|
|
313
|
+
|
|
314
|
+
@overload
|
|
315
|
+
def __pow__(self, x: Literal[0], /) -> Literal[1]: ...
|
|
316
|
+
@overload
|
|
317
|
+
def __pow__(self, value: Literal[0], mod: None, /) -> Literal[1]: ...
|
|
318
|
+
@overload
|
|
319
|
+
def __pow__(self, value: _PositiveInteger, mod: None = None, /) -> int: ...
|
|
320
|
+
@overload
|
|
321
|
+
def __pow__(self, value: _NegativeInteger, mod: None = None, /) -> float: ...
|
|
322
|
+
# positive __value -> int; negative __value -> float
|
|
323
|
+
# return type must be Any as `int | float` causes too many false-positive errors
|
|
324
|
+
@overload
|
|
325
|
+
def __pow__(self, value: int, mod: None = None, /) -> Any: ...
|
|
326
|
+
@overload
|
|
327
|
+
def __pow__(self, value: int, mod: int, /) -> int: ...
|
|
328
|
+
|
|
329
|
+
def __rpow__(self, value: int, mod: int | None = None, /) -> Any: ...
|
|
330
|
+
def __and__(self, value: int, /) -> int: ...
|
|
331
|
+
def __or__(self, value: int, /) -> int: ...
|
|
332
|
+
def __xor__(self, value: int, /) -> int: ...
|
|
333
|
+
def __lshift__(self, value: int, /) -> int: ...
|
|
334
|
+
def __rshift__(self, value: int, /) -> int: ...
|
|
335
|
+
def __rand__(self, value: int, /) -> int: ...
|
|
336
|
+
def __ror__(self, value: int, /) -> int: ...
|
|
337
|
+
def __rxor__(self, value: int, /) -> int: ...
|
|
338
|
+
def __rlshift__(self, value: int, /) -> int: ...
|
|
339
|
+
def __rrshift__(self, value: int, /) -> int: ...
|
|
340
|
+
def __neg__(self) -> int: ...
|
|
341
|
+
def __pos__(self) -> int: ...
|
|
342
|
+
def __invert__(self) -> int: ...
|
|
343
|
+
def __trunc__(self) -> int: ...
|
|
344
|
+
def __ceil__(self) -> int: ...
|
|
345
|
+
def __floor__(self) -> int: ...
|
|
346
|
+
if sys.version_info >= (3, 14):
|
|
347
|
+
def __round__(self, ndigits: SupportsIndex | None = None, /) -> int: ...
|
|
348
|
+
|
|
349
|
+
else:
|
|
350
|
+
def __round__(self, ndigits: SupportsIndex = ..., /) -> int: ...
|
|
351
|
+
|
|
352
|
+
def __getnewargs__(self) -> tuple[int]: ...
|
|
353
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
354
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
355
|
+
def __lt__(self, value: int, /) -> bool: ...
|
|
356
|
+
def __le__(self, value: int, /) -> bool: ...
|
|
357
|
+
def __gt__(self, value: int, /) -> bool: ...
|
|
358
|
+
def __ge__(self, value: int, /) -> bool: ...
|
|
359
|
+
def __float__(self) -> float: ...
|
|
360
|
+
def __int__(self) -> int: ...
|
|
361
|
+
def __abs__(self) -> int: ...
|
|
362
|
+
def __hash__(self) -> int: ...
|
|
363
|
+
def __bool__(self) -> bool: ...
|
|
364
|
+
def __index__(self) -> int: ...
|
|
365
|
+
def __format__(self, format_spec: str, /) -> str: ...
|
|
366
|
+
|
|
367
|
+
@disjoint_base
|
|
368
|
+
class float:
|
|
369
|
+
def __new__(cls, x: ConvertibleToFloat = 0, /) -> Self: ...
|
|
370
|
+
def as_integer_ratio(self) -> tuple[int, int]: ...
|
|
371
|
+
def hex(self) -> str: ...
|
|
372
|
+
def is_integer(self) -> bool: ...
|
|
373
|
+
@classmethod
|
|
374
|
+
def fromhex(cls, string: str, /) -> Self: ...
|
|
375
|
+
@property
|
|
376
|
+
def real(self) -> float: ...
|
|
377
|
+
@property
|
|
378
|
+
def imag(self) -> float: ...
|
|
379
|
+
def conjugate(self) -> float: ...
|
|
380
|
+
def __add__(self, value: float, /) -> float: ...
|
|
381
|
+
def __sub__(self, value: float, /) -> float: ...
|
|
382
|
+
def __mul__(self, value: float, /) -> float: ...
|
|
383
|
+
def __floordiv__(self, value: float, /) -> float: ...
|
|
384
|
+
def __truediv__(self, value: float, /) -> float: ...
|
|
385
|
+
def __mod__(self, value: float, /) -> float: ...
|
|
386
|
+
def __divmod__(self, value: float, /) -> tuple[float, float]: ...
|
|
387
|
+
|
|
388
|
+
@overload
|
|
389
|
+
def __pow__(self, value: int, mod: None = None, /) -> float: ...
|
|
390
|
+
# positive __value -> float; negative __value -> complex
|
|
391
|
+
# return type must be Any as `float | complex` causes too many false-positive errors
|
|
392
|
+
@overload
|
|
393
|
+
def __pow__(self, value: float, mod: None = None, /) -> Any: ...
|
|
394
|
+
|
|
395
|
+
def __radd__(self, value: float, /) -> float: ...
|
|
396
|
+
def __rsub__(self, value: float, /) -> float: ...
|
|
397
|
+
def __rmul__(self, value: float, /) -> float: ...
|
|
398
|
+
def __rfloordiv__(self, value: float, /) -> float: ...
|
|
399
|
+
def __rtruediv__(self, value: float, /) -> float: ...
|
|
400
|
+
def __rmod__(self, value: float, /) -> float: ...
|
|
401
|
+
def __rdivmod__(self, value: float, /) -> tuple[float, float]: ...
|
|
402
|
+
|
|
403
|
+
@overload
|
|
404
|
+
def __rpow__(self, value: _PositiveInteger, mod: None = None, /) -> float: ...
|
|
405
|
+
@overload
|
|
406
|
+
def __rpow__(self, value: _NegativeInteger, mod: None = None, /) -> complex: ...
|
|
407
|
+
# Returning `complex` for the general case gives too many false-positive errors.
|
|
408
|
+
@overload
|
|
409
|
+
def __rpow__(self, value: float, mod: None = None, /) -> Any: ...
|
|
410
|
+
|
|
411
|
+
def __getnewargs__(self) -> tuple[float]: ...
|
|
412
|
+
def __trunc__(self) -> int: ...
|
|
413
|
+
def __ceil__(self) -> int: ...
|
|
414
|
+
def __floor__(self) -> int: ...
|
|
415
|
+
|
|
416
|
+
@overload
|
|
417
|
+
def __round__(self, ndigits: None = None, /) -> int: ...
|
|
418
|
+
@overload
|
|
419
|
+
def __round__(self, ndigits: SupportsIndex, /) -> float: ...
|
|
420
|
+
|
|
421
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
422
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
423
|
+
def __lt__(self, value: float, /) -> bool: ...
|
|
424
|
+
def __le__(self, value: float, /) -> bool: ...
|
|
425
|
+
def __gt__(self, value: float, /) -> bool: ...
|
|
426
|
+
def __ge__(self, value: float, /) -> bool: ...
|
|
427
|
+
def __neg__(self) -> float: ...
|
|
428
|
+
def __pos__(self) -> float: ...
|
|
429
|
+
def __int__(self) -> int: ...
|
|
430
|
+
def __float__(self) -> float: ...
|
|
431
|
+
def __abs__(self) -> float: ...
|
|
432
|
+
def __hash__(self) -> int: ...
|
|
433
|
+
def __bool__(self) -> bool: ...
|
|
434
|
+
def __format__(self, format_spec: str, /) -> str: ...
|
|
435
|
+
if sys.version_info >= (3, 14):
|
|
436
|
+
@classmethod
|
|
437
|
+
def from_number(cls, number: float | SupportsIndex | SupportsFloat, /) -> Self: ...
|
|
438
|
+
|
|
439
|
+
@disjoint_base
|
|
440
|
+
class complex:
|
|
441
|
+
# Python doesn't currently accept SupportsComplex for the second argument
|
|
442
|
+
@overload
|
|
443
|
+
def __new__(
|
|
444
|
+
cls,
|
|
445
|
+
real: complex | SupportsComplex | SupportsFloat | SupportsIndex = 0,
|
|
446
|
+
imag: complex | SupportsFloat | SupportsIndex = 0,
|
|
447
|
+
) -> Self: ...
|
|
448
|
+
@overload
|
|
449
|
+
def __new__(cls, real: str | SupportsComplex | SupportsFloat | SupportsIndex | complex) -> Self: ...
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
def real(self) -> float: ...
|
|
453
|
+
@property
|
|
454
|
+
def imag(self) -> float: ...
|
|
455
|
+
def conjugate(self) -> complex: ...
|
|
456
|
+
def __add__(self, value: complex, /) -> complex: ...
|
|
457
|
+
def __sub__(self, value: complex, /) -> complex: ...
|
|
458
|
+
def __mul__(self, value: complex, /) -> complex: ...
|
|
459
|
+
def __pow__(self, value: complex, mod: None = None, /) -> complex: ...
|
|
460
|
+
def __truediv__(self, value: complex, /) -> complex: ...
|
|
461
|
+
def __radd__(self, value: complex, /) -> complex: ...
|
|
462
|
+
def __rsub__(self, value: complex, /) -> complex: ...
|
|
463
|
+
def __rmul__(self, value: complex, /) -> complex: ...
|
|
464
|
+
def __rpow__(self, value: complex, mod: None = None, /) -> complex: ...
|
|
465
|
+
def __rtruediv__(self, value: complex, /) -> complex: ...
|
|
466
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
467
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
468
|
+
def __neg__(self) -> complex: ...
|
|
469
|
+
def __pos__(self) -> complex: ...
|
|
470
|
+
def __abs__(self) -> float: ...
|
|
471
|
+
def __hash__(self) -> int: ...
|
|
472
|
+
def __bool__(self) -> bool: ...
|
|
473
|
+
def __format__(self, format_spec: str, /) -> str: ...
|
|
474
|
+
if sys.version_info >= (3, 11):
|
|
475
|
+
def __complex__(self) -> complex: ...
|
|
476
|
+
if sys.version_info >= (3, 14):
|
|
477
|
+
@classmethod
|
|
478
|
+
def from_number(cls, number: complex | SupportsComplex | SupportsFloat | SupportsIndex, /) -> Self: ...
|
|
479
|
+
|
|
480
|
+
@type_check_only
|
|
481
|
+
class _FormatMapMapping(Protocol):
|
|
482
|
+
def __getitem__(self, key: str, /) -> Any: ...
|
|
483
|
+
|
|
484
|
+
@type_check_only
|
|
485
|
+
class _TranslateTable(Protocol):
|
|
486
|
+
def __getitem__(self, key: int, /) -> str | int | None: ...
|
|
487
|
+
|
|
488
|
+
@disjoint_base
|
|
489
|
+
class str(Sequence[str]):
|
|
490
|
+
@overload
|
|
491
|
+
def __new__(cls, object: object = "") -> Self: ...
|
|
492
|
+
@overload
|
|
493
|
+
def __new__(cls, object: ReadableBuffer, encoding: str = "utf-8", errors: str = "strict") -> Self: ...
|
|
494
|
+
def capitalize(self) -> str: ... # type: ignore[misc]
|
|
495
|
+
def casefold(self) -> str: ... # type: ignore[misc]
|
|
496
|
+
def center(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ... # type: ignore[misc]
|
|
497
|
+
|
|
498
|
+
def count(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
|
|
499
|
+
def encode(self, encoding: str = "utf-8", errors: str = "strict") -> bytes: ...
|
|
500
|
+
def endswith(
|
|
501
|
+
self, suffix: str | tuple[str, ...], start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
502
|
+
) -> bool: ...
|
|
503
|
+
def expandtabs(self, tabsize: SupportsIndex = 8) -> str: ... # type: ignore[misc]
|
|
504
|
+
|
|
505
|
+
def find(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
|
|
506
|
+
def format(self, *args: object, **kwargs: object) -> str: ...
|
|
507
|
+
|
|
508
|
+
def format_map(self, mapping: _FormatMapMapping, /) -> str: ...
|
|
509
|
+
def index(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
|
|
510
|
+
def isalnum(self) -> bool: ...
|
|
511
|
+
def isalpha(self) -> bool: ...
|
|
512
|
+
def isascii(self) -> bool: ...
|
|
513
|
+
def isdecimal(self) -> bool: ...
|
|
514
|
+
def isdigit(self) -> bool: ...
|
|
515
|
+
def isidentifier(self) -> bool: ...
|
|
516
|
+
def islower(self) -> bool: ...
|
|
517
|
+
def isnumeric(self) -> bool: ...
|
|
518
|
+
def isprintable(self) -> bool: ...
|
|
519
|
+
def isspace(self) -> bool: ...
|
|
520
|
+
def istitle(self) -> bool: ...
|
|
521
|
+
def isupper(self) -> bool: ...
|
|
522
|
+
def join(self, iterable: Iterable[str], /) -> str: ... # type: ignore[misc]
|
|
523
|
+
def ljust(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ... # type: ignore[misc]
|
|
524
|
+
def lower(self) -> str: ... # type: ignore[misc]
|
|
525
|
+
def lstrip(self, chars: str | None = None, /) -> str: ... # type: ignore[misc]
|
|
526
|
+
def partition(self, sep: str, /) -> tuple[str, str, str]: ... # type: ignore[misc]
|
|
527
|
+
|
|
528
|
+
if sys.version_info >= (3, 13):
|
|
529
|
+
def replace(self, old: str, new: str, /, count: SupportsIndex = -1) -> str: ... # type: ignore[misc]
|
|
530
|
+
else:
|
|
531
|
+
def replace(self, old: str, new: str, count: SupportsIndex = -1, /) -> str: ... # type: ignore[misc]
|
|
532
|
+
|
|
533
|
+
def removeprefix(self, prefix: str, /) -> str: ... # type: ignore[misc]
|
|
534
|
+
def removesuffix(self, suffix: str, /) -> str: ... # type: ignore[misc]
|
|
535
|
+
|
|
536
|
+
def rfind(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
|
|
537
|
+
def rindex(self, sub: str, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /) -> int: ...
|
|
538
|
+
def rjust(self, width: SupportsIndex, fillchar: str = " ", /) -> str: ... # type: ignore[misc]
|
|
539
|
+
def rpartition(self, sep: str, /) -> tuple[str, str, str]: ... # type: ignore[misc]
|
|
540
|
+
def rsplit(self, sep: str | None = None, maxsplit: SupportsIndex = -1) -> list[str]: ... # type: ignore[misc]
|
|
541
|
+
def rstrip(self, chars: str | None = None, /) -> str: ... # type: ignore[misc]
|
|
542
|
+
def split(self, sep: str | None = None, maxsplit: SupportsIndex = -1) -> list[str]: ... # type: ignore[misc]
|
|
543
|
+
def splitlines(self, keepends: bool = False) -> list[str]: ... # type: ignore[misc]
|
|
544
|
+
|
|
545
|
+
def startswith(
|
|
546
|
+
self, prefix: str | tuple[str, ...], start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
547
|
+
) -> bool: ...
|
|
548
|
+
def strip(self, chars: str | None = None, /) -> str: ... # type: ignore[misc]
|
|
549
|
+
def swapcase(self) -> str: ... # type: ignore[misc]
|
|
550
|
+
def title(self) -> str: ... # type: ignore[misc]
|
|
551
|
+
|
|
552
|
+
def translate(self, table: _TranslateTable, /) -> str: ...
|
|
553
|
+
def upper(self) -> str: ... # type: ignore[misc]
|
|
554
|
+
def zfill(self, width: SupportsIndex, /) -> str: ... # type: ignore[misc]
|
|
555
|
+
|
|
556
|
+
if sys.version_info >= (3, 15):
|
|
557
|
+
@staticmethod
|
|
558
|
+
@overload
|
|
559
|
+
def maketrans(
|
|
560
|
+
x: (
|
|
561
|
+
dict[int, _T]
|
|
562
|
+
| dict[str, _T]
|
|
563
|
+
| dict[str | int, _T]
|
|
564
|
+
| frozendict[int, _T]
|
|
565
|
+
| frozendict[str, _T]
|
|
566
|
+
| frozendict[str | int, _T]
|
|
567
|
+
),
|
|
568
|
+
/,
|
|
569
|
+
) -> dict[int, _T]: ...
|
|
570
|
+
else:
|
|
571
|
+
@staticmethod
|
|
572
|
+
@overload
|
|
573
|
+
def maketrans(x: dict[int, _T] | dict[str, _T] | dict[str | int, _T], /) -> dict[int, _T]: ...
|
|
574
|
+
|
|
575
|
+
@staticmethod
|
|
576
|
+
@overload
|
|
577
|
+
def maketrans(x: str, y: str, /) -> dict[int, int]: ...
|
|
578
|
+
@staticmethod
|
|
579
|
+
@overload
|
|
580
|
+
def maketrans(x: str, y: str, z: str, /) -> dict[int, int | None]: ...
|
|
581
|
+
def __add__(self, value: str, /) -> str: ... # type: ignore[misc]
|
|
582
|
+
|
|
583
|
+
# Incompatible with Sequence.__contains__
|
|
584
|
+
def __contains__(self, key: str, /) -> bool: ... # type: ignore[override]
|
|
585
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
586
|
+
def __ge__(self, value: str, /) -> bool: ...
|
|
587
|
+
def __getitem__(self, key: SupportsIndex | slice[SupportsIndex | None], /) -> str: ... # type: ignore[misc]
|
|
588
|
+
|
|
589
|
+
def __gt__(self, value: str, /) -> bool: ...
|
|
590
|
+
def __hash__(self) -> int: ...
|
|
591
|
+
def __iter__(self) -> Iterator[str]: ... # type: ignore[misc]
|
|
592
|
+
|
|
593
|
+
def __le__(self, value: str, /) -> bool: ...
|
|
594
|
+
def __len__(self) -> int: ...
|
|
595
|
+
def __lt__(self, value: str, /) -> bool: ...
|
|
596
|
+
def __mod__(self, value: Any, /) -> str: ...
|
|
597
|
+
def __mul__(self, value: SupportsIndex, /) -> str: ... # type: ignore[misc]
|
|
598
|
+
|
|
599
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
600
|
+
def __rmul__(self, value: SupportsIndex, /) -> str: ... # type: ignore[misc]
|
|
601
|
+
|
|
602
|
+
def __getnewargs__(self) -> tuple[str]: ...
|
|
603
|
+
def __format__(self, format_spec: str, /) -> str: ...
|
|
604
|
+
|
|
605
|
+
@disjoint_base
|
|
606
|
+
class bytes(Sequence[int]):
|
|
607
|
+
@overload
|
|
608
|
+
def __new__(cls, o: Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | ReadableBuffer, /) -> Self: ...
|
|
609
|
+
@overload
|
|
610
|
+
def __new__(cls, string: str, /, encoding: str, errors: str = "strict") -> Self: ...
|
|
611
|
+
@overload
|
|
612
|
+
def __new__(cls) -> Self: ...
|
|
613
|
+
|
|
614
|
+
def capitalize(self) -> bytes: ...
|
|
615
|
+
def center(self, width: SupportsIndex, fillchar: bytes = b" ", /) -> bytes: ...
|
|
616
|
+
def count(
|
|
617
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
618
|
+
) -> int: ...
|
|
619
|
+
def decode(self, encoding: str = "utf-8", errors: str = "strict") -> str: ...
|
|
620
|
+
def endswith(
|
|
621
|
+
self,
|
|
622
|
+
suffix: ReadableBuffer | tuple[ReadableBuffer, ...],
|
|
623
|
+
start: SupportsIndex | None = None,
|
|
624
|
+
end: SupportsIndex | None = None,
|
|
625
|
+
/,
|
|
626
|
+
) -> bool: ...
|
|
627
|
+
def expandtabs(self, tabsize: SupportsIndex = 8) -> bytes: ...
|
|
628
|
+
def find(
|
|
629
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
630
|
+
) -> int: ...
|
|
631
|
+
def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = 1) -> str: ...
|
|
632
|
+
def index(
|
|
633
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
634
|
+
) -> int: ...
|
|
635
|
+
def isalnum(self) -> bool: ...
|
|
636
|
+
def isalpha(self) -> bool: ...
|
|
637
|
+
def isascii(self) -> bool: ...
|
|
638
|
+
def isdigit(self) -> bool: ...
|
|
639
|
+
def islower(self) -> bool: ...
|
|
640
|
+
def isspace(self) -> bool: ...
|
|
641
|
+
def istitle(self) -> bool: ...
|
|
642
|
+
def isupper(self) -> bool: ...
|
|
643
|
+
def join(self, iterable_of_bytes: Iterable[ReadableBuffer], /) -> bytes: ...
|
|
644
|
+
def ljust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytes: ...
|
|
645
|
+
def lower(self) -> bytes: ...
|
|
646
|
+
def lstrip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
|
|
647
|
+
def partition(self, sep: ReadableBuffer, /) -> tuple[bytes, bytes, bytes]: ...
|
|
648
|
+
if sys.version_info >= (3, 15):
|
|
649
|
+
def replace(self, old: ReadableBuffer, new: ReadableBuffer, /, count: SupportsIndex = -1) -> bytes: ...
|
|
650
|
+
|
|
651
|
+
else:
|
|
652
|
+
def replace(self, old: ReadableBuffer, new: ReadableBuffer, count: SupportsIndex = -1, /) -> bytes: ...
|
|
653
|
+
|
|
654
|
+
def removeprefix(self, prefix: ReadableBuffer, /) -> bytes: ...
|
|
655
|
+
def removesuffix(self, suffix: ReadableBuffer, /) -> bytes: ...
|
|
656
|
+
def rfind(
|
|
657
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
658
|
+
) -> int: ...
|
|
659
|
+
def rindex(
|
|
660
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
661
|
+
) -> int: ...
|
|
662
|
+
def rjust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytes: ...
|
|
663
|
+
def rpartition(self, sep: ReadableBuffer, /) -> tuple[bytes, bytes, bytes]: ...
|
|
664
|
+
def rsplit(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytes]: ...
|
|
665
|
+
def rstrip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
|
|
666
|
+
def split(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytes]: ...
|
|
667
|
+
def splitlines(self, keepends: bool = False) -> list[bytes]: ...
|
|
668
|
+
def startswith(
|
|
669
|
+
self,
|
|
670
|
+
prefix: ReadableBuffer | tuple[ReadableBuffer, ...],
|
|
671
|
+
start: SupportsIndex | None = None,
|
|
672
|
+
end: SupportsIndex | None = None,
|
|
673
|
+
/,
|
|
674
|
+
) -> bool: ...
|
|
675
|
+
def strip(self, bytes: ReadableBuffer | None = None, /) -> bytes: ...
|
|
676
|
+
def swapcase(self) -> bytes: ...
|
|
677
|
+
def title(self) -> bytes: ...
|
|
678
|
+
def translate(self, table: ReadableBuffer | None, /, delete: ReadableBuffer = b"") -> bytes: ...
|
|
679
|
+
def upper(self) -> bytes: ...
|
|
680
|
+
def zfill(self, width: SupportsIndex, /) -> bytes: ...
|
|
681
|
+
|
|
682
|
+
if sys.version_info >= (3, 14):
|
|
683
|
+
@classmethod
|
|
684
|
+
def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
|
|
685
|
+
else:
|
|
686
|
+
@classmethod
|
|
687
|
+
def fromhex(cls, string: str, /) -> Self: ...
|
|
688
|
+
|
|
689
|
+
@staticmethod
|
|
690
|
+
def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
|
|
691
|
+
def __len__(self) -> int: ...
|
|
692
|
+
def __iter__(self) -> Iterator[int]: ...
|
|
693
|
+
def __hash__(self) -> int: ...
|
|
694
|
+
|
|
695
|
+
@overload
|
|
696
|
+
def __getitem__(self, key: SupportsIndex, /) -> int: ...
|
|
697
|
+
@overload
|
|
698
|
+
def __getitem__(self, key: slice[SupportsIndex | None], /) -> bytes: ...
|
|
699
|
+
|
|
700
|
+
def __add__(self, value: ReadableBuffer, /) -> bytes: ...
|
|
701
|
+
def __mul__(self, value: SupportsIndex, /) -> bytes: ...
|
|
702
|
+
def __rmul__(self, value: SupportsIndex, /) -> bytes: ...
|
|
703
|
+
def __mod__(self, value: Any, /) -> bytes: ...
|
|
704
|
+
# Incompatible with Sequence.__contains__
|
|
705
|
+
def __contains__(self, key: SupportsIndex | ReadableBuffer, /) -> bool: ... # type: ignore[override]
|
|
706
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
707
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
708
|
+
def __lt__(self, value: bytes, /) -> bool: ...
|
|
709
|
+
def __le__(self, value: bytes, /) -> bool: ...
|
|
710
|
+
def __gt__(self, value: bytes, /) -> bool: ...
|
|
711
|
+
def __ge__(self, value: bytes, /) -> bool: ...
|
|
712
|
+
def __getnewargs__(self) -> tuple[bytes]: ...
|
|
713
|
+
if sys.version_info >= (3, 11):
|
|
714
|
+
def __bytes__(self) -> bytes: ...
|
|
715
|
+
|
|
716
|
+
def __buffer__(self, flags: int, /) -> memoryview: ...
|
|
717
|
+
|
|
718
|
+
@disjoint_base
|
|
719
|
+
class bytearray(MutableSequence[int]):
|
|
720
|
+
@overload
|
|
721
|
+
def __init__(self) -> None: ...
|
|
722
|
+
@overload
|
|
723
|
+
def __init__(self, ints: Iterable[SupportsIndex] | SupportsIndex | ReadableBuffer, /) -> None: ...
|
|
724
|
+
@overload
|
|
725
|
+
def __init__(self, string: str, /, encoding: str, errors: str = "strict") -> None: ...
|
|
726
|
+
|
|
727
|
+
def append(self, item: SupportsIndex, /) -> None: ...
|
|
728
|
+
def capitalize(self) -> bytearray: ...
|
|
729
|
+
def center(self, width: SupportsIndex, fillchar: bytes = b" ", /) -> bytearray: ...
|
|
730
|
+
def count(
|
|
731
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
732
|
+
) -> int: ...
|
|
733
|
+
def copy(self) -> bytearray: ...
|
|
734
|
+
def decode(self, encoding: str = "utf-8", errors: str = "strict") -> str: ...
|
|
735
|
+
def endswith(
|
|
736
|
+
self,
|
|
737
|
+
suffix: ReadableBuffer | tuple[ReadableBuffer, ...],
|
|
738
|
+
start: SupportsIndex | None = None,
|
|
739
|
+
end: SupportsIndex | None = None,
|
|
740
|
+
/,
|
|
741
|
+
) -> bool: ...
|
|
742
|
+
def expandtabs(self, tabsize: SupportsIndex = 8) -> bytearray: ...
|
|
743
|
+
def extend(self, iterable_of_ints: Iterable[SupportsIndex], /) -> None: ...
|
|
744
|
+
def find(
|
|
745
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
746
|
+
) -> int: ...
|
|
747
|
+
def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = 1) -> str: ...
|
|
748
|
+
def index(
|
|
749
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
750
|
+
) -> int: ...
|
|
751
|
+
def insert(self, index: SupportsIndex, item: SupportsIndex, /) -> None: ...
|
|
752
|
+
def isalnum(self) -> bool: ...
|
|
753
|
+
def isalpha(self) -> bool: ...
|
|
754
|
+
def isascii(self) -> bool: ...
|
|
755
|
+
def isdigit(self) -> bool: ...
|
|
756
|
+
def islower(self) -> bool: ...
|
|
757
|
+
def isspace(self) -> bool: ...
|
|
758
|
+
def istitle(self) -> bool: ...
|
|
759
|
+
def isupper(self) -> bool: ...
|
|
760
|
+
def join(self, iterable_of_bytes: Iterable[ReadableBuffer], /) -> bytearray: ...
|
|
761
|
+
def ljust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytearray: ...
|
|
762
|
+
def lower(self) -> bytearray: ...
|
|
763
|
+
def lstrip(self, bytes: ReadableBuffer | None = None, /) -> bytearray: ...
|
|
764
|
+
def partition(self, sep: ReadableBuffer, /) -> tuple[bytearray, bytearray, bytearray]: ...
|
|
765
|
+
def pop(self, index: int = -1, /) -> int: ...
|
|
766
|
+
def remove(self, value: int, /) -> None: ...
|
|
767
|
+
def removeprefix(self, prefix: ReadableBuffer, /) -> bytearray: ...
|
|
768
|
+
def removesuffix(self, suffix: ReadableBuffer, /) -> bytearray: ...
|
|
769
|
+
if sys.version_info >= (3, 15):
|
|
770
|
+
def replace(self, old: ReadableBuffer, new: ReadableBuffer, /, count: SupportsIndex = -1) -> bytearray: ...
|
|
771
|
+
|
|
772
|
+
else:
|
|
773
|
+
def replace(self, old: ReadableBuffer, new: ReadableBuffer, count: SupportsIndex = -1, /) -> bytearray: ...
|
|
774
|
+
|
|
775
|
+
def rfind(
|
|
776
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
777
|
+
) -> int: ...
|
|
778
|
+
def rindex(
|
|
779
|
+
self, sub: ReadableBuffer | SupportsIndex, start: SupportsIndex | None = None, end: SupportsIndex | None = None, /
|
|
780
|
+
) -> int: ...
|
|
781
|
+
def rjust(self, width: SupportsIndex, fillchar: bytes | bytearray = b" ", /) -> bytearray: ...
|
|
782
|
+
def rpartition(self, sep: ReadableBuffer, /) -> tuple[bytearray, bytearray, bytearray]: ...
|
|
783
|
+
def rsplit(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytearray]: ...
|
|
784
|
+
def rstrip(self, bytes: ReadableBuffer | None = None, /) -> bytearray: ...
|
|
785
|
+
def split(self, sep: ReadableBuffer | None = None, maxsplit: SupportsIndex = -1) -> list[bytearray]: ...
|
|
786
|
+
def splitlines(self, keepends: bool = False) -> list[bytearray]: ...
|
|
787
|
+
def startswith(
|
|
788
|
+
self,
|
|
789
|
+
prefix: ReadableBuffer | tuple[ReadableBuffer, ...],
|
|
790
|
+
start: SupportsIndex | None = None,
|
|
791
|
+
end: SupportsIndex | None = None,
|
|
792
|
+
/,
|
|
793
|
+
) -> bool: ...
|
|
794
|
+
def strip(self, bytes: ReadableBuffer | None = None, /) -> bytearray: ...
|
|
795
|
+
def swapcase(self) -> bytearray: ...
|
|
796
|
+
def title(self) -> bytearray: ...
|
|
797
|
+
def translate(self, table: ReadableBuffer | None, /, delete: bytes = b"") -> bytearray: ...
|
|
798
|
+
if sys.version_info >= (3, 15):
|
|
799
|
+
def take_bytes(self, n: int | None = None, /) -> bytes: ...
|
|
800
|
+
|
|
801
|
+
def upper(self) -> bytearray: ...
|
|
802
|
+
def zfill(self, width: SupportsIndex, /) -> bytearray: ...
|
|
803
|
+
|
|
804
|
+
if sys.version_info >= (3, 14):
|
|
805
|
+
@classmethod
|
|
806
|
+
def fromhex(cls, string: str | ReadableBuffer, /) -> Self: ...
|
|
807
|
+
else:
|
|
808
|
+
@classmethod
|
|
809
|
+
def fromhex(cls, string: str, /) -> Self: ...
|
|
810
|
+
|
|
811
|
+
@staticmethod
|
|
812
|
+
def maketrans(frm: ReadableBuffer, to: ReadableBuffer, /) -> bytes: ...
|
|
813
|
+
def __len__(self) -> int: ...
|
|
814
|
+
def __iter__(self) -> Iterator[int]: ...
|
|
815
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
816
|
+
|
|
817
|
+
@overload
|
|
818
|
+
def __getitem__(self, key: SupportsIndex, /) -> int: ...
|
|
819
|
+
@overload
|
|
820
|
+
def __getitem__(self, key: slice[SupportsIndex | None], /) -> bytearray: ...
|
|
821
|
+
|
|
822
|
+
@overload
|
|
823
|
+
def __setitem__(self, key: SupportsIndex, value: SupportsIndex, /) -> None: ...
|
|
824
|
+
@overload
|
|
825
|
+
def __setitem__(self, key: slice[SupportsIndex | None], value: Iterable[SupportsIndex] | bytes, /) -> None: ...
|
|
826
|
+
|
|
827
|
+
def __delitem__(self, key: SupportsIndex | slice[SupportsIndex | None], /) -> None: ...
|
|
828
|
+
def __add__(self, value: ReadableBuffer, /) -> bytearray: ...
|
|
829
|
+
# The superclass wants us to accept Iterable[int], but that fails at runtime.
|
|
830
|
+
def __iadd__(self, value: ReadableBuffer, /) -> Self: ... # type: ignore[override]
|
|
831
|
+
def __mul__(self, value: SupportsIndex, /) -> bytearray: ...
|
|
832
|
+
def __rmul__(self, value: SupportsIndex, /) -> bytearray: ...
|
|
833
|
+
def __imul__(self, value: SupportsIndex, /) -> Self: ...
|
|
834
|
+
def __mod__(self, value: Any, /) -> bytes: ...
|
|
835
|
+
# Incompatible with Sequence.__contains__
|
|
836
|
+
def __contains__(self, key: SupportsIndex | ReadableBuffer, /) -> bool: ... # type: ignore[override]
|
|
837
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
838
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
839
|
+
def __lt__(self, value: ReadableBuffer, /) -> bool: ...
|
|
840
|
+
def __le__(self, value: ReadableBuffer, /) -> bool: ...
|
|
841
|
+
def __gt__(self, value: ReadableBuffer, /) -> bool: ...
|
|
842
|
+
def __ge__(self, value: ReadableBuffer, /) -> bool: ...
|
|
843
|
+
def __alloc__(self) -> int: ...
|
|
844
|
+
def __buffer__(self, flags: int, /) -> memoryview: ...
|
|
845
|
+
def __release_buffer__(self, buffer: memoryview, /) -> None: ...
|
|
846
|
+
if sys.version_info >= (3, 14):
|
|
847
|
+
def resize(self, size: int, /) -> None: ...
|
|
848
|
+
|
|
849
|
+
_IntegerFormats: TypeAlias = Literal[
|
|
850
|
+
"b", "B", "@b", "@B", "h", "H", "@h", "@H", "i", "I", "@i", "@I", "l", "L", "@l", "@L", "q", "Q", "@q", "@Q", "P", "@P"
|
|
851
|
+
]
|
|
852
|
+
|
|
853
|
+
@final
|
|
854
|
+
class memoryview(Sequence[_I]):
|
|
855
|
+
@property
|
|
856
|
+
def format(self) -> str: ...
|
|
857
|
+
@property
|
|
858
|
+
def itemsize(self) -> int: ...
|
|
859
|
+
@property
|
|
860
|
+
def shape(self) -> tuple[int, ...] | None: ...
|
|
861
|
+
@property
|
|
862
|
+
def strides(self) -> tuple[int, ...] | None: ...
|
|
863
|
+
@property
|
|
864
|
+
def suboffsets(self) -> tuple[int, ...] | None: ...
|
|
865
|
+
@property
|
|
866
|
+
def readonly(self) -> bool: ...
|
|
867
|
+
@property
|
|
868
|
+
def ndim(self) -> int: ...
|
|
869
|
+
@property
|
|
870
|
+
def obj(self) -> ReadableBuffer: ...
|
|
871
|
+
@property
|
|
872
|
+
def c_contiguous(self) -> bool: ...
|
|
873
|
+
@property
|
|
874
|
+
def f_contiguous(self) -> bool: ...
|
|
875
|
+
@property
|
|
876
|
+
def contiguous(self) -> bool: ...
|
|
877
|
+
@property
|
|
878
|
+
def nbytes(self) -> int: ...
|
|
879
|
+
def __new__(cls, obj: ReadableBuffer) -> Self: ...
|
|
880
|
+
def __enter__(self) -> Self: ...
|
|
881
|
+
def __exit__(
|
|
882
|
+
self,
|
|
883
|
+
exc_type: type[BaseException] | None, # noqa: PYI036 # This is the module declaring BaseException
|
|
884
|
+
exc_val: BaseException | None,
|
|
885
|
+
exc_tb: TracebackType | None,
|
|
886
|
+
/,
|
|
887
|
+
) -> None: ...
|
|
888
|
+
|
|
889
|
+
@overload
|
|
890
|
+
def cast(self, format: Literal["c", "@c"], shape: list[int] | tuple[int, ...] = ...) -> memoryview[bytes]: ...
|
|
891
|
+
@overload
|
|
892
|
+
def cast(self, format: Literal["f", "@f", "d", "@d"], shape: list[int] | tuple[int, ...] = ...) -> memoryview[float]: ...
|
|
893
|
+
@overload
|
|
894
|
+
def cast(self, format: Literal["?"], shape: list[int] | tuple[int, ...] = ...) -> memoryview[bool]: ...
|
|
895
|
+
@overload
|
|
896
|
+
def cast(self, format: _IntegerFormats, shape: list[int] | tuple[int, ...] = ...) -> memoryview: ...
|
|
897
|
+
|
|
898
|
+
@overload
|
|
899
|
+
def __getitem__(self, key: SupportsIndex | tuple[SupportsIndex, ...], /) -> _I: ...
|
|
900
|
+
@overload
|
|
901
|
+
def __getitem__(self, key: slice[SupportsIndex | None], /) -> memoryview[_I]: ...
|
|
902
|
+
|
|
903
|
+
def __contains__(self, x: object, /) -> bool: ...
|
|
904
|
+
def __iter__(self) -> Iterator[_I]: ...
|
|
905
|
+
def __len__(self) -> int: ...
|
|
906
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
907
|
+
def __hash__(self) -> int: ...
|
|
908
|
+
|
|
909
|
+
@overload
|
|
910
|
+
def __setitem__(self, key: slice[SupportsIndex | None], value: ReadableBuffer, /) -> None: ...
|
|
911
|
+
@overload
|
|
912
|
+
def __setitem__(self, key: SupportsIndex | tuple[SupportsIndex, ...], value: _I, /) -> None: ...
|
|
913
|
+
|
|
914
|
+
def tobytes(self, order: Literal["C", "F", "A"] | None = "C") -> bytes: ...
|
|
915
|
+
def tolist(self) -> list[int]: ...
|
|
916
|
+
def toreadonly(self) -> memoryview[_I]: ...
|
|
917
|
+
def release(self) -> None: ...
|
|
918
|
+
def hex(self, sep: str | bytes = ..., bytes_per_sep: SupportsIndex = 1) -> str: ...
|
|
919
|
+
def __buffer__(self, flags: int, /) -> memoryview: ...
|
|
920
|
+
def __release_buffer__(self, buffer: memoryview, /) -> None: ...
|
|
921
|
+
if sys.version_info >= (3, 14):
|
|
922
|
+
def index(self, value: object, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int: ...
|
|
923
|
+
def count(self, value: object, /) -> int: ...
|
|
924
|
+
|
|
925
|
+
else:
|
|
926
|
+
# These are inherited from the Sequence ABC, but don't actually exist on memoryview.
|
|
927
|
+
# See https://github.com/python/cpython/issues/125420
|
|
928
|
+
index: ClassVar[None] # type: ignore[assignment]
|
|
929
|
+
count: ClassVar[None] # type: ignore[assignment]
|
|
930
|
+
|
|
931
|
+
if sys.version_info >= (3, 14):
|
|
932
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
933
|
+
|
|
934
|
+
@final
|
|
935
|
+
class bool(int):
|
|
936
|
+
def __new__(cls, o: object = False, /) -> Self: ...
|
|
937
|
+
|
|
938
|
+
# The following overloads could be represented more elegantly with a TypeVar("_B", bool, int),
|
|
939
|
+
# however mypy has a bug regarding TypeVar constraints (https://github.com/python/mypy/issues/11880).
|
|
940
|
+
@overload
|
|
941
|
+
def __and__(self, value: bool, /) -> bool: ...
|
|
942
|
+
@overload
|
|
943
|
+
def __and__(self, value: int, /) -> int: ...
|
|
944
|
+
|
|
945
|
+
@overload
|
|
946
|
+
def __or__(self, value: bool, /) -> bool: ...
|
|
947
|
+
@overload
|
|
948
|
+
def __or__(self, value: int, /) -> int: ...
|
|
949
|
+
|
|
950
|
+
@overload
|
|
951
|
+
def __xor__(self, value: bool, /) -> bool: ...
|
|
952
|
+
@overload
|
|
953
|
+
def __xor__(self, value: int, /) -> int: ...
|
|
954
|
+
|
|
955
|
+
@overload
|
|
956
|
+
def __rand__(self, value: bool, /) -> bool: ...
|
|
957
|
+
@overload
|
|
958
|
+
def __rand__(self, value: int, /) -> int: ...
|
|
959
|
+
|
|
960
|
+
@overload
|
|
961
|
+
def __ror__(self, value: bool, /) -> bool: ...
|
|
962
|
+
@overload
|
|
963
|
+
def __ror__(self, value: int, /) -> int: ...
|
|
964
|
+
|
|
965
|
+
@overload
|
|
966
|
+
def __rxor__(self, value: bool, /) -> bool: ...
|
|
967
|
+
@overload
|
|
968
|
+
def __rxor__(self, value: int, /) -> int: ...
|
|
969
|
+
|
|
970
|
+
def __getnewargs__(self) -> tuple[int]: ...
|
|
971
|
+
@deprecated("Will throw an error in Python 3.16. Use `not` for logical negation of bools instead.")
|
|
972
|
+
def __invert__(self) -> int: ...
|
|
973
|
+
|
|
974
|
+
@final
|
|
975
|
+
class slice(Generic[_StartT_co, _StopT_co, _StepT_co]):
|
|
976
|
+
@property
|
|
977
|
+
def start(self) -> _StartT_co: ...
|
|
978
|
+
@property
|
|
979
|
+
def step(self) -> _StepT_co: ...
|
|
980
|
+
@property
|
|
981
|
+
def stop(self) -> _StopT_co: ...
|
|
982
|
+
|
|
983
|
+
# Note: __new__ overloads map `None` to `Any`, since users expect slice(x, None)
|
|
984
|
+
# to be compatible with slice(None, x).
|
|
985
|
+
# generic slice --------------------------------------------------------------------
|
|
986
|
+
@overload
|
|
987
|
+
def __new__(cls, start: None, stop: None = None, step: None = None, /) -> slice[Any, Any, Any]: ...
|
|
988
|
+
# unary overloads ------------------------------------------------------------------
|
|
989
|
+
@overload
|
|
990
|
+
def __new__(cls, stop: _T2, /) -> slice[Any, _T2, Any]: ...
|
|
991
|
+
# binary overloads -----------------------------------------------------------------
|
|
992
|
+
@overload
|
|
993
|
+
def __new__(cls, start: _T1, stop: None, step: None = None, /) -> slice[_T1, Any, Any]: ...
|
|
994
|
+
@overload
|
|
995
|
+
def __new__(cls, start: None, stop: _T2, step: None = None, /) -> slice[Any, _T2, Any]: ...
|
|
996
|
+
@overload
|
|
997
|
+
def __new__(cls, start: _T1, stop: _T2, step: None = None, /) -> slice[_T1, _T2, Any]: ...
|
|
998
|
+
# ternary overloads ----------------------------------------------------------------
|
|
999
|
+
@overload
|
|
1000
|
+
def __new__(cls, start: None, stop: None, step: _T3, /) -> slice[Any, Any, _T3]: ...
|
|
1001
|
+
@overload
|
|
1002
|
+
def __new__(cls, start: _T1, stop: None, step: _T3, /) -> slice[_T1, Any, _T3]: ...
|
|
1003
|
+
@overload
|
|
1004
|
+
def __new__(cls, start: None, stop: _T2, step: _T3, /) -> slice[Any, _T2, _T3]: ...
|
|
1005
|
+
@overload
|
|
1006
|
+
def __new__(cls, start: _T1, stop: _T2, step: _T3, /) -> slice[_T1, _T2, _T3]: ...
|
|
1007
|
+
|
|
1008
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
1009
|
+
if sys.version_info >= (3, 12):
|
|
1010
|
+
def __hash__(self) -> int: ...
|
|
1011
|
+
|
|
1012
|
+
else:
|
|
1013
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
1014
|
+
|
|
1015
|
+
def indices(self, len: SupportsIndex, /) -> tuple[int, int, int]: ...
|
|
1016
|
+
if sys.version_info >= (3, 15):
|
|
1017
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1018
|
+
|
|
1019
|
+
@disjoint_base
|
|
1020
|
+
class tuple(Sequence[_T_co]):
|
|
1021
|
+
def __new__(cls, iterable: Iterable[_T_co] = (), /) -> Self: ...
|
|
1022
|
+
def __len__(self) -> int: ...
|
|
1023
|
+
def __contains__(self, key: object, /) -> bool: ...
|
|
1024
|
+
|
|
1025
|
+
@overload
|
|
1026
|
+
def __getitem__(self, key: SupportsIndex, /) -> _T_co: ...
|
|
1027
|
+
@overload
|
|
1028
|
+
def __getitem__(self, key: slice[SupportsIndex | None], /) -> tuple[_T_co, ...]: ...
|
|
1029
|
+
|
|
1030
|
+
def __iter__(self) -> Iterator[_T_co]: ...
|
|
1031
|
+
def __lt__(self, value: tuple[_T_co, ...], /) -> bool: ...
|
|
1032
|
+
def __le__(self, value: tuple[_T_co, ...], /) -> bool: ...
|
|
1033
|
+
def __gt__(self, value: tuple[_T_co, ...], /) -> bool: ...
|
|
1034
|
+
def __ge__(self, value: tuple[_T_co, ...], /) -> bool: ...
|
|
1035
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
1036
|
+
def __hash__(self) -> int: ...
|
|
1037
|
+
|
|
1038
|
+
@overload
|
|
1039
|
+
def __add__(self, value: tuple[_T_co, ...], /) -> tuple[_T_co, ...]: ...
|
|
1040
|
+
@overload
|
|
1041
|
+
def __add__(self, value: tuple[_T, ...], /) -> tuple[_T_co | _T, ...]: ...
|
|
1042
|
+
|
|
1043
|
+
def __mul__(self, value: SupportsIndex, /) -> tuple[_T_co, ...]: ...
|
|
1044
|
+
def __rmul__(self, value: SupportsIndex, /) -> tuple[_T_co, ...]: ...
|
|
1045
|
+
def count(self, value: Any, /) -> int: ...
|
|
1046
|
+
def index(self, value: Any, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int: ...
|
|
1047
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1048
|
+
|
|
1049
|
+
# Doesn't exist at runtime, but deleting this breaks mypy and pyright. See:
|
|
1050
|
+
# https://github.com/python/typeshed/issues/7580
|
|
1051
|
+
# https://github.com/python/mypy/issues/8240
|
|
1052
|
+
# Obsolete, use types.FunctionType instead.
|
|
1053
|
+
@final
|
|
1054
|
+
@type_check_only
|
|
1055
|
+
class function:
|
|
1056
|
+
# Make sure this class definition stays roughly in line with `types.FunctionType`
|
|
1057
|
+
@property
|
|
1058
|
+
def __closure__(self) -> tuple[CellType, ...] | None: ...
|
|
1059
|
+
__code__: CodeType
|
|
1060
|
+
__defaults__: tuple[Any, ...] | None
|
|
1061
|
+
__dict__: dict[str, Any]
|
|
1062
|
+
@property
|
|
1063
|
+
def __globals__(self) -> dict[str, Any]: ...
|
|
1064
|
+
__name__: str
|
|
1065
|
+
__qualname__: str
|
|
1066
|
+
__annotations__: dict[str, AnnotationForm]
|
|
1067
|
+
if sys.version_info >= (3, 14):
|
|
1068
|
+
__annotate__: AnnotateFunc | None
|
|
1069
|
+
__kwdefaults__: dict[str, Any] | None
|
|
1070
|
+
@property
|
|
1071
|
+
def __builtins__(self) -> dict[str, Any]: ...
|
|
1072
|
+
if sys.version_info >= (3, 12):
|
|
1073
|
+
__type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
|
|
1074
|
+
|
|
1075
|
+
__module__: str
|
|
1076
|
+
if sys.version_info >= (3, 13):
|
|
1077
|
+
def __new__(
|
|
1078
|
+
cls,
|
|
1079
|
+
code: CodeType,
|
|
1080
|
+
globals: dict[str, Any],
|
|
1081
|
+
name: str | None = None,
|
|
1082
|
+
argdefs: tuple[object, ...] | None = None,
|
|
1083
|
+
closure: tuple[CellType, ...] | None = None,
|
|
1084
|
+
kwdefaults: dict[str, object] | None = None,
|
|
1085
|
+
) -> Self: ...
|
|
1086
|
+
|
|
1087
|
+
else:
|
|
1088
|
+
def __new__(
|
|
1089
|
+
cls,
|
|
1090
|
+
code: CodeType,
|
|
1091
|
+
globals: dict[str, Any],
|
|
1092
|
+
name: str | None = None,
|
|
1093
|
+
argdefs: tuple[object, ...] | None = None,
|
|
1094
|
+
closure: tuple[CellType, ...] | None = None,
|
|
1095
|
+
) -> Self: ...
|
|
1096
|
+
|
|
1097
|
+
# mypy uses `builtins.function.__get__` to represent methods, properties, and getset_descriptors so we type the return as Any.
|
|
1098
|
+
def __get__(self, instance: object, owner: type | None = None, /) -> Any: ...
|
|
1099
|
+
|
|
1100
|
+
@disjoint_base
|
|
1101
|
+
class list(MutableSequence[_T]):
|
|
1102
|
+
@overload
|
|
1103
|
+
def __init__(self) -> None: ...
|
|
1104
|
+
@overload
|
|
1105
|
+
def __init__(self, iterable: Iterable[_T], /) -> None: ...
|
|
1106
|
+
|
|
1107
|
+
def copy(self) -> list[_T]: ...
|
|
1108
|
+
def append(self, object: _T, /) -> None: ...
|
|
1109
|
+
def extend(self, iterable: Iterable[_T], /) -> None: ...
|
|
1110
|
+
def pop(self, index: SupportsIndex = -1, /) -> _T: ...
|
|
1111
|
+
# Signature of `list.index` should be kept in line with `collections.UserList.index()`
|
|
1112
|
+
# and multiprocessing.managers.ListProxy.index()
|
|
1113
|
+
def index(self, value: _T, start: SupportsIndex = 0, stop: SupportsIndex = sys.maxsize, /) -> int: ...
|
|
1114
|
+
def count(self, value: _T, /) -> int: ...
|
|
1115
|
+
def insert(self, index: SupportsIndex, object: _T, /) -> None: ...
|
|
1116
|
+
def remove(self, value: _T, /) -> None: ...
|
|
1117
|
+
|
|
1118
|
+
# Signature of `list.sort` should be kept inline with `collections.UserList.sort()`
|
|
1119
|
+
# and multiprocessing.managers.ListProxy.sort()
|
|
1120
|
+
#
|
|
1121
|
+
# Use list[SupportsRichComparisonT] for the first overload rather than [SupportsRichComparison]
|
|
1122
|
+
# to work around invariance
|
|
1123
|
+
@overload
|
|
1124
|
+
def sort(self: list[SupportsRichComparisonT], *, key: None = None, reverse: bool = False) -> None: ...
|
|
1125
|
+
@overload
|
|
1126
|
+
def sort(self, *, key: Callable[[_T], SupportsRichComparison], reverse: bool = False) -> None: ...
|
|
1127
|
+
|
|
1128
|
+
def __len__(self) -> int: ...
|
|
1129
|
+
def __iter__(self) -> Iterator[_T]: ...
|
|
1130
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
1131
|
+
|
|
1132
|
+
@overload
|
|
1133
|
+
def __getitem__(self, i: SupportsIndex, /) -> _T: ...
|
|
1134
|
+
@overload
|
|
1135
|
+
def __getitem__(self, s: slice[SupportsIndex | None], /) -> list[_T]: ...
|
|
1136
|
+
|
|
1137
|
+
@overload
|
|
1138
|
+
def __setitem__(self, key: SupportsIndex, value: _T, /) -> None: ...
|
|
1139
|
+
@overload
|
|
1140
|
+
def __setitem__(self, key: slice[SupportsIndex | None], value: Iterable[_T], /) -> None: ...
|
|
1141
|
+
|
|
1142
|
+
def __delitem__(self, key: SupportsIndex | slice[SupportsIndex | None], /) -> None: ...
|
|
1143
|
+
|
|
1144
|
+
# Overloading looks unnecessary, but is needed to work around complex mypy problems
|
|
1145
|
+
@overload
|
|
1146
|
+
def __add__(self, value: list[_T], /) -> list[_T]: ...
|
|
1147
|
+
@overload
|
|
1148
|
+
def __add__(self, value: list[_S], /) -> list[_S | _T]: ...
|
|
1149
|
+
|
|
1150
|
+
def __iadd__(self, value: Iterable[_T], /) -> Self: ... # type: ignore[misc]
|
|
1151
|
+
def __mul__(self, value: SupportsIndex, /) -> list[_T]: ...
|
|
1152
|
+
def __rmul__(self, value: SupportsIndex, /) -> list[_T]: ...
|
|
1153
|
+
def __imul__(self, value: SupportsIndex, /) -> Self: ...
|
|
1154
|
+
def __contains__(self, key: object, /) -> bool: ...
|
|
1155
|
+
def __reversed__(self) -> Iterator[_T]: ...
|
|
1156
|
+
def __gt__(self, value: list[_T], /) -> bool: ...
|
|
1157
|
+
def __ge__(self, value: list[_T], /) -> bool: ...
|
|
1158
|
+
def __lt__(self, value: list[_T], /) -> bool: ...
|
|
1159
|
+
def __le__(self, value: list[_T], /) -> bool: ...
|
|
1160
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
1161
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1162
|
+
|
|
1163
|
+
@disjoint_base
|
|
1164
|
+
class dict(MutableMapping[_KT, _VT]):
|
|
1165
|
+
# __init__ should be kept roughly in line with `collections.UserDict.__init__`, which has similar semantics
|
|
1166
|
+
# Also multiprocessing.managers.SyncManager.dict()
|
|
1167
|
+
@overload
|
|
1168
|
+
def __init__(self, /) -> None: ...
|
|
1169
|
+
@overload
|
|
1170
|
+
def __init__(self: dict[str, _VT], /, **kwargs: _VT) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
1171
|
+
@overload
|
|
1172
|
+
def __init__(self, map: SupportsKeysAndGetItem[_KT, _VT], /) -> None: ...
|
|
1173
|
+
@overload
|
|
1174
|
+
def __init__(
|
|
1175
|
+
self: dict[str, _VT], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
1176
|
+
map: SupportsKeysAndGetItem[str, _VT],
|
|
1177
|
+
/,
|
|
1178
|
+
**kwargs: _VT,
|
|
1179
|
+
) -> None: ...
|
|
1180
|
+
@overload
|
|
1181
|
+
def __init__(self, iterable: Iterable[tuple[_KT, _VT]], /) -> None: ...
|
|
1182
|
+
@overload
|
|
1183
|
+
def __init__(
|
|
1184
|
+
self: dict[str, _VT], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
1185
|
+
iterable: Iterable[tuple[str, _VT]],
|
|
1186
|
+
/,
|
|
1187
|
+
**kwargs: _VT,
|
|
1188
|
+
) -> None: ...
|
|
1189
|
+
# Next two overloads are for dict(string.split(sep) for string in iterable)
|
|
1190
|
+
# Cannot be Iterable[Sequence[_T]] or otherwise dict(["foo", "bar", "baz"]) is not an error
|
|
1191
|
+
@overload
|
|
1192
|
+
def __init__(self: dict[str, str], iterable: Iterable[list[str]], /) -> None: ...
|
|
1193
|
+
@overload
|
|
1194
|
+
def __init__(self: dict[bytes, bytes], iterable: Iterable[list[bytes]], /) -> None: ...
|
|
1195
|
+
|
|
1196
|
+
def __new__(cls, /, *args: Any, **kwargs: Any) -> Self: ...
|
|
1197
|
+
def copy(self) -> dict[_KT, _VT]: ...
|
|
1198
|
+
def keys(self) -> dict_keys[_KT, _VT]: ...
|
|
1199
|
+
def values(self) -> dict_values[_KT, _VT]: ...
|
|
1200
|
+
def items(self) -> dict_items[_KT, _VT]: ...
|
|
1201
|
+
|
|
1202
|
+
# Signature of `dict.fromkeys` should be kept identical to
|
|
1203
|
+
# `fromkeys` methods of `OrderedDict`/`ChainMap`/`UserDict` in `collections`
|
|
1204
|
+
# TODO: the true signature of `dict.fromkeys` is not expressible in the current type system.
|
|
1205
|
+
# See #3800 & https://github.com/python/typing/issues/548#issuecomment-683336963.
|
|
1206
|
+
@classmethod
|
|
1207
|
+
@overload
|
|
1208
|
+
def fromkeys(cls, iterable: Iterable[_T], value: None = None, /) -> dict[_T, Any | None]: ...
|
|
1209
|
+
@classmethod
|
|
1210
|
+
@overload
|
|
1211
|
+
def fromkeys(cls, iterable: Iterable[_T], value: _S, /) -> dict[_T, _S]: ...
|
|
1212
|
+
|
|
1213
|
+
# Positional-only in dict, but not in MutableMapping
|
|
1214
|
+
@overload # type: ignore[override]
|
|
1215
|
+
def get(self, key: _KT, default: None = None, /) -> _VT | None: ...
|
|
1216
|
+
@overload
|
|
1217
|
+
def get(self, key: _KT, default: _VT, /) -> _VT: ...
|
|
1218
|
+
@overload
|
|
1219
|
+
def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
|
|
1220
|
+
|
|
1221
|
+
@overload
|
|
1222
|
+
def pop(self, key: _KT, /) -> _VT: ...
|
|
1223
|
+
@overload
|
|
1224
|
+
def pop(self, key: _KT, default: _VT, /) -> _VT: ...
|
|
1225
|
+
@overload
|
|
1226
|
+
def pop(self, key: _KT, default: _T, /) -> _VT | _T: ...
|
|
1227
|
+
|
|
1228
|
+
def __len__(self) -> int: ...
|
|
1229
|
+
def __getitem__(self, key: _KT, /) -> _VT: ...
|
|
1230
|
+
def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
|
|
1231
|
+
def __delitem__(self, key: _KT, /) -> None: ...
|
|
1232
|
+
def __iter__(self) -> Iterator[_KT]: ...
|
|
1233
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
1234
|
+
def __reversed__(self) -> Iterator[_KT]: ...
|
|
1235
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
1236
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1237
|
+
if sys.version_info >= (3, 15):
|
|
1238
|
+
@overload
|
|
1239
|
+
def __or__(self, value: dict[_KT, _VT] | frozendict[_KT, _VT], /) -> dict[_KT, _VT]: ...
|
|
1240
|
+
@overload
|
|
1241
|
+
def __or__(self, value: dict[_T1, _T2] | frozendict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
|
|
1242
|
+
|
|
1243
|
+
@overload
|
|
1244
|
+
def __ror__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
|
|
1245
|
+
@overload
|
|
1246
|
+
def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
|
|
1247
|
+
@overload
|
|
1248
|
+
def __ror__(self, value: frozendict[_KT, _VT], /) -> frozendict[_KT, _VT]: ...
|
|
1249
|
+
@overload
|
|
1250
|
+
def __ror__(self, value: frozendict[_T1, _T2], /) -> frozendict[_KT | _T1, _VT | _T2]: ...
|
|
1251
|
+
|
|
1252
|
+
else:
|
|
1253
|
+
@overload
|
|
1254
|
+
def __or__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
|
|
1255
|
+
@overload
|
|
1256
|
+
def __or__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
|
|
1257
|
+
@overload
|
|
1258
|
+
def __ror__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
|
|
1259
|
+
@overload
|
|
1260
|
+
def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
|
|
1261
|
+
|
|
1262
|
+
# dict.__ior__ should be kept roughly in line with MutableMapping.update()
|
|
1263
|
+
@overload # type: ignore[misc]
|
|
1264
|
+
def __ior__(self, value: SupportsKeysAndGetItem[_KT, _VT], /) -> Self: ...
|
|
1265
|
+
@overload
|
|
1266
|
+
def __ior__(self, value: Iterable[tuple[_KT, _VT]], /) -> Self: ...
|
|
1267
|
+
|
|
1268
|
+
if sys.version_info >= (3, 15):
|
|
1269
|
+
@disjoint_base
|
|
1270
|
+
class frozendict(Mapping[_KT, _VT]):
|
|
1271
|
+
@overload
|
|
1272
|
+
def __new__(cls, /) -> frozendict[Any, Any]: ...
|
|
1273
|
+
@overload
|
|
1274
|
+
def __new__(cls: type[frozendict[str, _VT]], /, **kwargs: _VT) -> frozendict[str, _VT]: ...
|
|
1275
|
+
@overload
|
|
1276
|
+
def __new__(cls, map: SupportsKeysAndGetItem[_KT, _VT], /) -> frozendict[_KT, _VT]: ...
|
|
1277
|
+
@overload
|
|
1278
|
+
def __new__(
|
|
1279
|
+
cls: type[frozendict[str, _VT]], map: SupportsKeysAndGetItem[str, _VT], /, **kwargs: _VT
|
|
1280
|
+
) -> frozendict[str, _VT]: ...
|
|
1281
|
+
@overload
|
|
1282
|
+
def __new__(cls, iterable: Iterable[tuple[_KT, _VT]], /) -> frozendict[_KT, _VT]: ...
|
|
1283
|
+
@overload
|
|
1284
|
+
def __new__(
|
|
1285
|
+
cls: type[frozendict[str, _VT]], iterable: Iterable[tuple[str, _VT]], /, **kwargs: _VT
|
|
1286
|
+
) -> frozendict[str, _VT]: ...
|
|
1287
|
+
|
|
1288
|
+
def copy(self) -> frozendict[_KT, _VT]: ...
|
|
1289
|
+
|
|
1290
|
+
@overload
|
|
1291
|
+
@classmethod
|
|
1292
|
+
def fromkeys(cls, iterable: Iterable[_T], value: None = None, /) -> frozendict[_T, Any | None]: ...
|
|
1293
|
+
@overload
|
|
1294
|
+
@classmethod
|
|
1295
|
+
def fromkeys(cls, iterable: Iterable[_T], value: _S, /) -> frozendict[_T, _S]: ...
|
|
1296
|
+
|
|
1297
|
+
@overload # type: ignore[override]
|
|
1298
|
+
def get(self, key: _KT, default: None = None, /) -> _VT | None: ...
|
|
1299
|
+
@overload
|
|
1300
|
+
def get(self, key: _KT, default: _VT, /) -> _VT: ...
|
|
1301
|
+
@overload
|
|
1302
|
+
def get(self, key: _KT, default: _T, /) -> _VT | _T: ...
|
|
1303
|
+
|
|
1304
|
+
def keys(self) -> dict_keys[_KT, _VT]: ...
|
|
1305
|
+
def values(self) -> dict_values[_KT, _VT]: ...
|
|
1306
|
+
def items(self) -> dict_items[_KT, _VT]: ...
|
|
1307
|
+
def __len__(self) -> int: ...
|
|
1308
|
+
def __getitem__(self, key: _KT, /) -> _VT: ...
|
|
1309
|
+
def __reversed__(self) -> Iterator[_KT]: ...
|
|
1310
|
+
def __iter__(self) -> Iterator[_KT]: ...
|
|
1311
|
+
def __hash__(self) -> int: ...
|
|
1312
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1313
|
+
@overload
|
|
1314
|
+
def __or__(self, value: dict[_KT, _VT] | frozendict[_KT, _VT], /) -> frozendict[_KT, _VT]: ...
|
|
1315
|
+
@overload
|
|
1316
|
+
def __or__(self, value: dict[_T1, _T2] | frozendict[_T1, _T2], /) -> frozendict[_KT | _T1, _VT | _T2]: ...
|
|
1317
|
+
|
|
1318
|
+
@overload
|
|
1319
|
+
def __ror__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
|
|
1320
|
+
@overload
|
|
1321
|
+
def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
|
|
1322
|
+
@overload
|
|
1323
|
+
def __ror__(self, value: frozendict[_KT, _VT], /) -> frozendict[_KT, _VT]: ...
|
|
1324
|
+
@overload
|
|
1325
|
+
def __ror__(self, value: frozendict[_T1, _T2], /) -> frozendict[_KT | _T1, _VT | _T2]: ...
|
|
1326
|
+
|
|
1327
|
+
@disjoint_base
|
|
1328
|
+
class set(MutableSet[_T]):
|
|
1329
|
+
@overload
|
|
1330
|
+
def __init__(self) -> None: ...
|
|
1331
|
+
@overload
|
|
1332
|
+
def __init__(self, iterable: Iterable[_T], /) -> None: ...
|
|
1333
|
+
|
|
1334
|
+
def add(self, element: _T, /) -> None: ...
|
|
1335
|
+
def copy(self) -> set[_T]: ...
|
|
1336
|
+
def difference(self, *s: Iterable[object]) -> set[_T]: ...
|
|
1337
|
+
def difference_update(self, *s: Iterable[object]) -> None: ...
|
|
1338
|
+
def discard(self, element: object, /) -> None: ...
|
|
1339
|
+
def intersection(self, *s: Iterable[object]) -> set[_T]: ...
|
|
1340
|
+
def intersection_update(self, *s: Iterable[object]) -> None: ...
|
|
1341
|
+
def isdisjoint(self, s: Iterable[object], /) -> bool: ...
|
|
1342
|
+
def issubset(self, s: Iterable[object], /) -> bool: ...
|
|
1343
|
+
def issuperset(self, s: Iterable[object], /) -> bool: ...
|
|
1344
|
+
def remove(self, element: _T, /) -> None: ...
|
|
1345
|
+
def symmetric_difference(self, s: Iterable[_S], /) -> set[_T | _S]: ...
|
|
1346
|
+
def symmetric_difference_update(self, s: Iterable[_T], /) -> None: ...
|
|
1347
|
+
def union(self, *s: Iterable[_S]) -> set[_T | _S]: ...
|
|
1348
|
+
def update(self, *s: Iterable[_T]) -> None: ...
|
|
1349
|
+
def __len__(self) -> int: ...
|
|
1350
|
+
def __contains__(self, o: object, /) -> bool: ...
|
|
1351
|
+
def __iter__(self) -> Iterator[_T]: ...
|
|
1352
|
+
def __and__(self, value: AbstractSet[object], /) -> set[_T]: ...
|
|
1353
|
+
def __iand__(self, value: AbstractSet[object], /) -> Self: ...
|
|
1354
|
+
def __or__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ...
|
|
1355
|
+
def __ior__(self, value: AbstractSet[_T], /) -> Self: ... # type: ignore[override,misc]
|
|
1356
|
+
def __sub__(self, value: AbstractSet[object], /) -> set[_T]: ...
|
|
1357
|
+
def __isub__(self, value: AbstractSet[object], /) -> Self: ...
|
|
1358
|
+
def __xor__(self, value: AbstractSet[_S], /) -> set[_T | _S]: ...
|
|
1359
|
+
def __ixor__(self, value: AbstractSet[_T], /) -> Self: ... # type: ignore[override,misc]
|
|
1360
|
+
def __le__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1361
|
+
def __lt__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1362
|
+
def __ge__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1363
|
+
def __gt__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1364
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
1365
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
1366
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1367
|
+
|
|
1368
|
+
@disjoint_base
|
|
1369
|
+
class frozenset(AbstractSet[_T_co]):
|
|
1370
|
+
@overload
|
|
1371
|
+
def __new__(cls) -> Self: ...
|
|
1372
|
+
@overload
|
|
1373
|
+
def __new__(cls, iterable: Iterable[_T_co], /) -> Self: ...
|
|
1374
|
+
|
|
1375
|
+
def copy(self) -> frozenset[_T_co]: ...
|
|
1376
|
+
def difference(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
|
|
1377
|
+
def intersection(self, *s: Iterable[object]) -> frozenset[_T_co]: ...
|
|
1378
|
+
def isdisjoint(self, s: Iterable[object], /) -> bool: ...
|
|
1379
|
+
def issubset(self, s: Iterable[object], /) -> bool: ...
|
|
1380
|
+
def issuperset(self, s: Iterable[object], /) -> bool: ...
|
|
1381
|
+
def symmetric_difference(self, s: Iterable[_S], /) -> frozenset[_T_co | _S]: ...
|
|
1382
|
+
def union(self, *s: Iterable[_S]) -> frozenset[_T_co | _S]: ...
|
|
1383
|
+
def __len__(self) -> int: ...
|
|
1384
|
+
def __contains__(self, o: object, /) -> bool: ...
|
|
1385
|
+
def __iter__(self) -> Iterator[_T_co]: ...
|
|
1386
|
+
def __and__(self, value: AbstractSet[object], /) -> frozenset[_T_co]: ...
|
|
1387
|
+
def __or__(self, value: AbstractSet[_S], /) -> frozenset[_T_co | _S]: ...
|
|
1388
|
+
def __sub__(self, value: AbstractSet[object], /) -> frozenset[_T_co]: ...
|
|
1389
|
+
def __xor__(self, value: AbstractSet[_S], /) -> frozenset[_T_co | _S]: ...
|
|
1390
|
+
def __le__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1391
|
+
def __lt__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1392
|
+
def __ge__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1393
|
+
def __gt__(self, value: AbstractSet[object], /) -> bool: ...
|
|
1394
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
1395
|
+
def __hash__(self) -> int: ...
|
|
1396
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1397
|
+
|
|
1398
|
+
@disjoint_base
|
|
1399
|
+
class enumerate(Iterator[tuple[int, _T]]):
|
|
1400
|
+
def __new__(cls, iterable: Iterable[_T], start: int = 0) -> Self: ...
|
|
1401
|
+
def __iter__(self) -> Self: ...
|
|
1402
|
+
def __next__(self) -> tuple[int, _T]: ...
|
|
1403
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
1404
|
+
|
|
1405
|
+
@final
|
|
1406
|
+
class range(Sequence[int]):
|
|
1407
|
+
@property
|
|
1408
|
+
def start(self) -> int: ...
|
|
1409
|
+
@property
|
|
1410
|
+
def stop(self) -> int: ...
|
|
1411
|
+
@property
|
|
1412
|
+
def step(self) -> int: ...
|
|
1413
|
+
|
|
1414
|
+
@overload
|
|
1415
|
+
def __new__(cls, stop: SupportsIndex, /) -> Self: ...
|
|
1416
|
+
@overload
|
|
1417
|
+
def __new__(cls, start: SupportsIndex, stop: SupportsIndex, step: SupportsIndex = 1, /) -> Self: ...
|
|
1418
|
+
|
|
1419
|
+
def count(self, value: int, /) -> int: ...
|
|
1420
|
+
def index(self, value: int, /) -> int: ... # type: ignore[override]
|
|
1421
|
+
def __len__(self) -> int: ...
|
|
1422
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
1423
|
+
def __hash__(self) -> int: ...
|
|
1424
|
+
def __contains__(self, key: object, /) -> bool: ...
|
|
1425
|
+
def __iter__(self) -> Iterator[int]: ...
|
|
1426
|
+
|
|
1427
|
+
@overload
|
|
1428
|
+
def __getitem__(self, key: SupportsIndex, /) -> int: ...
|
|
1429
|
+
@overload
|
|
1430
|
+
def __getitem__(self, key: slice[SupportsIndex | None], /) -> range: ...
|
|
1431
|
+
|
|
1432
|
+
def __reversed__(self) -> Iterator[int]: ...
|
|
1433
|
+
|
|
1434
|
+
@disjoint_base
|
|
1435
|
+
class property:
|
|
1436
|
+
fget: Callable[[Any], Any] | None
|
|
1437
|
+
fset: Callable[[Any, Any], None] | None
|
|
1438
|
+
fdel: Callable[[Any], None] | None
|
|
1439
|
+
__isabstractmethod__: bool
|
|
1440
|
+
if sys.version_info >= (3, 13):
|
|
1441
|
+
__name__: str
|
|
1442
|
+
|
|
1443
|
+
def __init__(
|
|
1444
|
+
self,
|
|
1445
|
+
fget: Callable[[Any], Any] | None = None,
|
|
1446
|
+
fset: Callable[[Any, Any], None] | None = None,
|
|
1447
|
+
fdel: Callable[[Any], None] | None = None,
|
|
1448
|
+
doc: str | None = None,
|
|
1449
|
+
) -> None: ...
|
|
1450
|
+
def getter(self, fget: Callable[[Any], Any], /) -> property: ...
|
|
1451
|
+
def setter(self, fset: Callable[[Any, Any], None], /) -> property: ...
|
|
1452
|
+
def deleter(self, fdel: Callable[[Any], None], /) -> property: ...
|
|
1453
|
+
|
|
1454
|
+
@overload
|
|
1455
|
+
def __get__(self, instance: None, owner: type, /) -> Self: ...
|
|
1456
|
+
@overload
|
|
1457
|
+
def __get__(self, instance: Any, owner: type | None = None, /) -> Any: ...
|
|
1458
|
+
|
|
1459
|
+
def __set__(self, instance: Any, value: Any, /) -> None: ...
|
|
1460
|
+
def __delete__(self, instance: Any, /) -> None: ...
|
|
1461
|
+
|
|
1462
|
+
def abs(x: SupportsAbs[_T], /) -> _T: ...
|
|
1463
|
+
def all(iterable: Iterable[object], /) -> bool: ...
|
|
1464
|
+
def any(iterable: Iterable[object], /) -> bool: ...
|
|
1465
|
+
def ascii(obj: object, /) -> str: ...
|
|
1466
|
+
|
|
1467
|
+
if sys.version_info >= (3, 15):
|
|
1468
|
+
def bin(integer: SupportsIndex, /) -> str: ...
|
|
1469
|
+
|
|
1470
|
+
else:
|
|
1471
|
+
def bin(number: SupportsIndex, /) -> str: ...
|
|
1472
|
+
|
|
1473
|
+
def breakpoint(*args: Any, **kws: Any) -> None: ...
|
|
1474
|
+
def callable(obj: object, /) -> TypeIs[Callable[..., object]]: ...
|
|
1475
|
+
def chr(i: SupportsIndex, /) -> str: ...
|
|
1476
|
+
def aiter(async_iterable: SupportsAiter[_SupportsAnextT_co], /) -> _SupportsAnextT_co: ...
|
|
1477
|
+
|
|
1478
|
+
@type_check_only
|
|
1479
|
+
class _SupportsSynchronousAnext(Protocol[_AwaitableT_co]):
|
|
1480
|
+
def __anext__(self) -> _AwaitableT_co: ...
|
|
1481
|
+
|
|
1482
|
+
@overload
|
|
1483
|
+
# `anext` is not, in fact, an async function. When default is not provided
|
|
1484
|
+
# `anext` is just a passthrough for `obj.__anext__`
|
|
1485
|
+
# See discussion in #7491 and pure-Python implementation of `anext` at https://github.com/python/cpython/blob/ea786a882b9ed4261eafabad6011bc7ef3b5bf94/Lib/test/test_asyncgen.py#L52-L80
|
|
1486
|
+
def anext(i: _SupportsSynchronousAnext[_AwaitableT], /) -> _AwaitableT: ...
|
|
1487
|
+
@overload
|
|
1488
|
+
async def anext(i: SupportsAnext[_T], default: _VT, /) -> _T | _VT: ...
|
|
1489
|
+
|
|
1490
|
+
# compile() returns a CodeType, unless the flags argument includes PyCF_ONLY_AST (=1024),
|
|
1491
|
+
# in which case it returns ast.AST. We have overloads for flag 0 (the default) and for
|
|
1492
|
+
# explicitly passing PyCF_ONLY_AST. We fall back to Any for other values of flags.
|
|
1493
|
+
if sys.version_info >= (3, 15):
|
|
1494
|
+
@overload
|
|
1495
|
+
def compile(
|
|
1496
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1497
|
+
filename: str | bytes | PathLike[Any],
|
|
1498
|
+
mode: str,
|
|
1499
|
+
flags: Literal[0],
|
|
1500
|
+
dont_inherit: bool = False,
|
|
1501
|
+
optimize: int = -1,
|
|
1502
|
+
*,
|
|
1503
|
+
module: str | None = None,
|
|
1504
|
+
_feature_version: int = -1,
|
|
1505
|
+
) -> CodeType: ...
|
|
1506
|
+
@overload
|
|
1507
|
+
def compile(
|
|
1508
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1509
|
+
filename: str | bytes | PathLike[Any],
|
|
1510
|
+
mode: str,
|
|
1511
|
+
*,
|
|
1512
|
+
dont_inherit: bool = False,
|
|
1513
|
+
optimize: int = -1,
|
|
1514
|
+
module: str | None = None,
|
|
1515
|
+
_feature_version: int = -1,
|
|
1516
|
+
) -> CodeType: ...
|
|
1517
|
+
@overload
|
|
1518
|
+
def compile(
|
|
1519
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1520
|
+
filename: str | bytes | PathLike[Any],
|
|
1521
|
+
mode: str,
|
|
1522
|
+
flags: Literal[1024],
|
|
1523
|
+
dont_inherit: bool = False,
|
|
1524
|
+
optimize: int = -1,
|
|
1525
|
+
*,
|
|
1526
|
+
module: str | None = None,
|
|
1527
|
+
_feature_version: int = -1,
|
|
1528
|
+
) -> _ast.AST: ...
|
|
1529
|
+
@overload
|
|
1530
|
+
def compile(
|
|
1531
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1532
|
+
filename: str | bytes | PathLike[Any],
|
|
1533
|
+
mode: str,
|
|
1534
|
+
flags: int,
|
|
1535
|
+
dont_inherit: bool = False,
|
|
1536
|
+
optimize: int = -1,
|
|
1537
|
+
*,
|
|
1538
|
+
module: str | None = None,
|
|
1539
|
+
_feature_version: int = -1,
|
|
1540
|
+
) -> Any: ...
|
|
1541
|
+
else:
|
|
1542
|
+
@overload
|
|
1543
|
+
def compile(
|
|
1544
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1545
|
+
filename: str | bytes | PathLike[Any],
|
|
1546
|
+
mode: str,
|
|
1547
|
+
flags: Literal[0],
|
|
1548
|
+
dont_inherit: bool = False,
|
|
1549
|
+
optimize: int = -1,
|
|
1550
|
+
*,
|
|
1551
|
+
_feature_version: int = -1,
|
|
1552
|
+
) -> CodeType: ...
|
|
1553
|
+
@overload
|
|
1554
|
+
def compile(
|
|
1555
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1556
|
+
filename: str | bytes | PathLike[Any],
|
|
1557
|
+
mode: str,
|
|
1558
|
+
*,
|
|
1559
|
+
dont_inherit: bool = False,
|
|
1560
|
+
optimize: int = -1,
|
|
1561
|
+
_feature_version: int = -1,
|
|
1562
|
+
) -> CodeType: ...
|
|
1563
|
+
@overload
|
|
1564
|
+
def compile(
|
|
1565
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1566
|
+
filename: str | bytes | PathLike[Any],
|
|
1567
|
+
mode: str,
|
|
1568
|
+
flags: Literal[1024],
|
|
1569
|
+
dont_inherit: bool = False,
|
|
1570
|
+
optimize: int = -1,
|
|
1571
|
+
*,
|
|
1572
|
+
_feature_version: int = -1,
|
|
1573
|
+
) -> _ast.AST: ...
|
|
1574
|
+
@overload
|
|
1575
|
+
def compile(
|
|
1576
|
+
source: str | ReadableBuffer | _ast.Module | _ast.Expression | _ast.Interactive,
|
|
1577
|
+
filename: str | bytes | PathLike[Any],
|
|
1578
|
+
mode: str,
|
|
1579
|
+
flags: int,
|
|
1580
|
+
dont_inherit: bool = False,
|
|
1581
|
+
optimize: int = -1,
|
|
1582
|
+
*,
|
|
1583
|
+
_feature_version: int = -1,
|
|
1584
|
+
) -> Any: ...
|
|
1585
|
+
|
|
1586
|
+
copyright: _sitebuiltins._Printer
|
|
1587
|
+
credits: _sitebuiltins._Printer
|
|
1588
|
+
|
|
1589
|
+
def delattr(obj: object, name: str, /) -> None: ...
|
|
1590
|
+
def dir(o: object = ..., /) -> list[str]: ...
|
|
1591
|
+
|
|
1592
|
+
@overload
|
|
1593
|
+
def divmod(x: SupportsDivMod[_T_contra, _T_co], y: _T_contra, /) -> _T_co: ...
|
|
1594
|
+
@overload
|
|
1595
|
+
def divmod(x: _T_contra, y: SupportsRDivMod[_T_contra, _T_co], /) -> _T_co: ...
|
|
1596
|
+
|
|
1597
|
+
# The `globals` argument to `eval` has to be `dict[str, Any]` rather than `dict[str, object]` due to invariance.
|
|
1598
|
+
# (The `globals` argument has to be a "real dict", rather than any old mapping, unlike the `locals` argument.)
|
|
1599
|
+
if sys.version_info >= (3, 15):
|
|
1600
|
+
def eval(
|
|
1601
|
+
source: str | ReadableBuffer | CodeType,
|
|
1602
|
+
/,
|
|
1603
|
+
globals: dict[str, Any] | frozendict[str, Any] | None = None,
|
|
1604
|
+
locals: Mapping[str, object] | None = None,
|
|
1605
|
+
) -> Any: ...
|
|
1606
|
+
|
|
1607
|
+
elif sys.version_info >= (3, 13):
|
|
1608
|
+
def eval(
|
|
1609
|
+
source: str | ReadableBuffer | CodeType,
|
|
1610
|
+
/,
|
|
1611
|
+
globals: dict[str, Any] | None = None,
|
|
1612
|
+
locals: Mapping[str, object] | None = None,
|
|
1613
|
+
) -> Any: ...
|
|
1614
|
+
|
|
1615
|
+
else:
|
|
1616
|
+
def eval(
|
|
1617
|
+
source: str | ReadableBuffer | CodeType,
|
|
1618
|
+
globals: dict[str, Any] | None = None,
|
|
1619
|
+
locals: Mapping[str, object] | None = None,
|
|
1620
|
+
/,
|
|
1621
|
+
) -> Any: ...
|
|
1622
|
+
|
|
1623
|
+
# Comment above regarding `eval` applies to `exec` as well
|
|
1624
|
+
if sys.version_info >= (3, 15):
|
|
1625
|
+
def exec(
|
|
1626
|
+
source: str | ReadableBuffer | CodeType,
|
|
1627
|
+
/,
|
|
1628
|
+
globals: dict[str, Any] | frozendict[str, Any] | None = None,
|
|
1629
|
+
locals: Mapping[str, object] | None = None,
|
|
1630
|
+
*,
|
|
1631
|
+
closure: tuple[CellType, ...] | None = None,
|
|
1632
|
+
) -> None: ...
|
|
1633
|
+
|
|
1634
|
+
elif sys.version_info >= (3, 13):
|
|
1635
|
+
def exec(
|
|
1636
|
+
source: str | ReadableBuffer | CodeType,
|
|
1637
|
+
/,
|
|
1638
|
+
globals: dict[str, Any] | None = None,
|
|
1639
|
+
locals: Mapping[str, object] | None = None,
|
|
1640
|
+
*,
|
|
1641
|
+
closure: tuple[CellType, ...] | None = None,
|
|
1642
|
+
) -> None: ...
|
|
1643
|
+
|
|
1644
|
+
elif sys.version_info >= (3, 11):
|
|
1645
|
+
def exec(
|
|
1646
|
+
source: str | ReadableBuffer | CodeType,
|
|
1647
|
+
globals: dict[str, Any] | None = None,
|
|
1648
|
+
locals: Mapping[str, object] | None = None,
|
|
1649
|
+
/,
|
|
1650
|
+
*,
|
|
1651
|
+
closure: tuple[CellType, ...] | None = None,
|
|
1652
|
+
) -> None: ...
|
|
1653
|
+
|
|
1654
|
+
else:
|
|
1655
|
+
def exec(
|
|
1656
|
+
source: str | ReadableBuffer | CodeType,
|
|
1657
|
+
globals: dict[str, Any] | None = None,
|
|
1658
|
+
locals: Mapping[str, object] | None = None,
|
|
1659
|
+
/,
|
|
1660
|
+
) -> None: ...
|
|
1661
|
+
|
|
1662
|
+
exit: _sitebuiltins.Quitter
|
|
1663
|
+
|
|
1664
|
+
@disjoint_base
|
|
1665
|
+
class filter(Iterator[_T]):
|
|
1666
|
+
@overload
|
|
1667
|
+
def __new__(cls, function: None, iterable: Iterable[_T | None], /) -> Self: ...
|
|
1668
|
+
@overload
|
|
1669
|
+
def __new__(cls, function: Callable[[_S], TypeGuard[_T]], iterable: Iterable[_S], /) -> Self: ...
|
|
1670
|
+
@overload
|
|
1671
|
+
def __new__(cls, function: Callable[[_S], TypeIs[_T]], iterable: Iterable[_S], /) -> Self: ...
|
|
1672
|
+
@overload
|
|
1673
|
+
def __new__(cls, function: Callable[[_T], Any], iterable: Iterable[_T], /) -> Self: ...
|
|
1674
|
+
|
|
1675
|
+
def __iter__(self) -> Self: ...
|
|
1676
|
+
def __next__(self) -> _T: ...
|
|
1677
|
+
|
|
1678
|
+
def format(value: object, format_spec: str = "", /) -> str: ...
|
|
1679
|
+
|
|
1680
|
+
@overload
|
|
1681
|
+
def getattr(o: object, name: str, /) -> Any: ...
|
|
1682
|
+
|
|
1683
|
+
# While technically covered by the last overload, spelling out the types for None, bool
|
|
1684
|
+
# and basic containers help mypy out in some tricky situations involving type context
|
|
1685
|
+
# (aka bidirectional inference)
|
|
1686
|
+
@overload
|
|
1687
|
+
def getattr(o: object, name: str, default: None, /) -> Any | None: ...
|
|
1688
|
+
@overload
|
|
1689
|
+
def getattr(o: object, name: str, default: bool, /) -> Any | bool: ...
|
|
1690
|
+
@overload
|
|
1691
|
+
def getattr(o: object, name: str, default: list[Any], /) -> Any | list[Any]: ...
|
|
1692
|
+
@overload
|
|
1693
|
+
def getattr(o: object, name: str, default: dict[Any, Any], /) -> Any | dict[Any, Any]: ...
|
|
1694
|
+
@overload
|
|
1695
|
+
def getattr(o: object, name: str, default: _T, /) -> Any | _T: ...
|
|
1696
|
+
|
|
1697
|
+
def globals() -> dict[str, Any]: ...
|
|
1698
|
+
def hasattr(obj: object, name: str, /) -> bool: ...
|
|
1699
|
+
def hash(obj: object, /) -> int: ...
|
|
1700
|
+
|
|
1701
|
+
help: _sitebuiltins._Helper
|
|
1702
|
+
|
|
1703
|
+
if sys.version_info >= (3, 15):
|
|
1704
|
+
def hex(integer: SupportsIndex, /) -> str: ...
|
|
1705
|
+
|
|
1706
|
+
else:
|
|
1707
|
+
def hex(number: SupportsIndex, /) -> str: ...
|
|
1708
|
+
|
|
1709
|
+
def id(obj: object, /) -> int: ...
|
|
1710
|
+
def input(prompt: object = "", /) -> str: ...
|
|
1711
|
+
|
|
1712
|
+
@type_check_only
|
|
1713
|
+
class _GetItemIterable(Protocol[_T_co]):
|
|
1714
|
+
def __getitem__(self, i: int, /) -> _T_co: ...
|
|
1715
|
+
|
|
1716
|
+
@overload
|
|
1717
|
+
def iter(object: SupportsIter[_SupportsNextT_co], /) -> _SupportsNextT_co: ...
|
|
1718
|
+
@overload
|
|
1719
|
+
def iter(object: _GetItemIterable[_T], /) -> Iterator[_T]: ...
|
|
1720
|
+
@overload
|
|
1721
|
+
def iter(object: Callable[[], _T | None], sentinel: None, /) -> Iterator[_T]: ...
|
|
1722
|
+
@overload
|
|
1723
|
+
def iter(object: Callable[[], _T], sentinel: object, /) -> Iterator[_T]: ...
|
|
1724
|
+
|
|
1725
|
+
_ClassInfo: TypeAlias = type | types.UnionType | tuple[_ClassInfo, ...]
|
|
1726
|
+
|
|
1727
|
+
def isinstance(obj: object, class_or_tuple: _ClassInfo, /) -> bool: ...
|
|
1728
|
+
def issubclass(cls: type, class_or_tuple: _ClassInfo, /) -> bool: ...
|
|
1729
|
+
def len(obj: Sized, /) -> int: ...
|
|
1730
|
+
|
|
1731
|
+
license: _sitebuiltins._Printer
|
|
1732
|
+
|
|
1733
|
+
def locals() -> dict[str, Any]: ...
|
|
1734
|
+
|
|
1735
|
+
@disjoint_base
|
|
1736
|
+
class map(Iterator[_S]):
|
|
1737
|
+
# 3.14 adds `strict` argument.
|
|
1738
|
+
if sys.version_info >= (3, 14):
|
|
1739
|
+
@overload
|
|
1740
|
+
def __new__(cls, func: Callable[[_T1], _S], iterable: Iterable[_T1], /, *, strict: bool = False) -> Self: ...
|
|
1741
|
+
@overload
|
|
1742
|
+
def __new__(
|
|
1743
|
+
cls, func: Callable[[_T1, _T2], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], /, *, strict: bool = False
|
|
1744
|
+
) -> Self: ...
|
|
1745
|
+
@overload
|
|
1746
|
+
def __new__(
|
|
1747
|
+
cls,
|
|
1748
|
+
func: Callable[[_T1, _T2, _T3], _S],
|
|
1749
|
+
iterable: Iterable[_T1],
|
|
1750
|
+
iter2: Iterable[_T2],
|
|
1751
|
+
iter3: Iterable[_T3],
|
|
1752
|
+
/,
|
|
1753
|
+
*,
|
|
1754
|
+
strict: bool = False,
|
|
1755
|
+
) -> Self: ...
|
|
1756
|
+
@overload
|
|
1757
|
+
def __new__(
|
|
1758
|
+
cls,
|
|
1759
|
+
func: Callable[[_T1, _T2, _T3, _T4], _S],
|
|
1760
|
+
iterable: Iterable[_T1],
|
|
1761
|
+
iter2: Iterable[_T2],
|
|
1762
|
+
iter3: Iterable[_T3],
|
|
1763
|
+
iter4: Iterable[_T4],
|
|
1764
|
+
/,
|
|
1765
|
+
*,
|
|
1766
|
+
strict: bool = False,
|
|
1767
|
+
) -> Self: ...
|
|
1768
|
+
@overload
|
|
1769
|
+
def __new__(
|
|
1770
|
+
cls,
|
|
1771
|
+
func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
|
|
1772
|
+
iterable: Iterable[_T1],
|
|
1773
|
+
iter2: Iterable[_T2],
|
|
1774
|
+
iter3: Iterable[_T3],
|
|
1775
|
+
iter4: Iterable[_T4],
|
|
1776
|
+
iter5: Iterable[_T5],
|
|
1777
|
+
/,
|
|
1778
|
+
*,
|
|
1779
|
+
strict: bool = False,
|
|
1780
|
+
) -> Self: ...
|
|
1781
|
+
@overload
|
|
1782
|
+
def __new__(
|
|
1783
|
+
cls,
|
|
1784
|
+
func: Callable[..., _S],
|
|
1785
|
+
iterable: Iterable[Any],
|
|
1786
|
+
iter2: Iterable[Any],
|
|
1787
|
+
iter3: Iterable[Any],
|
|
1788
|
+
iter4: Iterable[Any],
|
|
1789
|
+
iter5: Iterable[Any],
|
|
1790
|
+
iter6: Iterable[Any],
|
|
1791
|
+
/,
|
|
1792
|
+
*iterables: Iterable[Any],
|
|
1793
|
+
strict: bool = False,
|
|
1794
|
+
) -> Self: ...
|
|
1795
|
+
else:
|
|
1796
|
+
@overload
|
|
1797
|
+
def __new__(cls, func: Callable[[_T1], _S], iterable: Iterable[_T1], /) -> Self: ...
|
|
1798
|
+
@overload
|
|
1799
|
+
def __new__(cls, func: Callable[[_T1, _T2], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], /) -> Self: ...
|
|
1800
|
+
@overload
|
|
1801
|
+
def __new__(
|
|
1802
|
+
cls, func: Callable[[_T1, _T2, _T3], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], /
|
|
1803
|
+
) -> Self: ...
|
|
1804
|
+
@overload
|
|
1805
|
+
def __new__(
|
|
1806
|
+
cls,
|
|
1807
|
+
func: Callable[[_T1, _T2, _T3, _T4], _S],
|
|
1808
|
+
iterable: Iterable[_T1],
|
|
1809
|
+
iter2: Iterable[_T2],
|
|
1810
|
+
iter3: Iterable[_T3],
|
|
1811
|
+
iter4: Iterable[_T4],
|
|
1812
|
+
/,
|
|
1813
|
+
) -> Self: ...
|
|
1814
|
+
@overload
|
|
1815
|
+
def __new__(
|
|
1816
|
+
cls,
|
|
1817
|
+
func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
|
|
1818
|
+
iterable: Iterable[_T1],
|
|
1819
|
+
iter2: Iterable[_T2],
|
|
1820
|
+
iter3: Iterable[_T3],
|
|
1821
|
+
iter4: Iterable[_T4],
|
|
1822
|
+
iter5: Iterable[_T5],
|
|
1823
|
+
/,
|
|
1824
|
+
) -> Self: ...
|
|
1825
|
+
@overload
|
|
1826
|
+
def __new__(
|
|
1827
|
+
cls,
|
|
1828
|
+
func: Callable[..., _S],
|
|
1829
|
+
iterable: Iterable[Any],
|
|
1830
|
+
iter2: Iterable[Any],
|
|
1831
|
+
iter3: Iterable[Any],
|
|
1832
|
+
iter4: Iterable[Any],
|
|
1833
|
+
iter5: Iterable[Any],
|
|
1834
|
+
iter6: Iterable[Any],
|
|
1835
|
+
/,
|
|
1836
|
+
*iterables: Iterable[Any],
|
|
1837
|
+
) -> Self: ...
|
|
1838
|
+
|
|
1839
|
+
def __iter__(self) -> Self: ...
|
|
1840
|
+
def __next__(self) -> _S: ...
|
|
1841
|
+
|
|
1842
|
+
@overload
|
|
1843
|
+
def max(
|
|
1844
|
+
arg1: SupportsRichComparisonT, arg2: SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, key: None = None
|
|
1845
|
+
) -> SupportsRichComparisonT: ...
|
|
1846
|
+
@overload
|
|
1847
|
+
def max(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
|
|
1848
|
+
@overload
|
|
1849
|
+
def max(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None) -> SupportsRichComparisonT: ...
|
|
1850
|
+
@overload
|
|
1851
|
+
def max(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
|
|
1852
|
+
@overload
|
|
1853
|
+
def max(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, default: _T) -> SupportsRichComparisonT | _T: ...
|
|
1854
|
+
@overload
|
|
1855
|
+
def max(iterable: Iterable[_T1], /, *, key: Callable[[_T1], SupportsRichComparison], default: _T2) -> _T1 | _T2: ...
|
|
1856
|
+
|
|
1857
|
+
@overload
|
|
1858
|
+
def min(
|
|
1859
|
+
arg1: SupportsRichComparisonT, arg2: SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, key: None = None
|
|
1860
|
+
) -> SupportsRichComparisonT: ...
|
|
1861
|
+
@overload
|
|
1862
|
+
def min(arg1: _T, arg2: _T, /, *_args: _T, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
|
|
1863
|
+
@overload
|
|
1864
|
+
def min(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None) -> SupportsRichComparisonT: ...
|
|
1865
|
+
@overload
|
|
1866
|
+
def min(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichComparison]) -> _T: ...
|
|
1867
|
+
@overload
|
|
1868
|
+
def min(iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, default: _T) -> SupportsRichComparisonT | _T: ...
|
|
1869
|
+
@overload
|
|
1870
|
+
def min(iterable: Iterable[_T1], /, *, key: Callable[[_T1], SupportsRichComparison], default: _T2) -> _T1 | _T2: ...
|
|
1871
|
+
|
|
1872
|
+
@overload
|
|
1873
|
+
def next(i: SupportsNext[_T], /) -> _T: ...
|
|
1874
|
+
@overload
|
|
1875
|
+
def next(i: SupportsNext[_T], default: _VT, /) -> _T | _VT: ...
|
|
1876
|
+
|
|
1877
|
+
if sys.version_info >= (3, 15):
|
|
1878
|
+
def oct(integer: SupportsIndex, /) -> str: ...
|
|
1879
|
+
|
|
1880
|
+
else:
|
|
1881
|
+
def oct(number: SupportsIndex, /) -> str: ...
|
|
1882
|
+
|
|
1883
|
+
_Opener: TypeAlias = Callable[[str, int], int]
|
|
1884
|
+
|
|
1885
|
+
# Text mode: always returns a TextIOWrapper
|
|
1886
|
+
@overload
|
|
1887
|
+
def open(
|
|
1888
|
+
file: FileDescriptorOrPath,
|
|
1889
|
+
mode: OpenTextMode = "r",
|
|
1890
|
+
buffering: int = -1,
|
|
1891
|
+
encoding: str | None = None,
|
|
1892
|
+
errors: str | None = None,
|
|
1893
|
+
newline: str | None = None,
|
|
1894
|
+
closefd: bool = True,
|
|
1895
|
+
opener: _Opener | None = None,
|
|
1896
|
+
) -> TextIOWrapper: ...
|
|
1897
|
+
|
|
1898
|
+
# Unbuffered binary mode: returns a FileIO
|
|
1899
|
+
@overload
|
|
1900
|
+
def open(
|
|
1901
|
+
file: FileDescriptorOrPath,
|
|
1902
|
+
mode: OpenBinaryMode,
|
|
1903
|
+
buffering: Literal[0],
|
|
1904
|
+
encoding: None = None,
|
|
1905
|
+
errors: None = None,
|
|
1906
|
+
newline: None = None,
|
|
1907
|
+
closefd: bool = True,
|
|
1908
|
+
opener: _Opener | None = None,
|
|
1909
|
+
) -> FileIO: ...
|
|
1910
|
+
|
|
1911
|
+
# Buffering is on: return BufferedRandom, BufferedReader, or BufferedWriter
|
|
1912
|
+
@overload
|
|
1913
|
+
def open(
|
|
1914
|
+
file: FileDescriptorOrPath,
|
|
1915
|
+
mode: OpenBinaryModeUpdating,
|
|
1916
|
+
buffering: Literal[-1, 1] = -1,
|
|
1917
|
+
encoding: None = None,
|
|
1918
|
+
errors: None = None,
|
|
1919
|
+
newline: None = None,
|
|
1920
|
+
closefd: bool = True,
|
|
1921
|
+
opener: _Opener | None = None,
|
|
1922
|
+
) -> BufferedRandom: ...
|
|
1923
|
+
@overload
|
|
1924
|
+
def open(
|
|
1925
|
+
file: FileDescriptorOrPath,
|
|
1926
|
+
mode: OpenBinaryModeWriting,
|
|
1927
|
+
buffering: Literal[-1, 1] = -1,
|
|
1928
|
+
encoding: None = None,
|
|
1929
|
+
errors: None = None,
|
|
1930
|
+
newline: None = None,
|
|
1931
|
+
closefd: bool = True,
|
|
1932
|
+
opener: _Opener | None = None,
|
|
1933
|
+
) -> BufferedWriter: ...
|
|
1934
|
+
@overload
|
|
1935
|
+
def open(
|
|
1936
|
+
file: FileDescriptorOrPath,
|
|
1937
|
+
mode: OpenBinaryModeReading,
|
|
1938
|
+
buffering: Literal[-1, 1] = -1,
|
|
1939
|
+
encoding: None = None,
|
|
1940
|
+
errors: None = None,
|
|
1941
|
+
newline: None = None,
|
|
1942
|
+
closefd: bool = True,
|
|
1943
|
+
opener: _Opener | None = None,
|
|
1944
|
+
) -> BufferedReader: ...
|
|
1945
|
+
|
|
1946
|
+
# Buffering cannot be determined: fall back to BinaryIO
|
|
1947
|
+
@overload
|
|
1948
|
+
def open(
|
|
1949
|
+
file: FileDescriptorOrPath,
|
|
1950
|
+
mode: OpenBinaryMode,
|
|
1951
|
+
buffering: int = -1,
|
|
1952
|
+
encoding: None = None,
|
|
1953
|
+
errors: None = None,
|
|
1954
|
+
newline: None = None,
|
|
1955
|
+
closefd: bool = True,
|
|
1956
|
+
opener: _Opener | None = None,
|
|
1957
|
+
) -> BinaryIO: ...
|
|
1958
|
+
|
|
1959
|
+
# Fallback if mode is not specified
|
|
1960
|
+
@overload
|
|
1961
|
+
def open(
|
|
1962
|
+
file: FileDescriptorOrPath,
|
|
1963
|
+
mode: str,
|
|
1964
|
+
buffering: int = -1,
|
|
1965
|
+
encoding: str | None = None,
|
|
1966
|
+
errors: str | None = None,
|
|
1967
|
+
newline: str | None = None,
|
|
1968
|
+
closefd: bool = True,
|
|
1969
|
+
opener: _Opener | None = None,
|
|
1970
|
+
) -> IO[Any]: ...
|
|
1971
|
+
|
|
1972
|
+
def ord(c: str | bytes | bytearray, /) -> int: ...
|
|
1973
|
+
|
|
1974
|
+
@type_check_only
|
|
1975
|
+
class _SupportsWriteAndFlush(SupportsWrite[_T_contra], SupportsFlush, Protocol[_T_contra]): ...
|
|
1976
|
+
|
|
1977
|
+
@overload
|
|
1978
|
+
def print(
|
|
1979
|
+
*values: object,
|
|
1980
|
+
sep: str | None = " ",
|
|
1981
|
+
end: str | None = "\n",
|
|
1982
|
+
file: SupportsWrite[str] | None = None,
|
|
1983
|
+
flush: Literal[False] = False,
|
|
1984
|
+
) -> None: ...
|
|
1985
|
+
@overload
|
|
1986
|
+
def print(
|
|
1987
|
+
*values: object, sep: str | None = " ", end: str | None = "\n", file: _SupportsWriteAndFlush[str] | None = None, flush: bool
|
|
1988
|
+
) -> None: ...
|
|
1989
|
+
|
|
1990
|
+
_E_contra = TypeVar("_E_contra", contravariant=True)
|
|
1991
|
+
_M_contra = TypeVar("_M_contra", contravariant=True)
|
|
1992
|
+
|
|
1993
|
+
@type_check_only
|
|
1994
|
+
class _SupportsPow2(Protocol[_E_contra, _T_co]):
|
|
1995
|
+
def __pow__(self, other: _E_contra, /) -> _T_co: ...
|
|
1996
|
+
|
|
1997
|
+
@type_check_only
|
|
1998
|
+
class _SupportsPow3NoneOnly(Protocol[_E_contra, _T_co]):
|
|
1999
|
+
def __pow__(self, other: _E_contra, modulo: None = None, /) -> _T_co: ...
|
|
2000
|
+
|
|
2001
|
+
@type_check_only
|
|
2002
|
+
class _SupportsPow3(Protocol[_E_contra, _M_contra, _T_co]):
|
|
2003
|
+
def __pow__(self, other: _E_contra, modulo: _M_contra, /) -> _T_co: ...
|
|
2004
|
+
|
|
2005
|
+
_SupportsSomeKindOfPow = ( # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
|
|
2006
|
+
_SupportsPow2[Any, Any] | _SupportsPow3NoneOnly[Any, Any] | _SupportsPow3[Any, Any, Any]
|
|
2007
|
+
)
|
|
2008
|
+
|
|
2009
|
+
# TODO: `pow(int, int, Literal[0])` fails at runtime,
|
|
2010
|
+
# but adding a `Never` overload isn't a good solution for expressing that (see #8566).
|
|
2011
|
+
@overload
|
|
2012
|
+
def pow(base: int, exp: int, mod: int) -> int: ...
|
|
2013
|
+
@overload
|
|
2014
|
+
def pow(base: int, exp: Literal[0], mod: None = None) -> Literal[1]: ...
|
|
2015
|
+
@overload
|
|
2016
|
+
def pow(base: int, exp: _PositiveInteger, mod: None = None) -> int: ...
|
|
2017
|
+
@overload
|
|
2018
|
+
def pow(base: int, exp: _NegativeInteger, mod: None = None) -> float: ...
|
|
2019
|
+
|
|
2020
|
+
# int base & positive-int exp -> int; int base & negative-int exp -> float
|
|
2021
|
+
# return type must be Any as `int | float` causes too many false-positive errors
|
|
2022
|
+
@overload
|
|
2023
|
+
def pow(base: int, exp: int, mod: None = None) -> Any: ...
|
|
2024
|
+
@overload
|
|
2025
|
+
def pow(base: _PositiveInteger, exp: float, mod: None = None) -> float: ...
|
|
2026
|
+
@overload
|
|
2027
|
+
def pow(base: _NegativeInteger, exp: float, mod: None = None) -> complex: ...
|
|
2028
|
+
@overload
|
|
2029
|
+
def pow(base: float, exp: int, mod: None = None) -> float: ...
|
|
2030
|
+
|
|
2031
|
+
# float base & float exp could return float or complex
|
|
2032
|
+
# return type must be Any (same as complex base, complex exp),
|
|
2033
|
+
# as `float | complex` causes too many false-positive errors
|
|
2034
|
+
@overload
|
|
2035
|
+
def pow(base: float, exp: complex | _SupportsSomeKindOfPow, mod: None = None) -> Any: ...
|
|
2036
|
+
@overload
|
|
2037
|
+
def pow(base: complex, exp: complex | _SupportsSomeKindOfPow, mod: None = None) -> complex: ...
|
|
2038
|
+
@overload
|
|
2039
|
+
def pow(base: _SupportsPow2[_E_contra, _T_co], exp: _E_contra, mod: None = None) -> _T_co: ... # type: ignore[overload-overlap]
|
|
2040
|
+
@overload
|
|
2041
|
+
def pow(base: _SupportsPow3NoneOnly[_E_contra, _T_co], exp: _E_contra, mod: None = None) -> _T_co: ... # type: ignore[overload-overlap]
|
|
2042
|
+
@overload
|
|
2043
|
+
def pow(base: _SupportsPow3[_E_contra, _M_contra, _T_co], exp: _E_contra, mod: _M_contra) -> _T_co: ...
|
|
2044
|
+
@overload
|
|
2045
|
+
def pow(base: _SupportsSomeKindOfPow, exp: float, mod: None = None) -> Any: ...
|
|
2046
|
+
@overload
|
|
2047
|
+
def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) -> complex: ...
|
|
2048
|
+
|
|
2049
|
+
quit: _sitebuiltins.Quitter
|
|
2050
|
+
|
|
2051
|
+
@type_check_only
|
|
2052
|
+
class _SupportsReversed(Protocol[_T_co]):
|
|
2053
|
+
def __reversed__(self) -> _T_co: ...
|
|
2054
|
+
|
|
2055
|
+
@disjoint_base
|
|
2056
|
+
class reversed(Iterator[_T_co]):
|
|
2057
|
+
@overload
|
|
2058
|
+
def __new__(cls, sequence: _SupportsReversed[_T], /) -> _T: ... # type: ignore[misc]
|
|
2059
|
+
@overload
|
|
2060
|
+
def __new__(cls, sequence: SupportsLenAndGetItem[_T_co], /) -> Self: ...
|
|
2061
|
+
|
|
2062
|
+
def __iter__(self) -> Self: ...
|
|
2063
|
+
def __next__(self) -> _T_co: ...
|
|
2064
|
+
def __length_hint__(self) -> int: ...
|
|
2065
|
+
|
|
2066
|
+
def repr(obj: object, /) -> str: ...
|
|
2067
|
+
|
|
2068
|
+
# See https://github.com/python/typeshed/pull/9141
|
|
2069
|
+
# and https://github.com/python/typeshed/pull/9151
|
|
2070
|
+
# on why we don't use `SupportsRound` from `typing.pyi`
|
|
2071
|
+
|
|
2072
|
+
@type_check_only
|
|
2073
|
+
class _SupportsRound1(Protocol[_T_co]):
|
|
2074
|
+
def __round__(self) -> _T_co: ...
|
|
2075
|
+
|
|
2076
|
+
@type_check_only
|
|
2077
|
+
class _SupportsRound2(Protocol[_T_co]):
|
|
2078
|
+
def __round__(self, ndigits: int, /) -> _T_co: ...
|
|
2079
|
+
|
|
2080
|
+
@overload
|
|
2081
|
+
def round(number: _SupportsRound1[_T], ndigits: None = None) -> _T: ...
|
|
2082
|
+
@overload
|
|
2083
|
+
def round(number: _SupportsRound2[_T], ndigits: SupportsIndex) -> _T: ...
|
|
2084
|
+
|
|
2085
|
+
# See https://github.com/python/typeshed/pull/6292#discussion_r748875189
|
|
2086
|
+
# for why arg 3 of `setattr` should be annotated with `Any` and not `object`
|
|
2087
|
+
def setattr(obj: object, name: str, value: Any, /) -> None: ...
|
|
2088
|
+
|
|
2089
|
+
if sys.version_info >= (3, 15):
|
|
2090
|
+
@final
|
|
2091
|
+
class sentinel:
|
|
2092
|
+
__name__: str
|
|
2093
|
+
__module__: str
|
|
2094
|
+
def __new__(cls, name: str, /, *, repr: str | None = None) -> sentinel: ...
|
|
2095
|
+
def __copy__(self, /) -> sentinel: ...
|
|
2096
|
+
def __deepcopy__(self, memo: Any, /) -> sentinel: ...
|
|
2097
|
+
# `other` can be any legal form for unions.
|
|
2098
|
+
# `x | x` creates a `sentinel` instance if `x` is a sentinel, not a `UnionType` instance.
|
|
2099
|
+
def __or__(self, other: Any, /) -> UnionType | sentinel: ...
|
|
2100
|
+
def __ror__(self, other: Any, /) -> UnionType | sentinel: ...
|
|
2101
|
+
|
|
2102
|
+
@overload
|
|
2103
|
+
def sorted(
|
|
2104
|
+
iterable: Iterable[SupportsRichComparisonT], /, *, key: None = None, reverse: bool = False
|
|
2105
|
+
) -> list[SupportsRichComparisonT]: ...
|
|
2106
|
+
@overload
|
|
2107
|
+
def sorted(iterable: Iterable[_T], /, *, key: Callable[[_T], SupportsRichComparison], reverse: bool = False) -> list[_T]: ...
|
|
2108
|
+
|
|
2109
|
+
_AddableT1 = TypeVar("_AddableT1", bound=SupportsAdd[Any, Any])
|
|
2110
|
+
_AddableT2 = TypeVar("_AddableT2", bound=SupportsAdd[Any, Any])
|
|
2111
|
+
|
|
2112
|
+
@type_check_only
|
|
2113
|
+
class _SupportsSumWithNoDefaultGiven(SupportsAdd[Any, Any], SupportsRAdd[int, Any], Protocol): ...
|
|
2114
|
+
|
|
2115
|
+
_SupportsSumNoDefaultT = TypeVar("_SupportsSumNoDefaultT", bound=_SupportsSumWithNoDefaultGiven)
|
|
2116
|
+
|
|
2117
|
+
# In general, the return type of `x + x` is *not* guaranteed to be the same type as x.
|
|
2118
|
+
# However, we can't express that in the stub for `sum()`
|
|
2119
|
+
# without creating many false-positive errors (see #7578).
|
|
2120
|
+
# Instead, we special-case the most common examples of this: bool and literal integers.
|
|
2121
|
+
@overload
|
|
2122
|
+
def sum(iterable: Iterable[bool], /, start: int = 0) -> int: ...
|
|
2123
|
+
@overload
|
|
2124
|
+
def sum(iterable: Iterable[_SupportsSumNoDefaultT], /) -> _SupportsSumNoDefaultT | Literal[0]: ...
|
|
2125
|
+
@overload
|
|
2126
|
+
def sum(iterable: Iterable[_AddableT1], /, start: _AddableT2) -> _AddableT1 | _AddableT2: ...
|
|
2127
|
+
|
|
2128
|
+
# The argument to `vars()` has to have a `__dict__` attribute, so the second overload can't be annotated with `object`
|
|
2129
|
+
# (A "SupportsDunderDict" protocol doesn't work)
|
|
2130
|
+
@overload
|
|
2131
|
+
def vars(object: type, /) -> types.MappingProxyType[str, Any]: ...
|
|
2132
|
+
@overload
|
|
2133
|
+
def vars(object: Any = ..., /) -> dict[str, Any]: ...
|
|
2134
|
+
|
|
2135
|
+
@disjoint_base
|
|
2136
|
+
class zip(Iterator[_T_co]):
|
|
2137
|
+
@overload
|
|
2138
|
+
def __new__(cls, *, strict: bool = False) -> zip[Any]: ...
|
|
2139
|
+
@overload
|
|
2140
|
+
def __new__(cls, iter1: Iterable[_T1], /, *, strict: bool = False) -> zip[tuple[_T1]]: ...
|
|
2141
|
+
@overload
|
|
2142
|
+
def __new__(cls, iter1: Iterable[_T1], iter2: Iterable[_T2], /, *, strict: bool = False) -> zip[tuple[_T1, _T2]]: ...
|
|
2143
|
+
@overload
|
|
2144
|
+
def __new__(
|
|
2145
|
+
cls, iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], /, *, strict: bool = False
|
|
2146
|
+
) -> zip[tuple[_T1, _T2, _T3]]: ...
|
|
2147
|
+
@overload
|
|
2148
|
+
def __new__(
|
|
2149
|
+
cls, iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4], /, *, strict: bool = False
|
|
2150
|
+
) -> zip[tuple[_T1, _T2, _T3, _T4]]: ...
|
|
2151
|
+
@overload
|
|
2152
|
+
def __new__(
|
|
2153
|
+
cls,
|
|
2154
|
+
iter1: Iterable[_T1],
|
|
2155
|
+
iter2: Iterable[_T2],
|
|
2156
|
+
iter3: Iterable[_T3],
|
|
2157
|
+
iter4: Iterable[_T4],
|
|
2158
|
+
iter5: Iterable[_T5],
|
|
2159
|
+
/,
|
|
2160
|
+
*,
|
|
2161
|
+
strict: bool = False,
|
|
2162
|
+
) -> zip[tuple[_T1, _T2, _T3, _T4, _T5]]: ...
|
|
2163
|
+
@overload
|
|
2164
|
+
def __new__(
|
|
2165
|
+
cls,
|
|
2166
|
+
iter1: Iterable[Any],
|
|
2167
|
+
iter2: Iterable[Any],
|
|
2168
|
+
iter3: Iterable[Any],
|
|
2169
|
+
iter4: Iterable[Any],
|
|
2170
|
+
iter5: Iterable[Any],
|
|
2171
|
+
iter6: Iterable[Any],
|
|
2172
|
+
/,
|
|
2173
|
+
*iterables: Iterable[Any],
|
|
2174
|
+
strict: bool = False,
|
|
2175
|
+
) -> zip[tuple[Any, ...]]: ...
|
|
2176
|
+
|
|
2177
|
+
def __iter__(self) -> Self: ...
|
|
2178
|
+
def __next__(self) -> _T_co: ...
|
|
2179
|
+
|
|
2180
|
+
# Signature of `builtins.__import__` should be kept identical to `importlib.__import__`
|
|
2181
|
+
# Return type of `__import__` should be kept the same as return type of `importlib.import_module`
|
|
2182
|
+
def __import__(
|
|
2183
|
+
name: str,
|
|
2184
|
+
globals: Mapping[str, object] | None = None,
|
|
2185
|
+
locals: Mapping[str, object] | None = None,
|
|
2186
|
+
fromlist: Sequence[str] | None = (),
|
|
2187
|
+
level: int = 0,
|
|
2188
|
+
) -> types.ModuleType: ...
|
|
2189
|
+
|
|
2190
|
+
if sys.version_info >= (3, 15):
|
|
2191
|
+
def __lazy_import__(
|
|
2192
|
+
name: str,
|
|
2193
|
+
globals: Mapping[str, object] | None = None,
|
|
2194
|
+
locals: Mapping[str, object] | None = None,
|
|
2195
|
+
fromlist: Sequence[str] | None = (),
|
|
2196
|
+
level: int = 0,
|
|
2197
|
+
) -> Any: ...
|
|
2198
|
+
|
|
2199
|
+
def __build_class__(func: Callable[[], CellType | Any], name: str, /, *bases: Any, metaclass: Any = ..., **kwds: Any) -> Any: ...
|
|
2200
|
+
|
|
2201
|
+
# Backwards compatibility hack for folks who relied on the ellipsis type
|
|
2202
|
+
# existing in typeshed in Python 3.9 and earlier.
|
|
2203
|
+
ellipsis = EllipsisType
|
|
2204
|
+
|
|
2205
|
+
Ellipsis: EllipsisType
|
|
2206
|
+
NotImplemented: NotImplementedType
|
|
2207
|
+
|
|
2208
|
+
@disjoint_base
|
|
2209
|
+
class BaseException:
|
|
2210
|
+
args: tuple[Any, ...]
|
|
2211
|
+
__cause__: BaseException | None
|
|
2212
|
+
__context__: BaseException | None
|
|
2213
|
+
__suppress_context__: bool
|
|
2214
|
+
__traceback__: TracebackType | None
|
|
2215
|
+
def __init__(self, *args: object) -> None: ...
|
|
2216
|
+
def __new__(cls, /, *args: Any, **kwds: Any) -> Self: ...
|
|
2217
|
+
def __setstate__(self, state: dict[str, Any] | None, /) -> None: ...
|
|
2218
|
+
def with_traceback(self, tb: TracebackType | None, /) -> Self: ...
|
|
2219
|
+
# Necessary for security-focused static analyzers (e.g, pysa)
|
|
2220
|
+
# See https://github.com/python/typeshed/pull/14900
|
|
2221
|
+
def __str__(self) -> str: ... # noqa: Y029
|
|
2222
|
+
def __repr__(self) -> str: ... # noqa: Y029
|
|
2223
|
+
if sys.version_info >= (3, 11):
|
|
2224
|
+
# only present after add_note() is called
|
|
2225
|
+
__notes__: list[str]
|
|
2226
|
+
def add_note(self, note: str, /) -> None: ...
|
|
2227
|
+
|
|
2228
|
+
class GeneratorExit(BaseException): ...
|
|
2229
|
+
class KeyboardInterrupt(BaseException): ...
|
|
2230
|
+
|
|
2231
|
+
@disjoint_base
|
|
2232
|
+
class SystemExit(BaseException):
|
|
2233
|
+
code: sys._ExitCode
|
|
2234
|
+
|
|
2235
|
+
class Exception(BaseException): ...
|
|
2236
|
+
|
|
2237
|
+
@disjoint_base
|
|
2238
|
+
class StopIteration(Exception):
|
|
2239
|
+
value: Any
|
|
2240
|
+
|
|
2241
|
+
@disjoint_base
|
|
2242
|
+
class OSError(Exception):
|
|
2243
|
+
errno: int | None
|
|
2244
|
+
strerror: str | None
|
|
2245
|
+
# filename, filename2 are actually str | bytes | None
|
|
2246
|
+
filename: Any
|
|
2247
|
+
filename2: Any
|
|
2248
|
+
if sys.platform == "win32":
|
|
2249
|
+
winerror: int
|
|
2250
|
+
|
|
2251
|
+
EnvironmentError = OSError
|
|
2252
|
+
IOError = OSError
|
|
2253
|
+
if sys.platform == "win32":
|
|
2254
|
+
WindowsError = OSError
|
|
2255
|
+
|
|
2256
|
+
class ArithmeticError(Exception): ...
|
|
2257
|
+
class AssertionError(Exception): ...
|
|
2258
|
+
|
|
2259
|
+
@disjoint_base
|
|
2260
|
+
class AttributeError(Exception):
|
|
2261
|
+
def __init__(self, *args: object, name: str | None = None, obj: object = None) -> None: ...
|
|
2262
|
+
name: str | None
|
|
2263
|
+
obj: object
|
|
2264
|
+
|
|
2265
|
+
class BufferError(Exception): ...
|
|
2266
|
+
class EOFError(Exception): ...
|
|
2267
|
+
|
|
2268
|
+
@disjoint_base
|
|
2269
|
+
class ImportError(Exception):
|
|
2270
|
+
def __init__(self, *args: object, name: str | None = None, path: str | None = None) -> None: ...
|
|
2271
|
+
name: str | None
|
|
2272
|
+
path: str | None
|
|
2273
|
+
msg: str # undocumented
|
|
2274
|
+
if sys.version_info >= (3, 12):
|
|
2275
|
+
name_from: str | None # undocumented
|
|
2276
|
+
|
|
2277
|
+
if sys.version_info >= (3, 15):
|
|
2278
|
+
class ImportCycleError(ImportError): ...
|
|
2279
|
+
|
|
2280
|
+
class LookupError(Exception): ...
|
|
2281
|
+
class MemoryError(Exception): ...
|
|
2282
|
+
|
|
2283
|
+
@disjoint_base
|
|
2284
|
+
class NameError(Exception):
|
|
2285
|
+
def __init__(self, *args: object, name: str | None = None) -> None: ...
|
|
2286
|
+
name: str | None
|
|
2287
|
+
|
|
2288
|
+
class ReferenceError(Exception): ...
|
|
2289
|
+
class RuntimeError(Exception): ...
|
|
2290
|
+
class StopAsyncIteration(Exception): ...
|
|
2291
|
+
|
|
2292
|
+
@disjoint_base
|
|
2293
|
+
class SyntaxError(Exception):
|
|
2294
|
+
msg: str
|
|
2295
|
+
filename: str | None
|
|
2296
|
+
lineno: int | None
|
|
2297
|
+
offset: int | None
|
|
2298
|
+
text: str | None
|
|
2299
|
+
# Errors are displayed differently if this attribute exists on the exception.
|
|
2300
|
+
# The value is always None.
|
|
2301
|
+
print_file_and_line: None
|
|
2302
|
+
end_lineno: int | None
|
|
2303
|
+
end_offset: int | None
|
|
2304
|
+
|
|
2305
|
+
@overload
|
|
2306
|
+
def __init__(self) -> None: ...
|
|
2307
|
+
@overload
|
|
2308
|
+
def __init__(self, msg: object, /) -> None: ...
|
|
2309
|
+
# Second argument is the tuple (filename, lineno, offset, text)
|
|
2310
|
+
@overload
|
|
2311
|
+
def __init__(self, msg: str, info: tuple[str | None, int | None, int | None, str | None], /) -> None: ...
|
|
2312
|
+
# end_lineno and end_offset must both be provided if one is.
|
|
2313
|
+
@overload
|
|
2314
|
+
def __init__(
|
|
2315
|
+
self, msg: str, info: tuple[str | None, int | None, int | None, str | None, int | None, int | None], /
|
|
2316
|
+
) -> None: ...
|
|
2317
|
+
# If you provide more than two arguments, it still creates the SyntaxError, but
|
|
2318
|
+
# the arguments from the info tuple are not parsed. This form is omitted.
|
|
2319
|
+
|
|
2320
|
+
class SystemError(Exception): ...
|
|
2321
|
+
class TypeError(Exception): ...
|
|
2322
|
+
class ValueError(Exception): ...
|
|
2323
|
+
class FloatingPointError(ArithmeticError): ...
|
|
2324
|
+
class OverflowError(ArithmeticError): ...
|
|
2325
|
+
class ZeroDivisionError(ArithmeticError): ...
|
|
2326
|
+
class ModuleNotFoundError(ImportError): ...
|
|
2327
|
+
class IndexError(LookupError): ...
|
|
2328
|
+
class KeyError(LookupError): ...
|
|
2329
|
+
class UnboundLocalError(NameError): ...
|
|
2330
|
+
|
|
2331
|
+
class BlockingIOError(OSError):
|
|
2332
|
+
characters_written: int
|
|
2333
|
+
|
|
2334
|
+
class ChildProcessError(OSError): ...
|
|
2335
|
+
class ConnectionError(OSError): ...
|
|
2336
|
+
class BrokenPipeError(ConnectionError): ...
|
|
2337
|
+
class ConnectionAbortedError(ConnectionError): ...
|
|
2338
|
+
class ConnectionRefusedError(ConnectionError): ...
|
|
2339
|
+
class ConnectionResetError(ConnectionError): ...
|
|
2340
|
+
class FileExistsError(OSError): ...
|
|
2341
|
+
class FileNotFoundError(OSError): ...
|
|
2342
|
+
class InterruptedError(OSError): ...
|
|
2343
|
+
class IsADirectoryError(OSError): ...
|
|
2344
|
+
class NotADirectoryError(OSError): ...
|
|
2345
|
+
class PermissionError(OSError): ...
|
|
2346
|
+
class ProcessLookupError(OSError): ...
|
|
2347
|
+
class TimeoutError(OSError): ...
|
|
2348
|
+
class NotImplementedError(RuntimeError): ...
|
|
2349
|
+
class RecursionError(RuntimeError): ...
|
|
2350
|
+
class IndentationError(SyntaxError): ...
|
|
2351
|
+
class TabError(IndentationError): ...
|
|
2352
|
+
class UnicodeError(ValueError): ...
|
|
2353
|
+
|
|
2354
|
+
@disjoint_base
|
|
2355
|
+
class UnicodeDecodeError(UnicodeError):
|
|
2356
|
+
encoding: str
|
|
2357
|
+
object: bytes
|
|
2358
|
+
start: int
|
|
2359
|
+
end: int
|
|
2360
|
+
reason: str
|
|
2361
|
+
def __init__(self, encoding: str, object: ReadableBuffer, start: int, end: int, reason: str, /) -> None: ...
|
|
2362
|
+
|
|
2363
|
+
@disjoint_base
|
|
2364
|
+
class UnicodeEncodeError(UnicodeError):
|
|
2365
|
+
encoding: str
|
|
2366
|
+
object: str
|
|
2367
|
+
start: int
|
|
2368
|
+
end: int
|
|
2369
|
+
reason: str
|
|
2370
|
+
def __init__(self, encoding: str, object: str, start: int, end: int, reason: str, /) -> None: ...
|
|
2371
|
+
|
|
2372
|
+
@disjoint_base
|
|
2373
|
+
class UnicodeTranslateError(UnicodeError):
|
|
2374
|
+
encoding: None
|
|
2375
|
+
object: str
|
|
2376
|
+
start: int
|
|
2377
|
+
end: int
|
|
2378
|
+
reason: str
|
|
2379
|
+
def __init__(self, object: str, start: int, end: int, reason: str, /) -> None: ...
|
|
2380
|
+
|
|
2381
|
+
class Warning(Exception): ...
|
|
2382
|
+
class UserWarning(Warning): ...
|
|
2383
|
+
class DeprecationWarning(Warning): ...
|
|
2384
|
+
class SyntaxWarning(Warning): ...
|
|
2385
|
+
class RuntimeWarning(Warning): ...
|
|
2386
|
+
class FutureWarning(Warning): ...
|
|
2387
|
+
class PendingDeprecationWarning(Warning): ...
|
|
2388
|
+
class ImportWarning(Warning): ...
|
|
2389
|
+
class UnicodeWarning(Warning): ...
|
|
2390
|
+
class BytesWarning(Warning): ...
|
|
2391
|
+
class ResourceWarning(Warning): ...
|
|
2392
|
+
class EncodingWarning(Warning): ...
|
|
2393
|
+
|
|
2394
|
+
if sys.version_info >= (3, 11):
|
|
2395
|
+
_BaseExceptionT_co = TypeVar("_BaseExceptionT_co", bound=BaseException, covariant=True, default=BaseException)
|
|
2396
|
+
_BaseExceptionT = TypeVar("_BaseExceptionT", bound=BaseException)
|
|
2397
|
+
_ExceptionT_co = TypeVar("_ExceptionT_co", bound=Exception, covariant=True, default=Exception)
|
|
2398
|
+
_ExceptionT = TypeVar("_ExceptionT", bound=Exception)
|
|
2399
|
+
|
|
2400
|
+
# See `check_exception_group.py` for use-cases and comments.
|
|
2401
|
+
@disjoint_base
|
|
2402
|
+
class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]):
|
|
2403
|
+
def __new__(cls, message: str, exceptions: Sequence[_BaseExceptionT_co], /) -> Self: ...
|
|
2404
|
+
def __init__(self, message: str, exceptions: Sequence[_BaseExceptionT_co], /) -> None: ...
|
|
2405
|
+
@property
|
|
2406
|
+
def message(self) -> str: ...
|
|
2407
|
+
@property
|
|
2408
|
+
def exceptions(self) -> tuple[_BaseExceptionT_co | BaseExceptionGroup[_BaseExceptionT_co], ...]: ...
|
|
2409
|
+
|
|
2410
|
+
@overload
|
|
2411
|
+
def subgroup(
|
|
2412
|
+
self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
|
|
2413
|
+
) -> ExceptionGroup[_ExceptionT] | None: ...
|
|
2414
|
+
@overload
|
|
2415
|
+
def subgroup(
|
|
2416
|
+
self, matcher_value: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...], /
|
|
2417
|
+
) -> BaseExceptionGroup[_BaseExceptionT] | None: ...
|
|
2418
|
+
@overload
|
|
2419
|
+
def subgroup(
|
|
2420
|
+
self, matcher_value: Callable[[_BaseExceptionT_co | Self], bool], /
|
|
2421
|
+
) -> BaseExceptionGroup[_BaseExceptionT_co] | None: ...
|
|
2422
|
+
|
|
2423
|
+
@overload
|
|
2424
|
+
def split(
|
|
2425
|
+
self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
|
|
2426
|
+
) -> tuple[ExceptionGroup[_ExceptionT] | None, BaseExceptionGroup[_BaseExceptionT_co] | None]: ...
|
|
2427
|
+
@overload
|
|
2428
|
+
def split(
|
|
2429
|
+
self, matcher_value: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...], /
|
|
2430
|
+
) -> tuple[BaseExceptionGroup[_BaseExceptionT] | None, BaseExceptionGroup[_BaseExceptionT_co] | None]: ...
|
|
2431
|
+
@overload
|
|
2432
|
+
def split(
|
|
2433
|
+
self, matcher_value: Callable[[_BaseExceptionT_co | Self], bool], /
|
|
2434
|
+
) -> tuple[BaseExceptionGroup[_BaseExceptionT_co] | None, BaseExceptionGroup[_BaseExceptionT_co] | None]: ...
|
|
2435
|
+
|
|
2436
|
+
# In reality it is `NonEmptySequence`:
|
|
2437
|
+
@overload
|
|
2438
|
+
def derive(self, excs: Sequence[_ExceptionT], /) -> ExceptionGroup[_ExceptionT]: ...
|
|
2439
|
+
@overload
|
|
2440
|
+
def derive(self, excs: Sequence[_BaseExceptionT], /) -> BaseExceptionGroup[_BaseExceptionT]: ...
|
|
2441
|
+
|
|
2442
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
2443
|
+
|
|
2444
|
+
class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
|
|
2445
|
+
def __new__(cls, message: str, exceptions: Sequence[_ExceptionT_co], /) -> Self: ...
|
|
2446
|
+
def __init__(self, message: str, exceptions: Sequence[_ExceptionT_co], /) -> None: ...
|
|
2447
|
+
@property
|
|
2448
|
+
def exceptions(self) -> tuple[_ExceptionT_co | ExceptionGroup[_ExceptionT_co], ...]: ...
|
|
2449
|
+
|
|
2450
|
+
# We accept a narrower type, but that's OK.
|
|
2451
|
+
@overload # type: ignore[override]
|
|
2452
|
+
def subgroup(
|
|
2453
|
+
self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
|
|
2454
|
+
) -> ExceptionGroup[_ExceptionT] | None: ...
|
|
2455
|
+
@overload
|
|
2456
|
+
def subgroup(
|
|
2457
|
+
self, matcher_value: Callable[[_ExceptionT_co | Self], bool], /
|
|
2458
|
+
) -> ExceptionGroup[_ExceptionT_co] | None: ...
|
|
2459
|
+
|
|
2460
|
+
@overload # type: ignore[override]
|
|
2461
|
+
def split(
|
|
2462
|
+
self, matcher_value: type[_ExceptionT] | tuple[type[_ExceptionT], ...], /
|
|
2463
|
+
) -> tuple[ExceptionGroup[_ExceptionT] | None, ExceptionGroup[_ExceptionT_co] | None]: ...
|
|
2464
|
+
@overload
|
|
2465
|
+
def split(
|
|
2466
|
+
self, matcher_value: Callable[[_ExceptionT_co | Self], bool], /
|
|
2467
|
+
) -> tuple[ExceptionGroup[_ExceptionT_co] | None, ExceptionGroup[_ExceptionT_co] | None]: ...
|
|
2468
|
+
|
|
2469
|
+
if sys.version_info >= (3, 13):
|
|
2470
|
+
class PythonFinalizationError(RuntimeError): ...
|