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,10 +1,11 @@
|
|
|
1
|
-
from _typeshed import
|
|
1
|
+
from _typeshed import SupportsGetItem
|
|
2
2
|
from collections.abc import Generator
|
|
3
3
|
|
|
4
4
|
from openpyxl import _VisibilityType
|
|
5
5
|
from openpyxl.cell import _CellValue
|
|
6
6
|
from openpyxl.cell.cell import Cell
|
|
7
7
|
from openpyxl.utils.cell import _RangeBoundariesTuple
|
|
8
|
+
from openpyxl.workbook.workbook import Workbook
|
|
8
9
|
from openpyxl.worksheet.worksheet import Worksheet
|
|
9
10
|
|
|
10
11
|
def read_dimension(source) -> _RangeBoundariesTuple | None: ...
|
|
@@ -13,17 +14,21 @@ class ReadOnlyWorksheet:
|
|
|
13
14
|
cell = Worksheet.cell
|
|
14
15
|
iter_rows = Worksheet.iter_rows
|
|
15
16
|
# Same as Worksheet.values
|
|
17
|
+
# https://github.com/python/mypy/issues/6700
|
|
16
18
|
@property
|
|
17
19
|
def values(self) -> Generator[tuple[_CellValue, ...], None, None]: ...
|
|
18
20
|
# Same as Worksheet.rows
|
|
21
|
+
# https://github.com/python/mypy/issues/6700
|
|
19
22
|
@property
|
|
20
23
|
def rows(self) -> Generator[tuple[Cell, ...], None, None]: ...
|
|
21
24
|
__getitem__ = Worksheet.__getitem__
|
|
22
25
|
__iter__ = Worksheet.__iter__
|
|
23
|
-
parent:
|
|
26
|
+
parent: Workbook
|
|
24
27
|
title: str
|
|
25
28
|
sheet_state: _VisibilityType
|
|
26
|
-
def __init__(
|
|
29
|
+
def __init__(
|
|
30
|
+
self, parent_workbook: Workbook, title: str, worksheet_path, shared_strings: SupportsGetItem[int, str]
|
|
31
|
+
) -> None: ...
|
|
27
32
|
def calculate_dimension(self, force: bool = False): ...
|
|
28
33
|
def reset_dimensions(self) -> None: ...
|
|
29
34
|
@property
|
|
@@ -15,6 +15,7 @@ from .hyperlink import HyperlinkList
|
|
|
15
15
|
from .pagebreak import ColBreak, RowBreak
|
|
16
16
|
from .protection import SheetProtection
|
|
17
17
|
from .table import TablePartList
|
|
18
|
+
from .worksheet import Worksheet
|
|
18
19
|
|
|
19
20
|
CELL_TAG: Final[str]
|
|
20
21
|
VALUE_TAG: Final[str]
|
|
@@ -100,11 +101,11 @@ class WorkSheetParser:
|
|
|
100
101
|
def parse_custom_views(self, element: Unused) -> None: ...
|
|
101
102
|
|
|
102
103
|
class WorksheetReader:
|
|
103
|
-
ws:
|
|
104
|
+
ws: Worksheet
|
|
104
105
|
parser: WorkSheetParser
|
|
105
106
|
tables: list[Incomplete]
|
|
106
107
|
def __init__(
|
|
107
|
-
self, ws, xml_source: _FileRead, shared_strings: SupportsGetItem[int, str], data_only: bool, rich_text: bool
|
|
108
|
+
self, ws: Worksheet, xml_source: _FileRead, shared_strings: SupportsGetItem[int, str], data_only: bool, rich_text: bool
|
|
108
109
|
) -> None: ...
|
|
109
110
|
def bind_cells(self) -> None: ...
|
|
110
111
|
def bind_formatting(self) -> None: ...
|
|
@@ -3,7 +3,9 @@ from collections.abc import Iterable
|
|
|
3
3
|
from openpyxl import _Decodable
|
|
4
4
|
from openpyxl.cell.cell import Cell
|
|
5
5
|
from openpyxl.workbook.child import _WorkbookChild
|
|
6
|
+
from openpyxl.workbook.workbook import Workbook
|
|
6
7
|
from openpyxl.worksheet.table import TableList
|
|
8
|
+
from openpyxl.worksheet.views import SheetView
|
|
7
9
|
from openpyxl.worksheet.worksheet import Worksheet
|
|
8
10
|
|
|
9
11
|
class WriteOnlyWorksheet(_WorkbookChild):
|
|
@@ -13,6 +15,7 @@ class WriteOnlyWorksheet(_WorkbookChild):
|
|
|
13
15
|
add_table = Worksheet.add_table
|
|
14
16
|
|
|
15
17
|
# Same properties as Worksheet
|
|
18
|
+
# https://github.com/python/mypy/issues/6700
|
|
16
19
|
@property
|
|
17
20
|
def tables(self) -> TableList: ...
|
|
18
21
|
@property
|
|
@@ -34,8 +37,8 @@ class WriteOnlyWorksheet(_WorkbookChild):
|
|
|
34
37
|
@print_area.setter
|
|
35
38
|
def print_area(self, value: str | Iterable[str] | None) -> None: ...
|
|
36
39
|
@property
|
|
37
|
-
def sheet_view(self): ...
|
|
38
|
-
def __init__(self, parent, title: str | _Decodable | None) -> None: ...
|
|
40
|
+
def sheet_view(self) -> SheetView: ...
|
|
41
|
+
def __init__(self, parent: Workbook | None, title: str | _Decodable | None) -> None: ...
|
|
39
42
|
@property
|
|
40
43
|
def closed(self) -> bool: ...
|
|
41
44
|
def close(self) -> None: ...
|
|
@@ -3,6 +3,9 @@ from collections.abc import Generator
|
|
|
3
3
|
from typing import Protocol
|
|
4
4
|
from typing_extensions import TypeAlias
|
|
5
5
|
|
|
6
|
+
from openpyxl.worksheet._write_only import WriteOnlyWorksheet
|
|
7
|
+
from openpyxl.worksheet.worksheet import Worksheet
|
|
8
|
+
|
|
6
9
|
# WorksheetWriter.read has an explicit BytesIO branch. Let's make sure this protocol is viable for BytesIO too.
|
|
7
10
|
class _SupportsCloseAndWrite(Protocol):
|
|
8
11
|
def write(self, buffer: ReadableBuffer, /) -> Unused: ...
|
|
@@ -17,10 +20,10 @@ ALL_TEMP_FILES: list[str]
|
|
|
17
20
|
def create_temporary_file(suffix: str = "") -> str: ...
|
|
18
21
|
|
|
19
22
|
class WorksheetWriter:
|
|
20
|
-
ws:
|
|
23
|
+
ws: Worksheet | WriteOnlyWorksheet
|
|
21
24
|
out: _OutType
|
|
22
25
|
xf: Generator[Incomplete | None, Incomplete, None]
|
|
23
|
-
def __init__(self, ws, out: _OutType | None = None) -> None: ...
|
|
26
|
+
def __init__(self, ws: Worksheet | WriteOnlyWorksheet, out: _OutType | None = None) -> None: ...
|
|
24
27
|
def write_properties(self) -> None: ...
|
|
25
28
|
def write_dimensions(self) -> None: ...
|
|
26
29
|
def write_format(self) -> None: ...
|
|
@@ -24,6 +24,9 @@ class Dimension(Strict, StyleableObject):
|
|
|
24
24
|
collapsed: Bool[Literal[False]]
|
|
25
25
|
style: Alias # type: ignore[assignment]
|
|
26
26
|
|
|
27
|
+
# Dimensions are only meant to be used on Worksheet objects
|
|
28
|
+
parent: Worksheet
|
|
29
|
+
|
|
27
30
|
def __init__(
|
|
28
31
|
self,
|
|
29
32
|
index: ConvertibleToInt,
|
|
@@ -2,12 +2,14 @@ from _typeshed import Incomplete, Unused
|
|
|
2
2
|
from typing import ClassVar
|
|
3
3
|
|
|
4
4
|
from openpyxl.descriptors.serialisable import Serialisable
|
|
5
|
+
from openpyxl.worksheet.worksheet import Worksheet
|
|
5
6
|
|
|
6
7
|
from .cell_range import CellRange
|
|
7
8
|
|
|
8
9
|
class MergeCell(CellRange):
|
|
9
10
|
tagname: ClassVar[str]
|
|
10
11
|
# Same as CellRange.coord
|
|
12
|
+
# https://github.com/python/mypy/issues/6700
|
|
11
13
|
@property
|
|
12
14
|
def ref(self) -> str: ...
|
|
13
15
|
__attrs__: ClassVar[tuple[str, ...]]
|
|
@@ -26,9 +28,9 @@ class MergeCells(Serialisable):
|
|
|
26
28
|
def count(self) -> int: ...
|
|
27
29
|
|
|
28
30
|
class MergedCellRange(CellRange):
|
|
29
|
-
ws:
|
|
31
|
+
ws: Worksheet
|
|
30
32
|
start_cell: Incomplete
|
|
31
|
-
def __init__(self, worksheet, coord) -> None: ...
|
|
33
|
+
def __init__(self, worksheet: Worksheet, coord) -> None: ...
|
|
32
34
|
def format(self) -> None: ...
|
|
33
35
|
def __contains__(self, coord: str) -> bool: ...
|
|
34
36
|
def __copy__(self): ...
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from _typeshed import ConvertibleToInt,
|
|
1
|
+
from _typeshed import ConvertibleToInt, Unused
|
|
2
2
|
from re import Pattern
|
|
3
3
|
from typing import Final, Literal, overload
|
|
4
4
|
from typing_extensions import Self
|
|
@@ -22,7 +22,7 @@ class ColRange(Strict):
|
|
|
22
22
|
@overload
|
|
23
23
|
def __init__(self, range_string: None = None, *, min_col: str, max_col: str) -> None: ...
|
|
24
24
|
@overload
|
|
25
|
-
def __init__(self, range_string
|
|
25
|
+
def __init__(self, range_string, min_col: Unused = None, max_col: Unused = None) -> None: ...
|
|
26
26
|
def __eq__(self, other: object) -> bool: ...
|
|
27
27
|
|
|
28
28
|
class RowRange(Strict):
|
|
@@ -31,7 +31,7 @@ class RowRange(Strict):
|
|
|
31
31
|
@overload
|
|
32
32
|
def __init__(self, range_string: None, min_row: ConvertibleToInt, max_row: ConvertibleToInt) -> None: ...
|
|
33
33
|
@overload
|
|
34
|
-
def __init__(self, range_string
|
|
34
|
+
def __init__(self, range_string, min_row: Unused = None, max_row: Unused = None) -> None: ...
|
|
35
35
|
def __eq__(self, other: object) -> bool: ...
|
|
36
36
|
|
|
37
37
|
class PrintTitles(Strict):
|
|
@@ -4,6 +4,7 @@ from zipfile import ZipFile
|
|
|
4
4
|
from openpyxl import _ZipFileFileProtocol
|
|
5
5
|
from openpyxl.packaging.manifest import Manifest
|
|
6
6
|
from openpyxl.workbook.workbook import Workbook
|
|
7
|
+
from openpyxl.worksheet.worksheet import Worksheet
|
|
7
8
|
|
|
8
9
|
class ExcelWriter:
|
|
9
10
|
workbook: Workbook
|
|
@@ -11,7 +12,7 @@ class ExcelWriter:
|
|
|
11
12
|
vba_modified: set[str | None]
|
|
12
13
|
def __init__(self, workbook: Workbook, archive: ZipFile) -> None: ...
|
|
13
14
|
def write_data(self) -> None: ...
|
|
14
|
-
def write_worksheet(self, ws) -> None: ...
|
|
15
|
+
def write_worksheet(self, ws: Worksheet) -> None: ...
|
|
15
16
|
def save(self) -> None: ...
|
|
16
17
|
|
|
17
18
|
def save_workbook(workbook: Workbook, filename: _ZipFileFileProtocol) -> Literal[True]: ...
|
|
@@ -36,7 +36,7 @@ class NodeVisitor(Generic[_VisitResultT], metaclass=RuleDecoratorMeta):
|
|
|
36
36
|
grammar: Grammar | Incomplete
|
|
37
37
|
unwrapped_exceptions: tuple[type[BaseException], ...]
|
|
38
38
|
def visit(self, node: Node) -> _VisitResultT: ...
|
|
39
|
-
def generic_visit(self, node: Node, visited_children: Sequence[Any])
|
|
39
|
+
def generic_visit(self, node: Node, visited_children: Sequence[Any]): ...
|
|
40
40
|
def parse(self, text: str, pos: int = 0) -> _VisitResultT: ...
|
|
41
41
|
def match(self, text: str, pos: int = 0) -> _VisitResultT: ...
|
|
42
42
|
def lift_child(self, node: Node, children: Sequence[_ChildT]) -> _ChildT: ...
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
1
|
+
from collections.abc import Callable
|
|
2
|
+
from datetime import datetime
|
|
3
|
+
from typing import Any, Literal
|
|
4
|
+
from typing_extensions import Self
|
|
3
5
|
|
|
4
6
|
from passlib.exc import (
|
|
5
7
|
InvalidTokenError as InvalidTokenError,
|
|
@@ -12,119 +14,135 @@ from passlib.utils import SequenceMixin
|
|
|
12
14
|
class AppWallet:
|
|
13
15
|
salt_size: int
|
|
14
16
|
encrypt_cost: int
|
|
15
|
-
default_tag:
|
|
17
|
+
default_tag: str | None
|
|
16
18
|
def __init__(
|
|
17
19
|
self,
|
|
18
|
-
secrets:
|
|
19
|
-
default_tag:
|
|
20
|
-
encrypt_cost:
|
|
21
|
-
secrets_path:
|
|
20
|
+
secrets: dict[int, str] | dict[int, bytes] | dict[str, str] | dict[str, bytes] | str | None = None,
|
|
21
|
+
default_tag: str | None = None,
|
|
22
|
+
encrypt_cost: int | None = None,
|
|
23
|
+
secrets_path: str | None = None,
|
|
22
24
|
) -> None: ...
|
|
23
25
|
@property
|
|
24
|
-
def has_secrets(self): ...
|
|
25
|
-
def get_secret(self, tag): ...
|
|
26
|
-
def encrypt_key(self, key): ...
|
|
27
|
-
def decrypt_key(self, enckey): ...
|
|
26
|
+
def has_secrets(self) -> bool: ...
|
|
27
|
+
def get_secret(self, tag: str) -> bytes: ...
|
|
28
|
+
def encrypt_key(self, key: bytes) -> dict[str, Any]: ...
|
|
29
|
+
def decrypt_key(self, enckey: dict[str, Any]) -> tuple[bytes, bool]: ...
|
|
28
30
|
|
|
29
31
|
class TOTP:
|
|
30
32
|
min_json_version: int
|
|
31
33
|
json_version: int
|
|
32
|
-
wallet:
|
|
33
|
-
now:
|
|
34
|
+
wallet: AppWallet | None
|
|
35
|
+
now: Callable[[], float]
|
|
34
36
|
digits: int
|
|
35
37
|
alg: str
|
|
36
|
-
label:
|
|
37
|
-
issuer:
|
|
38
|
+
label: str | None
|
|
39
|
+
issuer: str | None
|
|
38
40
|
period: int
|
|
39
41
|
changed: bool
|
|
40
42
|
@classmethod
|
|
41
43
|
def using(
|
|
42
44
|
cls,
|
|
43
|
-
digits:
|
|
44
|
-
alg:
|
|
45
|
-
period:
|
|
46
|
-
issuer:
|
|
47
|
-
wallet:
|
|
48
|
-
now:
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
digits: int | None = None,
|
|
46
|
+
alg: Literal["sha1", "sha256", "sha512"] | None = None,
|
|
47
|
+
period: int | None = None,
|
|
48
|
+
issuer: str | None = None,
|
|
49
|
+
wallet: AppWallet | None = None,
|
|
50
|
+
now: Callable[[], float] | None = None,
|
|
51
|
+
*,
|
|
52
|
+
secrets: dict[int, str] | dict[int, bytes] | dict[str, str] | dict[str, bytes] | str | None = None,
|
|
53
|
+
**kwds: Any,
|
|
54
|
+
) -> type[TOTP]: ...
|
|
51
55
|
@classmethod
|
|
52
|
-
def new(cls, **kwds): ...
|
|
56
|
+
def new(cls, **kwds: Any) -> Self: ...
|
|
53
57
|
def __init__(
|
|
54
58
|
self,
|
|
55
|
-
key:
|
|
59
|
+
key: str | bytes | None = None,
|
|
56
60
|
format: str = "base32",
|
|
57
61
|
new: bool = False,
|
|
58
|
-
digits:
|
|
59
|
-
alg:
|
|
60
|
-
size:
|
|
61
|
-
period:
|
|
62
|
-
label:
|
|
63
|
-
issuer:
|
|
62
|
+
digits: int | None = None,
|
|
63
|
+
alg: Literal["sha1", "sha256", "sha512"] | None = None,
|
|
64
|
+
size: int | None = None,
|
|
65
|
+
period: int | None = None,
|
|
66
|
+
label: str | None = None,
|
|
67
|
+
issuer: str | None = None,
|
|
64
68
|
changed: bool = False,
|
|
65
|
-
**kwds,
|
|
69
|
+
**kwds: Any,
|
|
66
70
|
) -> None: ...
|
|
67
71
|
@property
|
|
68
|
-
def key(self): ...
|
|
72
|
+
def key(self) -> bytes: ...
|
|
69
73
|
@key.setter
|
|
70
|
-
def key(self, value) -> None: ...
|
|
74
|
+
def key(self, value: bytes) -> None: ...
|
|
71
75
|
@property
|
|
72
|
-
def encrypted_key(self): ...
|
|
76
|
+
def encrypted_key(self) -> dict[str, Any]: ...
|
|
73
77
|
@encrypted_key.setter
|
|
74
|
-
def encrypted_key(self, value) -> None: ...
|
|
78
|
+
def encrypted_key(self, value: dict[str, Any]) -> None: ...
|
|
75
79
|
@property
|
|
76
|
-
def hex_key(self): ...
|
|
80
|
+
def hex_key(self) -> str: ...
|
|
77
81
|
@property
|
|
78
|
-
def base32_key(self): ...
|
|
79
|
-
def pretty_key(self, format: str = "base32", sep: str = "-"): ...
|
|
82
|
+
def base32_key(self) -> str: ...
|
|
83
|
+
def pretty_key(self, format: str = "base32", sep: str | Literal[False] = "-") -> str: ...
|
|
80
84
|
@classmethod
|
|
81
|
-
def normalize_time(cls, time): ...
|
|
82
|
-
def normalize_token(self_or_cls, token): ...
|
|
83
|
-
def generate(self, time:
|
|
85
|
+
def normalize_time(cls, time: float | datetime | None) -> int: ...
|
|
86
|
+
def normalize_token(self_or_cls, token: bytes | str | int) -> str: ...
|
|
87
|
+
def generate(self, time: float | datetime | None = None) -> TotpToken: ...
|
|
84
88
|
@classmethod
|
|
85
|
-
def verify(
|
|
89
|
+
def verify(
|
|
90
|
+
cls,
|
|
91
|
+
token: int | str,
|
|
92
|
+
source: TOTP | dict[str, Any] | str | bytes,
|
|
93
|
+
*,
|
|
94
|
+
time: float | datetime | None = ...,
|
|
95
|
+
window: int = ...,
|
|
96
|
+
skew: int = ...,
|
|
97
|
+
last_counter: int | None = ...,
|
|
98
|
+
) -> TotpMatch: ...
|
|
86
99
|
def match(
|
|
87
|
-
self,
|
|
88
|
-
|
|
100
|
+
self,
|
|
101
|
+
token: int | str,
|
|
102
|
+
time: float | datetime | None = None,
|
|
103
|
+
window: int = 30,
|
|
104
|
+
skew: int = 0,
|
|
105
|
+
last_counter: int | None = None,
|
|
106
|
+
) -> TotpMatch: ...
|
|
89
107
|
@classmethod
|
|
90
|
-
def from_source(cls, source): ...
|
|
108
|
+
def from_source(cls, source: TOTP | dict[str, Any] | str | bytes) -> Self: ...
|
|
91
109
|
@classmethod
|
|
92
|
-
def from_uri(cls, uri): ...
|
|
93
|
-
def to_uri(self, label:
|
|
110
|
+
def from_uri(cls, uri: str) -> Self: ...
|
|
111
|
+
def to_uri(self, label: str | None = None, issuer: str | None = None) -> str: ...
|
|
94
112
|
@classmethod
|
|
95
|
-
def from_json(cls, source): ...
|
|
96
|
-
def to_json(self, encrypt:
|
|
113
|
+
def from_json(cls, source: str | bytes) -> Self: ...
|
|
114
|
+
def to_json(self, encrypt: bool | None = None) -> str: ...
|
|
97
115
|
@classmethod
|
|
98
|
-
def from_dict(cls, source): ...
|
|
99
|
-
def to_dict(self, encrypt:
|
|
116
|
+
def from_dict(cls, source: dict[str, Any]) -> Self: ...
|
|
117
|
+
def to_dict(self, encrypt: bool | None = None) -> dict[str, Any]: ...
|
|
100
118
|
|
|
101
119
|
class TotpToken(SequenceMixin):
|
|
102
|
-
totp:
|
|
103
|
-
token:
|
|
104
|
-
counter:
|
|
105
|
-
def __init__(self, totp, token, counter) -> None: ...
|
|
120
|
+
totp: TOTP | None
|
|
121
|
+
token: str | None
|
|
122
|
+
counter: int | None
|
|
123
|
+
def __init__(self, totp: TOTP, token: str, counter: int) -> None: ...
|
|
106
124
|
@property
|
|
107
|
-
def start_time(self): ...
|
|
125
|
+
def start_time(self) -> int: ...
|
|
108
126
|
@property
|
|
109
|
-
def expire_time(self): ...
|
|
127
|
+
def expire_time(self) -> int: ...
|
|
110
128
|
@property
|
|
111
|
-
def remaining(self): ...
|
|
129
|
+
def remaining(self) -> float: ...
|
|
112
130
|
@property
|
|
113
|
-
def valid(self): ...
|
|
131
|
+
def valid(self) -> bool: ...
|
|
114
132
|
|
|
115
133
|
class TotpMatch(SequenceMixin):
|
|
116
|
-
totp:
|
|
134
|
+
totp: TOTP | None
|
|
117
135
|
counter: int
|
|
118
136
|
time: int
|
|
119
137
|
window: int
|
|
120
|
-
def __init__(self, totp, counter, time, window: int = 30) -> None: ...
|
|
138
|
+
def __init__(self, totp: TOTP, counter: int, time: int, window: int = 30) -> None: ...
|
|
121
139
|
@property
|
|
122
|
-
def expected_counter(self): ...
|
|
140
|
+
def expected_counter(self) -> int: ...
|
|
123
141
|
@property
|
|
124
|
-
def skipped(self): ...
|
|
142
|
+
def skipped(self) -> int: ...
|
|
125
143
|
@property
|
|
126
|
-
def expire_time(self): ...
|
|
144
|
+
def expire_time(self) -> int: ...
|
|
127
145
|
@property
|
|
128
|
-
def cache_seconds(self): ...
|
|
146
|
+
def cache_seconds(self) -> int: ...
|
|
129
147
|
@property
|
|
130
|
-
def cache_time(self): ...
|
|
148
|
+
def cache_time(self) -> int: ...
|
|
@@ -83,7 +83,7 @@ class _BaseEntry:
|
|
|
83
83
|
class POEntry(_BaseEntry):
|
|
84
84
|
comment: str
|
|
85
85
|
tcomment: str
|
|
86
|
-
occurrences: list[tuple[str,
|
|
86
|
+
occurrences: list[tuple[str, str]]
|
|
87
87
|
flags: list[str]
|
|
88
88
|
previous_msgctxt: str | None
|
|
89
89
|
previous_msgid: str | None
|
|
@@ -109,7 +109,7 @@ class POEntry(_BaseEntry):
|
|
|
109
109
|
class MOEntry(_BaseEntry):
|
|
110
110
|
comment: str
|
|
111
111
|
tcomment: str
|
|
112
|
-
occurrences: list[tuple[str,
|
|
112
|
+
occurrences: list[tuple[str, str]]
|
|
113
113
|
flags: list[str]
|
|
114
114
|
previous_msgctxt: str | None
|
|
115
115
|
previous_msgid: str | None
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
version = "0.
|
|
1
|
+
version = "0.6.*"
|
|
2
2
|
upstream_repository = "https://github.com/pyasn1/pyasn1"
|
|
@@ -43,8 +43,7 @@ class ObjectIdentifierEncoder(AbstractItemEncoder):
|
|
|
43
43
|
def encodeValue(self, value, asn1Spec, encodeFun, **options): ...
|
|
44
44
|
|
|
45
45
|
class RealEncoder(AbstractItemEncoder):
|
|
46
|
-
|
|
47
|
-
supportIndefLenMode: int # type: ignore[assignment]
|
|
46
|
+
supportIndefLenMode: bool
|
|
48
47
|
binEncBase: int
|
|
49
48
|
def encodeValue(self, value, asn1Spec, encodeFun, **options): ...
|
|
50
49
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
from _typeshed import Unused
|
|
1
2
|
from collections.abc import Callable
|
|
2
3
|
from typing import Any, Final
|
|
3
4
|
from typing_extensions import TypeAlias
|
|
4
5
|
|
|
5
|
-
from Xlib._typing import ErrorHandler
|
|
6
|
+
from Xlib._typing import ErrorHandler
|
|
6
7
|
from Xlib.display import Display
|
|
7
8
|
from Xlib.protocol import rq
|
|
8
9
|
from Xlib.xobject import drawable, resource
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
from _typeshed import Unused
|
|
1
2
|
from collections.abc import Callable, Sequence, Sized
|
|
2
3
|
from typing import Any, Final, Literal, TypeVar
|
|
3
4
|
|
|
4
|
-
from Xlib._typing import Unused
|
|
5
5
|
from Xlib.display import Display
|
|
6
6
|
from Xlib.protocol import display, rq
|
|
7
7
|
from Xlib.xobject import resource
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
from _typeshed import ConvertibleToFloat, SliceableBuffer
|
|
1
|
+
from _typeshed import ConvertibleToFloat, SliceableBuffer, Unused
|
|
2
2
|
from collections.abc import Iterable, Sequence
|
|
3
3
|
from typing import Final, TypeVar
|
|
4
4
|
|
|
5
|
-
from Xlib._typing import Unused
|
|
6
5
|
from Xlib.display import Display
|
|
7
6
|
from Xlib.protocol import display, request, rq
|
|
8
7
|
from Xlib.xobject import drawable, resource
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from _typeshed import ConvertibleToInt, SliceableBuffer
|
|
1
|
+
from _typeshed import ConvertibleToInt, SliceableBuffer, Unused
|
|
2
2
|
from array import array
|
|
3
3
|
|
|
4
4
|
# Avoid name collision with List.type
|
|
@@ -7,7 +7,7 @@ from collections.abc import Callable, Iterable, Sequence
|
|
|
7
7
|
from typing import Any, Final, Literal, SupportsIndex, TypeVar, overload, type_check_only
|
|
8
8
|
from typing_extensions import LiteralString, TypeAlias
|
|
9
9
|
|
|
10
|
-
from Xlib._typing import ErrorHandler
|
|
10
|
+
from Xlib._typing import ErrorHandler
|
|
11
11
|
from Xlib.display import _BaseDisplay, _ResourceBaseClass
|
|
12
12
|
from Xlib.error import XError
|
|
13
13
|
from Xlib.ext.xinput import ClassInfoClass
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from _socket import _Address
|
|
3
|
+
from _typeshed import Unused
|
|
3
4
|
from platform import uname_result
|
|
4
5
|
from re import Pattern
|
|
5
6
|
from socket import socket
|
|
6
7
|
from typing import Final, Literal
|
|
7
8
|
from typing_extensions import TypeAlias
|
|
8
9
|
|
|
9
|
-
from Xlib._typing import Unused
|
|
10
|
-
|
|
11
10
|
if sys.platform == "darwin":
|
|
12
11
|
SUPPORTED_PROTOCOLS: Final[tuple[None, Literal["tcp"], Literal["unix"], Literal["darwin"]]]
|
|
13
12
|
_Protocol: TypeAlias = Literal["tcp", "unix", "darwin"] | None
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
from _socket import _Address
|
|
2
|
+
from _typeshed import Unused
|
|
2
3
|
from re import Pattern
|
|
3
4
|
from socket import socket
|
|
4
5
|
from typing import Final
|
|
5
6
|
|
|
6
|
-
from Xlib._typing import Unused
|
|
7
|
-
|
|
8
7
|
display_re: Final[Pattern[str]]
|
|
9
8
|
|
|
10
9
|
def get_display(display: str | None) -> tuple[str, None, str, int, int]: ...
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
from collections.abc import Iterable, Sequence
|
|
2
|
-
from typing import Any
|
|
2
|
+
from typing import Any, Literal, Protocol, type_check_only
|
|
3
3
|
|
|
4
|
-
from PIL import Image
|
|
5
4
|
from Xlib._typing import ErrorHandler
|
|
6
5
|
from Xlib.protocol import request, rq
|
|
7
6
|
from Xlib.protocol.structs import _Arc6IntSequence, _Rectangle4IntSequence, _RGB3IntIterable, _Segment4IntSequence
|
|
8
7
|
from Xlib.xobject import colormap, cursor, fontable, resource
|
|
9
8
|
|
|
9
|
+
# Protocol for the parts of PIL.Image.Image used by python-xlib.
|
|
10
|
+
@type_check_only
|
|
11
|
+
class _PilImage(Protocol):
|
|
12
|
+
@property
|
|
13
|
+
def mode(self) -> str: ...
|
|
14
|
+
@property
|
|
15
|
+
def size(self) -> tuple[int, int]: ...
|
|
16
|
+
def crop(self, box: tuple[int, int, int, int], /) -> _PilImage: ...
|
|
17
|
+
def tobytes(self, encoder_name: Literal["raw"], rawmode: str, stride: int, x: Literal[0], /) -> bytes: ...
|
|
18
|
+
|
|
10
19
|
class Drawable(resource.Resource):
|
|
11
20
|
__drawable__ = resource.Resource.__resource__
|
|
12
21
|
def get_geometry(self) -> request.GetGeometry: ...
|
|
@@ -100,7 +109,7 @@ class Drawable(resource.Resource):
|
|
|
100
109
|
data: bytes | bytearray,
|
|
101
110
|
onerror: ErrorHandler[object] | None = None,
|
|
102
111
|
) -> None: ...
|
|
103
|
-
def put_pil_image(self, gc: int, x: int, y: int, image:
|
|
112
|
+
def put_pil_image(self, gc: int, x: int, y: int, image: _PilImage, onerror: ErrorHandler[object] | None = None) -> None: ...
|
|
104
113
|
def get_image(self, x: int, y: int, width: int, height: int, format: int, plane_mask: int) -> request.GetImage: ...
|
|
105
114
|
def draw_text(
|
|
106
115
|
self, gc: int, x: int, y: int, text: dict[str, str | int], onerror: ErrorHandler[object] | None = None
|