Skip to content

Commit 97862f5

Browse files
committed
Fix nonce type annotation in PromotionalOfferSignatureCreator
The old annotation for nonce was `uuid` the module, not `uuid.UUID` the actual UUID type in Python.
1 parent f42a933 commit 97862f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appstoreserverlibrary/promotional_offer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, signing_key: bytes, key_id: str, bundle_id: str):
1616
self._signing_key = serialization.load_pem_private_key(signing_key, password=None, backend=default_backend())
1717
self._key_id = key_id
1818
self._bundle_id = bundle_id
19-
def create_signature(self, product_identifier: str, subscription_offer_id: str, application_username: str, nonce: uuid, timestamp: int):
19+
def create_signature(self, product_identifier: str, subscription_offer_id: str, application_username: str, nonce: uuid.UUID, timestamp: int):
2020
"""
2121
Return the Base64 encoded signature
2222

0 commit comments

Comments
 (0)