Skip to content

Commit 08e5348

Browse files
committed
Annotate Subscription.cancel() and SubscriptionGateway.cancel()
1 parent adb70d7 commit 08e5348

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stubs/braintree/braintree/subscription.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Subscription(Resource):
3939
@staticmethod
4040
def update(subscription_id: str, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult | None: ...
4141
@staticmethod
42-
def cancel(subscription_id): ...
42+
def cancel(subscription_id: str) -> SuccessfulResult | ErrorResult | None: ...
4343
@staticmethod
4444
def search(*query): ...
4545
@staticmethod

stubs/braintree/braintree/subscription_gateway.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class SubscriptionGateway:
88
gateway: Incomplete
99
config: Incomplete
1010
def __init__(self, gateway) -> None: ...
11-
def cancel(self, subscription_id): ...
11+
def cancel(self, subscription_id: str) -> SuccessfulResult | ErrorResult | None: ...
1212
def create(self, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult | None: ...
1313
def find(self, subscription_id: str) -> Subscription: ...
1414
def retry_charge(self, subscription_id, amount=None, submit_for_settlement: bool = False): ...

0 commit comments

Comments
 (0)