@gnost-cli/darwin-arm64 0.0.1 → 0.5.1-rc.2
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 +1 -1
- 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 +197 -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.1rc2.dist-info/INSTALLER +1 -0
- package/bundle/_internal/gnost-0.5.1rc2.dist-info/METADATA +130 -0
- package/bundle/_internal/gnost-0.5.1rc2.dist-info/RECORD +178 -0
- package/bundle/_internal/gnost-0.5.1rc2.dist-info/REQUESTED +0 -0
- package/bundle/_internal/gnost-0.5.1rc2.dist-info/WHEEL +5 -0
- package/bundle/_internal/gnost-0.5.1rc2.dist-info/direct_url.json +1 -0
- package/bundle/_internal/gnost-0.5.1rc2.dist-info/entry_points.txt +2 -0
- package/bundle/_internal/gnost-0.5.1rc2.dist-info/licenses/LICENSE +21 -0
- package/bundle/_internal/gnost-0.5.1rc2.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 +10 -7
|
@@ -0,0 +1,1132 @@
|
|
|
1
|
+
"""Server for mypy daemon mode.
|
|
2
|
+
|
|
3
|
+
This implements a daemon process which keeps useful state in memory
|
|
4
|
+
to enable fine-grained incremental reprocessing of changes.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import argparse
|
|
10
|
+
import io
|
|
11
|
+
import json
|
|
12
|
+
import os
|
|
13
|
+
import pickle
|
|
14
|
+
import subprocess
|
|
15
|
+
import sys
|
|
16
|
+
import time
|
|
17
|
+
import traceback
|
|
18
|
+
from collections.abc import Callable, Sequence, Set as AbstractSet
|
|
19
|
+
from contextlib import redirect_stderr, redirect_stdout
|
|
20
|
+
from typing import Any, Final, TypeAlias as _TypeAlias
|
|
21
|
+
|
|
22
|
+
from librt.base64 import b64encode
|
|
23
|
+
|
|
24
|
+
import mypy.build
|
|
25
|
+
import mypy.errors
|
|
26
|
+
import mypy.main
|
|
27
|
+
from mypy.dmypy_util import WriteToConn, receive, send
|
|
28
|
+
from mypy.find_sources import InvalidSourceList, create_source_list
|
|
29
|
+
from mypy.fscache import FileSystemCache
|
|
30
|
+
from mypy.fswatcher import FileData, FileSystemWatcher
|
|
31
|
+
from mypy.inspections import InspectionEngine
|
|
32
|
+
from mypy.ipc import IPCServer
|
|
33
|
+
from mypy.modulefinder import BuildSource, FindModuleCache, SearchPaths, compute_search_paths
|
|
34
|
+
from mypy.options import Options
|
|
35
|
+
from mypy.server.update import FineGrainedBuildManager, refresh_suppressed_submodules
|
|
36
|
+
from mypy.suggestions import SuggestionEngine, SuggestionFailure
|
|
37
|
+
from mypy.typestate import reset_global_state
|
|
38
|
+
from mypy.util import FancyFormatter, count_stats
|
|
39
|
+
from mypy.version import __version__
|
|
40
|
+
|
|
41
|
+
MEM_PROFILE: Final = False # If True, dump memory profile after initialization
|
|
42
|
+
|
|
43
|
+
if sys.platform == "win32":
|
|
44
|
+
from subprocess import STARTUPINFO
|
|
45
|
+
|
|
46
|
+
def daemonize(
|
|
47
|
+
options: Options, status_file: str, timeout: int | None = None, log_file: str | None = None
|
|
48
|
+
) -> int:
|
|
49
|
+
"""Create the daemon process via "dmypy daemon" and pass options via command line
|
|
50
|
+
|
|
51
|
+
When creating the daemon grandchild, we create it in a new console, which is
|
|
52
|
+
started hidden. We cannot use DETACHED_PROCESS since it will cause console windows
|
|
53
|
+
to pop up when starting. See
|
|
54
|
+
https://github.com/python/cpython/pull/4150#issuecomment-340215696
|
|
55
|
+
for more on why we can't have nice things.
|
|
56
|
+
|
|
57
|
+
It also pickles the options to be unpickled by mypy.
|
|
58
|
+
"""
|
|
59
|
+
command = [sys.executable, "-m", "mypy.dmypy", "--status-file", status_file, "daemon"]
|
|
60
|
+
pickled_options = pickle.dumps(options.snapshot())
|
|
61
|
+
command.append(f'--options-data="{b64encode(pickled_options).decode()}"')
|
|
62
|
+
if timeout:
|
|
63
|
+
command.append(f"--timeout={timeout}")
|
|
64
|
+
if log_file:
|
|
65
|
+
command.append(f"--log-file={log_file}")
|
|
66
|
+
info = STARTUPINFO()
|
|
67
|
+
info.dwFlags = 0x1 # STARTF_USESHOWWINDOW aka use wShowWindow's value
|
|
68
|
+
info.wShowWindow = 0 # SW_HIDE aka make the window invisible
|
|
69
|
+
try:
|
|
70
|
+
subprocess.Popen(command, creationflags=0x10, startupinfo=info) # CREATE_NEW_CONSOLE
|
|
71
|
+
return 0
|
|
72
|
+
except subprocess.CalledProcessError as e:
|
|
73
|
+
return e.returncode
|
|
74
|
+
|
|
75
|
+
else:
|
|
76
|
+
|
|
77
|
+
def _daemonize_cb(func: Callable[[], None], log_file: str | None = None) -> int:
|
|
78
|
+
"""Arrange to call func() in a grandchild of the current process.
|
|
79
|
+
|
|
80
|
+
Return 0 for success, exit status for failure, negative if
|
|
81
|
+
subprocess killed by signal.
|
|
82
|
+
"""
|
|
83
|
+
# See https://stackoverflow.com/questions/473620/how-do-you-create-a-daemon-in-python
|
|
84
|
+
sys.stdout.flush()
|
|
85
|
+
sys.stderr.flush()
|
|
86
|
+
pid = os.fork()
|
|
87
|
+
if pid:
|
|
88
|
+
# Parent process: wait for child in case things go bad there.
|
|
89
|
+
npid, sts = os.waitpid(pid, 0)
|
|
90
|
+
sig = sts & 0xFF
|
|
91
|
+
if sig:
|
|
92
|
+
print("Child killed by signal", sig)
|
|
93
|
+
return -sig
|
|
94
|
+
sts = sts >> 8
|
|
95
|
+
if sts:
|
|
96
|
+
print("Child exit status", sts)
|
|
97
|
+
return sts
|
|
98
|
+
# Child process: do a bunch of UNIX stuff and then fork a grandchild.
|
|
99
|
+
try:
|
|
100
|
+
os.setsid() # Detach controlling terminal
|
|
101
|
+
os.umask(0o27)
|
|
102
|
+
devnull = os.open("/dev/null", os.O_RDWR)
|
|
103
|
+
os.dup2(devnull, 0)
|
|
104
|
+
os.dup2(devnull, 1)
|
|
105
|
+
os.dup2(devnull, 2)
|
|
106
|
+
os.close(devnull)
|
|
107
|
+
pid = os.fork()
|
|
108
|
+
if pid:
|
|
109
|
+
# Child is done, exit to parent.
|
|
110
|
+
os._exit(0)
|
|
111
|
+
# Grandchild: run the server.
|
|
112
|
+
if log_file:
|
|
113
|
+
sys.stdout = sys.stderr = open(log_file, "a", buffering=1)
|
|
114
|
+
fd = sys.stdout.fileno()
|
|
115
|
+
os.dup2(fd, 2)
|
|
116
|
+
os.dup2(fd, 1)
|
|
117
|
+
func()
|
|
118
|
+
finally:
|
|
119
|
+
# Make sure we never get back into the caller.
|
|
120
|
+
os._exit(1)
|
|
121
|
+
|
|
122
|
+
def daemonize(
|
|
123
|
+
options: Options, status_file: str, timeout: int | None = None, log_file: str | None = None
|
|
124
|
+
) -> int:
|
|
125
|
+
"""Run the mypy daemon in a grandchild of the current process
|
|
126
|
+
|
|
127
|
+
Return 0 for success, exit status for failure, negative if
|
|
128
|
+
subprocess killed by signal.
|
|
129
|
+
"""
|
|
130
|
+
return _daemonize_cb(Server(options, status_file, timeout).serve, log_file)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
# Server code.
|
|
134
|
+
|
|
135
|
+
CONNECTION_NAME: Final = "dmypy"
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def process_start_options(flags: list[str], allow_sources: bool) -> Options:
|
|
139
|
+
_, options = mypy.main.process_options(
|
|
140
|
+
["-i"] + flags, require_targets=False, server_options=True
|
|
141
|
+
)
|
|
142
|
+
if options.report_dirs:
|
|
143
|
+
print("dmypy: Ignoring report generation settings. Start/restart cannot generate reports.")
|
|
144
|
+
if options.junit_xml:
|
|
145
|
+
print(
|
|
146
|
+
"dmypy: Ignoring report generation settings. "
|
|
147
|
+
"Start/restart does not support --junit-xml. Pass it to check/recheck instead"
|
|
148
|
+
)
|
|
149
|
+
options.junit_xml = None
|
|
150
|
+
if not options.incremental:
|
|
151
|
+
sys.exit("dmypy: start/restart should not disable incremental mode")
|
|
152
|
+
if options.follow_imports not in ("skip", "error", "normal"):
|
|
153
|
+
sys.exit("dmypy: follow-imports=silent not supported")
|
|
154
|
+
if not options.local_partial_types:
|
|
155
|
+
sys.exit("dmypy: disabling local-partial-types not supported")
|
|
156
|
+
return options
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def ignore_suppressed_imports(module: str) -> bool:
|
|
160
|
+
"""Can we skip looking for newly unsuppressed imports to module?"""
|
|
161
|
+
# Various submodules of 'encodings' can be suppressed, since it
|
|
162
|
+
# uses module-level '__getattr__'. Skip them since there are many
|
|
163
|
+
# of them, and following imports to them is kind of pointless.
|
|
164
|
+
return module.startswith("encodings.")
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
ModulePathPair: _TypeAlias = tuple[str, str]
|
|
168
|
+
ModulePathPairs: _TypeAlias = list[ModulePathPair]
|
|
169
|
+
ChangesAndRemovals: _TypeAlias = tuple[ModulePathPairs, ModulePathPairs]
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
class Server:
|
|
173
|
+
# NOTE: the instance is constructed in the parent process but
|
|
174
|
+
# serve() is called in the grandchild (by daemonize()).
|
|
175
|
+
|
|
176
|
+
def __init__(self, options: Options, status_file: str, timeout: int | None = None) -> None:
|
|
177
|
+
"""Initialize the server with the desired mypy flags."""
|
|
178
|
+
self.options = options
|
|
179
|
+
# Snapshot the options info before we muck with it, to detect changes
|
|
180
|
+
self.options_snapshot = options.snapshot()
|
|
181
|
+
self.timeout = timeout
|
|
182
|
+
self.fine_grained_manager: FineGrainedBuildManager | None = None
|
|
183
|
+
|
|
184
|
+
if os.path.isfile(status_file):
|
|
185
|
+
os.unlink(status_file)
|
|
186
|
+
|
|
187
|
+
self.fscache = FileSystemCache()
|
|
188
|
+
|
|
189
|
+
options.raise_exceptions = True
|
|
190
|
+
options.incremental = True
|
|
191
|
+
options.fine_grained_incremental = True
|
|
192
|
+
options.show_traceback = True
|
|
193
|
+
if options.use_fine_grained_cache:
|
|
194
|
+
# Using fine_grained_cache implies generating and caring
|
|
195
|
+
# about the fine-grained cache.
|
|
196
|
+
options.cache_fine_grained = True
|
|
197
|
+
else:
|
|
198
|
+
options.cache_dir = os.devnull
|
|
199
|
+
# Fine-grained incremental doesn't support general partial types
|
|
200
|
+
# (details in https://github.com/python/mypy/issues/4492)
|
|
201
|
+
options.local_partial_types = True
|
|
202
|
+
# We don't support parallel checking in fine-grained mode yet.
|
|
203
|
+
# Ignore it for now, so that same config file can be used with
|
|
204
|
+
# mypy and with the daemon.
|
|
205
|
+
options.num_workers = 0
|
|
206
|
+
self.status_file = status_file
|
|
207
|
+
|
|
208
|
+
# Since the object is created in the parent process we can check
|
|
209
|
+
# the output terminal options here.
|
|
210
|
+
self.formatter = FancyFormatter(sys.stdout, sys.stderr, options.hide_error_codes)
|
|
211
|
+
|
|
212
|
+
def _response_metadata(self) -> dict[str, str]:
|
|
213
|
+
py_version = f"{self.options.python_version[0]}_{self.options.python_version[1]}"
|
|
214
|
+
return {"platform": self.options.platform, "python_version": py_version}
|
|
215
|
+
|
|
216
|
+
def serve(self) -> None:
|
|
217
|
+
"""Serve requests, synchronously (no thread or fork)."""
|
|
218
|
+
|
|
219
|
+
command = None
|
|
220
|
+
server = IPCServer(CONNECTION_NAME, self.timeout)
|
|
221
|
+
orig_stdout = sys.stdout
|
|
222
|
+
orig_stderr = sys.stderr
|
|
223
|
+
|
|
224
|
+
try:
|
|
225
|
+
with open(self.status_file, "w") as f:
|
|
226
|
+
json.dump({"pid": os.getpid(), "connection_name": server.connection_name}, f)
|
|
227
|
+
f.write("\n") # I like my JSON with a trailing newline
|
|
228
|
+
while True:
|
|
229
|
+
with server:
|
|
230
|
+
data = receive(server)
|
|
231
|
+
sys.stdout = WriteToConn(server, "stdout", sys.stdout.isatty())
|
|
232
|
+
sys.stderr = WriteToConn(server, "stderr", sys.stderr.isatty())
|
|
233
|
+
resp: dict[str, Any] = {}
|
|
234
|
+
if "command" not in data:
|
|
235
|
+
resp = {"error": "No command found in request"}
|
|
236
|
+
else:
|
|
237
|
+
command = data["command"]
|
|
238
|
+
if not isinstance(command, str):
|
|
239
|
+
resp = {"error": "Command is not a string"}
|
|
240
|
+
else:
|
|
241
|
+
command = data.pop("command")
|
|
242
|
+
try:
|
|
243
|
+
resp = self.run_command(command, data)
|
|
244
|
+
except Exception:
|
|
245
|
+
# If we are crashing, report the crash to the client
|
|
246
|
+
tb = traceback.format_exception(*sys.exc_info())
|
|
247
|
+
resp = {"error": "Daemon crashed!\n" + "".join(tb)}
|
|
248
|
+
resp.update(self._response_metadata())
|
|
249
|
+
resp["final"] = True
|
|
250
|
+
send(server, resp)
|
|
251
|
+
raise
|
|
252
|
+
resp["final"] = True
|
|
253
|
+
try:
|
|
254
|
+
resp.update(self._response_metadata())
|
|
255
|
+
send(server, resp)
|
|
256
|
+
except OSError:
|
|
257
|
+
pass # Maybe the client hung up
|
|
258
|
+
if command == "stop":
|
|
259
|
+
reset_global_state()
|
|
260
|
+
sys.exit(0)
|
|
261
|
+
finally:
|
|
262
|
+
# Revert stdout/stderr so we can see any errors.
|
|
263
|
+
sys.stdout = orig_stdout
|
|
264
|
+
sys.stderr = orig_stderr
|
|
265
|
+
|
|
266
|
+
# If the final command is something other than a clean
|
|
267
|
+
# stop, remove the status file. (We can't just
|
|
268
|
+
# simplify the logic and always remove the file, since
|
|
269
|
+
# that could cause us to remove a future server's
|
|
270
|
+
# status file.)
|
|
271
|
+
if command != "stop":
|
|
272
|
+
os.unlink(self.status_file)
|
|
273
|
+
try:
|
|
274
|
+
server.cleanup() # try to remove the socket dir on Linux
|
|
275
|
+
except OSError:
|
|
276
|
+
pass
|
|
277
|
+
exc_info = sys.exc_info()
|
|
278
|
+
if exc_info[0] and exc_info[0] is not SystemExit:
|
|
279
|
+
traceback.print_exception(*exc_info)
|
|
280
|
+
|
|
281
|
+
def run_command(self, command: str, data: dict[str, object]) -> dict[str, object]:
|
|
282
|
+
"""Run a specific command from the registry."""
|
|
283
|
+
key = "cmd_" + command
|
|
284
|
+
method = getattr(self.__class__, key, None)
|
|
285
|
+
if method is None:
|
|
286
|
+
return {"error": f"Unrecognized command '{command}'"}
|
|
287
|
+
else:
|
|
288
|
+
if command not in {"check", "recheck", "run"}:
|
|
289
|
+
# Only the above commands use some error formatting.
|
|
290
|
+
del data["is_tty"]
|
|
291
|
+
del data["terminal_width"]
|
|
292
|
+
ret = method(self, **data)
|
|
293
|
+
assert isinstance(ret, dict)
|
|
294
|
+
return ret
|
|
295
|
+
|
|
296
|
+
# Command functions (run in the server via RPC).
|
|
297
|
+
|
|
298
|
+
def cmd_status(self, fswatcher_dump_file: str | None = None) -> dict[str, object]:
|
|
299
|
+
"""Return daemon status."""
|
|
300
|
+
res: dict[str, object] = {}
|
|
301
|
+
res.update(get_meminfo())
|
|
302
|
+
if fswatcher_dump_file:
|
|
303
|
+
data = self.fswatcher.dump_file_data() if hasattr(self, "fswatcher") else {}
|
|
304
|
+
# Using .dumps and then writing was noticeably faster than using dump
|
|
305
|
+
s = json.dumps(data)
|
|
306
|
+
with open(fswatcher_dump_file, "w") as f:
|
|
307
|
+
f.write(s)
|
|
308
|
+
return res
|
|
309
|
+
|
|
310
|
+
def cmd_stop(self) -> dict[str, object]:
|
|
311
|
+
"""Stop daemon."""
|
|
312
|
+
# We need to remove the status file *before* we complete the
|
|
313
|
+
# RPC. Otherwise a race condition exists where a subsequent
|
|
314
|
+
# command can see a status file from a dying server and think
|
|
315
|
+
# it is a live one.
|
|
316
|
+
os.unlink(self.status_file)
|
|
317
|
+
return {}
|
|
318
|
+
|
|
319
|
+
def cmd_run(
|
|
320
|
+
self,
|
|
321
|
+
version: str,
|
|
322
|
+
args: Sequence[str],
|
|
323
|
+
export_types: bool,
|
|
324
|
+
is_tty: bool,
|
|
325
|
+
terminal_width: int,
|
|
326
|
+
) -> dict[str, object]:
|
|
327
|
+
"""Check a list of files, triggering a restart if needed."""
|
|
328
|
+
stderr = io.StringIO()
|
|
329
|
+
stdout = io.StringIO()
|
|
330
|
+
try:
|
|
331
|
+
# Process options can exit on improper arguments, so we need to catch that and
|
|
332
|
+
# capture stderr so the client can report it
|
|
333
|
+
with redirect_stderr(stderr):
|
|
334
|
+
with redirect_stdout(stdout):
|
|
335
|
+
sources, options = mypy.main.process_options(
|
|
336
|
+
["-i"] + list(args),
|
|
337
|
+
require_targets=True,
|
|
338
|
+
server_options=True,
|
|
339
|
+
fscache=self.fscache,
|
|
340
|
+
program="mypy-daemon",
|
|
341
|
+
header=argparse.SUPPRESS,
|
|
342
|
+
)
|
|
343
|
+
# Signal that we need to restart if the options have changed
|
|
344
|
+
if not options.compare_stable(self.options_snapshot):
|
|
345
|
+
return {"restart": "configuration changed"}
|
|
346
|
+
if __version__ != version:
|
|
347
|
+
return {"restart": "mypy version changed"}
|
|
348
|
+
if self.fine_grained_manager:
|
|
349
|
+
manager = self.fine_grained_manager.manager
|
|
350
|
+
start_plugins_snapshot = manager.plugins_snapshot
|
|
351
|
+
_, current_plugins_snapshot = mypy.build.load_plugins(
|
|
352
|
+
options, manager.errors, sys.stdout, extra_plugins=()
|
|
353
|
+
)
|
|
354
|
+
if current_plugins_snapshot != start_plugins_snapshot:
|
|
355
|
+
return {"restart": "plugins changed"}
|
|
356
|
+
except InvalidSourceList as err:
|
|
357
|
+
return {"out": "", "err": str(err), "status": 2}
|
|
358
|
+
except SystemExit as e:
|
|
359
|
+
return {"out": stdout.getvalue(), "err": stderr.getvalue(), "status": e.code}
|
|
360
|
+
return self.check(sources, export_types, is_tty, terminal_width)
|
|
361
|
+
|
|
362
|
+
def cmd_check(
|
|
363
|
+
self, files: Sequence[str], export_types: bool, is_tty: bool, terminal_width: int
|
|
364
|
+
) -> dict[str, object]:
|
|
365
|
+
"""Check a list of files."""
|
|
366
|
+
try:
|
|
367
|
+
sources = create_source_list(files, self.options, self.fscache)
|
|
368
|
+
except InvalidSourceList as err:
|
|
369
|
+
return {"out": "", "err": str(err), "status": 2}
|
|
370
|
+
return self.check(sources, export_types, is_tty, terminal_width)
|
|
371
|
+
|
|
372
|
+
def cmd_recheck(
|
|
373
|
+
self,
|
|
374
|
+
is_tty: bool,
|
|
375
|
+
terminal_width: int,
|
|
376
|
+
export_types: bool,
|
|
377
|
+
remove: list[str] | None = None,
|
|
378
|
+
update: list[str] | None = None,
|
|
379
|
+
) -> dict[str, object]:
|
|
380
|
+
"""Check the same list of files we checked most recently.
|
|
381
|
+
|
|
382
|
+
If remove/update is given, they modify the previous list;
|
|
383
|
+
if all are None, stat() is called for each file in the previous list.
|
|
384
|
+
"""
|
|
385
|
+
t0 = time.time()
|
|
386
|
+
if not self.fine_grained_manager:
|
|
387
|
+
return {"error": "Command 'recheck' is only valid after a 'check' command"}
|
|
388
|
+
sources = self.previous_sources
|
|
389
|
+
if remove:
|
|
390
|
+
removals = set(remove)
|
|
391
|
+
sources = [s for s in sources if s.path and s.path not in removals]
|
|
392
|
+
if update:
|
|
393
|
+
# Sort list of file updates by extension, so *.pyi files are first.
|
|
394
|
+
update.sort(key=lambda f: os.path.splitext(f)[1], reverse=True)
|
|
395
|
+
|
|
396
|
+
known = {s.path for s in sources if s.path}
|
|
397
|
+
added = [p for p in update if p not in known]
|
|
398
|
+
try:
|
|
399
|
+
added_sources = create_source_list(added, self.options, self.fscache)
|
|
400
|
+
except InvalidSourceList as err:
|
|
401
|
+
return {"out": "", "err": str(err), "status": 2}
|
|
402
|
+
sources = sources + added_sources # Make a copy!
|
|
403
|
+
t1 = time.time()
|
|
404
|
+
manager = self.fine_grained_manager.manager
|
|
405
|
+
manager.log(f"fine-grained increment: cmd_recheck: {t1 - t0:.3f}s")
|
|
406
|
+
old_export_types = self.options.export_types
|
|
407
|
+
self.options.export_types = self.options.export_types or export_types
|
|
408
|
+
if not self.following_imports():
|
|
409
|
+
messages = self.fine_grained_increment(
|
|
410
|
+
sources, remove, update, explicit_export_types=export_types
|
|
411
|
+
)
|
|
412
|
+
else:
|
|
413
|
+
assert remove is None and update is None
|
|
414
|
+
messages = self.fine_grained_increment_follow_imports(
|
|
415
|
+
sources, explicit_export_types=export_types
|
|
416
|
+
)
|
|
417
|
+
res = self.increment_output(messages, sources, is_tty, terminal_width)
|
|
418
|
+
self.flush_caches()
|
|
419
|
+
self.update_stats(res)
|
|
420
|
+
self.options.export_types = old_export_types
|
|
421
|
+
return res
|
|
422
|
+
|
|
423
|
+
def check(
|
|
424
|
+
self, sources: list[BuildSource], export_types: bool, is_tty: bool, terminal_width: int
|
|
425
|
+
) -> dict[str, Any]:
|
|
426
|
+
"""Check using fine-grained incremental mode.
|
|
427
|
+
|
|
428
|
+
If is_tty is True format the output nicely with colors and summary line
|
|
429
|
+
(unless disabled in self.options). Also pass the terminal_width to formatter.
|
|
430
|
+
"""
|
|
431
|
+
old_export_types = self.options.export_types
|
|
432
|
+
self.options.export_types = self.options.export_types or export_types
|
|
433
|
+
if not self.fine_grained_manager:
|
|
434
|
+
res = self.initialize_fine_grained(sources, is_tty, terminal_width)
|
|
435
|
+
else:
|
|
436
|
+
if not self.following_imports():
|
|
437
|
+
messages = self.fine_grained_increment(sources, explicit_export_types=export_types)
|
|
438
|
+
else:
|
|
439
|
+
messages = self.fine_grained_increment_follow_imports(
|
|
440
|
+
sources, explicit_export_types=export_types
|
|
441
|
+
)
|
|
442
|
+
res = self.increment_output(messages, sources, is_tty, terminal_width)
|
|
443
|
+
self.flush_caches()
|
|
444
|
+
self.update_stats(res)
|
|
445
|
+
self.options.export_types = old_export_types
|
|
446
|
+
return res
|
|
447
|
+
|
|
448
|
+
def flush_caches(self) -> None:
|
|
449
|
+
self.fscache.flush()
|
|
450
|
+
if self.fine_grained_manager:
|
|
451
|
+
self.fine_grained_manager.flush_cache()
|
|
452
|
+
|
|
453
|
+
def update_stats(self, res: dict[str, Any]) -> None:
|
|
454
|
+
if self.fine_grained_manager:
|
|
455
|
+
manager = self.fine_grained_manager.manager
|
|
456
|
+
manager.dump_stats()
|
|
457
|
+
res["stats"] = manager.stats
|
|
458
|
+
manager.stats = {}
|
|
459
|
+
|
|
460
|
+
def following_imports(self) -> bool:
|
|
461
|
+
"""Are we following imports?"""
|
|
462
|
+
# TODO: What about silent?
|
|
463
|
+
return self.options.follow_imports == "normal"
|
|
464
|
+
|
|
465
|
+
def initialize_fine_grained(
|
|
466
|
+
self, sources: list[BuildSource], is_tty: bool, terminal_width: int
|
|
467
|
+
) -> dict[str, Any]:
|
|
468
|
+
self.fswatcher = FileSystemWatcher(self.fscache)
|
|
469
|
+
t0 = time.time()
|
|
470
|
+
self.update_sources(sources)
|
|
471
|
+
t1 = time.time()
|
|
472
|
+
try:
|
|
473
|
+
result = mypy.build.build(sources=sources, options=self.options, fscache=self.fscache)
|
|
474
|
+
except mypy.errors.CompileError as e:
|
|
475
|
+
output = "".join(s + "\n" for s in e.messages)
|
|
476
|
+
if e.use_stdout:
|
|
477
|
+
out, err = output, ""
|
|
478
|
+
else:
|
|
479
|
+
out, err = "", output
|
|
480
|
+
return {"out": out, "err": err, "status": 2}
|
|
481
|
+
messages = result.errors
|
|
482
|
+
self.fine_grained_manager = FineGrainedBuildManager(result)
|
|
483
|
+
|
|
484
|
+
original_sources_len = len(sources)
|
|
485
|
+
if self.following_imports():
|
|
486
|
+
sources = find_all_sources_in_build(self.fine_grained_manager.graph, sources)
|
|
487
|
+
self.update_sources(sources)
|
|
488
|
+
|
|
489
|
+
self.previous_sources = sources
|
|
490
|
+
|
|
491
|
+
# If we are using the fine-grained cache, build hasn't actually done
|
|
492
|
+
# the typechecking on the updated files yet.
|
|
493
|
+
# Run a fine-grained update starting from the cached data
|
|
494
|
+
if result.used_cache:
|
|
495
|
+
t2 = time.time()
|
|
496
|
+
# Pull times and hashes out of the saved_cache and stick them into
|
|
497
|
+
# the fswatcher, so we pick up the changes.
|
|
498
|
+
for state in self.fine_grained_manager.graph.values():
|
|
499
|
+
meta = state.meta
|
|
500
|
+
if meta is None:
|
|
501
|
+
continue
|
|
502
|
+
assert state.path is not None
|
|
503
|
+
self.fswatcher.set_file_data(
|
|
504
|
+
state.path,
|
|
505
|
+
FileData(st_mtime=float(meta.mtime), st_size=meta.size, hash=meta.hash),
|
|
506
|
+
)
|
|
507
|
+
|
|
508
|
+
changed, removed = self.find_changed(sources)
|
|
509
|
+
changed += self.find_added_suppressed(
|
|
510
|
+
self.fine_grained_manager.graph,
|
|
511
|
+
set(),
|
|
512
|
+
self.fine_grained_manager.manager.search_paths,
|
|
513
|
+
)
|
|
514
|
+
|
|
515
|
+
# Find anything that has had its dependency list change
|
|
516
|
+
for state in self.fine_grained_manager.graph.values():
|
|
517
|
+
if not state.is_fresh():
|
|
518
|
+
assert state.path is not None
|
|
519
|
+
changed.append((state.id, state.path))
|
|
520
|
+
|
|
521
|
+
t3 = time.time()
|
|
522
|
+
# Run an update
|
|
523
|
+
messages = self.fine_grained_manager.update(changed, removed)
|
|
524
|
+
|
|
525
|
+
if self.following_imports():
|
|
526
|
+
# We need to do another update to any new files found by following imports.
|
|
527
|
+
messages = self.fine_grained_increment_follow_imports(sources)
|
|
528
|
+
|
|
529
|
+
t4 = time.time()
|
|
530
|
+
self.fine_grained_manager.manager.add_stats(
|
|
531
|
+
update_sources_time=t1 - t0,
|
|
532
|
+
build_time=t2 - t1,
|
|
533
|
+
find_changes_time=t3 - t2,
|
|
534
|
+
fg_update_time=t4 - t3,
|
|
535
|
+
files_changed=len(removed) + len(changed),
|
|
536
|
+
)
|
|
537
|
+
|
|
538
|
+
else:
|
|
539
|
+
# Stores the initial state of sources as a side effect.
|
|
540
|
+
self.fswatcher.find_changed()
|
|
541
|
+
|
|
542
|
+
if MEM_PROFILE:
|
|
543
|
+
from mypy.memprofile import print_memory_profile
|
|
544
|
+
|
|
545
|
+
print_memory_profile(run_gc=False)
|
|
546
|
+
|
|
547
|
+
__, n_notes, __ = count_stats(messages)
|
|
548
|
+
status = 1 if messages and n_notes < len(messages) else 0
|
|
549
|
+
# We use explicit sources length to match the logic in non-incremental mode.
|
|
550
|
+
messages = self.pretty_messages(messages, original_sources_len, is_tty, terminal_width)
|
|
551
|
+
return {"out": "".join(s + "\n" for s in messages), "err": "", "status": status}
|
|
552
|
+
|
|
553
|
+
def fine_grained_increment(
|
|
554
|
+
self,
|
|
555
|
+
sources: list[BuildSource],
|
|
556
|
+
remove: list[str] | None = None,
|
|
557
|
+
update: list[str] | None = None,
|
|
558
|
+
explicit_export_types: bool = False,
|
|
559
|
+
) -> list[str]:
|
|
560
|
+
"""Perform a fine-grained type checking increment.
|
|
561
|
+
|
|
562
|
+
If remove and update are None, determine changed paths by using
|
|
563
|
+
fswatcher. Otherwise, assume that only these files have changes.
|
|
564
|
+
|
|
565
|
+
Args:
|
|
566
|
+
sources: sources passed on the command line
|
|
567
|
+
remove: paths of files that have been removed
|
|
568
|
+
update: paths of files that have been changed or created
|
|
569
|
+
explicit_export_types: --export-type was passed in a check command
|
|
570
|
+
(as opposite to being set in dmypy start)
|
|
571
|
+
"""
|
|
572
|
+
assert self.fine_grained_manager is not None
|
|
573
|
+
manager = self.fine_grained_manager.manager
|
|
574
|
+
|
|
575
|
+
t0 = time.time()
|
|
576
|
+
if remove is None and update is None:
|
|
577
|
+
# Use the fswatcher to determine which files were changed
|
|
578
|
+
# (updated or added) or removed.
|
|
579
|
+
self.update_sources(sources)
|
|
580
|
+
changed, removed = self.find_changed(sources)
|
|
581
|
+
else:
|
|
582
|
+
# Use the remove/update lists to update fswatcher.
|
|
583
|
+
# This avoids calling stat() for unchanged files.
|
|
584
|
+
changed, removed = self.update_changed(sources, remove or [], update or [])
|
|
585
|
+
if explicit_export_types:
|
|
586
|
+
# If --export-types is given, we need to force full re-checking of all
|
|
587
|
+
# explicitly passed files, since we need to visit each expression.
|
|
588
|
+
add_all_sources_to_changed(sources, changed)
|
|
589
|
+
changed += self.find_added_suppressed(
|
|
590
|
+
self.fine_grained_manager.graph, set(), manager.search_paths
|
|
591
|
+
)
|
|
592
|
+
manager.search_paths = compute_search_paths(sources, manager.options, manager.data_dir)
|
|
593
|
+
t1 = time.time()
|
|
594
|
+
manager.log(f"fine-grained increment: find_changed: {t1 - t0:.3f}s")
|
|
595
|
+
messages = self.fine_grained_manager.update(changed, removed)
|
|
596
|
+
t2 = time.time()
|
|
597
|
+
manager.log(f"fine-grained increment: update: {t2 - t1:.3f}s")
|
|
598
|
+
manager.add_stats(
|
|
599
|
+
find_changes_time=t1 - t0,
|
|
600
|
+
fg_update_time=t2 - t1,
|
|
601
|
+
files_changed=len(removed) + len(changed),
|
|
602
|
+
)
|
|
603
|
+
|
|
604
|
+
self.previous_sources = sources
|
|
605
|
+
return messages
|
|
606
|
+
|
|
607
|
+
def fine_grained_increment_follow_imports(
|
|
608
|
+
self, sources: list[BuildSource], explicit_export_types: bool = False
|
|
609
|
+
) -> list[str]:
|
|
610
|
+
"""Like fine_grained_increment, but follow imports."""
|
|
611
|
+
t0 = time.time()
|
|
612
|
+
|
|
613
|
+
# TODO: Support file events
|
|
614
|
+
|
|
615
|
+
assert self.fine_grained_manager is not None
|
|
616
|
+
fine_grained_manager = self.fine_grained_manager
|
|
617
|
+
graph = fine_grained_manager.graph
|
|
618
|
+
manager = fine_grained_manager.manager
|
|
619
|
+
|
|
620
|
+
orig_modules = list(graph.keys())
|
|
621
|
+
|
|
622
|
+
self.update_sources(sources)
|
|
623
|
+
changed_paths = self.fswatcher.find_changed()
|
|
624
|
+
manager.search_paths = compute_search_paths(sources, manager.options, manager.data_dir)
|
|
625
|
+
|
|
626
|
+
t1 = time.time()
|
|
627
|
+
manager.log(f"fine-grained increment: find_changed: {t1 - t0:.3f}s")
|
|
628
|
+
|
|
629
|
+
# Track all modules encountered so far. New entries for all dependencies
|
|
630
|
+
# are added below by other module finding methods below. All dependencies
|
|
631
|
+
# in graph but not in `seen` are considered deleted at the end of this method.
|
|
632
|
+
seen = {source.module for source in sources}
|
|
633
|
+
|
|
634
|
+
# Find changed modules reachable from roots (or in roots) already in graph.
|
|
635
|
+
changed, new_files = self.find_reachable_changed_modules(
|
|
636
|
+
sources, graph, seen, changed_paths
|
|
637
|
+
)
|
|
638
|
+
# Same as in fine_grained_increment().
|
|
639
|
+
self.add_explicitly_new(sources, changed)
|
|
640
|
+
if explicit_export_types:
|
|
641
|
+
# Same as in fine_grained_increment().
|
|
642
|
+
add_all_sources_to_changed(sources, changed)
|
|
643
|
+
sources.extend(new_files)
|
|
644
|
+
|
|
645
|
+
# Process changes directly reachable from roots.
|
|
646
|
+
messages = fine_grained_manager.update(changed, [], followed=True)
|
|
647
|
+
|
|
648
|
+
# Follow deps from changed modules (still within graph).
|
|
649
|
+
worklist = changed.copy()
|
|
650
|
+
while worklist:
|
|
651
|
+
module = worklist.pop()
|
|
652
|
+
if module[0] not in graph:
|
|
653
|
+
continue
|
|
654
|
+
sources2 = self.direct_imports(module, graph)
|
|
655
|
+
# Filter anything already seen before. This prevents
|
|
656
|
+
# infinite looping if there are any self edges. (Self
|
|
657
|
+
# edges are maybe a bug, but...)
|
|
658
|
+
sources2 = [source for source in sources2 if source.module not in seen]
|
|
659
|
+
changed, new_files = self.find_reachable_changed_modules(
|
|
660
|
+
sources2, graph, seen, changed_paths
|
|
661
|
+
)
|
|
662
|
+
self.update_sources(new_files)
|
|
663
|
+
messages = fine_grained_manager.update(changed, [], followed=True)
|
|
664
|
+
worklist.extend(changed)
|
|
665
|
+
|
|
666
|
+
t2 = time.time()
|
|
667
|
+
|
|
668
|
+
def refresh_file(module: str, path: str) -> list[str]:
|
|
669
|
+
return fine_grained_manager.update([(module, path)], [], followed=True)
|
|
670
|
+
|
|
671
|
+
for module_id, state in list(graph.items()):
|
|
672
|
+
new_messages = refresh_suppressed_submodules(
|
|
673
|
+
module_id, state.path, fine_grained_manager.deps, graph, self.fscache, refresh_file
|
|
674
|
+
)
|
|
675
|
+
if new_messages is not None:
|
|
676
|
+
messages = new_messages
|
|
677
|
+
|
|
678
|
+
t3 = time.time()
|
|
679
|
+
|
|
680
|
+
# There may be new files that became available, currently treated as
|
|
681
|
+
# suppressed imports. Process them.
|
|
682
|
+
while True:
|
|
683
|
+
new_unsuppressed = self.find_added_suppressed(graph, seen, manager.search_paths)
|
|
684
|
+
if not new_unsuppressed:
|
|
685
|
+
break
|
|
686
|
+
new_files = [BuildSource(mod[1], mod[0], followed=True) for mod in new_unsuppressed]
|
|
687
|
+
sources.extend(new_files)
|
|
688
|
+
self.update_sources(new_files)
|
|
689
|
+
messages = fine_grained_manager.update(new_unsuppressed, [], followed=True)
|
|
690
|
+
|
|
691
|
+
for module_id, path in new_unsuppressed:
|
|
692
|
+
new_messages = refresh_suppressed_submodules(
|
|
693
|
+
module_id, path, fine_grained_manager.deps, graph, self.fscache, refresh_file
|
|
694
|
+
)
|
|
695
|
+
if new_messages is not None:
|
|
696
|
+
messages = new_messages
|
|
697
|
+
|
|
698
|
+
t4 = time.time()
|
|
699
|
+
|
|
700
|
+
# Find all original modules in graph that were not reached -- they are deleted.
|
|
701
|
+
to_delete = []
|
|
702
|
+
for module_id in orig_modules:
|
|
703
|
+
if module_id not in graph:
|
|
704
|
+
continue
|
|
705
|
+
if module_id not in seen:
|
|
706
|
+
module_path = graph[module_id].path
|
|
707
|
+
assert module_path is not None
|
|
708
|
+
to_delete.append((module_id, module_path))
|
|
709
|
+
if to_delete:
|
|
710
|
+
messages = fine_grained_manager.update([], to_delete)
|
|
711
|
+
|
|
712
|
+
fix_module_deps(graph)
|
|
713
|
+
|
|
714
|
+
self.previous_sources = find_all_sources_in_build(graph)
|
|
715
|
+
self.update_sources(self.previous_sources)
|
|
716
|
+
|
|
717
|
+
# Store current file state as side effect
|
|
718
|
+
self.fswatcher.find_changed()
|
|
719
|
+
|
|
720
|
+
t5 = time.time()
|
|
721
|
+
|
|
722
|
+
manager.log(f"fine-grained increment: update: {t5 - t1:.3f}s")
|
|
723
|
+
manager.add_stats(
|
|
724
|
+
find_changes_time=t1 - t0,
|
|
725
|
+
fg_update_time=t2 - t1,
|
|
726
|
+
refresh_suppressed_time=t3 - t2,
|
|
727
|
+
find_added_suppressed_time=t4 - t3,
|
|
728
|
+
cleanup_time=t5 - t4,
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
return messages
|
|
732
|
+
|
|
733
|
+
def find_reachable_changed_modules(
|
|
734
|
+
self,
|
|
735
|
+
roots: list[BuildSource],
|
|
736
|
+
graph: mypy.build.Graph,
|
|
737
|
+
seen: set[str],
|
|
738
|
+
changed_paths: AbstractSet[str],
|
|
739
|
+
) -> tuple[list[tuple[str, str]], list[BuildSource]]:
|
|
740
|
+
"""Follow imports within graph from given sources until hitting changed modules.
|
|
741
|
+
|
|
742
|
+
If we find a changed module, we can't continue following imports as the imports
|
|
743
|
+
may have changed.
|
|
744
|
+
|
|
745
|
+
Args:
|
|
746
|
+
roots: modules where to start search from
|
|
747
|
+
graph: module graph to use for the search
|
|
748
|
+
seen: modules we've seen before that won't be visited (mutated here!!).
|
|
749
|
+
Needed to accumulate all modules encountered during update and remove
|
|
750
|
+
everything that no longer exists.
|
|
751
|
+
changed_paths: which paths have changed (stop search here and return any found)
|
|
752
|
+
|
|
753
|
+
Return (encountered reachable changed modules,
|
|
754
|
+
unchanged files not in sources_set traversed).
|
|
755
|
+
"""
|
|
756
|
+
changed = []
|
|
757
|
+
new_files = []
|
|
758
|
+
worklist = roots.copy()
|
|
759
|
+
seen.update(source.module for source in worklist)
|
|
760
|
+
while worklist:
|
|
761
|
+
nxt = worklist.pop()
|
|
762
|
+
if nxt.module not in seen:
|
|
763
|
+
seen.add(nxt.module)
|
|
764
|
+
new_files.append(nxt)
|
|
765
|
+
if nxt.path in changed_paths:
|
|
766
|
+
assert nxt.path is not None # TODO
|
|
767
|
+
changed.append((nxt.module, nxt.path))
|
|
768
|
+
elif nxt.module in graph:
|
|
769
|
+
state = graph[nxt.module]
|
|
770
|
+
ancestors = state.ancestors or []
|
|
771
|
+
for dep in state.dependencies + ancestors:
|
|
772
|
+
if dep not in seen:
|
|
773
|
+
seen.add(dep)
|
|
774
|
+
worklist.append(BuildSource(graph[dep].path, graph[dep].id, followed=True))
|
|
775
|
+
return changed, new_files
|
|
776
|
+
|
|
777
|
+
def direct_imports(
|
|
778
|
+
self, module: tuple[str, str], graph: mypy.build.Graph
|
|
779
|
+
) -> list[BuildSource]:
|
|
780
|
+
"""Return the direct imports of module not included in seen."""
|
|
781
|
+
state = graph[module[0]]
|
|
782
|
+
return [BuildSource(graph[dep].path, dep, followed=True) for dep in state.dependencies]
|
|
783
|
+
|
|
784
|
+
def find_added_suppressed(
|
|
785
|
+
self, graph: mypy.build.Graph, seen: set[str], search_paths: SearchPaths
|
|
786
|
+
) -> list[tuple[str, str]]:
|
|
787
|
+
"""Find suppressed modules that have been added (and not included in seen).
|
|
788
|
+
|
|
789
|
+
Args:
|
|
790
|
+
seen: reachable modules we've seen before (mutated here!!).
|
|
791
|
+
Needed to accumulate all modules encountered during update and remove
|
|
792
|
+
everything that no longer exists.
|
|
793
|
+
|
|
794
|
+
Return suppressed, added modules.
|
|
795
|
+
"""
|
|
796
|
+
all_suppressed = set()
|
|
797
|
+
for state in graph.values():
|
|
798
|
+
all_suppressed |= state.suppressed_set
|
|
799
|
+
|
|
800
|
+
# Filter out things that shouldn't actually be considered suppressed.
|
|
801
|
+
#
|
|
802
|
+
# TODO: Figure out why these are treated as suppressed
|
|
803
|
+
all_suppressed = {
|
|
804
|
+
module
|
|
805
|
+
for module in all_suppressed
|
|
806
|
+
if module not in graph and not ignore_suppressed_imports(module)
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
# Optimization: skip top-level packages that are obviously not
|
|
810
|
+
# there, to avoid calling the relatively slow find_module()
|
|
811
|
+
# below too many times.
|
|
812
|
+
packages = {module.split(".", 1)[0] for module in all_suppressed}
|
|
813
|
+
packages = filter_out_missing_top_level_packages(packages, search_paths, self.fscache)
|
|
814
|
+
|
|
815
|
+
# TODO: Namespace packages
|
|
816
|
+
|
|
817
|
+
finder = FindModuleCache(search_paths, self.fscache, self.options)
|
|
818
|
+
|
|
819
|
+
found = []
|
|
820
|
+
|
|
821
|
+
for module in all_suppressed:
|
|
822
|
+
top_level_pkg = module.split(".", 1)[0]
|
|
823
|
+
if top_level_pkg not in packages:
|
|
824
|
+
# Fast path: non-existent top-level package
|
|
825
|
+
continue
|
|
826
|
+
result = finder.find_module(module, fast_path=True)
|
|
827
|
+
if isinstance(result, str) and module not in seen:
|
|
828
|
+
# When not following imports, we only follow imports to .pyi files.
|
|
829
|
+
if not self.following_imports() and not result.endswith(".pyi"):
|
|
830
|
+
continue
|
|
831
|
+
found.append((module, result))
|
|
832
|
+
seen.add(module)
|
|
833
|
+
|
|
834
|
+
return found
|
|
835
|
+
|
|
836
|
+
def increment_output(
|
|
837
|
+
self, messages: list[str], sources: list[BuildSource], is_tty: bool, terminal_width: int
|
|
838
|
+
) -> dict[str, Any]:
|
|
839
|
+
status = 1 if messages else 0
|
|
840
|
+
messages = self.pretty_messages(messages, len(sources), is_tty, terminal_width)
|
|
841
|
+
return {"out": "".join(s + "\n" for s in messages), "err": "", "status": status}
|
|
842
|
+
|
|
843
|
+
def pretty_messages(
|
|
844
|
+
self,
|
|
845
|
+
messages: list[str],
|
|
846
|
+
n_sources: int,
|
|
847
|
+
is_tty: bool = False,
|
|
848
|
+
terminal_width: int | None = None,
|
|
849
|
+
) -> list[str]:
|
|
850
|
+
use_color = self.options.color_output and is_tty
|
|
851
|
+
fit_width = self.options.pretty and is_tty
|
|
852
|
+
if fit_width:
|
|
853
|
+
messages = self.formatter.fit_in_terminal(
|
|
854
|
+
messages, fixed_terminal_width=terminal_width
|
|
855
|
+
)
|
|
856
|
+
if self.options.error_summary:
|
|
857
|
+
summary: str | None = None
|
|
858
|
+
n_errors, n_notes, n_files = count_stats(messages)
|
|
859
|
+
if n_errors:
|
|
860
|
+
summary = self.formatter.format_error(
|
|
861
|
+
n_errors, n_files, n_sources, use_color=use_color
|
|
862
|
+
)
|
|
863
|
+
elif not messages or n_notes == len(messages):
|
|
864
|
+
summary = self.formatter.format_success(n_sources, use_color)
|
|
865
|
+
if summary:
|
|
866
|
+
# Create new list to avoid appending multiple summaries on successive runs.
|
|
867
|
+
messages = messages + [summary]
|
|
868
|
+
if use_color:
|
|
869
|
+
messages = [self.formatter.colorize(m) for m in messages]
|
|
870
|
+
return messages
|
|
871
|
+
|
|
872
|
+
def update_sources(self, sources: list[BuildSource]) -> None:
|
|
873
|
+
paths = [source.path for source in sources if source.path is not None]
|
|
874
|
+
if self.following_imports():
|
|
875
|
+
# Filter out directories (used for namespace packages).
|
|
876
|
+
paths = [path for path in paths if self.fscache.isfile(path)]
|
|
877
|
+
self.fswatcher.add_watched_paths(paths)
|
|
878
|
+
|
|
879
|
+
def update_changed(
|
|
880
|
+
self, sources: list[BuildSource], remove: list[str], update: list[str]
|
|
881
|
+
) -> ChangesAndRemovals:
|
|
882
|
+
changed_paths = self.fswatcher.update_changed(remove, update)
|
|
883
|
+
return self._find_changed(sources, changed_paths)
|
|
884
|
+
|
|
885
|
+
def find_changed(self, sources: list[BuildSource]) -> ChangesAndRemovals:
|
|
886
|
+
changed_paths = self.fswatcher.find_changed()
|
|
887
|
+
return self._find_changed(sources, changed_paths)
|
|
888
|
+
|
|
889
|
+
def _find_changed(
|
|
890
|
+
self, sources: list[BuildSource], changed_paths: AbstractSet[str]
|
|
891
|
+
) -> ChangesAndRemovals:
|
|
892
|
+
# Find anything that has been added or modified
|
|
893
|
+
changed = [
|
|
894
|
+
(source.module, source.path)
|
|
895
|
+
for source in sources
|
|
896
|
+
if source.path and source.path in changed_paths
|
|
897
|
+
]
|
|
898
|
+
|
|
899
|
+
# Now find anything that has been removed from the build
|
|
900
|
+
modules = {source.module for source in sources}
|
|
901
|
+
omitted = [source for source in self.previous_sources if source.module not in modules]
|
|
902
|
+
removed = []
|
|
903
|
+
for source in omitted:
|
|
904
|
+
path = source.path
|
|
905
|
+
assert path
|
|
906
|
+
removed.append((source.module, path))
|
|
907
|
+
|
|
908
|
+
self.add_explicitly_new(sources, changed)
|
|
909
|
+
|
|
910
|
+
# Find anything that has had its module path change because of added or removed __init__s
|
|
911
|
+
last = {s.path: s.module for s in self.previous_sources}
|
|
912
|
+
for s in sources:
|
|
913
|
+
assert s.path
|
|
914
|
+
if s.path in last and last[s.path] != s.module:
|
|
915
|
+
# Mark it as removed from its old name and changed at its new name
|
|
916
|
+
removed.append((last[s.path], s.path))
|
|
917
|
+
changed.append((s.module, s.path))
|
|
918
|
+
|
|
919
|
+
return changed, removed
|
|
920
|
+
|
|
921
|
+
def add_explicitly_new(
|
|
922
|
+
self, sources: list[BuildSource], changed: list[tuple[str, str]]
|
|
923
|
+
) -> None:
|
|
924
|
+
# Always add modules that were (re-)added, since they may be detected as not changed by
|
|
925
|
+
# fswatcher (if they were actually not changed), but they may still need to be checked
|
|
926
|
+
# in case they had errors before they were deleted from sources on previous runs.
|
|
927
|
+
previous_modules = {source.module for source in self.previous_sources}
|
|
928
|
+
changed_set = set(changed)
|
|
929
|
+
changed.extend(
|
|
930
|
+
[
|
|
931
|
+
(source.module, source.path)
|
|
932
|
+
for source in sources
|
|
933
|
+
if source.path
|
|
934
|
+
and source.module not in previous_modules
|
|
935
|
+
and (source.module, source.path) not in changed_set
|
|
936
|
+
]
|
|
937
|
+
)
|
|
938
|
+
|
|
939
|
+
def cmd_inspect(
|
|
940
|
+
self,
|
|
941
|
+
show: str,
|
|
942
|
+
location: str,
|
|
943
|
+
verbosity: int = 0,
|
|
944
|
+
limit: int = 0,
|
|
945
|
+
include_span: bool = False,
|
|
946
|
+
include_kind: bool = False,
|
|
947
|
+
include_object_attrs: bool = False,
|
|
948
|
+
union_attrs: bool = False,
|
|
949
|
+
force_reload: bool = False,
|
|
950
|
+
) -> dict[str, object]:
|
|
951
|
+
"""Locate and inspect expression(s)."""
|
|
952
|
+
if not self.fine_grained_manager:
|
|
953
|
+
return {
|
|
954
|
+
"error": 'Command "inspect" is only valid after a "check" command'
|
|
955
|
+
" (that produces no parse errors)"
|
|
956
|
+
}
|
|
957
|
+
engine = InspectionEngine(
|
|
958
|
+
self.fine_grained_manager,
|
|
959
|
+
verbosity=verbosity,
|
|
960
|
+
limit=limit,
|
|
961
|
+
include_span=include_span,
|
|
962
|
+
include_kind=include_kind,
|
|
963
|
+
include_object_attrs=include_object_attrs,
|
|
964
|
+
union_attrs=union_attrs,
|
|
965
|
+
force_reload=force_reload,
|
|
966
|
+
)
|
|
967
|
+
old_inspections = self.options.inspections
|
|
968
|
+
self.options.inspections = True
|
|
969
|
+
try:
|
|
970
|
+
if show == "type":
|
|
971
|
+
result = engine.get_type(location)
|
|
972
|
+
elif show == "attrs":
|
|
973
|
+
result = engine.get_attrs(location)
|
|
974
|
+
elif show == "definition":
|
|
975
|
+
result = engine.get_definition(location)
|
|
976
|
+
else:
|
|
977
|
+
assert False, "Unknown inspection kind"
|
|
978
|
+
finally:
|
|
979
|
+
self.options.inspections = old_inspections
|
|
980
|
+
if "out" in result:
|
|
981
|
+
assert isinstance(result["out"], str)
|
|
982
|
+
result["out"] += "\n"
|
|
983
|
+
return result
|
|
984
|
+
|
|
985
|
+
def cmd_suggest(self, function: str, callsites: bool, **kwargs: Any) -> dict[str, object]:
|
|
986
|
+
"""Suggest a signature for a function."""
|
|
987
|
+
if not self.fine_grained_manager:
|
|
988
|
+
return {
|
|
989
|
+
"error": "Command 'suggest' is only valid after a 'check' command"
|
|
990
|
+
" (that produces no parse errors)"
|
|
991
|
+
}
|
|
992
|
+
engine = SuggestionEngine(self.fine_grained_manager, **kwargs)
|
|
993
|
+
try:
|
|
994
|
+
if callsites:
|
|
995
|
+
out = engine.suggest_callsites(function)
|
|
996
|
+
else:
|
|
997
|
+
out = engine.suggest(function)
|
|
998
|
+
except SuggestionFailure as err:
|
|
999
|
+
return {"error": str(err)}
|
|
1000
|
+
else:
|
|
1001
|
+
if not out:
|
|
1002
|
+
out = "No suggestions\n"
|
|
1003
|
+
elif not out.endswith("\n"):
|
|
1004
|
+
out += "\n"
|
|
1005
|
+
return {"out": out, "err": "", "status": 0}
|
|
1006
|
+
finally:
|
|
1007
|
+
self.flush_caches()
|
|
1008
|
+
|
|
1009
|
+
def cmd_hang(self) -> dict[str, object]:
|
|
1010
|
+
"""Hang for 100 seconds, as a debug hack."""
|
|
1011
|
+
time.sleep(100)
|
|
1012
|
+
return {}
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
# Misc utilities.
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
MiB: Final = 2**20
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
def get_meminfo() -> dict[str, Any]:
|
|
1022
|
+
res: dict[str, Any] = {}
|
|
1023
|
+
try:
|
|
1024
|
+
import psutil
|
|
1025
|
+
except ImportError:
|
|
1026
|
+
res["memory_psutil_missing"] = (
|
|
1027
|
+
"psutil not found, run pip install mypy[dmypy] "
|
|
1028
|
+
"to install the needed components for dmypy"
|
|
1029
|
+
)
|
|
1030
|
+
else:
|
|
1031
|
+
process = psutil.Process()
|
|
1032
|
+
meminfo = process.memory_info()
|
|
1033
|
+
res["memory_rss_mib"] = meminfo.rss / MiB
|
|
1034
|
+
res["memory_vms_mib"] = meminfo.vms / MiB
|
|
1035
|
+
if sys.platform == "win32":
|
|
1036
|
+
res["memory_maxrss_mib"] = meminfo.peak_wset / MiB
|
|
1037
|
+
else:
|
|
1038
|
+
# See https://stackoverflow.com/questions/938733/total-memory-used-by-python-process
|
|
1039
|
+
import resource # Since it doesn't exist on Windows.
|
|
1040
|
+
|
|
1041
|
+
rusage = resource.getrusage(resource.RUSAGE_SELF)
|
|
1042
|
+
if sys.platform == "darwin":
|
|
1043
|
+
factor = 1
|
|
1044
|
+
else:
|
|
1045
|
+
factor = 1024 # Linux
|
|
1046
|
+
res["memory_maxrss_mib"] = rusage.ru_maxrss * factor / MiB
|
|
1047
|
+
return res
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
def find_all_sources_in_build(
|
|
1051
|
+
graph: mypy.build.Graph, extra: Sequence[BuildSource] = ()
|
|
1052
|
+
) -> list[BuildSource]:
|
|
1053
|
+
result = list(extra)
|
|
1054
|
+
seen = {source.module for source in result}
|
|
1055
|
+
for module, state in graph.items():
|
|
1056
|
+
if module not in seen:
|
|
1057
|
+
result.append(BuildSource(state.path, module))
|
|
1058
|
+
return result
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
def add_all_sources_to_changed(sources: list[BuildSource], changed: list[tuple[str, str]]) -> None:
|
|
1062
|
+
"""Add all (explicit) sources to the list changed files in place.
|
|
1063
|
+
|
|
1064
|
+
Use this when re-processing of unchanged files is needed (e.g. for
|
|
1065
|
+
the purpose of exporting types for inspections).
|
|
1066
|
+
"""
|
|
1067
|
+
changed_set = set(changed)
|
|
1068
|
+
changed.extend(
|
|
1069
|
+
[
|
|
1070
|
+
(bs.module, bs.path)
|
|
1071
|
+
for bs in sources
|
|
1072
|
+
if bs.path and (bs.module, bs.path) not in changed_set
|
|
1073
|
+
]
|
|
1074
|
+
)
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
def fix_module_deps(graph: mypy.build.Graph) -> None:
|
|
1078
|
+
"""After an incremental update, update module dependencies to reflect the new state.
|
|
1079
|
+
|
|
1080
|
+
This can make some suppressed dependencies non-suppressed, and vice versa (if modules
|
|
1081
|
+
have been added to or removed from the build).
|
|
1082
|
+
"""
|
|
1083
|
+
for state in graph.values():
|
|
1084
|
+
new_suppressed = []
|
|
1085
|
+
new_dependencies = []
|
|
1086
|
+
for dep in state.dependencies + state.suppressed:
|
|
1087
|
+
if dep in graph:
|
|
1088
|
+
new_dependencies.append(dep)
|
|
1089
|
+
else:
|
|
1090
|
+
new_suppressed.append(dep)
|
|
1091
|
+
state.dependencies = new_dependencies
|
|
1092
|
+
state.dependencies_set = set(new_dependencies)
|
|
1093
|
+
state.suppressed = new_suppressed
|
|
1094
|
+
state.suppressed_set = set(new_suppressed)
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
def filter_out_missing_top_level_packages(
|
|
1098
|
+
packages: set[str], search_paths: SearchPaths, fscache: FileSystemCache
|
|
1099
|
+
) -> set[str]:
|
|
1100
|
+
"""Quickly filter out obviously missing top-level packages.
|
|
1101
|
+
|
|
1102
|
+
Return packages with entries that can't be found removed.
|
|
1103
|
+
|
|
1104
|
+
This is approximate: some packages that aren't actually valid may be
|
|
1105
|
+
included. However, all potentially valid packages must be returned.
|
|
1106
|
+
"""
|
|
1107
|
+
# Start with a empty set and add all potential top-level packages.
|
|
1108
|
+
found = set()
|
|
1109
|
+
paths = (
|
|
1110
|
+
search_paths.python_path
|
|
1111
|
+
+ search_paths.mypy_path
|
|
1112
|
+
+ search_paths.package_path
|
|
1113
|
+
+ search_paths.typeshed_path
|
|
1114
|
+
)
|
|
1115
|
+
for p in paths:
|
|
1116
|
+
try:
|
|
1117
|
+
entries = fscache.listdir(p)
|
|
1118
|
+
except Exception:
|
|
1119
|
+
entries = []
|
|
1120
|
+
for entry in entries:
|
|
1121
|
+
# The code is hand-optimized for mypyc since this may be somewhat
|
|
1122
|
+
# performance-critical.
|
|
1123
|
+
if entry.endswith(".py"):
|
|
1124
|
+
entry = entry[:-3]
|
|
1125
|
+
elif entry.endswith(".pyi"):
|
|
1126
|
+
entry = entry[:-4]
|
|
1127
|
+
elif entry.endswith("-stubs"):
|
|
1128
|
+
# Possible PEP 561 stub package
|
|
1129
|
+
entry = entry[:-6]
|
|
1130
|
+
if entry in packages:
|
|
1131
|
+
found.add(entry)
|
|
1132
|
+
return found
|