pyobjc-framework-PassKit 11.0__tar.gz → 12.0__tar.gz

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.
Files changed (57) hide show
  1. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Lib/PassKit/__init__.py +2 -0
  2. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Lib/PassKit/_metadata.py +44 -48
  3. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Lib/pyobjc_framework_PassKit.egg-info/PKG-INFO +20 -7
  4. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Lib/pyobjc_framework_PassKit.egg-info/SOURCES.txt +2 -9
  5. pyobjc_framework_passkit-12.0/Lib/pyobjc_framework_PassKit.egg-info/pyobjc-build-info.txt +3 -0
  6. pyobjc_framework_passkit-12.0/Lib/pyobjc_framework_PassKit.egg-info/requires.txt +2 -0
  7. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/License.txt +1 -1
  8. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Modules/_PassKit.m +18 -21
  9. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Modules/_PassKit_protocols.m +2 -1
  10. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Modules/pyobjc-api.h +6 -3
  11. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Modules/pyobjc-compat.h +113 -36
  12. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PKG-INFO +20 -7
  13. pyobjc_framework_passkit-12.0/PyObjCTest/__init__.py +1 -0
  14. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkaddidentitydocumentconfiguration.py +6 -0
  15. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkconstants.py +9 -0
  16. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpasslibrary.py +17 -0
  17. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/metadata/PassKit.fwinfo +7 -0
  18. pyobjc_framework_passkit-11.0/metadata/raw/arm64-15.0.fwinfo → pyobjc_framework_passkit-12.0/metadata/raw/arm64-26.0.fwinfo +932 -339
  19. pyobjc_framework_passkit-11.0/metadata/raw/x86_64-15.0.fwinfo → pyobjc_framework_passkit-12.0/metadata/raw/x86_64-26.0.fwinfo +932 -339
  20. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/pyobjc_setup.py +9 -41
  21. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/setup.py +2 -2
  22. pyobjc_framework_passkit-11.0/Lib/pyobjc_framework_PassKit.egg-info/pyobjc-build-info.txt +0 -3
  23. pyobjc_framework_passkit-11.0/Lib/pyobjc_framework_PassKit.egg-info/requires.txt +0 -2
  24. pyobjc_framework_passkit-11.0/PyObjCTest/__init__.py +0 -1
  25. pyobjc_framework_passkit-11.0/metadata/raw/arm64-12.3.fwinfo +0 -8184
  26. pyobjc_framework_passkit-11.0/metadata/raw/arm64-13.3.fwinfo +0 -11139
  27. pyobjc_framework_passkit-11.0/metadata/raw/arm64-14.5.fwinfo +0 -11445
  28. pyobjc_framework_passkit-11.0/metadata/raw/x86_64-11.0.fwinfo +0 -7025
  29. pyobjc_framework_passkit-11.0/metadata/raw/x86_64-12.3.fwinfo +0 -8184
  30. pyobjc_framework_passkit-11.0/metadata/raw/x86_64-13.3.fwinfo +0 -11139
  31. pyobjc_framework_passkit-11.0/metadata/raw/x86_64-14.5.fwinfo +0 -11445
  32. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Lib/pyobjc_framework_PassKit.egg-info/dependency_links.txt +0 -0
  33. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Lib/pyobjc_framework_PassKit.egg-info/not-zip-safe +0 -0
  34. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/Lib/pyobjc_framework_PassKit.egg-info/top_level.txt +0 -0
  35. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/MANIFEST.in +0 -0
  36. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_passkit.py +0 -0
  37. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkaddpaymentpassrequest.py +0 -0
  38. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkaddshareablepassconfiguration.py +0 -0
  39. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkbarcodeeventmetadatarequest.py +0 -0
  40. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkdisbursementrequest.py +0 -0
  41. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkerror.py +0 -0
  42. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkissuerprovisioningextensionstatus.py +0 -0
  43. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpass.py +0 -0
  44. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentauthorizationcontroller.py +0 -0
  45. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentauthorizationviewcontroller.py +0 -0
  46. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentauthorizationviewcontrollerdelegate.py +0 -0
  47. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentinformationeventextension.py +0 -0
  48. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentmethod.py +0 -0
  49. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentpass.py +0 -0
  50. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentrequest.py +0 -0
  51. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pkpaymentsummaryitem.py +0 -0
  52. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pksecureelementpass.py +0 -0
  53. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pksuicapassproperties.py +0 -0
  54. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/PyObjCTest/test_pktransitpassproperties.py +0 -0
  55. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/metadata/metadata.ini +0 -0
  56. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/pyproject.toml +0 -0
  57. {pyobjc_framework_passkit-11.0 → pyobjc_framework_passkit-12.0}/setup.cfg +0 -0
@@ -63,6 +63,8 @@ def _setup():
63
63
  ("PKShareablePassMetadataPreview", b"new"),
64
64
  ("PKIdentityDocumentMetadata", b"init"),
65
65
  ("PKIdentityDocumentMetadata", b"new"),
66
+ ("PKIdentityAnyOfDescriptor", b"init"),
67
+ ("PKIdentityAnyOfDescriptor", b"new"),
66
68
  ):
67
69
  objc.registerUnavailableMethod(cls, sel)
68
70
 
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Thu Jun 20 20:14:58 2024
3
+ # Last update: Thu Jul 24 12:58:21 2025
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -30,13 +30,15 @@ else:
30
30
 
31
31
 
32
32
  misc = {}
33
- constants = """$PKAddSecureElementPassErrorDomain$PKContactFieldEmailAddress$PKContactFieldName$PKContactFieldPhoneNumber$PKContactFieldPhoneticName$PKContactFieldPostalAddress$PKDisbursementErrorContactFieldUserInfoKey$PKDisbursementErrorDomain$PKEncryptionSchemeECC_V2$PKEncryptionSchemeRSA_V2$PKIdentityErrorDomain$PKMerchantCategoryCodeNone@s$PKPassKitErrorDomain$PKPassLibraryAddedPassesUserInfoKey$PKPassLibraryDidChangeNotification$PKPassLibraryPassTypeIdentifierUserInfoKey$PKPassLibraryRecoveredPassesUserInfoKey$PKPassLibraryRemotePaymentPassesDidChangeNotification$PKPassLibraryRemovedPassInfosUserInfoKey$PKPassLibraryReplacementPassesUserInfoKey$PKPassLibrarySerialNumberUserInfoKey$PKPaymentErrorContactFieldUserInfoKey$PKPaymentErrorDomain$PKPaymentErrorPostalAddressUserInfoKey$PKPaymentNetworkAmex$PKPaymentNetworkBancomat$PKPaymentNetworkBancontact$PKPaymentNetworkBankAxept$PKPaymentNetworkBarcode$PKPaymentNetworkCarteBancaire$PKPaymentNetworkCarteBancaires$PKPaymentNetworkCartesBancaires$PKPaymentNetworkChinaUnionPay$PKPaymentNetworkDankort$PKPaymentNetworkDiscover$PKPaymentNetworkEftpos$PKPaymentNetworkElectron$PKPaymentNetworkElo$PKPaymentNetworkGirocard$PKPaymentNetworkIDCredit$PKPaymentNetworkInterac$PKPaymentNetworkJCB$PKPaymentNetworkMada$PKPaymentNetworkMaestro$PKPaymentNetworkMasterCard$PKPaymentNetworkMeeza$PKPaymentNetworkMir$PKPaymentNetworkNAPAS$PKPaymentNetworkNanaco$PKPaymentNetworkPagoBancomat$PKPaymentNetworkPostFinance$PKPaymentNetworkPrivateLabel$PKPaymentNetworkQuicPay$PKPaymentNetworkSuica$PKPaymentNetworkTmoney$PKPaymentNetworkVPay$PKPaymentNetworkVisa$PKPaymentNetworkWaon$PKShareSecureElementPassErrorDomain$PKStoredValuePassBalanceTypeCash$PKStoredValuePassBalanceTypeLoyaltyPoints$"""
34
- enums = """$PKAddPaymentPassErrorSystemCancelled@2$PKAddPaymentPassErrorUnsupported@0$PKAddPaymentPassErrorUserCancelled@1$PKAddPaymentPassStyleAccess@1$PKAddPaymentPassStylePayment@0$PKAddSecureElementPassDeviceNotReadyError@5$PKAddSecureElementPassDeviceNotSupportedError@4$PKAddSecureElementPassGenericError@0$PKAddSecureElementPassInvalidConfigurationError@3$PKAddSecureElementPassOSVersionNotSupportedError@6$PKAddSecureElementPassUnavailableError@2$PKAddSecureElementPassUnknownError@0$PKAddSecureElementPassUserCanceledError@1$PKAddShareablePassConfigurationPrimaryActionAdd@0$PKAddShareablePassConfigurationPrimaryActionShare@1$PKAddressFieldAll@15$PKAddressFieldEmail@4$PKAddressFieldName@8$PKAddressFieldNone@0$PKAddressFieldPhone@2$PKAddressFieldPostalAddress@1$PKApplePayLaterAvailable@0$PKApplePayLaterUnavailableItemIneligible@1$PKApplePayLaterUnavailableRecurringTransaction@2$PKAutomaticPassPresentationSuppressionResultAlreadyPresenting@1$PKAutomaticPassPresentationSuppressionResultCancelled@3$PKAutomaticPassPresentationSuppressionResultDenied@2$PKAutomaticPassPresentationSuppressionResultNotSupported@0$PKAutomaticPassPresentationSuppressionResultSuccess@4$PKBarcodeEventConfigurationDataTypeSigningCertificate@2$PKBarcodeEventConfigurationDataTypeSigningKeyMaterial@1$PKBarcodeEventConfigurationDataTypeUnknown@0$PKDisbursementRecipientContactInvalidError@2$PKDisbursementRequestScheduleFuture@1$PKDisbursementRequestScheduleOneTime@0$PKDisbursementUnknownError@-1$PKDisbursementUnsupportedCardError@1$PKIdentityErrorCancelled@2$PKIdentityErrorInvalidElement@7$PKIdentityErrorInvalidNonce@6$PKIdentityErrorNetworkUnavailable@3$PKIdentityErrorNoElementsRequested@4$PKIdentityErrorNotSupported@1$PKIdentityErrorRegionNotSupported@8$PKIdentityErrorRequestAlreadyInProgress@5$PKIdentityErrorUnknown@0$PKInvalidDataError@1$PKInvalidSignature@3$PKIssuerProvisioningExtensionAuthorizationResultAuthorized@1$PKIssuerProvisioningExtensionAuthorizationResultCanceled@0$PKMerchantCapability3DS@1$PKMerchantCapabilityCredit@4$PKMerchantCapabilityDebit@8$PKMerchantCapabilityEMV@2$PKMerchantCapabilityInstantFundsOut@128$PKNotEntitledError@4$PKPassLibraryDidAddPasses@0$PKPassLibraryDidCancelAddPasses@2$PKPassLibraryShouldReviewPasses@1$PKPassTypeAny@18446744073709551615$PKPassTypeBarcode@0$PKPassTypePayment@1$PKPassTypeSecureElement@1$PKPaymentAuthorizationStatusFailure@1$PKPaymentAuthorizationStatusInvalidBillingPostalAddress@2$PKPaymentAuthorizationStatusInvalidShippingContact@4$PKPaymentAuthorizationStatusInvalidShippingPostalAddress@3$PKPaymentAuthorizationStatusPINIncorrect@6$PKPaymentAuthorizationStatusPINLockout@7$PKPaymentAuthorizationStatusPINRequired@5$PKPaymentAuthorizationStatusSuccess@0$PKPaymentBillingContactInvalidError@2$PKPaymentButtonStyleAutomatic@3$PKPaymentButtonStyleBlack@2$PKPaymentButtonStyleWhite@0$PKPaymentButtonStyleWhiteOutline@1$PKPaymentButtonTypeAddMoney@9$PKPaymentButtonTypeBook@6$PKPaymentButtonTypeBuy@1$PKPaymentButtonTypeCheckout@5$PKPaymentButtonTypeContinue@16$PKPaymentButtonTypeContribute@14$PKPaymentButtonTypeDonate@4$PKPaymentButtonTypeInStore@3$PKPaymentButtonTypeOrder@11$PKPaymentButtonTypePlain@0$PKPaymentButtonTypeReload@8$PKPaymentButtonTypeRent@12$PKPaymentButtonTypeSetUp@2$PKPaymentButtonTypeSubscribe@7$PKPaymentButtonTypeSupport@13$PKPaymentButtonTypeTip@15$PKPaymentButtonTypeTopUp@10$PKPaymentCouponCodeExpiredError@5$PKPaymentCouponCodeInvalidError@4$PKPaymentMethodTypeCredit@2$PKPaymentMethodTypeDebit@1$PKPaymentMethodTypeEMoney@5$PKPaymentMethodTypePrepaid@3$PKPaymentMethodTypeStore@4$PKPaymentMethodTypeUnknown@0$PKPaymentPassActivationStateActivated@0$PKPaymentPassActivationStateActivating@2$PKPaymentPassActivationStateDeactivated@4$PKPaymentPassActivationStateRequiresActivation@1$PKPaymentPassActivationStateSuspended@3$PKPaymentShippingAddressUnserviceableError@3$PKPaymentShippingContactInvalidError@1$PKPaymentSummaryItemTypeFinal@0$PKPaymentSummaryItemTypePending@1$PKPaymentUnknownError@-1$PKRadioTechnologyBluetooth@2$PKRadioTechnologyNFC@1$PKRadioTechnologyNone@0$PKSecureElementPassActivationStateActivated@0$PKSecureElementPassActivationStateActivating@2$PKSecureElementPassActivationStateDeactivated@4$PKSecureElementPassActivationStateRequiresActivation@1$PKSecureElementPassActivationStateSuspended@3$PKShareSecureElementPassSetupError@1$PKShareSecureElementPassUnknownError@0$PKShippingContactEditingModeAvailable@1$PKShippingContactEditingModeEnabled@1$PKShippingContactEditingModeStorePickup@2$PKShippingTypeDelivery@1$PKShippingTypeServicePickup@3$PKShippingTypeShipping@0$PKShippingTypeStorePickup@2$PKUnknownError@-1$PKUnsupportedVersionError@2$PKVehicleConnectionErrorCodeSessionNotActive@2$PKVehicleConnectionErrorCodeSessionUnableToStart@1$PKVehicleConnectionErrorCodeUnknown@0$PKVehicleConnectionSessionConnectionStateConnected@1$PKVehicleConnectionSessionConnectionStateConnecting@2$PKVehicleConnectionSessionConnectionStateDisconnected@0$PKVehicleConnectionSessionConnectionStateFailedToConnect@3$"""
33
+ constants = """$PKAddSecureElementPassErrorDomain$PKContactFieldEmailAddress$PKContactFieldName$PKContactFieldPhoneNumber$PKContactFieldPhoneticName$PKContactFieldPostalAddress$PKDisbursementErrorContactFieldUserInfoKey$PKDisbursementErrorDomain$PKEncryptionSchemeECC_V2$PKEncryptionSchemeRSA_V2$PKIdentityErrorDomain$PKMerchantCategoryCodeNone@s$PKPassKitErrorDomain$PKPassLibraryAddedPassesUserInfoKey$PKPassLibraryDidChangeNotification$PKPassLibraryPassTypeIdentifierUserInfoKey$PKPassLibraryRecoveredPassesUserInfoKey$PKPassLibraryRemotePaymentPassesDidChangeNotification$PKPassLibraryRemovedPassInfosUserInfoKey$PKPassLibraryReplacementPassesUserInfoKey$PKPassLibrarySerialNumberUserInfoKey$PKPaymentErrorContactFieldUserInfoKey$PKPaymentErrorDomain$PKPaymentErrorPostalAddressUserInfoKey$PKPaymentNetworkAmex$PKPaymentNetworkBancomat$PKPaymentNetworkBancontact$PKPaymentNetworkBankAxept$PKPaymentNetworkBarcode$PKPaymentNetworkCarteBancaire$PKPaymentNetworkCarteBancaires$PKPaymentNetworkCartesBancaires$PKPaymentNetworkChinaUnionPay$PKPaymentNetworkDankort$PKPaymentNetworkDiscover$PKPaymentNetworkEftpos$PKPaymentNetworkElectron$PKPaymentNetworkElo$PKPaymentNetworkGirocard$PKPaymentNetworkHimyan$PKPaymentNetworkIDCredit$PKPaymentNetworkInterac$PKPaymentNetworkJCB$PKPaymentNetworkJaywan$PKPaymentNetworkMada$PKPaymentNetworkMaestro$PKPaymentNetworkMasterCard$PKPaymentNetworkMeeza$PKPaymentNetworkMir$PKPaymentNetworkMyDebit$PKPaymentNetworkNAPAS$PKPaymentNetworkNanaco$PKPaymentNetworkPagoBancomat$PKPaymentNetworkPostFinance$PKPaymentNetworkPrivateLabel$PKPaymentNetworkQuicPay$PKPaymentNetworkSuica$PKPaymentNetworkTmoney$PKPaymentNetworkVPay$PKPaymentNetworkVisa$PKPaymentNetworkWaon$PKShareSecureElementPassErrorDomain$PKStoredValuePassBalanceTypeCash$PKStoredValuePassBalanceTypeLoyaltyPoints$"""
34
+ enums = """$PKAddIdentityDocumentTypeIDCard@0$PKAddIdentityDocumentTypeMDL@1$PKAddIdentityDocumentTypePhotoID@2$PKAddPaymentPassErrorSystemCancelled@2$PKAddPaymentPassErrorUnsupported@0$PKAddPaymentPassErrorUserCancelled@1$PKAddPaymentPassStyleAccess@1$PKAddPaymentPassStylePayment@0$PKAddSecureElementPassDeviceNotReadyError@5$PKAddSecureElementPassDeviceNotSupportedError@4$PKAddSecureElementPassGenericError@0$PKAddSecureElementPassInvalidConfigurationError@3$PKAddSecureElementPassOSVersionNotSupportedError@6$PKAddSecureElementPassUnavailableError@2$PKAddSecureElementPassUnknownError@0$PKAddSecureElementPassUserCanceledError@1$PKAddShareablePassConfigurationPrimaryActionAdd@0$PKAddShareablePassConfigurationPrimaryActionShare@1$PKAddressFieldAll@15$PKAddressFieldEmail@4$PKAddressFieldName@8$PKAddressFieldNone@0$PKAddressFieldPhone@2$PKAddressFieldPostalAddress@1$PKApplePayLaterAvailable@0$PKApplePayLaterUnavailableItemIneligible@1$PKApplePayLaterUnavailableRecurringTransaction@2$PKAutomaticPassPresentationSuppressionResultAlreadyPresenting@1$PKAutomaticPassPresentationSuppressionResultCancelled@3$PKAutomaticPassPresentationSuppressionResultDenied@2$PKAutomaticPassPresentationSuppressionResultNotSupported@0$PKAutomaticPassPresentationSuppressionResultSuccess@4$PKBarcodeEventConfigurationDataTypeSigningCertificate@2$PKBarcodeEventConfigurationDataTypeSigningKeyMaterial@1$PKBarcodeEventConfigurationDataTypeUnknown@0$PKDisbursementRecipientContactInvalidError@2$PKDisbursementRequestScheduleFuture@1$PKDisbursementRequestScheduleOneTime@0$PKDisbursementUnknownError@-1$PKDisbursementUnsupportedCardError@1$PKIdentityErrorCancelled@2$PKIdentityErrorInvalidElement@7$PKIdentityErrorInvalidNonce@6$PKIdentityErrorNetworkUnavailable@3$PKIdentityErrorNoElementsRequested@4$PKIdentityErrorNotSupported@1$PKIdentityErrorRegionNotSupported@8$PKIdentityErrorRequestAlreadyInProgress@5$PKIdentityErrorUnknown@0$PKInvalidDataError@1$PKInvalidSignature@3$PKIssuerProvisioningExtensionAuthorizationResultAuthorized@1$PKIssuerProvisioningExtensionAuthorizationResultCanceled@0$PKMerchantCapability3DS@1$PKMerchantCapabilityCredit@4$PKMerchantCapabilityDebit@8$PKMerchantCapabilityEMV@2$PKMerchantCapabilityInstantFundsOut@128$PKNotEntitledError@4$PKPassLibraryAuthorizationStatusAuthorized@1$PKPassLibraryAuthorizationStatusDenied@0$PKPassLibraryAuthorizationStatusNotDetermined@-1$PKPassLibraryAuthorizationStatusRestricted@2$PKPassLibraryCapabilityBackgroundAddPasses@0$PKPassLibraryDidAddPasses@0$PKPassLibraryDidCancelAddPasses@2$PKPassLibraryShouldReviewPasses@1$PKPassTypeAny@18446744073709551615$PKPassTypeBarcode@0$PKPassTypePayment@1$PKPassTypeSecureElement@1$PKPaymentAuthorizationStatusFailure@1$PKPaymentAuthorizationStatusInvalidBillingPostalAddress@2$PKPaymentAuthorizationStatusInvalidShippingContact@4$PKPaymentAuthorizationStatusInvalidShippingPostalAddress@3$PKPaymentAuthorizationStatusPINIncorrect@6$PKPaymentAuthorizationStatusPINLockout@7$PKPaymentAuthorizationStatusPINRequired@5$PKPaymentAuthorizationStatusSuccess@0$PKPaymentBillingContactInvalidError@2$PKPaymentButtonStyleAutomatic@3$PKPaymentButtonStyleBlack@2$PKPaymentButtonStyleWhite@0$PKPaymentButtonStyleWhiteOutline@1$PKPaymentButtonTypeAddMoney@9$PKPaymentButtonTypeBook@6$PKPaymentButtonTypeBuy@1$PKPaymentButtonTypeCheckout@5$PKPaymentButtonTypeContinue@16$PKPaymentButtonTypeContribute@14$PKPaymentButtonTypeDonate@4$PKPaymentButtonTypeInStore@3$PKPaymentButtonTypeOrder@11$PKPaymentButtonTypePlain@0$PKPaymentButtonTypeReload@8$PKPaymentButtonTypeRent@12$PKPaymentButtonTypeSetUp@2$PKPaymentButtonTypeSubscribe@7$PKPaymentButtonTypeSupport@13$PKPaymentButtonTypeTip@15$PKPaymentButtonTypeTopUp@10$PKPaymentCouponCodeExpiredError@5$PKPaymentCouponCodeInvalidError@4$PKPaymentMethodTypeCredit@2$PKPaymentMethodTypeDebit@1$PKPaymentMethodTypeEMoney@5$PKPaymentMethodTypePrepaid@3$PKPaymentMethodTypeStore@4$PKPaymentMethodTypeUnknown@0$PKPaymentPassActivationStateActivated@0$PKPaymentPassActivationStateActivating@2$PKPaymentPassActivationStateDeactivated@4$PKPaymentPassActivationStateRequiresActivation@1$PKPaymentPassActivationStateSuspended@3$PKPaymentShippingAddressUnserviceableError@3$PKPaymentShippingContactInvalidError@1$PKPaymentSummaryItemTypeFinal@0$PKPaymentSummaryItemTypePending@1$PKPaymentUnknownError@-1$PKRadioTechnologyBluetooth@2$PKRadioTechnologyNFC@1$PKRadioTechnologyNone@0$PKSecureElementPassActivationStateActivated@0$PKSecureElementPassActivationStateActivating@2$PKSecureElementPassActivationStateDeactivated@4$PKSecureElementPassActivationStateRequiresActivation@1$PKSecureElementPassActivationStateSuspended@3$PKShareSecureElementPassSetupError@1$PKShareSecureElementPassUnknownError@0$PKShippingContactEditingModeAvailable@1$PKShippingContactEditingModeEnabled@1$PKShippingContactEditingModeStorePickup@2$PKShippingTypeDelivery@1$PKShippingTypeServicePickup@3$PKShippingTypeShipping@0$PKShippingTypeStorePickup@2$PKUnknownError@-1$PKUnsupportedVersionError@2$PKVehicleConnectionErrorCodeSessionNotActive@2$PKVehicleConnectionErrorCodeSessionUnableToStart@1$PKVehicleConnectionErrorCodeUnknown@0$PKVehicleConnectionSessionConnectionStateConnected@1$PKVehicleConnectionSessionConnectionStateConnecting@2$PKVehicleConnectionSessionConnectionStateDisconnected@0$PKVehicleConnectionSessionConnectionStateFailedToConnect@3$"""
35
35
  misc.update(
36
36
  {
37
37
  "PKShippingContactEditingMode": NewType("PKShippingContactEditingMode", int),
38
+ "PKAddIdentityDocumentType": NewType("PKAddIdentityDocumentType", int),
38
39
  "PKPaymentButtonStyle": NewType("PKPaymentButtonStyle", int),
39
40
  "PKPaymentPassActivationState": NewType("PKPaymentPassActivationState", int),
41
+ "PKPassLibraryCapability": NewType("PKPassLibraryCapability", int),
40
42
  "PKPaymentAuthorizationStatus": NewType("PKPaymentAuthorizationStatus", int),
41
43
  "PKAddPaymentPassStyle": NewType("PKAddPaymentPassStyle", int),
42
44
  "PKRadioTechnology": NewType("PKRadioTechnology", int),
@@ -60,6 +62,9 @@ misc.update(
60
62
  "PKDisbursementRequestSchedule": NewType("PKDisbursementRequestSchedule", int),
61
63
  "PKAddPaymentPassError": NewType("PKAddPaymentPassError", int),
62
64
  "PKShippingType": NewType("PKShippingType", int),
65
+ "PKPassLibraryAuthorizationStatus": NewType(
66
+ "PKPassLibraryAuthorizationStatus", int
67
+ ),
63
68
  "PKAddShareablePassConfigurationPrimaryAction": NewType(
64
69
  "PKAddShareablePassConfigurationPrimaryAction", int
65
70
  ),
@@ -74,9 +79,9 @@ misc.update(
74
79
  "PKSecureElementPassActivationState": NewType(
75
80
  "PKSecureElementPassActivationState", int
76
81
  ),
77
- "PKPaymentErrorCode": NewType("PKPaymentErrorCode", int),
78
- "PKApplePayLaterAvailability": NewType("PKApplePayLaterAvailability", int),
79
82
  "PKIdentityError": NewType("PKIdentityError", int),
83
+ "PKApplePayLaterAvailability": NewType("PKApplePayLaterAvailability", int),
84
+ "PKPaymentErrorCode": NewType("PKPaymentErrorCode", int),
80
85
  "PKVehicleConnectionSessionConnectionState": NewType(
81
86
  "PKVehicleConnectionSessionConnectionState", int
82
87
  ),
@@ -123,20 +128,6 @@ try:
123
128
  },
124
129
  },
125
130
  )
126
- r(
127
- b"NSObject",
128
- b"disbursementAuthorizationController:didAuthorizeWithDisbursementVoucher:",
129
- {
130
- "required": True,
131
- "retval": {"type": b"v"},
132
- "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
133
- },
134
- )
135
- r(
136
- b"NSObject",
137
- b"disbursementAuthorizationControllerDidFinish:",
138
- {"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
139
- )
140
131
  r(b"NSObject", b"elements", {"required": True, "retval": {"type": b"@"}})
141
132
  r(
142
133
  b"NSObject",
@@ -709,29 +700,6 @@ try:
709
700
  }
710
701
  },
711
702
  )
712
- r(
713
- b"PKDisbursementAuthorizationController",
714
- b"authorizeDisbursementWithCompletion:",
715
- {
716
- "arguments": {
717
- 2: {
718
- "callable": {
719
- "retval": {"type": b"v"},
720
- "arguments": {
721
- 0: {"type": b"^v"},
722
- 1: {"type": b"Z"},
723
- 2: {"type": b"@"},
724
- },
725
- }
726
- }
727
- }
728
- },
729
- )
730
- r(
731
- b"PKDisbursementAuthorizationController",
732
- b"supportsDisbursements",
733
- {"retval": {"type": b"Z"}},
734
- )
735
703
  r(
736
704
  b"PKIdentityAuthorizationController",
737
705
  b"checkCanRequestDocument:completion:",
@@ -963,6 +931,20 @@ try:
963
931
  {"retval": {"type": b"Z"}},
964
932
  )
965
933
  r(b"PKPassLibrary", b"replacePassWithPass:", {"retval": {"type": b"Z"}})
934
+ r(
935
+ b"PKPassLibrary",
936
+ b"requestAuthorizationForCapability:completion:",
937
+ {
938
+ "arguments": {
939
+ 3: {
940
+ "callable": {
941
+ "retval": {"type": b"v"},
942
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
943
+ }
944
+ }
945
+ }
946
+ },
947
+ )
966
948
  r(
967
949
  b"PKPassLibrary",
968
950
  b"requestAutomaticPassPresentationSuppressionWithResponseHandler:",
@@ -1102,6 +1084,16 @@ try:
1102
1084
  b"supportsDisbursementsUsingNetworks:capabilities:",
1103
1085
  {"retval": {"type": b"Z"}},
1104
1086
  )
1087
+ r(
1088
+ b"PKPaymentButton",
1089
+ b"buttonWithType:style:disableCardArt:",
1090
+ {"arguments": {4: {"type": b"Z"}}},
1091
+ )
1092
+ r(
1093
+ b"PKPaymentButton",
1094
+ b"initWithPaymentButtonType:paymentButtonStyle:disableCardArt:",
1095
+ {"arguments": {4: {"type": b"Z"}}},
1096
+ )
1105
1097
  r(
1106
1098
  b"PKPaymentRequest",
1107
1099
  b"setSupportsCouponCode:",
@@ -1170,6 +1162,10 @@ try:
1170
1162
  finally:
1171
1163
  objc._updatingMetadata(False)
1172
1164
 
1165
+ objc.registerNewKeywordsFromSelector(
1166
+ "PKAddIdentityDocumentMetadata",
1167
+ b"initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:issuingCountryCode:documentType:preview:",
1168
+ )
1173
1169
  objc.registerNewKeywordsFromSelector(
1174
1170
  "PKAddPassMetadataPreview", b"initWithPassThumbnail:localizedDescription:"
1175
1171
  )
@@ -1193,13 +1189,13 @@ objc.registerNewKeywordsFromSelector(
1193
1189
  "PKDeferredPaymentRequest",
1194
1190
  b"initWithPaymentDescription:deferredBilling:managementURL:",
1195
1191
  )
1196
- objc.registerNewKeywordsFromSelector(
1197
- "PKDisbursementAuthorizationController", b"initWithDisbursementRequest:delegate:"
1198
- )
1199
1192
  objc.registerNewKeywordsFromSelector(
1200
1193
  "PKDisbursementRequest",
1201
1194
  b"initWithMerchantIdentifier:currencyCode:regionCode:supportedNetworks:merchantCapabilities:summaryItems:",
1202
1195
  )
1196
+ objc.registerNewKeywordsFromSelector(
1197
+ "PKIdentityAnyOfDescriptor", b"initWithDescriptors:"
1198
+ )
1203
1199
  objc.registerNewKeywordsFromSelector(
1204
1200
  "PKIssuerProvisioningExtensionPaymentPassEntry",
1205
1201
  b"initWithIdentifier:title:art:addRequestConfiguration:",
@@ -1232,6 +1228,9 @@ objc.registerNewKeywordsFromSelector(
1232
1228
  objc.registerNewKeywordsFromSelector(
1233
1229
  "PKPaymentButton", b"initWithPaymentButtonType:paymentButtonStyle:"
1234
1230
  )
1231
+ objc.registerNewKeywordsFromSelector(
1232
+ "PKPaymentButton", b"initWithPaymentButtonType:paymentButtonStyle:disableCardArt:"
1233
+ )
1235
1234
  objc.registerNewKeywordsFromSelector("PKPaymentMerchantSession", b"initWithDictionary:")
1236
1235
  objc.registerNewKeywordsFromSelector(
1237
1236
  "PKPaymentOrderDetails",
@@ -1278,9 +1277,6 @@ objc.registerNewKeywordsFromSelector(
1278
1277
  "PKShareablePassMetadata",
1279
1278
  b"initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice:",
1280
1279
  )
1281
- objc.registerNewKeywordsFromSelector(
1282
- "PKShareablePassMetadataPreview", b"initWithPassThumbnail:localizedDescription:"
1283
- )
1284
1280
  objc.registerNewKeywordsFromSelector(
1285
1281
  "PKShareablePassMetadataPreview", b"initWithTemplateIdentifier:"
1286
1282
  )
@@ -1,18 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-PassKit
3
- Version: 11.0
3
+ Version: 12.0
4
4
  Summary: Wrappers for the framework PassKit on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
7
7
  Author-email: pyobjc-dev@lists.sourceforge.net
8
- License: MIT License
8
+ License: MIT
9
9
  Keywords: PyObjC,PassKit
10
- Platform: MacOS X (>=10.16)
10
+ Platform: MacOS X (>=11.0)
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Environment :: MacOS X :: Cocoa
14
14
  Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Operating System :: MacOS :: MacOS X
18
17
  Classifier: Programming Language :: Python
@@ -24,14 +23,28 @@ Classifier: Programming Language :: Python :: 3.11
24
23
  Classifier: Programming Language :: Python :: 3.12
25
24
  Classifier: Programming Language :: Python :: 3.13
26
25
  Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: 3.15
27
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
28
29
  Classifier: Programming Language :: Objective C
29
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
31
  Classifier: Topic :: Software Development :: User Interfaces
31
32
  Requires-Python: >=3.9
32
33
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=11.0
34
- Requires-Dist: pyobjc-framework-Cocoa>=11.0
34
+ Requires-Dist: pyobjc-core>=12.0
35
+ Requires-Dist: pyobjc-framework-Cocoa>=12.0
36
+ Dynamic: author
37
+ Dynamic: author-email
38
+ Dynamic: classifier
39
+ Dynamic: description
40
+ Dynamic: description-content-type
41
+ Dynamic: home-page
42
+ Dynamic: keywords
43
+ Dynamic: license
44
+ Dynamic: platform
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
35
48
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
36
49
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
37
50
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -42,12 +42,5 @@ PyObjCTest/test_pksuicapassproperties.py
42
42
  PyObjCTest/test_pktransitpassproperties.py
43
43
  metadata/PassKit.fwinfo
44
44
  metadata/metadata.ini
45
- metadata/raw/arm64-12.3.fwinfo
46
- metadata/raw/arm64-13.3.fwinfo
47
- metadata/raw/arm64-14.5.fwinfo
48
- metadata/raw/arm64-15.0.fwinfo
49
- metadata/raw/x86_64-11.0.fwinfo
50
- metadata/raw/x86_64-12.3.fwinfo
51
- metadata/raw/x86_64-13.3.fwinfo
52
- metadata/raw/x86_64-14.5.fwinfo
53
- metadata/raw/x86_64-15.0.fwinfo
45
+ metadata/raw/arm64-26.0.fwinfo
46
+ metadata/raw/x86_64-26.0.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 26.0.1 (25A362)
2
+ Apple clang version 17.0.0 (clang-1700.3.19.1)
3
+ SDK: macOS 26.0
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=12.0
2
+ pyobjc-framework-Cocoa>=12.0
@@ -1,7 +1,7 @@
1
1
  (This is the MIT license, note that libffi-src is a separate product with its own license)
2
2
 
3
3
  Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
4
- Copyright 2003-2024 - Ronald Oussoren
4
+ Copyright 2003-2025 - Ronald Oussoren
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
7
 
@@ -14,54 +14,51 @@ static PyMethodDef mod_methods[] = {
14
14
  {0, 0, 0, 0} /* sentinel */
15
15
  };
16
16
 
17
- static int mod_exec_module(PyObject* m)
17
+ static int
18
+ mod_exec_module(PyObject* m)
18
19
  {
19
20
  return 0;
20
21
  }
21
22
 
22
23
  static struct PyModuleDef_Slot mod_slots[] = {
23
- {
24
- .slot = Py_mod_exec,
25
- .value = (void*)mod_exec_module
26
- },
24
+ {.slot = Py_mod_exec, .value = (void*)mod_exec_module},
27
25
  #if PY_VERSION_HEX >= 0x030c0000
28
26
  {
29
27
  /* This extension does not use the CPython API other than initializing
30
28
  * the module, hence is safe with subinterpreters and per-interpreter
31
29
  * GILs
32
30
  */
33
- .slot = Py_mod_multiple_interpreters,
31
+ .slot = Py_mod_multiple_interpreters,
34
32
  .value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
35
33
  },
36
34
  #endif
37
35
  #if PY_VERSION_HEX >= 0x030d0000
38
36
  {
39
37
  /* The code in this extension should be safe to use without the GIL */
40
- .slot = Py_mod_gil,
38
+ .slot = Py_mod_gil,
41
39
  .value = Py_MOD_GIL_NOT_USED,
42
40
  },
43
41
  #endif
44
- { /* Sentinel */
45
- .slot = 0,
46
- .value = 0
47
- }
48
- };
42
+ {/* Sentinel */
43
+ .slot = 0,
44
+ .value = 0}};
49
45
 
50
46
  static struct PyModuleDef mod_module = {
51
- .m_base = PyModuleDef_HEAD_INIT,
52
- .m_name = "_PassKit",
53
- .m_doc = NULL,
54
- .m_size = 0,
55
- .m_methods = mod_methods,
56
- .m_slots = mod_slots,
47
+ .m_base = PyModuleDef_HEAD_INIT,
48
+ .m_name = "_PassKit",
49
+ .m_doc = NULL,
50
+ .m_size = 0,
51
+ .m_methods = mod_methods,
52
+ .m_slots = mod_slots,
57
53
  .m_traverse = NULL,
58
- .m_clear = NULL,
59
- .m_free = NULL,
54
+ .m_clear = NULL,
55
+ .m_free = NULL,
60
56
  };
61
57
 
62
58
  PyObject* PyInit__PassKit(void);
63
59
 
64
- PyObject* __attribute__((__visibility__("default"))) PyInit__PassKit(void)
60
+ PyObject* __attribute__((__visibility__("default")))
61
+ PyInit__PassKit(void)
65
62
  {
66
63
  return PyModuleDef_Init(&mod_module);
67
64
  }
@@ -4,7 +4,8 @@
4
4
  * Last update: Wed Jan 16 13:10:52 2013
5
5
  */
6
6
 
7
- static void __attribute__((__used__)) use_protocols(void)
7
+ static void __attribute__((__used__))
8
+ use_protocols(void)
8
9
  {
9
10
  PyObject* p __attribute__((__unused__));
10
11
  #if PyObjC_BUILD_RELEASE >= 1016
@@ -53,8 +53,9 @@ NS_ASSUME_NONNULL_BEGIN
53
53
  /*
54
54
  * Only add items to the end of this list!
55
55
  */
56
+
56
57
  typedef int(RegisterMethodMappingFunctionType)(
57
- Class, SEL,
58
+ Class _Nullable, SEL,
58
59
  PyObject* _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull,
59
60
  PyObject* _Nonnull const* _Nonnull, size_t),
60
61
  IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
@@ -83,7 +84,8 @@ struct pyobjc_api {
83
84
  PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
84
85
  PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
85
86
  size_t);
86
- void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
87
+ void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
88
+ __attribute__((__noreturn__));
87
89
  int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
88
90
  void (*_Nonnull free_c_array)(int, Py_buffer*);
89
91
  int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
@@ -113,7 +115,8 @@ struct pyobjc_api {
113
115
  int (*_Nonnull checknokwnames)(PyObject* _Nonnull callable,
114
116
  PyObject* _Nullable kwnames);
115
117
 
116
- PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*, const char*);
118
+ PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
119
+ const char*);
117
120
  };
118
121
 
119
122
  #ifndef PYOBJC_BUILD
@@ -123,34 +123,6 @@ NS_ASSUME_NONNULL_BEGIN
123
123
  } while (0)
124
124
  #endif
125
125
 
126
- #if PY_VERSION_HEX < 0x03090000
127
-
128
- /* For use on Python 3.8 and earlier. PyObjC doesn't use the
129
- * "flag" bit internally.
130
- */
131
-
132
- #ifndef PY_VECTORCALL_ARGUMENTS_OFFSET
133
- #define PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
134
- #endif
135
-
136
- #define PyVectorcall_NARGS(nargsf) ((nargsf) & ~PY_VECTORCALL_ARGUMENTS_OFFSET)
137
-
138
- #ifdef OBJC_VERSION
139
- /* Don't use PyObject prefixed symbols in our binaries */
140
- #define PyObject_Vectorcall PyObjC_Vectorcall
141
- #define PyObject_VectorcallMethod PyObjC_VectorcallMethod
142
-
143
- extern PyObject* _Nullable PyObject_Vectorcall(PyObject* callable,
144
- PyObject* _Nonnull const* _Nonnull args,
145
- size_t nargsf,
146
- PyObject* _Nullable kwnames);
147
- extern PyObject* _Nullable PyObject_VectorcallMethod(
148
- PyObject* name, PyObject* _Nonnull const* _Nonnull args, size_t nargsf,
149
- PyObject* _Nullable kwnames);
150
- #endif
151
-
152
- #endif /* Python < 3.9 */
153
-
154
126
  /* Use CLINIC_SEP between the prototype and
155
127
  * description in doc strings, to get clean
156
128
  * docstrings.
@@ -179,7 +151,7 @@ extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
179
151
 
180
152
  static inline PyObject* _Nullable* _Nonnull PyTuple_ITEMS(PyObject* tuple)
181
153
  {
182
- return &PyTuple_GET_ITEM(tuple, 0);
154
+ return &PyTuple_GET_ITEM(tuple, 0); // LCOV_BR_EXCL_LINE
183
155
  }
184
156
 
185
157
  /* This is a crude hack to disable a otherwise useful warning in the context of
@@ -198,7 +170,10 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
198
170
  static inline PyObject*
199
171
  _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
200
172
  {
201
- return PyTuple_GET_ITEM(tuple, idx);
173
+ /* The protocol for tuples is that they are full initialized
174
+ * before handing them over to other code.
175
+ */
176
+ return (PyObject* _Nonnull)PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
202
177
  }
203
178
  #undef PyTuple_GET_ITEM
204
179
  #define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
@@ -242,13 +217,15 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
242
217
 
243
218
  #if PY_VERSION_HEX < 0x030a0000
244
219
 
245
- static inline PyObject* Py_NewRef(PyObject* o)
220
+ static inline PyObject*
221
+ Py_NewRef(PyObject* o)
246
222
  {
247
223
  Py_INCREF(o);
248
224
  return o;
249
225
  }
250
226
 
251
- static inline PyObject* Py_XNewRef(PyObject* o)
227
+ static inline PyObject*
228
+ Py_XNewRef(PyObject* o)
252
229
  {
253
230
  Py_XINCREF(o);
254
231
  return o;
@@ -257,11 +234,16 @@ static inline PyObject* Py_XNewRef(PyObject* o)
257
234
  #endif /* PY_VERSION_HEX < 0x030a0000 */
258
235
 
259
236
  #if PY_VERSION_HEX < 0x030d0000
260
- #define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
237
+ #define Py_BEGIN_CRITICAL_SECTION(value) \
238
+ { \
239
+ (void)(value);
261
240
  #define Py_END_CRITICAL_SECTION() }
262
241
  #define Py_EXIT_CRITICAL_SECTION() ((void)0)
263
242
 
264
- #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
243
+ #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) \
244
+ { \
245
+ (void)(value1); \
246
+ (void)(value2);
265
247
  #define Py_END_CRITICAL_SECTION2() }
266
248
  #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
267
249
 
@@ -282,7 +264,8 @@ static inline PyObject* Py_XNewRef(PyObject* o)
282
264
  #endif
283
265
 
284
266
  #if PY_VERSION_HEX < 0x030d0000
285
- static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
267
+ static inline int
268
+ PyDict_GetItemRef(PyObject* p, PyObject* key, PyObject* _Nonnull* _Nullable result)
286
269
  {
287
270
  *result = PyDict_GetItemWithError(p, key);
288
271
  if (*result == NULL) {
@@ -306,7 +289,8 @@ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
306
289
  #endif
307
290
 
308
291
  #if PY_VERSION_HEX < 0x030c0000
309
- static inline PyObject* PyType_GetDict(PyTypeObject* type)
292
+ static inline PyObject*
293
+ PyType_GetDict(PyTypeObject* type)
310
294
  {
311
295
  PyObject* result = type->tp_dict;
312
296
  Py_INCREF(result);
@@ -314,6 +298,99 @@ static inline PyObject* PyType_GetDict(PyTypeObject* type)
314
298
  }
315
299
  #endif
316
300
 
301
+ #if PY_VERSION_HEX >= 0x030c0000 && PY_VERSION_HEX < 0x030e0000
302
+ /*
303
+ * These are available in 3.14 and above, the definitions below
304
+ * mirror the private implementation in 3.13.
305
+ */
306
+ static inline int
307
+ PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
308
+ {
309
+ #ifdef Py_GIL_DISABLED
310
+ return (_Py_IsOwnedByCurrentThread(ob)
311
+ && _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1
312
+ && _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
313
+ #else
314
+ return Py_REFCNT(ob) == 1;
315
+ #endif
316
+ }
317
+
318
+ static inline void
319
+ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
320
+ {
321
+ #ifdef Py_GIL_DISABLED
322
+ for (;;) {
323
+ Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
324
+ if ((shared & _Py_REF_SHARED_FLAG_MASK) != 0) {
325
+ // Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
326
+ return;
327
+ }
328
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
329
+ shared | _Py_REF_MAYBE_WEAKREF)) {
330
+ return;
331
+ }
332
+ }
333
+ #endif
334
+ }
335
+
336
+ #ifdef Py_GIL_DISABLED
337
+ static inline int
338
+ _Py_TryIncrefFast(PyObject* op)
339
+ {
340
+ uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
341
+ local += 1;
342
+ if (local == 0) {
343
+ // immortal
344
+ return 1;
345
+ }
346
+ if (_Py_IsOwnedByCurrentThread(op)) {
347
+ _Py_INCREF_STAT_INC();
348
+ _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
349
+ #ifdef Py_REF_DEBUG
350
+ _Py_IncRefTotal(_PyThreadState_GET());
351
+ #endif
352
+ return 1;
353
+ }
354
+ return 0;
355
+ }
356
+
357
+ static inline int
358
+ _Py_TryIncRefShared(PyObject* op)
359
+ {
360
+ Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
361
+ for (;;) {
362
+ // If the shared refcount is zero and the object is either merged
363
+ // or may not have weak references, then we cannot incref it.
364
+ if (shared == 0 || shared == _Py_REF_MERGED) {
365
+ return 0;
366
+ }
367
+
368
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
369
+ shared + (1 << _Py_REF_SHARED_SHIFT))) {
370
+ #ifdef Py_REF_DEBUG
371
+ _Py_IncRefTotal(_PyThreadState_GET());
372
+ #endif
373
+ _Py_INCREF_STAT_INC();
374
+ return 1;
375
+ }
376
+ }
377
+ }
378
+ #endif
379
+
380
+ static inline int
381
+ PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
382
+ {
383
+ #ifdef Py_GIL_DISABLED
384
+ return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
385
+ #else
386
+ if (Py_REFCNT(op) > 0) {
387
+ Py_INCREF(op);
388
+ return 1;
389
+ }
390
+ return 0;
391
+ #endif
392
+ }
393
+ #endif
317
394
 
318
395
  NS_ASSUME_NONNULL_END
319
396