@@ -39,25 +39,25 @@ class ProcessFormView(View):
39
39
def get_form (self , form_class : Type [Form ] = None ) -> Form : ...
40
40
def form_valid (self , form : Form ) -> HttpResponse : ...
41
41
def form_invalid (self , form : Form ) -> HttpResponse : ...
42
- def get (self , request : HttpRequest , * args : object , ** kwargs : object ) -> HttpResponse : ...
43
- def post (self , request : HttpRequest , * args : object , ** kwargs : object ) -> HttpResponse : ...
44
- def put (self , * args : Any , ** kwargs : Any ) -> HttpResponse : ...
42
+ def get (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
43
+ def post (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
44
+ def put (self , * args : str , ** kwargs : Any ) -> HttpResponse : ...
45
45
46
46
class BaseFormView (FormMixin , ProcessFormView ): ...
47
47
class FormView (TemplateResponseMixin , BaseFormView ): ...
48
48
49
49
class BaseCreateView (ModelFormMixin , ProcessFormView ):
50
50
object = ... # type: models.Model
51
- def get (self , request : HttpRequest , * args : object , ** kwargs : object ) -> HttpResponse : ...
52
- def post (self , request : HttpRequest , * args : object , ** kwargs : object ) -> HttpResponse : ...
51
+ def get (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
52
+ def post (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
53
53
54
54
class CreateView (SingleObjectTemplateResponseMixin , BaseCreateView ):
55
55
template_name_suffix = ... # type: str
56
56
57
57
class BaseUpdateView (ModelFormMixin , ProcessFormView ):
58
58
object = ... # type: models.Model
59
- def get (self , request : HttpRequest , * args : object , ** kwargs : object ) -> HttpResponse : ...
60
- def post (self , request : HttpRequest , * args : object , ** kwargs : object ) -> HttpResponse : ...
59
+ def get (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
60
+ def post (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
61
61
62
62
class UpdateView (SingleObjectTemplateResponseMixin , BaseUpdateView ):
63
63
template_name_suffix = ... # type: str
@@ -67,8 +67,8 @@ _object = object
67
67
class DeletionMixin :
68
68
success_url = ... # type: Optional[str]
69
69
object = ... # type: models.Model
70
- def delete (self , request : HttpRequest , * args : _object , ** kwargs : _object ) -> HttpResponse : ...
71
- def post (self , request : HttpRequest , * args : _object , ** kwargs : _object ) -> HttpResponse : ...
70
+ def delete (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
71
+ def post (self , request : HttpRequest , * args : str , ** kwargs : Any ) -> HttpResponse : ...
72
72
def get_success_url (self ) -> str : ...
73
73
74
74
class BaseDeleteView (DeletionMixin , BaseDetailView ): ...
0 commit comments