mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 17:18:30 +08:00
Upgrade black version (#7089)
This commit is contained in:
@@ -130,6 +130,7 @@ class AsyncAdapt_asyncpg_dbapi:
|
||||
paramstyle: str
|
||||
def __init__(self, asyncpg) -> None: ...
|
||||
def connect(self, *arg, **kw): ...
|
||||
|
||||
class Error(Exception): ...
|
||||
class Warning(Exception): ...
|
||||
class InterfaceError(Error): ...
|
||||
@@ -141,8 +142,10 @@ class AsyncAdapt_asyncpg_dbapi:
|
||||
class DataError(DatabaseError): ...
|
||||
class NotSupportedError(DatabaseError): ...
|
||||
class InternalServerError(InternalError): ...
|
||||
|
||||
class InvalidCachedStatementError(NotSupportedError):
|
||||
def __init__(self, message) -> None: ...
|
||||
|
||||
def Binary(self, value): ...
|
||||
STRING: Any
|
||||
TIMESTAMP: Any
|
||||
|
||||
@@ -104,10 +104,12 @@ class ENUM(sqltypes.NativeForEmulated, sqltypes.Enum): # type: ignore # base c
|
||||
def adapt_emulated_to_native(cls, impl, **kw): ...
|
||||
def create(self, bind: Any | None = ..., checkfirst: bool = ...) -> None: ...
|
||||
def drop(self, bind: Any | None = ..., checkfirst: bool = ...) -> None: ...
|
||||
|
||||
class EnumGenerator(DDLBase):
|
||||
checkfirst: Any
|
||||
def __init__(self, dialect, connection, checkfirst: bool = ..., **kwargs) -> None: ...
|
||||
def visit_enum(self, enum) -> None: ...
|
||||
|
||||
class EnumDropper(DDLBase):
|
||||
checkfirst: Any
|
||||
def __init__(self, dialect, connection, checkfirst: bool = ..., **kwargs) -> None: ...
|
||||
|
||||
@@ -9,6 +9,7 @@ class HSTORE(sqltypes.Indexable, sqltypes.Concatenable, sqltypes.TypeEngine):
|
||||
hashable: bool
|
||||
text_type: Any
|
||||
def __init__(self, text_type: Any | None = ...) -> None: ...
|
||||
|
||||
class Comparator(sqltypes.Indexable.Comparator, sqltypes.Concatenable.Comparator):
|
||||
def has_key(self, other): ...
|
||||
def has_all(self, other): ...
|
||||
|
||||
@@ -9,6 +9,7 @@ class JSONPathType(sqltypes.JSON.JSONPathType):
|
||||
class JSON(sqltypes.JSON):
|
||||
astext_type: Any
|
||||
def __init__(self, none_as_null: bool = ..., astext_type: Any | None = ...) -> None: ...
|
||||
|
||||
class Comparator(sqltypes.JSON.Comparator):
|
||||
@property
|
||||
def astext(self): ...
|
||||
@@ -16,6 +17,7 @@ class JSON(sqltypes.JSON):
|
||||
|
||||
class JSONB(JSON):
|
||||
__visit_name__: str
|
||||
|
||||
class Comparator(JSON.Comparator):
|
||||
def has_key(self, other): ...
|
||||
def has_all(self, other): ...
|
||||
|
||||
@@ -173,6 +173,7 @@ class Engine(Connectable, Identified):
|
||||
@property
|
||||
def driver(self): ...
|
||||
def dispose(self) -> None: ...
|
||||
|
||||
class _trans_ctx:
|
||||
conn: Connection
|
||||
transaction: Transaction
|
||||
@@ -182,6 +183,7 @@ class Engine(Connectable, Identified):
|
||||
def __exit__(
|
||||
self, type_: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
|
||||
) -> None: ...
|
||||
|
||||
def begin(self, close_with_result: bool = ...) -> _trans_ctx: ...
|
||||
# TODO:
|
||||
# def transaction(self, callable_: Callable[Concatenate[Connection, _P], _T], *args: _P.args, **kwargs: _P.kwargs) -> _T | None: ...
|
||||
|
||||
@@ -27,10 +27,12 @@ class CompositeProperty(DescriptorProperty):
|
||||
@property
|
||||
def columns(self): ...
|
||||
def get_history(self, state, dict_, passive=...): ...
|
||||
|
||||
class CompositeBundle(orm_util.Bundle):
|
||||
property: Any
|
||||
def __init__(self, property_, expr) -> None: ...
|
||||
def create_row_processor(self, query, procs, labels): ...
|
||||
|
||||
class Comparator(PropComparator):
|
||||
__hash__: Any
|
||||
@memoized_property
|
||||
|
||||
@@ -26,7 +26,9 @@ class InstanceEvents(event.Events):
|
||||
class _EventsHold(event.RefCollection):
|
||||
class_: Any
|
||||
def __init__(self, class_) -> None: ...
|
||||
|
||||
class HoldEvents: ...
|
||||
|
||||
def remove(self, event_key) -> None: ...
|
||||
@classmethod
|
||||
def populate(cls, class_, subject) -> None: ...
|
||||
@@ -34,6 +36,7 @@ class _EventsHold(event.RefCollection):
|
||||
class _InstanceEventsHold(_EventsHold):
|
||||
all_holds: Any
|
||||
def resolve(self, class_): ...
|
||||
|
||||
class HoldInstanceEvents(_EventsHold.HoldEvents, InstanceEvents): ...
|
||||
dispatch: Any
|
||||
|
||||
@@ -53,6 +56,7 @@ class MapperEvents(event.Events):
|
||||
class _MapperEventsHold(_EventsHold):
|
||||
all_holds: Any
|
||||
def resolve(self, class_): ...
|
||||
|
||||
class HoldMapperEvents(_EventsHold.HoldEvents, MapperEvents): ...
|
||||
dispatch: Any
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ def delete_obj(base_mapper, states, uowtransaction) -> None: ...
|
||||
|
||||
class BulkUDCompileState(CompileState):
|
||||
class default_update_options(Options): ...
|
||||
|
||||
@classmethod
|
||||
def orm_pre_session_exec(cls, session, statement, params, execution_options, bind_arguments, is_reentrant_invoke): ...
|
||||
@classmethod
|
||||
|
||||
@@ -37,6 +37,7 @@ class ColumnProperty(StrategizedProperty):
|
||||
def merge(
|
||||
self, session, source_state, source_dict, dest_state, dest_dict, load, _recursive, _resolve_conflict_map
|
||||
) -> None: ...
|
||||
|
||||
class Comparator(util.MemoizedSlots, PropComparator):
|
||||
expressions: Any
|
||||
def _memoized_method___clause_element__(self): ...
|
||||
|
||||
@@ -83,6 +83,7 @@ class RelationshipProperty(StrategizedProperty):
|
||||
_legacy_inactive_history_style: bool = ...,
|
||||
) -> None: ...
|
||||
def instrument_class(self, mapper) -> None: ...
|
||||
|
||||
class Comparator(PropComparator):
|
||||
prop: Any
|
||||
def __init__(
|
||||
@@ -105,6 +106,7 @@ class RelationshipProperty(StrategizedProperty):
|
||||
def __ne__(self, other): ...
|
||||
@memoized_property
|
||||
def property(self): ...
|
||||
|
||||
def merge(
|
||||
self, session, source_state, source_dict, dest_state, dest_dict, load, _recursive, _resolve_conflict_map
|
||||
) -> None: ...
|
||||
|
||||
@@ -90,6 +90,7 @@ class SubqueryLoader(PostLoader):
|
||||
join_depth: Any
|
||||
def __init__(self, parent, strategy_key) -> None: ...
|
||||
def init_class_attribute(self, mapper) -> None: ...
|
||||
|
||||
class _SubqCollections:
|
||||
session: Any
|
||||
execution_options: Any
|
||||
@@ -99,6 +100,7 @@ class SubqueryLoader(PostLoader):
|
||||
def __init__(self, context, subq) -> None: ...
|
||||
def get(self, key, default): ...
|
||||
def loader(self, state, dict_, row) -> None: ...
|
||||
|
||||
def create_row_processor(self, context, query_entity, path, loadopt, mapper, result, adapter, populators): ...
|
||||
|
||||
class JoinedLoader(AbstractRelationshipLoader):
|
||||
@@ -122,6 +124,7 @@ class JoinedLoader(AbstractRelationshipLoader):
|
||||
|
||||
class SelectInLoader(PostLoader, util.MemoizedSlots):
|
||||
logger: Any
|
||||
|
||||
class query_info(NamedTuple):
|
||||
load_only_child: Any
|
||||
load_with_join: Any
|
||||
|
||||
@@ -162,6 +162,7 @@ class Enum(Emulated, String, SchemaType): # type: ignore # argument disparities
|
||||
def sort_key_function(self): ...
|
||||
@property
|
||||
def native(self): ...
|
||||
|
||||
class Comparator(Concatenable.Comparator): ...
|
||||
comparator_factory: Any
|
||||
def as_generic(self, allow_nulltype: bool = ...): ...
|
||||
@@ -221,15 +222,18 @@ class JSON(Indexable, TypeEngine):
|
||||
NULL: Any
|
||||
none_as_null: Any
|
||||
def __init__(self, none_as_null: bool = ...) -> None: ...
|
||||
|
||||
class JSONElementType(TypeEngine):
|
||||
def string_bind_processor(self, dialect): ...
|
||||
def string_literal_processor(self, dialect): ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def literal_processor(self, dialect): ...
|
||||
|
||||
class JSONIndexType(JSONElementType): ...
|
||||
class JSONIntIndexType(JSONIndexType): ...
|
||||
class JSONStrIndexType(JSONIndexType): ...
|
||||
class JSONPathType(JSONElementType): ...
|
||||
|
||||
class Comparator(Indexable.Comparator, Concatenable.Comparator):
|
||||
def as_boolean(self): ...
|
||||
def as_string(self): ...
|
||||
@@ -250,6 +254,7 @@ class JSON(Indexable, TypeEngine):
|
||||
class ARRAY(SchemaEventTarget, Indexable, Concatenable, TypeEngine):
|
||||
__visit_name__: str
|
||||
zero_indexes: bool
|
||||
|
||||
class Comparator(Indexable.Comparator, Concatenable.Comparator):
|
||||
def contains(self, *arg, **kw) -> None: ...
|
||||
def any(self, other, operator: Any | None = ...): ...
|
||||
@@ -340,6 +345,7 @@ class BOOLEAN(Boolean):
|
||||
class NullType(TypeEngine):
|
||||
__visit_name__: str
|
||||
def literal_processor(self, dialect): ...
|
||||
|
||||
class Comparator(TypeEngine.Comparator): ...
|
||||
comparator_factory: Any
|
||||
|
||||
|
||||
@@ -72,9 +72,11 @@ class TypeDecorator(ExternalType, SchemaEventTarget, TypeEngine):
|
||||
impl: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
coerce_to_is_types: Any
|
||||
|
||||
class Comparator(TypeEngine.Comparator):
|
||||
def operate(self, op, *other, **kwargs): ...
|
||||
def reverse_operate(self, op, other, **kwargs): ...
|
||||
|
||||
@property
|
||||
def comparator_factory(self): ...
|
||||
def type_engine(self, dialect): ...
|
||||
|
||||
@@ -89,11 +89,13 @@ class ColumnAdapter(ClauseAdapter):
|
||||
anonymize_labels: bool = ...,
|
||||
adapt_from_selectables: Any | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
class _IncludeExcludeMapping:
|
||||
parent: Any
|
||||
columns: Any
|
||||
def __init__(self, parent, columns) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
|
||||
def wrap(self, adapter): ...
|
||||
def traverse(self, obj): ...
|
||||
adapt_clause: Any
|
||||
|
||||
@@ -83,6 +83,7 @@ class HasMemoized:
|
||||
def __get__(self: Self, obj: None, cls: object) -> Self: ...
|
||||
@overload
|
||||
def __get__(self, obj: object, cls: object) -> _R: ...
|
||||
|
||||
@classmethod
|
||||
def memoized_instancemethod(cls, fn): ...
|
||||
|
||||
|
||||
@@ -25,9 +25,11 @@ class CreditCard(Resource):
|
||||
Switch: str
|
||||
Visa: str
|
||||
Unknown: str
|
||||
|
||||
class CustomerLocation:
|
||||
International: str
|
||||
US: str
|
||||
|
||||
class CardTypeIndicator:
|
||||
Yes: str
|
||||
No: str
|
||||
|
||||
@@ -17,6 +17,7 @@ class Dispute(AttributeGetter):
|
||||
Open: str
|
||||
Won: str
|
||||
Lost: str
|
||||
|
||||
class Reason:
|
||||
CancelledRecurringTransaction: str
|
||||
CreditNotProcessed: str
|
||||
@@ -29,10 +30,12 @@ class Dispute(AttributeGetter):
|
||||
ProductUnsatisfactory: str
|
||||
Retrieval: str
|
||||
TransactionAmountDiffers: str
|
||||
|
||||
class Kind:
|
||||
Chargeback: str
|
||||
PreArbitration: str
|
||||
Retrieval: str
|
||||
|
||||
class ChargebackProtectionLevel:
|
||||
Effortless: str
|
||||
Standard: str
|
||||
|
||||
@@ -29,6 +29,7 @@ class ErrorCodes:
|
||||
StreetAddressIsRequired: str
|
||||
StreetAddressIsTooLong: str
|
||||
TooManyAddressesPerCustomer: str
|
||||
|
||||
class ApplePay:
|
||||
ApplePayCardsAreNotAccepted: str
|
||||
CustomerIdIsRequiredForVaulting: str
|
||||
@@ -52,6 +53,7 @@ class ErrorCodes:
|
||||
InvalidToken: str
|
||||
PrivateKeyMismatch: str
|
||||
KeyMismatchStoringCertificate: str
|
||||
|
||||
class AuthorizationFingerprint:
|
||||
MissingFingerprint: str
|
||||
InvalidFormat: str
|
||||
@@ -60,6 +62,7 @@ class ErrorCodes:
|
||||
InvalidPublicKey: str
|
||||
InvalidSignature: str
|
||||
OptionsNotAllowedWithoutCustomer: str
|
||||
|
||||
class ClientToken:
|
||||
MakeDefaultRequiresCustomerId: str
|
||||
VerifyCardRequiresCustomerId: str
|
||||
@@ -68,6 +71,7 @@ class ErrorCodes:
|
||||
ProxyMerchantDoesNotExist: str
|
||||
UnsupportedVersion: str
|
||||
MerchantAccountDoesNotExist: str
|
||||
|
||||
class CreditCard:
|
||||
BillingAddressConflict: str
|
||||
BillingAddressFormatIsInvalid: str
|
||||
@@ -113,6 +117,7 @@ class ErrorCodes:
|
||||
VerificationNotSupportedOnThisMerchantAccount: str
|
||||
VerificationAccountTypeIsInvald: str
|
||||
VerificationAccountTypeNotSupported: str
|
||||
|
||||
class Options:
|
||||
UpdateExistingTokenIsInvalid: str
|
||||
UpdateExistingTokenNotAllowed: str
|
||||
@@ -124,6 +129,7 @@ class ErrorCodes:
|
||||
VerificationMerchantAccountIsForbidden: str
|
||||
VerificationMerchantAccountIsSuspended: str
|
||||
VerificationMerchantAccountCannotBeSubMerchantAccount: str
|
||||
|
||||
class Customer:
|
||||
CompanyIsTooLong: str
|
||||
CustomFieldIsInvalid: str
|
||||
@@ -145,6 +151,7 @@ class ErrorCodes:
|
||||
WebsiteIsInvalid: str
|
||||
WebsiteFormatIsInvalid: str
|
||||
WebsiteIsTooLong: str
|
||||
|
||||
class Descriptor:
|
||||
DynamicDescriptorsDisabled: str
|
||||
InternationalNameFormatIsInvalid: str
|
||||
@@ -152,6 +159,7 @@ class ErrorCodes:
|
||||
NameFormatIsInvalid: str
|
||||
PhoneFormatIsInvalid: str
|
||||
UrlFormatIsInvalid: str
|
||||
|
||||
class Dispute:
|
||||
CanOnlyAddEvidenceToOpenDispute: str
|
||||
CanOnlyRemoveEvidenceFromOpenDispute: str
|
||||
@@ -175,6 +183,7 @@ class ErrorCodes:
|
||||
RecurringTransactionEvidenceMissingDate: str
|
||||
RecurringTransactionEvidenceMissingARN: str
|
||||
ValidEvidenceRequiredToFinalize: str
|
||||
|
||||
class DocumentUpload:
|
||||
KindIsInvalid: str
|
||||
FileIsTooLarge: str
|
||||
@@ -182,6 +191,7 @@ class ErrorCodes:
|
||||
FileIsMalformedOrEncrypted: str
|
||||
FileIsTooLong: str
|
||||
FileIsEmpty: str
|
||||
|
||||
class Merchant:
|
||||
CountryCannotBeBlank: str
|
||||
CountryCodeAlpha2IsInvalid: str
|
||||
@@ -203,6 +213,7 @@ class ErrorCodes:
|
||||
CurrencyIsInvalid: str
|
||||
NoMerchantAccounts: str
|
||||
MerchantAccountExistsForId: str
|
||||
|
||||
class MerchantAccount:
|
||||
IdFormatIsInvalid: str
|
||||
IdIsInUse: str
|
||||
@@ -221,6 +232,7 @@ class ErrorCodes:
|
||||
DeclinedFailedKYC: str
|
||||
DeclinedSsnInvalid: str
|
||||
DeclinedSsnMatchesDeceased: str
|
||||
|
||||
class ApplicantDetails:
|
||||
AccountNumberIsRequired: str
|
||||
CompanyNameIsInvalid: str
|
||||
@@ -247,6 +259,7 @@ class ErrorCodes:
|
||||
EmailAddressIsRequired: str
|
||||
AccountNumberIsInvalid: str
|
||||
TaxIdMustBeBlank: str
|
||||
|
||||
class Address:
|
||||
LocalityIsRequired: str
|
||||
PostalCodeIsInvalid: str
|
||||
@@ -255,6 +268,7 @@ class ErrorCodes:
|
||||
StreetAddressIsInvalid: str
|
||||
StreetAddressIsRequired: str
|
||||
RegionIsInvalid: str
|
||||
|
||||
class Individual:
|
||||
FirstNameIsRequired: str
|
||||
LastNameIsRequired: str
|
||||
@@ -266,6 +280,7 @@ class ErrorCodes:
|
||||
PhoneIsInvalid: str
|
||||
DateOfBirthIsInvalid: str
|
||||
EmailAddressIsRequired: str
|
||||
|
||||
class Address:
|
||||
StreetAddressIsRequired: str
|
||||
LocalityIsRequired: str
|
||||
@@ -274,6 +289,7 @@ class ErrorCodes:
|
||||
StreetAddressIsInvalid: str
|
||||
PostalCodeIsInvalid: str
|
||||
RegionIsInvalid: str
|
||||
|
||||
class Business:
|
||||
DbaNameIsInvalid: str
|
||||
LegalNameIsInvalid: str
|
||||
@@ -281,10 +297,12 @@ class ErrorCodes:
|
||||
TaxIdIsInvalid: str
|
||||
TaxIdIsRequiredWithLegalName: str
|
||||
TaxIdMustBeBlank: str
|
||||
|
||||
class Address:
|
||||
StreetAddressIsInvalid: str
|
||||
PostalCodeIsInvalid: str
|
||||
RegionIsInvalid: str
|
||||
|
||||
class Funding:
|
||||
RoutingNumberIsRequired: str
|
||||
AccountNumberIsRequired: str
|
||||
@@ -296,12 +314,14 @@ class ErrorCodes:
|
||||
EmailAddressIsRequired: str
|
||||
MobilePhoneIsInvalid: str
|
||||
MobilePhoneIsRequired: str
|
||||
|
||||
class OAuth:
|
||||
InvalidGrant: str
|
||||
InvalidCredentials: str
|
||||
InvalidScope: str
|
||||
InvalidRequest: str
|
||||
UnsupportedGrantType: str
|
||||
|
||||
class Verification:
|
||||
ThreeDSecureAuthenticationIdIsInvalid: str
|
||||
ThreeDSecureAuthenticationIdDoesntMatchNonceThreeDSecureAuthentication: str
|
||||
@@ -313,6 +333,7 @@ class ErrorCodes:
|
||||
MerchantAccountDoesNotSupport3DSecure: str
|
||||
MerchantAcountDoesNotMatch3DSecureMerchantAccount: str
|
||||
AmountDoesNotMatch3DSecureAmount: str
|
||||
|
||||
class ThreeDSecurePassThru:
|
||||
EciFlagIsRequired: str
|
||||
EciFlagIsInvalid: str
|
||||
@@ -322,6 +343,7 @@ class ErrorCodes:
|
||||
AuthenticationResponseIsInvalid: str
|
||||
DirectoryResponseIsInvalid: str
|
||||
CavvAlgorithmIsInvalid: str
|
||||
|
||||
class Options:
|
||||
AmountCannotBeNegative: str
|
||||
AmountFormatIsInvalid: str
|
||||
@@ -333,6 +355,7 @@ class ErrorCodes:
|
||||
MerchantAccountCannotBeSubMerchantAccount: str
|
||||
AccountTypeIsInvalid: str
|
||||
AccountTypeNotSupported: str
|
||||
|
||||
class PaymentMethod:
|
||||
CannotForwardPaymentMethodType: str
|
||||
PaymentMethodParamsAreRequired: str
|
||||
@@ -348,8 +371,10 @@ class ErrorCodes:
|
||||
CannotHaveFundingSourceWithoutAccessToken: str
|
||||
InvalidFundingSourceSelection: str
|
||||
CannotUpdatePayPalAccountUsingPaymentMethodNonce: str
|
||||
|
||||
class Options:
|
||||
UsBankAccountVerificationMethodIsInvalid: str
|
||||
|
||||
class PayPalAccount:
|
||||
CannotHaveBothAccessTokenAndConsentCode: str
|
||||
CannotVaultOneTimeUsePayPalAccount: str
|
||||
@@ -362,10 +387,12 @@ class ErrorCodes:
|
||||
PaymentMethodNonceLocked: str
|
||||
PaymentMethodNonceUnknown: str
|
||||
TokenIsInUse: str
|
||||
|
||||
class SettlementBatchSummary:
|
||||
CustomFieldIsInvalid: str
|
||||
SettlementDateIsInvalid: str
|
||||
SettlementDateIsRequired: str
|
||||
|
||||
class SEPAMandate:
|
||||
TypeIsRequired: str
|
||||
IBANInvalidCharacter: str
|
||||
@@ -377,10 +404,12 @@ class ErrorCodes:
|
||||
BillingAddressConflict: str
|
||||
BillingAddressIdIsInvalid: str
|
||||
TypeIsInvalid: str
|
||||
|
||||
class EuropeBankAccount:
|
||||
BICIsRequired: str
|
||||
IBANIsRequired: str
|
||||
AccountHolderNameIsRequired: str
|
||||
|
||||
class Subscription:
|
||||
BillingDayOfMonthCannotBeUpdated: str
|
||||
BillingDayOfMonthIsInvalid: str
|
||||
@@ -422,6 +451,7 @@ class ErrorCodes:
|
||||
TrialDurationFormatIsInvalid: str
|
||||
TrialDurationIsRequired: str
|
||||
TrialDurationUnitIsInvalid: str
|
||||
|
||||
class Modification:
|
||||
AmountCannotBeBlank: str
|
||||
AmountIsInvalid: str
|
||||
@@ -444,6 +474,7 @@ class ErrorCodes:
|
||||
QuantityIsInvalid: str
|
||||
QuantityMustBeGreaterThanZero: str
|
||||
IdToRemoveIsInvalid: str
|
||||
|
||||
class Transaction:
|
||||
AdjustmentAmountMustBeGreaterThanZero: str
|
||||
AmountCannotBeNegative: str
|
||||
@@ -586,24 +617,30 @@ class ErrorCodes:
|
||||
UnsupportedVoiceAuthorization: str
|
||||
UsBankAccountNonceMustBePlaidVerified: str
|
||||
UsBankAccountNotVerified: str
|
||||
|
||||
class ExternalVault:
|
||||
StatusIsInvalid: str
|
||||
StatusWithPreviousNetworkTransactionIdIsInvalid: str
|
||||
CardTypeIsInvalid: str
|
||||
PreviousNetworkTransactionIdIsInvalid: str
|
||||
|
||||
class Options:
|
||||
SubmitForSettlementIsRequiredForCloning: str
|
||||
SubmitForSettlementIsRequiredForPayPalUnilateral: str
|
||||
UseBillingForShippingDisabled: str
|
||||
VaultIsDisabled: str
|
||||
|
||||
class PayPal:
|
||||
CustomFieldTooLong: str
|
||||
|
||||
class CreditCard:
|
||||
AccountTypeIsInvalid: str
|
||||
AccountTypeNotSupported: str
|
||||
AccountTypeDebitDoesNotSupportAuths: str
|
||||
|
||||
class Industry:
|
||||
IndustryTypeIsInvalid: str
|
||||
|
||||
class Lodging:
|
||||
EmptyData: str
|
||||
FolioNumberIsInvalid: str
|
||||
@@ -621,6 +658,7 @@ class ErrorCodes:
|
||||
AdvancedDepositIndicatorIsInvalid: str
|
||||
FireSafetyIndicatorIsInvalid: str
|
||||
PropertyPhoneIsInvalid: str
|
||||
|
||||
class TravelCruise:
|
||||
EmptyData: str
|
||||
UnknownDataField: str
|
||||
@@ -628,6 +666,7 @@ class ErrorCodes:
|
||||
DepartureDateIsInvalid: str
|
||||
LodgingCheckInDateIsInvalid: str
|
||||
LodgingCheckOutDateIsInvalid: str
|
||||
|
||||
class TravelFlight:
|
||||
EmptyData: str
|
||||
UnknownDataField: str
|
||||
@@ -648,6 +687,7 @@ class ErrorCodes:
|
||||
TicketNumberIsTooLong: str
|
||||
LegsExpected: str
|
||||
TooManyLegs: str
|
||||
|
||||
class Leg:
|
||||
class TravelFlight:
|
||||
ArrivalAirportCodeIsTooLong: str
|
||||
@@ -670,6 +710,7 @@ class ErrorCodes:
|
||||
TaxAmountFormatIsInvalid: str
|
||||
TaxAmountIsTooLarge: str
|
||||
TicketNumberIsTooLong: str
|
||||
|
||||
class AdditionalCharge:
|
||||
KindIsInvalid: str
|
||||
KindMustBeUnique: str
|
||||
@@ -677,6 +718,7 @@ class ErrorCodes:
|
||||
AmountFormatIsInvalid: str
|
||||
AmountIsTooLarge: str
|
||||
AmountIsRequired: str
|
||||
|
||||
class LineItem:
|
||||
CommodityCodeIsTooLong: str
|
||||
DescriptionIsTooLong: str
|
||||
@@ -706,6 +748,7 @@ class ErrorCodes:
|
||||
TaxAmountFormatIsInvalid: str
|
||||
TaxAmountIsTooLarge: str
|
||||
TaxAmountCannotBeNegative: str
|
||||
|
||||
class UsBankAccountVerification:
|
||||
NotConfirmable: str
|
||||
MustBeMicroTransfersVerification: str
|
||||
@@ -713,6 +756,7 @@ class ErrorCodes:
|
||||
TooManyConfirmationAttempts: str
|
||||
UnableToConfirmDepositAmounts: str
|
||||
InvalidDepositAmounts: str
|
||||
|
||||
class RiskData:
|
||||
CustomerBrowserIsTooLong: str
|
||||
CustomerDeviceIdIsTooLong: str
|
||||
|
||||
@@ -13,6 +13,7 @@ class MerchantAccount(Resource):
|
||||
Active: str
|
||||
Pending: str
|
||||
Suspended: str
|
||||
|
||||
class FundingDestination:
|
||||
Bank: str
|
||||
Email: str
|
||||
|
||||
@@ -6,9 +6,11 @@ class Search:
|
||||
def __init__(self, name) -> None: ...
|
||||
def __eq__(self, value): ...
|
||||
def is_equal(self, value): ...
|
||||
|
||||
class EqualityNodeBuilder(IsNodeBuilder):
|
||||
def __ne__(self, value): ...
|
||||
def is_not_equal(self, value): ...
|
||||
|
||||
class KeyValueNodeBuilder:
|
||||
name: Any
|
||||
def __init__(self, name) -> None: ...
|
||||
@@ -16,28 +18,35 @@ class Search:
|
||||
def is_equal(self, value): ...
|
||||
def __ne__(self, value): ...
|
||||
def is_not_equal(self, value): ...
|
||||
|
||||
class PartialMatchNodeBuilder(EqualityNodeBuilder):
|
||||
def starts_with(self, value): ...
|
||||
def ends_with(self, value): ...
|
||||
|
||||
class EndsWithNodeBuilder:
|
||||
name: Any
|
||||
def __init__(self, name) -> None: ...
|
||||
def ends_with(self, value): ...
|
||||
|
||||
class TextNodeBuilder(PartialMatchNodeBuilder):
|
||||
def contains(self, value): ...
|
||||
|
||||
class Node:
|
||||
name: Any
|
||||
dict: Any
|
||||
def __init__(self, name, dict) -> None: ...
|
||||
def to_param(self): ...
|
||||
|
||||
class MultipleValueNodeBuilder:
|
||||
name: Any
|
||||
whitelist: Any
|
||||
def __init__(self, name, whitelist=...) -> None: ...
|
||||
def in_list(self, *values): ...
|
||||
def __eq__(self, value): ...
|
||||
|
||||
class MultipleValueOrTextNodeBuilder(TextNodeBuilder, MultipleValueNodeBuilder):
|
||||
def __init__(self, name, whitelist=...) -> None: ...
|
||||
|
||||
class RangeNodeBuilder:
|
||||
name: Any
|
||||
def __init__(self, name) -> None: ...
|
||||
|
||||
@@ -17,10 +17,12 @@ class Subscription(Resource):
|
||||
class TrialDurationUnit:
|
||||
Day: str
|
||||
Month: str
|
||||
|
||||
class Source:
|
||||
Api: str
|
||||
ControlPanel: str
|
||||
Recurring: str
|
||||
|
||||
class Status:
|
||||
Active: str
|
||||
Canceled: str
|
||||
|
||||
@@ -40,6 +40,7 @@ class Transaction(Resource):
|
||||
class CreatedUsing:
|
||||
FullInformation: str
|
||||
Token: str
|
||||
|
||||
class GatewayRejectionReason:
|
||||
ApplicationIncomplete: str
|
||||
Avs: str
|
||||
@@ -50,16 +51,19 @@ class Transaction(Resource):
|
||||
RiskThreshold: str
|
||||
ThreeDSecure: str
|
||||
TokenIssuance: str
|
||||
|
||||
class Source:
|
||||
Api: str
|
||||
ControlPanel: str
|
||||
Recurring: str
|
||||
|
||||
class EscrowStatus:
|
||||
HoldPending: str
|
||||
Held: str
|
||||
ReleasePending: str
|
||||
Released: str
|
||||
Refunded: str
|
||||
|
||||
class Status:
|
||||
AuthorizationExpired: str
|
||||
Authorized: str
|
||||
@@ -75,13 +79,16 @@ class Transaction(Resource):
|
||||
Settling: str
|
||||
SubmittedForSettlement: str
|
||||
Voided: str
|
||||
|
||||
class Type:
|
||||
Credit: str
|
||||
Sale: str
|
||||
|
||||
class IndustryType:
|
||||
Lodging: str
|
||||
TravelAndCruise: str
|
||||
TravelAndFlight: str
|
||||
|
||||
class AdditionalCharge:
|
||||
Restaurant: str
|
||||
GiftShop: str
|
||||
|
||||
@@ -11,6 +11,7 @@ class UsBankAccountVerification(AttributeGetter):
|
||||
Unrecognized: str
|
||||
Verified: str
|
||||
Pending: str
|
||||
|
||||
class VerificationMethod:
|
||||
NetworkCheck: str
|
||||
IndependentCheck: str
|
||||
|
||||
@@ -10,6 +10,7 @@ if sys.platform == "win32":
|
||||
|
||||
windll: LibraryLoader[WinDLL]
|
||||
COORD = wintypes._COORD
|
||||
|
||||
class CONSOLE_SCREEN_BUFFER_INFO(Structure):
|
||||
dwSize: COORD
|
||||
dwCursorPosition: COORD
|
||||
|
||||
@@ -3,6 +3,7 @@ import sys
|
||||
if sys.platform == "win32":
|
||||
|
||||
from . import win32
|
||||
|
||||
class WinColor:
|
||||
BLACK: int = ...
|
||||
BLUE: int = ...
|
||||
@@ -12,10 +13,12 @@ if sys.platform == "win32":
|
||||
MAGENTA: int = ...
|
||||
YELLOW: int = ...
|
||||
GREY: int = ...
|
||||
|
||||
class WinStyle:
|
||||
NORMAL: int = ...
|
||||
BRIGHT: int = ...
|
||||
BRIGHT_BACKGROUND: int = ...
|
||||
|
||||
class WinTerm:
|
||||
def __init__(self) -> None: ...
|
||||
def get_attrs(self) -> int: ...
|
||||
|
||||
@@ -14,6 +14,7 @@ class ReusableStrategy(BaseStrategy):
|
||||
def receiving(self) -> None: ...
|
||||
def get_stream(self) -> None: ...
|
||||
def set_stream(self, value) -> None: ...
|
||||
|
||||
class ConnectionPool:
|
||||
def __new__(cls, connection): ...
|
||||
name: Any
|
||||
@@ -37,12 +38,14 @@ class ReusableStrategy(BaseStrategy):
|
||||
def start_pool(self): ...
|
||||
def create_pool(self) -> None: ...
|
||||
def terminate_pool(self) -> None: ...
|
||||
|
||||
class PooledConnectionThread(Thread):
|
||||
daemon: bool
|
||||
worker: Any
|
||||
master_connection: Any
|
||||
def __init__(self, worker, master_connection) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
|
||||
class PooledConnectionWorker:
|
||||
master_connection: Any
|
||||
request_queue: Any
|
||||
|
||||
@@ -24,6 +24,7 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
|
||||
def viewitems(self) -> ItemsView[str, object]: ...
|
||||
def viewkeys(self) -> KeysView[str]: ...
|
||||
def viewvalues(self) -> ValuesView[object]: ...
|
||||
|
||||
def __delitem__(self, k: NoReturn) -> None: ...
|
||||
|
||||
def TypedDict(typename: str, fields: dict[str, type[Any]], total: bool = ...) -> type[dict[str, Any]]: ...
|
||||
|
||||
@@ -7,12 +7,14 @@ from typing import Any
|
||||
|
||||
if sys.platform == "win32":
|
||||
def format_system_message(errno: int) -> str | None: ...
|
||||
|
||||
class WindowsError(builtins.WindowsError):
|
||||
def __init__(self, value: int | None = ...) -> None: ...
|
||||
@property
|
||||
def message(self) -> str: ...
|
||||
@property
|
||||
def code(self) -> int: ...
|
||||
|
||||
def handle_nonzero_success(result: int) -> None: ...
|
||||
GMEM_MOVEABLE: int
|
||||
GlobalAlloc: Any
|
||||
@@ -23,6 +25,7 @@ if sys.platform == "win32":
|
||||
MapViewOfFile: Any
|
||||
UnmapViewOfFile: Any
|
||||
RtlMoveMemory: Any
|
||||
|
||||
class MemoryMap:
|
||||
name: str
|
||||
length: int
|
||||
@@ -61,15 +64,20 @@ if sys.platform == "win32":
|
||||
POLICY_READ: int
|
||||
POLICY_WRITE: int
|
||||
POLICY_EXECUTE: int
|
||||
|
||||
class TokenAccess:
|
||||
TOKEN_QUERY: int
|
||||
|
||||
class TokenInformationClass:
|
||||
TokenUser: int
|
||||
|
||||
class TOKEN_USER(ctypes.Structure):
|
||||
num: int
|
||||
|
||||
class SECURITY_DESCRIPTOR(ctypes.Structure):
|
||||
SECURITY_DESCRIPTOR_CONTROL: Any
|
||||
REVISION: int
|
||||
|
||||
class SECURITY_ATTRIBUTES(ctypes.Structure):
|
||||
nLength: int
|
||||
lpSecurityDescriptor: Any
|
||||
@@ -78,6 +86,7 @@ if sys.platform == "win32":
|
||||
def descriptor(self) -> Any: ...
|
||||
@descriptor.setter
|
||||
def descriptor(self, value: Any) -> None: ...
|
||||
|
||||
def GetTokenInformation(token: Any, information_class: Any) -> Any: ...
|
||||
def OpenProcessToken(proc_handle: Any, access: Any) -> Any: ...
|
||||
def get_current_user() -> TOKEN_USER: ...
|
||||
|
||||
@@ -4,7 +4,9 @@ import sys
|
||||
if sys.platform == "win32":
|
||||
win32con_WM_COPYDATA: int
|
||||
def can_talk_to_agent(): ...
|
||||
|
||||
class COPYDATASTRUCT(ctypes.Structure): ...
|
||||
|
||||
class PageantConnection:
|
||||
def __init__(self) -> None: ...
|
||||
def send(self, data: bytes) -> None: ...
|
||||
|
||||
@@ -154,9 +154,11 @@ class Process:
|
||||
def cpu_affinity(self, cpus: list[int] | None = ...) -> list[int] | None: ...
|
||||
if sys.platform == "linux":
|
||||
def cpu_num(self) -> int: ...
|
||||
|
||||
def environ(self) -> dict[str, str]: ...
|
||||
if sys.platform == "win32":
|
||||
def num_handles(self) -> int: ...
|
||||
|
||||
def num_ctx_switches(self) -> pctxsw: ...
|
||||
def num_threads(self) -> int: ...
|
||||
def threads(self) -> list[pthread]: ...
|
||||
@@ -169,6 +171,7 @@ class Process:
|
||||
def memory_percent(self, memtype: str = ...) -> float: ...
|
||||
if sys.platform != "darwin":
|
||||
def memory_maps(self, grouped: bool = ...): ...
|
||||
|
||||
def open_files(self) -> list[popenfile]: ...
|
||||
def connections(self, kind: str = ...) -> list[pconn]: ...
|
||||
def send_signal(self, sig: int) -> None: ...
|
||||
|
||||
@@ -141,12 +141,14 @@ class Process:
|
||||
def status(self): ...
|
||||
def io_counters(self): ...
|
||||
def cwd(self): ...
|
||||
|
||||
class nt_mmap_grouped(NamedTuple):
|
||||
path: Any
|
||||
rss: Any
|
||||
private: Any
|
||||
ref_count: Any
|
||||
shadow_count: Any
|
||||
|
||||
class nt_mmap_ext(NamedTuple):
|
||||
addr: Any
|
||||
perms: Any
|
||||
|
||||
@@ -95,6 +95,7 @@ class rruleset(rrulebase):
|
||||
def __gt__(self, other): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
|
||||
def __init__(self, cache: bool = ...) -> None: ...
|
||||
def rrule(self, rrule: _rrule): ...
|
||||
def rdate(self, rdate): ...
|
||||
|
||||
@@ -36,12 +36,14 @@ class PerformanceManager:
|
||||
counterId: int
|
||||
instance: str
|
||||
def __init__(self, counterId: int, instance: str): ...
|
||||
|
||||
class PerfCounterInfo:
|
||||
key: int
|
||||
groupInfo: Any
|
||||
nameInfo: Any
|
||||
rollupType: Any
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
|
||||
class QuerySpec:
|
||||
entity: ManagedEntity
|
||||
metricId: list[PerformanceManager.MetricId]
|
||||
@@ -49,6 +51,7 @@ class PerformanceManager:
|
||||
maxSample: int
|
||||
startTime: datetime
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
|
||||
class EntityMetricBase:
|
||||
entity: ManagedEntity
|
||||
def QueryPerfCounterByLevel(self, collection_level: int) -> list[PerformanceManager.PerfCounterInfo]: ...
|
||||
|
||||
@@ -10,6 +10,7 @@ class PropertyCollector:
|
||||
all: bool
|
||||
type: type[ManagedEntity]
|
||||
pathSet: list[str]
|
||||
|
||||
class TraversalSpec:
|
||||
def __init__(
|
||||
self, *, path: str = ..., skip: bool = ..., type: type[ContainerView] = ..., **kwargs: Any # incomplete
|
||||
@@ -18,9 +19,11 @@ class PropertyCollector:
|
||||
skip: bool
|
||||
type: type[ContainerView]
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
|
||||
class RetrieveOptions:
|
||||
def __init__(self, *, maxObjects: int) -> None: ...
|
||||
maxObjects: int
|
||||
|
||||
class ObjectSpec:
|
||||
def __init__(
|
||||
self, *, skip: bool = ..., selectSet: list[PropertyCollector.TraversalSpec] = ..., obj: Any = ...
|
||||
@@ -28,6 +31,7 @@ class PropertyCollector:
|
||||
skip: bool
|
||||
selectSet: list[PropertyCollector.TraversalSpec]
|
||||
obj: Any
|
||||
|
||||
class FilterSpec:
|
||||
def __init__(
|
||||
self,
|
||||
@@ -39,6 +43,7 @@ class PropertyCollector:
|
||||
propSet: list[PropertyCollector.PropertySpec]
|
||||
objectSet: list[PropertyCollector.ObjectSpec]
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
|
||||
class ObjectContent:
|
||||
def __init__(
|
||||
self, *, obj: ManagedEntity = ..., propSet: list[DynamicProperty] = ..., **kwargs: Any # incomplete
|
||||
@@ -46,6 +51,7 @@ class PropertyCollector:
|
||||
obj: ManagedEntity
|
||||
propSet: list[DynamicProperty]
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
|
||||
class RetrieveResult:
|
||||
def __init__(self, *, objects: list[PropertyCollector.ObjectContent] = ..., token: str | None = ...) -> None: ...
|
||||
objects: list[PropertyCollector.ObjectContent]
|
||||
|
||||
@@ -18,4 +18,5 @@ class Search(SearchCommands):
|
||||
): ...
|
||||
def add_document_hash(self, doc_id, score: float = ..., replace: bool = ...): ...
|
||||
def commit(self): ...
|
||||
|
||||
def __init__(self, client, index_name: str = ...) -> None: ...
|
||||
|
||||
@@ -6,6 +6,7 @@ from stripe import api_requestor as api_requestor
|
||||
class StripeObject(dict[Any, Any]):
|
||||
class ReprJSONEncoder(json.JSONEncoder):
|
||||
def default(self, obj): ...
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
id: Any | None = ...,
|
||||
|
||||
@@ -11,6 +11,7 @@ if sys.version_info >= (3, 0):
|
||||
from http.client import HTTPConnection as _HTTPConnection, HTTPException as HTTPException
|
||||
else:
|
||||
from httplib import HTTPConnection as _HTTPConnection, HTTPException as HTTPException
|
||||
|
||||
class ConnectionError(Exception): ...
|
||||
|
||||
_TYPE_BODY = bytes | IO[Any] | Iterable[bytes] | str
|
||||
|
||||
@@ -9,13 +9,16 @@ if sys.platform == "win32":
|
||||
localkey: Any
|
||||
WEEKS: Any
|
||||
def list_timezones(): ...
|
||||
|
||||
class win32tz(datetime.tzinfo):
|
||||
data: Any
|
||||
def __init__(self, name) -> None: ...
|
||||
def utcoffset(self, dt): ...
|
||||
def dst(self, dt): ...
|
||||
def tzname(self, dt): ...
|
||||
|
||||
def pickNthWeekday(year, month, dayofweek, hour, minute, whichweek): ...
|
||||
|
||||
class win32tz_data:
|
||||
display: Any
|
||||
dstname: Any
|
||||
@@ -33,4 +36,5 @@ if sys.platform == "win32":
|
||||
dsthour: Any
|
||||
dstminute: Any
|
||||
def __init__(self, path) -> None: ...
|
||||
|
||||
def valuesToDict(key): ...
|
||||
|
||||
Reference in New Issue
Block a user