Skip to content

Commit

Permalink
Allow *args to be Any for generic views (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandcrosby-check authored Jan 26, 2022
1 parent 515e382 commit 5d3768e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions django-stubs/views/generic/edit.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class ModelFormMixin(Generic[_T, _ModelFormT], AbstractFormMixin, SingleObjectMi
def form_invalid(self, form: _ModelFormT) -> HttpResponse: ...

class ProcessFormView(View):
def get(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def post(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def put(self, *args: str, **kwargs: Any) -> HttpResponse: ...
def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
def post(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
def put(self, *args: Any, **kwargs: Any) -> HttpResponse: ...

class BaseFormView(FormMixin[_FormT], ProcessFormView): ...
class FormView(TemplateResponseMixin, BaseFormView[_FormT]): ...
Expand All @@ -49,8 +49,8 @@ class UpdateView(SingleObjectTemplateResponseMixin, BaseUpdateView[_T, _ModelFor

class DeletionMixin:
success_url: Optional[str] = ...
def post(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def delete(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def post(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
def delete(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
def get_success_url(self) -> str: ...

class BaseDeleteView(DeletionMixin, BaseDetailView): ...
Expand Down

0 comments on commit 5d3768e

Please sign in to comment.