Skip to content

Commit

Permalink
fix: Fix action decorator type (#48)
Browse files Browse the repository at this point in the history
I wanted to fix return type for an `@action` decorator by adding a protocol, but turned out it already existed, but was unused!

Fixed it!
  • Loading branch information
last-partizan authored Dec 15, 2023
1 parent 2a44546 commit 962df60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework-stubs/decorators.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ def action(
lookup_url_kwarg: str | None = ...,
queryset: QuerySet[Any] = ...,
**kwargs: Any,
) -> Callable[[_F], _F]: ...
) -> Callable[[_F], ViewSetAction[_F]]: ...

0 comments on commit 962df60

Please sign in to comment.