Skip to content

Commit 1b25a50

Browse files
committed
Annotate SubscriptionGateway.find() and TransactionGateway.find()
1 parent ba6598e commit 1b25a50

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from _typeshed import Incomplete
22

3+
from braintree.subscription import Subscription
4+
35
class SubscriptionGateway:
46
gateway: Incomplete
57
config: Incomplete
68
def __init__(self, gateway) -> None: ...
79
def cancel(self, subscription_id): ...
810
def create(self, params=None): ...
9-
def find(self, subscription_id): ...
11+
def find(self, subscription_id: str) -> Subscription: ...
1012
def retry_charge(self, subscription_id, amount=None, submit_for_settlement: bool = False): ...
1113
def search(self, *query): ...
1214
def update(self, subscription_id, params=None): ...

stubs/braintree/braintree/transaction_gateway.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from _typeshed import Incomplete
22

3+
from braintree.transaction import Transaction
4+
35
class TransactionGateway:
46
gateway: Incomplete
57
config: Incomplete
@@ -9,7 +11,7 @@ class TransactionGateway:
911
def cancel_release(self, transaction_id): ...
1012
def create(self, params): ...
1113
def credit(self, params): ...
12-
def find(self, transaction_id): ...
14+
def find(self, transaction_id: str) -> Transaction: ...
1315
def refund(self, transaction_id, amount_or_options=None): ...
1416
def sale(self, params): ...
1517
def search(self, *query): ...

0 commit comments

Comments
 (0)