mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
fix: remove SuccessMessageMixin.form_valid violation of Liskov substitution principle (#84)
This commit is contained in:
committed by
Maxim Kurnikov
parent
0e60b70ae4
commit
629ba954b4
@@ -1,9 +1,9 @@
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from django.forms.forms import Form
|
||||
from django.forms.forms import BaseForm
|
||||
from django.http.response import HttpResponseRedirect
|
||||
|
||||
class SuccessMessageMixin:
|
||||
success_message: str = ...
|
||||
def form_valid(self, form: Form) -> HttpResponseRedirect: ...
|
||||
def form_valid(self, form: BaseForm) -> HttpResponseRedirect: ...
|
||||
def get_success_message(self, cleaned_data: Dict[str, str]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user