Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve annotation for stripe DeletableAPIResource delete method (#7230)
- Loading branch information
1 parent
3afcc1b
commit ee8aa1e
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# DeletableAPIResource.delete is has a custom classmethod overload | ||
stripe\..*\.delete |
5 changes: 4 additions & 1 deletion
5
stubs/stripe/stripe/api_resources/abstract/deletable_api_resource.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: ... |