basedpyright 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/_curses.pyi +549 -542
- package/dist/typeshed-fallback/stdlib/curses/__init__.pyi +14 -13
- package/dist/typeshed-fallback/stdlib/curses/ascii.pyi +58 -59
- package/dist/typeshed-fallback/stdlib/curses/has_key.pyi +1 -4
- package/dist/typeshed-fallback/stdlib/curses/panel.pyi +19 -22
- package/dist/typeshed-fallback/stdlib/curses/textpad.pyi +8 -10
- package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +11 -4
- package/dist/typeshed-fallback/stdlib/io.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/multiprocessing/resource_tracker.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/multiprocessing/util.pyi +25 -6
- package/dist/typeshed-fallback/stdlib/signal.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/ssl.pyi +6 -0
- package/dist/typeshed-fallback/stdlib/tkinter/commondialog.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/tkinter/dialog.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/tkinter/scrolledtext.pyi +1 -2
- package/dist/typeshed-fallback/stdlib/traceback.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/typing.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/xml/dom/xmlbuilder.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Flask-Cors/flask_cors/core.pyi +5 -2
- package/dist/typeshed-fallback/stubs/Flask-Cors/flask_cors/extension.pyi +1 -2
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/flask_socketio/namespace.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageTk.pyi +3 -3
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PdfParser.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PyAccess.pyi +11 -4
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_imaging.pyi +4 -4
- package/dist/typeshed-fallback/stubs/PyAutoGUI/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/PyScreeze/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/tempfile/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/tempfile/temptypes.pyi +4 -4
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/error/Errors.pyi +1 -1
- package/dist/typeshed-fallback/stubs/bleach/bleach/sanitizer.pyi +1 -2
- package/dist/typeshed-fallback/stubs/boltons/boltons/debugutils.pyi +2 -3
- package/dist/typeshed-fallback/stubs/boltons/boltons/queueutils.pyi +2 -3
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/account_updater_daily_report.pyi +4 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/ach_mandate.pyi +1 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/add_on.pyi +1 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/add_on_gateway.pyi +3 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/address.pyi +9 -10
- package/dist/typeshed-fallback/stubs/braintree/braintree/address_gateway.pyi +2 -9
- package/dist/typeshed-fallback/stubs/braintree/braintree/amex_express_checkout_card.pyi +3 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/android_pay_card.pyi +11 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/apple_pay_card.pyi +11 -7
- package/dist/typeshed-fallback/stubs/braintree/braintree/apple_pay_gateway.pyi +3 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/apple_pay_options.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/attribute_getter.pyi +5 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/authorization_adjustment.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/bin_data.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/braintree_gateway.pyi +59 -56
- package/dist/typeshed-fallback/stubs/braintree/braintree/client_token.pyi +0 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/client_token_gateway.pyi +2 -7
- package/dist/typeshed-fallback/stubs/braintree/braintree/configuration.pyi +9 -15
- package/dist/typeshed-fallback/stubs/braintree/braintree/connected_merchant_paypal_status_changed.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/connected_merchant_status_transitioned.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/credentials_parser.pyi +5 -9
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card.pyi +50 -41
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card_gateway.pyi +2 -11
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card_verification.pyi +18 -18
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card_verification_gateway.pyi +3 -11
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card_verification_search.pyi +13 -18
- package/dist/typeshed-fallback/stubs/braintree/braintree/customer.pyi +26 -34
- package/dist/typeshed-fallback/stubs/braintree/braintree/customer_gateway.pyi +2 -11
- package/dist/typeshed-fallback/stubs/braintree/braintree/customer_search.pyi +25 -27
- package/dist/typeshed-fallback/stubs/braintree/braintree/descriptor.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/disbursement.pyi +8 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/disbursement_detail.pyi +4 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/discount.pyi +1 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/discount_gateway.pyi +3 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/dispute.pyi +51 -41
- package/dist/typeshed-fallback/stubs/braintree/braintree/dispute_details/evidence.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/dispute_details/paypal_message.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/dispute_details/status_history.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/dispute_gateway.pyi +4 -13
- package/dist/typeshed-fallback/stubs/braintree/braintree/dispute_search.pyi +21 -21
- package/dist/typeshed-fallback/stubs/braintree/braintree/document_upload.pyi +3 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/document_upload_gateway.pyi +2 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/enriched_customer_data.pyi +7 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/environment.pyi +0 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +690 -675
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_result.pyi +13 -10
- package/dist/typeshed-fallback/stubs/braintree/braintree/errors.pyi +3 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/europe_bank_account.pyi +5 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/authentication_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/authorization_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/configuration_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/gateway_timeout_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/http/connection_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/http/invalid_response_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/http/timeout_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/invalid_challenge_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/invalid_signature_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/not_found_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/request_timeout_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/server_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/service_unavailable_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/test_operation_performed_in_production_error.pyi +3 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/too_many_requests_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/unexpected_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exceptions/upgrade_required_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/exchange_rate_quote.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi +9 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/exchange_rate_quote_input.pyi +9 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/exchange_rate_quote_payload.pyi +6 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/exchange_rate_quote_request.pyi +7 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/facilitated_details.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/facilitator_details.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/granted_payment_instrument_update.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/iban_bank_account.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/ids_search.pyi +2 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/liability_shift.pyi +3 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/local_payment.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/local_payment_completed.pyi +3 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/local_payment_expired.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/local_payment_funded.pyi +7 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/local_payment_reversed.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/masterpass_card.pyi +5 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant.pyi +3 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant_account/address_details.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant_account/business_details.pyi +5 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant_account/funding_details.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant_account/individual_details.pyi +5 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant_account/merchant_account.pyi +14 -19
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant_account_gateway.pyi +2 -12
- package/dist/typeshed-fallback/stubs/braintree/braintree/merchant_gateway.pyi +3 -11
- package/dist/typeshed-fallback/stubs/braintree/braintree/meta_checkout_card.pyi +8 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/meta_checkout_token.pyi +8 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/modification.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/montary_amount.pyi +7 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/oauth_access_revocation.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/oauth_credentials.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/oauth_gateway.pyi +3 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/package_details.pyi +7 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paginated_collection.pyi +2 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/paginated_result.pyi +4 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/partner_merchant.pyi +7 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_instrument_type.pyi +18 -13
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method.pyi +1 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method_customer_data_updated_metadata.pyi +8 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method_gateway.pyi +3 -26
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method_nonce.pyi +7 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method_nonce_gateway.pyi +3 -10
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method_parser.pyi +0 -14
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_account.pyi +3 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_account_gateway.pyi +2 -9
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_here.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/plan.pyi +16 -9
- package/dist/typeshed-fallback/stubs/braintree/braintree/plan_gateway.pyi +6 -10
- package/dist/typeshed-fallback/stubs/braintree/braintree/processor_response_types.pyi +5 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/resource.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/resource_collection.pyi +2 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/revoked_payment_method_metadata.pyi +5 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/risk_data.pyi +2 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/samsung_pay_card.pyi +5 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/search.pyi +9 -9
- package/dist/typeshed-fallback/stubs/braintree/braintree/sepa_direct_debit_account.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/sepa_direct_debit_account_gateway.pyi +8 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/settlement_batch_summary.pyi +1 -7
- package/dist/typeshed-fallback/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi +2 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/signature_service.pyi +3 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/status_event.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription.pyi +27 -32
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_details.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_gateway.pyi +2 -11
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_search.pyi +13 -17
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_status_event.pyi +4 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/successful_result.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/authentication_ids.pyi +18 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_defaults.pyi +5 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_numbers.pyi +40 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/merchant_account.pyi +7 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/nonces.pyi +83 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/venmo_sdk.pyi +9 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/testing_gateway.pyi +3 -7
- package/dist/typeshed-fallback/stubs/braintree/braintree/three_d_secure_info.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction.pyi +125 -115
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_amounts.pyi +6 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_details.pyi +3 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_gateway.pyi +3 -11
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_line_item.pyi +5 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_line_item_gateway.pyi +3 -10
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_review.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_search.pyi +70 -71
- package/dist/typeshed-fallback/stubs/braintree/braintree/unknown_payment_method.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/us_bank_account.pyi +5 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/us_bank_account_gateway.pyi +3 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/us_bank_account_verification.pyi +17 -14
- package/dist/typeshed-fallback/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi +3 -10
- package/dist/typeshed-fallback/stubs/braintree/braintree/us_bank_account_verification_search.pyi +13 -18
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/constants.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/generator.pyi +2 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/graphql_client.pyi +2 -11
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/http.pyi +6 -27
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/parser.pyi +2 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/xml_util.pyi +0 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/validation_error.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/validation_error_collection.pyi +1 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/venmo_account.pyi +3 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/venmo_profile_data.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/version.pyi +3 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/visa_checkout_card.pyi +7 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/webhook_notification.pyi +84 -74
- package/dist/typeshed-fallback/stubs/braintree/braintree/webhook_notification_gateway.pyi +3 -9
- package/dist/typeshed-fallback/stubs/braintree/braintree/webhook_testing.pyi +0 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/webhook_testing_gateway.pyi +2 -6
- package/dist/typeshed-fallback/stubs/caldav/caldav/davclient.pyi +1 -1
- package/dist/typeshed-fallback/stubs/caldav/caldav/objects.pyi +4 -8
- package/dist/typeshed-fallback/stubs/cffi/_cffi_backend.pyi +1 -1
- package/dist/typeshed-fallback/stubs/dateparser/dateparser/utils/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/parts.pyi +9 -2
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/__init__.pyi +7 -32
- package/dist/typeshed-fallback/stubs/flake8-builtins/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/flake8-builtins/flake8_builtins.pyi +37 -6
- package/dist/typeshed-fallback/stubs/fpdf2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/html.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gdb/METADATA.toml +2 -3
- package/dist/typeshed-fallback/stubs/gdb/gdb/FrameDecorator.pyi +19 -0
- package/dist/typeshed-fallback/stubs/gdb/gdb/FrameIterator.pyi +9 -0
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +152 -56
- package/dist/typeshed-fallback/stubs/gdb/gdb/events.pyi +22 -89
- package/dist/typeshed-fallback/stubs/gdb/gdb/types.pyi +4 -0
- package/dist/typeshed-fallback/stubs/gdb/gdb/unwinder.pyi +9 -1
- package/dist/typeshed-fallback/stubs/gdb/gdb/xmethod.pyi +20 -10
- package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +3 -3
- package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/adapters.pyi +25 -20
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_category.pyi +4 -3
- package/dist/typeshed-fallback/stubs/hvac/hvac/v1/__init__.pyi +3 -3
- package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/exceptions.pyi +2 -2
- package/dist/typeshed-fallback/stubs/netaddr/netaddr/core.pyi +2 -2
- package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/iana.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/binary.pyi +1 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/reportviews.pyi +8 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/convert.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/_writer.pyi +3 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/cell.pyi +8 -4
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/read_only.pyi +9 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chart/chartspace.pyi +1 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chart/reference.pyi +6 -4
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chartsheet/chartsheet.pyi +3 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/descriptors/base.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/descriptors/excel.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/workbook.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/reader/workbook.pyi +3 -4
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/styleable.pyi +7 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/stylesheet.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/workbook/_writer.pyi +5 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/workbook/workbook.pyi +27 -16
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_read_only.pyi +8 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_reader.pyi +3 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_write_only.pyi +5 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_writer.pyi +5 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/dimensions.pyi +3 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/merge.pyi +4 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/print_settings.pyi +3 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/writer/excel.pyi +2 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/xml/_functions_overloads.pyi +1 -1
- package/dist/typeshed-fallback/stubs/parsimonious/parsimonious/nodes.pyi +1 -1
- package/dist/typeshed-fallback/stubs/passlib/passlib/totp.pyi +85 -67
- package/dist/typeshed-fallback/stubs/polib/polib.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pyasn1/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pyasn1/pyasn1/codec/ber/encoder.pyi +1 -2
- package/dist/typeshed-fallback/stubs/python-xlib/METADATA.toml +0 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/_typing.pyi +0 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/composite.pyi +2 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/dpms.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/ge.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/nvcontrol.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/record.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/res.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/security.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/xfixes.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/xinerama.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/xinput.pyi +1 -2
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/ext/xtest.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/protocol/rq.pyi +2 -2
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/support/unix_connect.pyi +1 -2
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/support/vms_connect.pyi +1 -2
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/xobject/drawable.pyi +12 -3
- package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +39 -36
- package/dist/typeshed-fallback/stubs/pywin32/pythoncom.pyi +16 -8
- package/dist/typeshed-fallback/stubs/pywin32/pythonwin/win32ui.pyi +11 -8
- package/dist/typeshed-fallback/stubs/pywin32/pythonwin/win32uiole.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/pywintypes.pyi +6 -5
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32api.pyi +7 -7
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32file.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32gui.pyi +9 -7
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32ras.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32service.pyi +3 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32com/server/util.pyi +3 -2
- package/dist/typeshed-fallback/stubs/pywin32/win32com/universal.pyi +9 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32comext/mapi/mapi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32comext/shell/shell.pyi +3 -1
- package/dist/typeshed-fallback/stubs/requests/requests/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/requests/requests/cookies.pyi +24 -22
- package/package.json +1 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
1
|
from abc import ABCMeta, abstractmethod
|
|
3
2
|
from collections.abc import Mapping
|
|
4
|
-
from typing import Any
|
|
3
|
+
from typing import Any, Generic, TypeVar
|
|
5
4
|
from typing_extensions import Self
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
from requests import Response, Session
|
|
7
|
+
|
|
8
|
+
_R = TypeVar("_R")
|
|
9
|
+
|
|
10
|
+
class Adapter(Generic[_R], metaclass=ABCMeta):
|
|
8
11
|
@classmethod
|
|
9
|
-
def from_adapter(cls, adapter: Adapter) -> Self: ...
|
|
12
|
+
def from_adapter(cls, adapter: Adapter[_R]) -> Self: ...
|
|
10
13
|
base_uri: str
|
|
11
14
|
token: str | None
|
|
12
15
|
namespace: str | None
|
|
13
|
-
session:
|
|
16
|
+
session: Session
|
|
14
17
|
allow_redirects: bool
|
|
15
18
|
ignore_exceptions: bool
|
|
16
19
|
strict_http: bool
|
|
@@ -24,7 +27,7 @@ class Adapter(metaclass=ABCMeta):
|
|
|
24
27
|
timeout: int = 30,
|
|
25
28
|
proxies: Mapping[str, str] | None = None,
|
|
26
29
|
allow_redirects: bool = True,
|
|
27
|
-
session:
|
|
30
|
+
session: Session | None = None,
|
|
28
31
|
namespace: str | None = None,
|
|
29
32
|
ignore_exceptions: bool = False,
|
|
30
33
|
strict_http: bool = False,
|
|
@@ -33,28 +36,30 @@ class Adapter(metaclass=ABCMeta):
|
|
|
33
36
|
@staticmethod
|
|
34
37
|
def urljoin(*args: object) -> str: ...
|
|
35
38
|
def close(self) -> None: ...
|
|
36
|
-
def get(self, url: str, **kwargs: Any): ...
|
|
37
|
-
def post(self, url: str, **kwargs: Any): ...
|
|
38
|
-
def put(self, url: str, **kwargs: Any): ...
|
|
39
|
-
def delete(self, url: str, **kwargs: Any): ...
|
|
40
|
-
def list(self, url: str, **kwargs: Any): ...
|
|
41
|
-
def head(self, url: str, **kwargs: Any): ...
|
|
39
|
+
def get(self, url: str, **kwargs: Any) -> _R: ...
|
|
40
|
+
def post(self, url: str, **kwargs: Any) -> _R: ...
|
|
41
|
+
def put(self, url: str, **kwargs: Any) -> _R: ...
|
|
42
|
+
def delete(self, url: str, **kwargs: Any) -> _R: ...
|
|
43
|
+
def list(self, url: str, **kwargs: Any) -> _R: ...
|
|
44
|
+
def head(self, url: str, **kwargs: Any) -> _R: ...
|
|
42
45
|
def login(self, url: str, use_token: bool = True, **kwargs: Any): ...
|
|
43
46
|
@abstractmethod
|
|
44
|
-
def get_login_token(self, response) -> str: ...
|
|
47
|
+
def get_login_token(self, response: _R) -> str: ...
|
|
45
48
|
@abstractmethod
|
|
46
49
|
def request(
|
|
47
50
|
self, method, url: str, headers: Mapping[str, str] | None = None, raise_exception: bool = True, **kwargs: Any
|
|
48
|
-
): ...
|
|
51
|
+
) -> _R: ...
|
|
49
52
|
|
|
50
|
-
class
|
|
51
|
-
def get_login_token(self, response) -> str: ...
|
|
53
|
+
class _GenericRawAdapter(Adapter[_R]):
|
|
54
|
+
def get_login_token(self, response: _R) -> str: ...
|
|
52
55
|
def request(
|
|
53
56
|
self, method: str, url: str, headers: Mapping[str, str] | None = None, raise_exception: bool = True, **kwargs: Any
|
|
54
|
-
): ...
|
|
57
|
+
) -> _R: ...
|
|
58
|
+
|
|
59
|
+
class RawAdapter(_GenericRawAdapter[Response]): ...
|
|
55
60
|
|
|
56
|
-
class JSONAdapter(
|
|
57
|
-
def get_login_token(self, response) -> str: ...
|
|
58
|
-
def request(self, *args: Any, **kwargs: Any): ...
|
|
61
|
+
class JSONAdapter(_GenericRawAdapter[Response | dict[Any, Any]]):
|
|
62
|
+
def get_login_token(self, response: Response | dict[Any, Any]) -> str: ...
|
|
63
|
+
def request(self, *args: Any, **kwargs: Any) -> Response | dict[Any, Any]: ...
|
|
59
64
|
|
|
60
65
|
Request = RawAdapter
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from abc import ABCMeta, abstractmethod
|
|
2
2
|
from collections.abc import Sequence
|
|
3
3
|
from logging import Logger
|
|
4
|
+
from typing import Any
|
|
4
5
|
|
|
5
6
|
from hvac.adapters import Adapter
|
|
6
7
|
from hvac.api.vault_api_base import VaultApiBase
|
|
@@ -9,12 +10,12 @@ logger: Logger
|
|
|
9
10
|
|
|
10
11
|
class VaultApiCategory(VaultApiBase, metaclass=ABCMeta):
|
|
11
12
|
implemented_class_names: Sequence[str]
|
|
12
|
-
def __init__(self, adapter: Adapter) -> None: ...
|
|
13
|
+
def __init__(self, adapter: Adapter[Any]) -> None: ...
|
|
13
14
|
def __getattr__(self, item): ...
|
|
14
15
|
@property
|
|
15
|
-
def adapter(self) -> Adapter: ...
|
|
16
|
+
def adapter(self) -> Adapter[Any]: ...
|
|
16
17
|
@adapter.setter
|
|
17
|
-
def adapter(self, adapter: Adapter) -> None: ...
|
|
18
|
+
def adapter(self, adapter: Adapter[Any]) -> None: ...
|
|
18
19
|
@property
|
|
19
20
|
@abstractmethod
|
|
20
21
|
def implemented_classes(self): ...
|
|
@@ -16,15 +16,15 @@ class Client:
|
|
|
16
16
|
proxies: dict[str, str] | None = None,
|
|
17
17
|
allow_redirects: bool = True,
|
|
18
18
|
session: Incomplete | None = None,
|
|
19
|
-
adapter: type[Adapter] = ...,
|
|
19
|
+
adapter: type[Adapter[Any]] = ...,
|
|
20
20
|
namespace: Incomplete | None = None,
|
|
21
21
|
**kwargs: Any,
|
|
22
22
|
) -> None: ...
|
|
23
23
|
def __getattr__(self, name: str) -> Any: ...
|
|
24
24
|
@property
|
|
25
|
-
def adapter(self) -> Adapter: ...
|
|
25
|
+
def adapter(self) -> Adapter[Any]: ...
|
|
26
26
|
@adapter.setter
|
|
27
|
-
def adapter(self, adapter: Adapter) -> None: ...
|
|
27
|
+
def adapter(self, adapter: Adapter[Any]) -> None: ...
|
|
28
28
|
@property
|
|
29
29
|
def url(self) -> str: ...
|
|
30
30
|
@url.setter
|
|
@@ -32,8 +32,8 @@ class _Error(Exception):
|
|
|
32
32
|
cause: Incomplete | None = None,
|
|
33
33
|
context: Sequence[ValidationError] = (),
|
|
34
34
|
validator_value=...,
|
|
35
|
-
instance
|
|
36
|
-
schema
|
|
35
|
+
instance=...,
|
|
36
|
+
schema=...,
|
|
37
37
|
schema_path: Sequence[str | int] = (),
|
|
38
38
|
parent: _Error | None = None,
|
|
39
39
|
type_checker: _utils.Unset | TypeChecker = ...,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from _typeshed import
|
|
1
|
+
from _typeshed import SupportsWrite
|
|
2
2
|
from collections.abc import Iterator, Mapping
|
|
3
3
|
from typing import Final
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ class AddrConversionError(Exception): ...
|
|
|
13
13
|
class NotRegisteredError(Exception): ...
|
|
14
14
|
|
|
15
15
|
class Subscriber:
|
|
16
|
-
def update(self, data
|
|
16
|
+
def update(self, data) -> None: ...
|
|
17
17
|
|
|
18
18
|
class PrettyPrinter(Subscriber):
|
|
19
19
|
fh: SupportsWrite[str]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from _typeshed import ConvertibleToInt,
|
|
1
|
+
from _typeshed import ConvertibleToInt, Unused
|
|
2
2
|
from abc import abstractmethod
|
|
3
3
|
from collections.abc import Iterable, Iterator
|
|
4
4
|
from typing import Literal, SupportsIndex, SupportsInt, overload
|
|
@@ -92,7 +92,7 @@ class IPListMixin:
|
|
|
92
92
|
def __contains__(self, other: BaseIP | _IPAddressAddr) -> bool: ...
|
|
93
93
|
def __bool__(self) -> Literal[True]: ...
|
|
94
94
|
|
|
95
|
-
def parse_ip_network(module
|
|
95
|
+
def parse_ip_network(module, addr: tuple[int, int] | str, flags: int = 0) -> tuple[int, int]: ...
|
|
96
96
|
|
|
97
97
|
class IPNetwork(BaseIP, IPListMixin):
|
|
98
98
|
def __init__(self, addr: _IPNetworkAddr, version: Literal[4, 6] | None = None, flags: int = 0) -> None: ...
|
|
@@ -21,7 +21,7 @@ class SaxRecordParser(handler.ContentHandler):
|
|
|
21
21
|
class XMLRecordParser(Publisher):
|
|
22
22
|
xmlparser: XMLReader
|
|
23
23
|
fh: Incomplete
|
|
24
|
-
def __init__(self, fh
|
|
24
|
+
def __init__(self, fh, **kwargs: object) -> None: ...
|
|
25
25
|
def process_record(self, rec: Mapping[str, object]) -> dict[str, str] | None: ...
|
|
26
26
|
def consume_record(self, rec: object) -> None: ...
|
|
27
27
|
def parse(self) -> None: ...
|
|
@@ -45,7 +45,7 @@ class DictUpdater(Subscriber):
|
|
|
45
45
|
topic: str
|
|
46
46
|
unique_key: str
|
|
47
47
|
def __init__(self, dct: MutableMapping[_IanaInfoKey, Incomplete], topic: str, unique_key: str) -> None: ...
|
|
48
|
-
def update(self, data
|
|
48
|
+
def update(self, data) -> None: ...
|
|
49
49
|
|
|
50
50
|
def load_info() -> None: ...
|
|
51
51
|
def pprint_info(fh: SupportsWrite[str] | None = None) -> None: ...
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
1
|
from collections.abc import Hashable
|
|
3
2
|
from typing import TypeVar
|
|
4
3
|
|
|
@@ -22,4 +21,4 @@ _Y = TypeVar("_Y", bound=Hashable, covariant=True)
|
|
|
22
21
|
@_dispatch
|
|
23
22
|
def compose(G: DiGraph[_X], H: DiGraph[_Y]) -> DiGraph[_X | _Y]: ...
|
|
24
23
|
@_dispatch
|
|
25
|
-
def union(G: DiGraph[_X], H: DiGraph[_Y], rename
|
|
24
|
+
def union(G: DiGraph[_X], H: DiGraph[_Y], rename=()) -> DiGraph[_X | _Y]: ...
|
|
@@ -23,7 +23,7 @@ class Interval:
|
|
|
23
23
|
class ConflictPair:
|
|
24
24
|
left: Incomplete
|
|
25
25
|
right: Incomplete
|
|
26
|
-
def __init__(self, left
|
|
26
|
+
def __init__(self, left=..., right=...) -> None: ...
|
|
27
27
|
def swap(self) -> None: ...
|
|
28
28
|
def lowest(self, planarity_state): ...
|
|
29
29
|
|
|
@@ -45,7 +45,7 @@ class Graph(Collection[_Node]):
|
|
|
45
45
|
def __contains__(self, n: object) -> bool: ...
|
|
46
46
|
def __len__(self) -> int: ...
|
|
47
47
|
def add_node(self, node_for_adding: _Node, **attr) -> None: ...
|
|
48
|
-
def add_nodes_from(self, nodes_for_adding: Iterable[_NodePlus[_Node]], **attr
|
|
48
|
+
def add_nodes_from(self, nodes_for_adding: Iterable[_NodePlus[_Node]], **attr) -> None: ...
|
|
49
49
|
def remove_node(self, n: _Node) -> None: ...
|
|
50
50
|
def remove_nodes_from(self, nodes: Iterable[_Node]) -> None: ...
|
|
51
51
|
nodes: NodeView[_Node]
|
|
@@ -55,7 +55,7 @@ class Graph(Collection[_Node]):
|
|
|
55
55
|
def add_edge(self, u_of_edge: _Node, v_of_edge: _Node, **attr) -> None: ...
|
|
56
56
|
def add_edges_from(self, ebunch_to_add: Iterable[_EdgePlus[_Node]], **attr) -> None: ...
|
|
57
57
|
def add_weighted_edges_from(
|
|
58
|
-
self, ebunch_to_add: Iterable[tuple[_Node, _Node, Incomplete]], weight: str = "weight", **attr
|
|
58
|
+
self, ebunch_to_add: Iterable[tuple[_Node, _Node, Incomplete]], weight: str = "weight", **attr
|
|
59
59
|
) -> None: ...
|
|
60
60
|
def remove_edge(self, u: _Node, v: _Node) -> None: ...
|
|
61
61
|
def remove_edges_from(self, ebunch: Iterable[_EdgePlus[_Node]]) -> None: ...
|
|
@@ -68,7 +68,7 @@ class Graph(Collection[_Node]):
|
|
|
68
68
|
def has_edge(self, u: _Node, v: _Node) -> bool: ...
|
|
69
69
|
def neighbors(self, n: _Node) -> Iterator[_Node]: ...
|
|
70
70
|
edges: OutEdgeView[_Node]
|
|
71
|
-
def get_edge_data(self, u: _Node, v: _Node, default: Incomplete = None) -> Mapping[str, Incomplete]: ...
|
|
71
|
+
def get_edge_data(self, u: _Node, v: _Node, default: Incomplete | None = None) -> Mapping[str, Incomplete]: ...
|
|
72
72
|
def adjacency(self) -> Iterator[tuple[_Node, Mapping[_Node, Mapping[str, Incomplete]]]]: ...
|
|
73
73
|
|
|
74
74
|
degree: DiDegreeView[_Node]
|
|
@@ -15,13 +15,17 @@ class NodeView(Mapping[_Node, dict[str, Any]], AbstractSet[_Node]):
|
|
|
15
15
|
def __getitem__(self, n: _Node) -> dict[str, Any]: ...
|
|
16
16
|
def __contains__(self, n: object) -> bool: ...
|
|
17
17
|
@overload
|
|
18
|
-
def __call__(self, data: Literal[False] = False, default: Incomplete = None) -> Iterator[_Node]: ...
|
|
18
|
+
def __call__(self, data: Literal[False] = False, default: Incomplete | None = None) -> Iterator[_Node]: ...
|
|
19
19
|
@overload
|
|
20
|
-
def __call__(
|
|
21
|
-
|
|
20
|
+
def __call__(
|
|
21
|
+
self, data: Literal[True] | str, default: Incomplete | None = None
|
|
22
|
+
) -> Iterator[tuple[_Node, dict[str, Any]]]: ...
|
|
23
|
+
def data(self, data: bool | str = True, default: Incomplete | None = None) -> NodeDataView[_Node]: ...
|
|
22
24
|
|
|
23
25
|
class NodeDataView(AbstractSet[_Node]):
|
|
24
|
-
def __init__(
|
|
26
|
+
def __init__(
|
|
27
|
+
self, nodedict: Mapping[str, Incomplete], data: bool | str = False, default: Incomplete | None = None
|
|
28
|
+
) -> None: ...
|
|
25
29
|
def __len__(self) -> int: ...
|
|
26
30
|
def __iter__(self) -> Iterator[tuple[_Node, Incomplete]]: ... # type: ignore[override]
|
|
27
31
|
def __contains__(self, n: object) -> bool: ...
|
|
@@ -20,7 +20,7 @@ def to_networkx_graph(
|
|
|
20
20
|
@_dispatch
|
|
21
21
|
def to_dict_of_lists(G: Graph[_Node], nodelist: None | Iterable[_Node] = None) -> dict[_Node, list[_Node]]: ...
|
|
22
22
|
@_dispatch
|
|
23
|
-
def from_dict_of_lists(d: dict[_Node, Iterable[_Node]], create_using: Incomplete | None = None)
|
|
23
|
+
def from_dict_of_lists(d: dict[_Node, Iterable[_Node]], create_using: Incomplete | None = None): ...
|
|
24
24
|
def to_dict_of_dicts(G, nodelist=None, edge_data=None) -> dict[Incomplete, Incomplete]: ...
|
|
25
25
|
@_dispatch
|
|
26
26
|
def from_dict_of_dicts(d, create_using=None, multigraph_input=False): ...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
1
|
+
from _typeshed import Incomplete, Unused
|
|
2
2
|
|
|
3
|
-
def etree_write_cell(xf, worksheet, cell, styled: Incomplete | None = None) -> None: ...
|
|
4
|
-
def lxml_write_cell(xf, worksheet, cell, styled: bool = False) -> None: ...
|
|
3
|
+
def etree_write_cell(xf, worksheet: Unused, cell, styled: Incomplete | None = None) -> None: ...
|
|
4
|
+
def lxml_write_cell(xf, worksheet: Unused, cell, styled: bool = False) -> None: ...
|
|
5
5
|
|
|
6
6
|
write_cell = lxml_write_cell
|
|
7
7
|
write_cell = etree_write_cell
|
|
@@ -8,8 +8,9 @@ from openpyxl.comments.comments import Comment
|
|
|
8
8
|
from openpyxl.compat.numbers import NUMERIC_TYPES as NUMERIC_TYPES # cell numeric types
|
|
9
9
|
from openpyxl.styles.cell_style import StyleArray
|
|
10
10
|
from openpyxl.styles.styleable import StyleableObject
|
|
11
|
+
from openpyxl.workbook.child import _WorkbookChild
|
|
12
|
+
from openpyxl.worksheet._read_only import ReadOnlyWorksheet
|
|
11
13
|
from openpyxl.worksheet.hyperlink import Hyperlink
|
|
12
|
-
from openpyxl.worksheet.worksheet import Worksheet
|
|
13
14
|
|
|
14
15
|
__docformat__: Final = "restructuredtext en"
|
|
15
16
|
TIME_TYPES: Final[tuple[type, ...]]
|
|
@@ -41,7 +42,7 @@ class Cell(StyleableObject):
|
|
|
41
42
|
# row and column are never meant to be None and would lead to errors
|
|
42
43
|
def __init__(
|
|
43
44
|
self,
|
|
44
|
-
worksheet:
|
|
45
|
+
worksheet: _WorkbookChild | ReadOnlyWorksheet,
|
|
45
46
|
row: int,
|
|
46
47
|
column: int,
|
|
47
48
|
value: str | float | datetime | None = None,
|
|
@@ -86,10 +87,13 @@ class MergedCell(StyleableObject):
|
|
|
86
87
|
hyperlink: Hyperlink | None
|
|
87
88
|
row: int | None
|
|
88
89
|
column: int | None
|
|
89
|
-
def __init__(
|
|
90
|
+
def __init__(
|
|
91
|
+
self, worksheet: _WorkbookChild | ReadOnlyWorksheet, row: int | None = None, column: int | None = None
|
|
92
|
+
) -> None: ...
|
|
90
93
|
# Same as Cell.coordinate
|
|
94
|
+
# https://github.com/python/mypy/issues/6700
|
|
91
95
|
@property
|
|
92
96
|
def coordinate(self) -> str: ...
|
|
93
97
|
value: str | float | int | datetime | None
|
|
94
98
|
|
|
95
|
-
def WriteOnlyCell(ws:
|
|
99
|
+
def WriteOnlyCell(ws: _WorkbookChild | ReadOnlyWorksheet, value: str | float | datetime | None = None) -> Cell: ...
|
|
@@ -8,20 +8,26 @@ from openpyxl.styles.cell_style import StyleArray
|
|
|
8
8
|
from openpyxl.styles.fills import Fill
|
|
9
9
|
from openpyxl.styles.fonts import Font
|
|
10
10
|
from openpyxl.styles.protection import Protection
|
|
11
|
+
from openpyxl.workbook.child import _WorkbookChild
|
|
12
|
+
from openpyxl.worksheet._read_only import ReadOnlyWorksheet
|
|
11
13
|
|
|
12
14
|
class ReadOnlyCell:
|
|
13
|
-
parent:
|
|
15
|
+
parent: _WorkbookChild | ReadOnlyWorksheet
|
|
14
16
|
row: Incomplete
|
|
15
17
|
column: Incomplete
|
|
16
18
|
data_type: Incomplete
|
|
17
|
-
def __init__(
|
|
19
|
+
def __init__(
|
|
20
|
+
self, sheet: _WorkbookChild | ReadOnlyWorksheet, row, column, value, data_type: str = "n", style_id: int = 0
|
|
21
|
+
) -> None: ...
|
|
18
22
|
def __eq__(self, other: object) -> bool: ...
|
|
19
23
|
def __ne__(self, other: object) -> bool: ...
|
|
20
24
|
# Same as Cell.coordinate
|
|
25
|
+
# https://github.com/python/mypy/issues/6700
|
|
21
26
|
# Defined twice in the implementation
|
|
22
27
|
@property
|
|
23
28
|
def coordinate(self) -> str: ...
|
|
24
29
|
# Same as Cell.column_letter
|
|
30
|
+
# https://github.com/python/mypy/issues/6700
|
|
25
31
|
@property
|
|
26
32
|
def column_letter(self) -> str: ...
|
|
27
33
|
@property
|
|
@@ -41,6 +47,7 @@ class ReadOnlyCell:
|
|
|
41
47
|
@property
|
|
42
48
|
def protection(self) -> Protection: ...
|
|
43
49
|
# Same as Cell.is_date
|
|
50
|
+
# https://github.com/python/mypy/issues/6700
|
|
44
51
|
@property
|
|
45
52
|
def is_date(self) -> bool: ...
|
|
46
53
|
@property
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
from _typeshed import ConvertibleToInt,
|
|
1
|
+
from _typeshed import ConvertibleToInt, Unused
|
|
2
2
|
from collections.abc import Generator
|
|
3
3
|
from typing import Literal, overload
|
|
4
4
|
|
|
5
5
|
from openpyxl.descriptors import Strict
|
|
6
6
|
from openpyxl.descriptors.base import MinMax, String
|
|
7
|
+
from openpyxl.workbook.child import _WorkbookChild
|
|
8
|
+
from openpyxl.worksheet._read_only import ReadOnlyWorksheet
|
|
7
9
|
|
|
8
10
|
class DummyWorksheet:
|
|
9
11
|
title: str
|
|
@@ -15,12 +17,12 @@ class Reference(Strict):
|
|
|
15
17
|
min_col: MinMax[int, Literal[False]]
|
|
16
18
|
max_col: MinMax[int, Literal[False]]
|
|
17
19
|
range_string: String[Literal[True]]
|
|
18
|
-
worksheet:
|
|
20
|
+
worksheet: _WorkbookChild | ReadOnlyWorksheet | DummyWorksheet
|
|
19
21
|
@overload
|
|
20
22
|
def __init__(
|
|
21
23
|
self,
|
|
22
24
|
*,
|
|
23
|
-
worksheet:
|
|
25
|
+
worksheet: _WorkbookChild | ReadOnlyWorksheet | DummyWorksheet | None = None,
|
|
24
26
|
min_col: Unused = None,
|
|
25
27
|
min_row: Unused = None,
|
|
26
28
|
max_col: Unused = None,
|
|
@@ -30,7 +32,7 @@ class Reference(Strict):
|
|
|
30
32
|
@overload
|
|
31
33
|
def __init__(
|
|
32
34
|
self,
|
|
33
|
-
worksheet:
|
|
35
|
+
worksheet: _WorkbookChild | ReadOnlyWorksheet,
|
|
34
36
|
min_col: ConvertibleToInt,
|
|
35
37
|
min_row: ConvertibleToInt,
|
|
36
38
|
max_col: ConvertibleToInt | None = None,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from _typeshed import
|
|
1
|
+
from _typeshed import Unused
|
|
2
2
|
from typing import ClassVar, Literal
|
|
3
3
|
|
|
4
4
|
from openpyxl import _Decodable, _VisibilityType
|
|
@@ -12,6 +12,7 @@ from openpyxl.descriptors.base import Alias, Set, Typed
|
|
|
12
12
|
from openpyxl.descriptors.excel import ExtensionList
|
|
13
13
|
from openpyxl.descriptors.serialisable import Serialisable
|
|
14
14
|
from openpyxl.workbook.child import _WorkbookChild
|
|
15
|
+
from openpyxl.workbook.workbook import Workbook
|
|
15
16
|
from openpyxl.worksheet.drawing import Drawing
|
|
16
17
|
from openpyxl.worksheet.header_footer import HeaderFooter as _HeaderFooter
|
|
17
18
|
from openpyxl.worksheet.page import PageMargins, PrintPageSetup
|
|
@@ -50,7 +51,7 @@ class Chartsheet(_WorkbookChild, Serialisable):
|
|
|
50
51
|
picture: SheetBackgroundPicture | None = None,
|
|
51
52
|
webPublishItems: WebPublishItems | None = None,
|
|
52
53
|
extLst: Unused = None,
|
|
53
|
-
parent:
|
|
54
|
+
parent: Workbook | None = None,
|
|
54
55
|
title: str | _Decodable | None = "",
|
|
55
56
|
sheet_state: _VisibilityType = "visible",
|
|
56
57
|
) -> None: ...
|
|
@@ -296,7 +296,7 @@ class Default(Typed[_T, _N]): # unused
|
|
|
296
296
|
class Alias(Descriptor[Incomplete]):
|
|
297
297
|
alias: str
|
|
298
298
|
def __init__(self, alias: str) -> None: ...
|
|
299
|
-
def __set__(self, instance: Serialisable | Strict, value
|
|
299
|
+
def __set__(self, instance: Serialisable | Strict, value) -> None: ...
|
|
300
300
|
def __get__(self, instance: Serialisable | Strict, cls: Unused): ...
|
|
301
301
|
|
|
302
302
|
class MatchPattern(Descriptor[_P], Generic[_P, _N]):
|
|
@@ -22,7 +22,7 @@ class Percentage(MinMax[float, Incomplete]):
|
|
|
22
22
|
pattern: str
|
|
23
23
|
min: float
|
|
24
24
|
max: float
|
|
25
|
-
def __set__(self, instance: Serialisable | Strict, value
|
|
25
|
+
def __set__(self, instance: Serialisable | Strict, value) -> None: ...
|
|
26
26
|
|
|
27
27
|
class Extension(Serialisable):
|
|
28
28
|
uri: String[Literal[False]]
|
|
@@ -60,7 +60,7 @@ class WorkbookPackage(Serialisable):
|
|
|
60
60
|
properties: Alias
|
|
61
61
|
workbookProtection: Typed[WorkbookProtection, Literal[True]]
|
|
62
62
|
bookViews: Incomplete
|
|
63
|
-
sheets: Incomplete
|
|
63
|
+
sheets: Incomplete # NestedSequence[ChildSheet]
|
|
64
64
|
functionGroups: Typed[FunctionGroupList, Literal[True]]
|
|
65
65
|
externalReferences: Incomplete
|
|
66
66
|
definedNames: Typed[DefinedNameList, Literal[True]]
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
1
|
from collections.abc import Generator
|
|
3
2
|
from zipfile import ZipFile
|
|
4
3
|
|
|
5
4
|
from openpyxl.packaging.relationship import Relationship, RelationshipList
|
|
6
|
-
from openpyxl.packaging.workbook import PivotCache
|
|
5
|
+
from openpyxl.packaging.workbook import ChildSheet, PivotCache
|
|
7
6
|
from openpyxl.pivot.cache import CacheDefinition
|
|
8
7
|
from openpyxl.workbook import Workbook
|
|
9
8
|
|
|
@@ -12,14 +11,14 @@ class WorkbookParser:
|
|
|
12
11
|
workbook_part_name: str
|
|
13
12
|
wb: Workbook
|
|
14
13
|
keep_links: bool
|
|
15
|
-
sheets: list[
|
|
14
|
+
sheets: list[ChildSheet]
|
|
16
15
|
def __init__(self, archive: ZipFile, workbook_part_name: str, keep_links: bool = True) -> None: ...
|
|
17
16
|
@property
|
|
18
17
|
def rels(self) -> RelationshipList: ...
|
|
19
18
|
# Errors if "parse" is never called.
|
|
20
19
|
caches: list[PivotCache]
|
|
21
20
|
def parse(self) -> None: ...
|
|
22
|
-
def find_sheets(self) -> Generator[tuple[
|
|
21
|
+
def find_sheets(self) -> Generator[tuple[ChildSheet, Relationship], None, None]: ...
|
|
23
22
|
def assign_names(self) -> None: ...
|
|
24
23
|
@property
|
|
25
24
|
def pivot_caches(self) -> dict[int, CacheDefinition]: ...
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
from _typeshed import
|
|
1
|
+
from _typeshed import Unused
|
|
2
2
|
from collections.abc import Iterable
|
|
3
3
|
|
|
4
4
|
from openpyxl.descriptors.serialisable import Serialisable
|
|
5
|
+
from openpyxl.workbook.child import _WorkbookChild
|
|
6
|
+
from openpyxl.worksheet._read_only import ReadOnlyWorksheet
|
|
5
7
|
|
|
6
8
|
from .named_styles import NamedStyle
|
|
7
9
|
from .proxy import StyleProxy
|
|
@@ -41,8 +43,10 @@ class StyleableObject:
|
|
|
41
43
|
style: NamedStyleDescriptor
|
|
42
44
|
quotePrefix: StyleArrayDescriptor
|
|
43
45
|
pivotButton: StyleArrayDescriptor
|
|
44
|
-
parent:
|
|
45
|
-
def __init__(
|
|
46
|
+
parent: _WorkbookChild | ReadOnlyWorksheet
|
|
47
|
+
def __init__(
|
|
48
|
+
self, sheet: _WorkbookChild | ReadOnlyWorksheet, style_array: bytes | bytearray | Iterable[int] | None = None
|
|
49
|
+
) -> None: ...
|
|
46
50
|
@property
|
|
47
51
|
def style_id(self) -> int: ...
|
|
48
52
|
@property
|
|
@@ -56,4 +56,4 @@ class Stylesheet(Serialisable):
|
|
|
56
56
|
def to_tree(self, tagname: str | None = None, idx: Unused = None, namespace: str | None = None) -> Element: ...
|
|
57
57
|
|
|
58
58
|
def apply_stylesheet(archive: ZipFile, wb: _WorkbookT) -> _WorkbookT | None: ...
|
|
59
|
-
def write_stylesheet(wb): ...
|
|
59
|
+
def write_stylesheet(wb: Workbook): ...
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
from openpyxl.workbook.workbook import Workbook
|
|
4
|
+
|
|
5
|
+
def get_active_sheet(wb: Workbook) -> int | None: ...
|
|
4
6
|
|
|
5
7
|
class WorkbookWriter:
|
|
6
|
-
wb:
|
|
8
|
+
wb: Workbook
|
|
7
9
|
rels: Incomplete
|
|
8
10
|
package: Incomplete
|
|
9
|
-
def __init__(self, wb) -> None: ...
|
|
11
|
+
def __init__(self, wb: Workbook) -> None: ...
|
|
10
12
|
def write_properties(self) -> None: ...
|
|
11
13
|
def write_worksheets(self) -> None: ...
|
|
12
14
|
def write_refs(self) -> None: ...
|
|
@@ -2,7 +2,7 @@ from _typeshed import Incomplete, Unused
|
|
|
2
2
|
from collections.abc import Iterator
|
|
3
3
|
from datetime import datetime
|
|
4
4
|
from typing import Any, Final
|
|
5
|
-
from typing_extensions import deprecated
|
|
5
|
+
from typing_extensions import TypeAlias, deprecated
|
|
6
6
|
from zipfile import ZipFile
|
|
7
7
|
|
|
8
8
|
from openpyxl import _Decodable, _ZipFileFileProtocol
|
|
@@ -14,6 +14,9 @@ from openpyxl.worksheet._read_only import ReadOnlyWorksheet
|
|
|
14
14
|
from openpyxl.worksheet._write_only import WriteOnlyWorksheet
|
|
15
15
|
from openpyxl.worksheet.worksheet import Worksheet
|
|
16
16
|
|
|
17
|
+
_WorkbookWorksheet: TypeAlias = Worksheet | WriteOnlyWorksheet | ReadOnlyWorksheet
|
|
18
|
+
_WorkbookSheet: TypeAlias = _WorkbookWorksheet | Chartsheet
|
|
19
|
+
|
|
17
20
|
INTEGER_TYPES: Final[tuple[type[int]]]
|
|
18
21
|
|
|
19
22
|
class Workbook:
|
|
@@ -32,9 +35,9 @@ class Workbook:
|
|
|
32
35
|
rels: Incomplete
|
|
33
36
|
calculation: Incomplete
|
|
34
37
|
views: Incomplete
|
|
35
|
-
#
|
|
38
|
+
# Useful as a reference of what "sheets" can be for other types
|
|
36
39
|
# ExcelReader can add ReadOnlyWorksheet in read_only mode.
|
|
37
|
-
_sheets: list[
|
|
40
|
+
# _sheets: list[_WorkbookSheet]
|
|
38
41
|
def __init__(self, write_only: bool = False, iso_dates: bool = False) -> None: ...
|
|
39
42
|
@property
|
|
40
43
|
def epoch(self) -> datetime: ...
|
|
@@ -49,38 +52,43 @@ class Workbook:
|
|
|
49
52
|
@property
|
|
50
53
|
def excel_base_date(self) -> datetime: ...
|
|
51
54
|
@property
|
|
52
|
-
def active(self) ->
|
|
55
|
+
def active(self) -> _WorkbookSheet | None: ...
|
|
53
56
|
@active.setter
|
|
54
|
-
def active(self, value:
|
|
57
|
+
def active(self, value: Worksheet | Chartsheet | int) -> None: ...
|
|
58
|
+
# read_only workbook cannot call this method
|
|
55
59
|
# Could be generic based on write_only
|
|
56
60
|
def create_sheet(
|
|
57
61
|
self, title: str | _Decodable | None = None, index: int | None = None
|
|
58
62
|
) -> Any: ... # AnyOf[WriteOnlyWorksheet, Worksheet]
|
|
59
63
|
def move_sheet(self, sheet: Worksheet | str, offset: int = 0) -> None: ...
|
|
60
|
-
def remove(self, worksheet:
|
|
64
|
+
def remove(self, worksheet: _WorkbookSheet) -> None: ...
|
|
61
65
|
@deprecated("Use wb.remove(worksheet) or del wb[sheetname]")
|
|
62
|
-
def remove_sheet(self, worksheet:
|
|
66
|
+
def remove_sheet(self, worksheet: _WorkbookSheet) -> None: ...
|
|
63
67
|
def create_chartsheet(self, title: str | _Decodable | None = None, index: int | None = None) -> Chartsheet: ...
|
|
64
68
|
@deprecated("Use wb[sheetname]")
|
|
65
|
-
def get_sheet_by_name(self, name: str) ->
|
|
69
|
+
def get_sheet_by_name(self, name: str) -> _WorkbookSheet: ...
|
|
66
70
|
def __contains__(self, key: str) -> bool: ...
|
|
67
|
-
def index(self, worksheet:
|
|
71
|
+
def index(self, worksheet: _WorkbookWorksheet) -> int: ...
|
|
68
72
|
@deprecated("Use wb.index(worksheet)")
|
|
69
|
-
def get_index(self, worksheet:
|
|
70
|
-
def __getitem__(self, key: str) ->
|
|
73
|
+
def get_index(self, worksheet: _WorkbookWorksheet) -> int: ...
|
|
74
|
+
def __getitem__(self, key: str) -> _WorkbookSheet: ...
|
|
71
75
|
def __delitem__(self, key: str) -> None: ...
|
|
72
|
-
def __iter__(self) -> Iterator[
|
|
76
|
+
def __iter__(self) -> Iterator[_WorkbookWorksheet]: ...
|
|
73
77
|
@deprecated("Use wb.sheetnames")
|
|
74
|
-
def get_sheet_names(self) -> list[
|
|
78
|
+
def get_sheet_names(self) -> list[str]: ...
|
|
75
79
|
@property
|
|
76
|
-
def worksheets(self) -> list[
|
|
80
|
+
def worksheets(self) -> list[_WorkbookWorksheet]: ...
|
|
77
81
|
@property
|
|
78
82
|
def chartsheets(self) -> list[Chartsheet]: ...
|
|
79
83
|
@property
|
|
80
84
|
def sheetnames(self) -> list[str]: ...
|
|
81
85
|
@deprecated("Assign scoped named ranges directly to worksheets or global ones to the workbook. Deprecated in 3.1")
|
|
82
86
|
def create_named_range(
|
|
83
|
-
self,
|
|
87
|
+
self,
|
|
88
|
+
name: str,
|
|
89
|
+
worksheet: _WorkbookChild | ReadOnlyWorksheet | None = None,
|
|
90
|
+
value: str | Incomplete | None = None,
|
|
91
|
+
scope: Unused = None,
|
|
84
92
|
) -> None: ...
|
|
85
93
|
def add_named_style(self, style: NamedStyle) -> None: ...
|
|
86
94
|
@property
|
|
@@ -90,5 +98,8 @@ class Workbook:
|
|
|
90
98
|
def save(self, filename: _ZipFileFileProtocol) -> None: ...
|
|
91
99
|
@property
|
|
92
100
|
def style_names(self) -> list[str]: ...
|
|
93
|
-
|
|
101
|
+
# A write_only and read_only workbooks can't use this method as it requires both reading and writing.
|
|
102
|
+
# On an implementation level, a WorksheetCopy is created from the call to self.create_sheet,
|
|
103
|
+
# but WorksheetCopy only works with Worksheet.
|
|
104
|
+
def copy_worksheet(self, from_worksheet: Worksheet) -> Worksheet: ...
|
|
94
105
|
def close(self) -> None: ...
|