Skip to content

Commit

Permalink
Improve annotation for stripe DeletableAPIResource delete method (#7230)
Browse files Browse the repository at this point in the history
  • Loading branch information
yejia-stripe committed Feb 25, 2022
1 parent 3afcc1b commit ee8aa1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions stubs/stripe/@tests/stubtest_allowlist.txt
@@ -0,0 +1,2 @@
# DeletableAPIResource.delete is has a custom classmethod overload
stripe\..*\.delete
@@ -1,4 +1,7 @@
from _typeshed import Self

from stripe.api_resources.abstract.api_resource import APIResource as APIResource

class DeletableAPIResource(APIResource):
def delete(self, **params): ...
@classmethod
def delete(cls: type[Self], sid: str = ..., **params) -> Self: ...

0 comments on commit ee8aa1e

Please sign in to comment.