Skip to content

Commit adb70d7

Browse files
committed
Annotate Subscription.update() and SubscriptionGateway.update()
1 parent 56bdb32 commit adb70d7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

stubs/braintree/braintree/subscription.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Subscription(Resource):
3737
@staticmethod
3838
def retry_charge(subscription_id, amount=None, submit_for_settlement: bool = False): ...
3939
@staticmethod
40-
def update(subscription_id, params=None): ...
40+
def update(subscription_id: str, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult | None: ...
4141
@staticmethod
4242
def cancel(subscription_id): ...
4343
@staticmethod

stubs/braintree/braintree/subscription_gateway.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ class SubscriptionGateway:
1313
def find(self, subscription_id: str) -> Subscription: ...
1414
def retry_charge(self, subscription_id, amount=None, submit_for_settlement: bool = False): ...
1515
def search(self, *query): ...
16-
def update(self, subscription_id, params=None): ...
16+
def update(
17+
self, subscription_id: str, params: dict[str, Incomplete] | None = None
18+
) -> SuccessfulResult | ErrorResult | None: ...

0 commit comments

Comments
 (0)