From 5d3768e593e3c5ac30f6da3063492ee6c787e566 Mon Sep 17 00:00:00 2001 From: rolandcrosby-check <88003730+rolandcrosby-check@users.noreply.github.com> Date: Wed, 26 Jan 2022 02:00:26 -0500 Subject: [PATCH] Allow *args to be Any for generic views (#831) --- django-stubs/views/generic/edit.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/django-stubs/views/generic/edit.pyi b/django-stubs/views/generic/edit.pyi index 091a7887b..f97c453b9 100644 --- a/django-stubs/views/generic/edit.pyi +++ b/django-stubs/views/generic/edit.pyi @@ -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]): ... @@ -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): ...