From 86b8eddc2e785c3a474f7a580b73ed6d05fd7061 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Tue, 24 Nov 2020 09:22:40 -0500 Subject: [PATCH] client: More specific return type for PayPalAPIClient.get_transaction(). --- paypal_rest/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paypal_rest/client.py b/paypal_rest/client.py index 4046bdc..28799a7 100644 --- a/paypal_rest/client.py +++ b/paypal_rest/client.py @@ -343,7 +343,7 @@ class PayPalAPIClient: end_date: Optional[datetime.datetime]=None, start_date: Optional[datetime.datetime]=None, fields: TransactionFields=TransactionFields.TRANSACTION, - ) -> APIResponse: + ) -> Transaction: """Find and return a transaction by its id The PayPal API does not provide a way to look up transactions solely by