mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
10 lines
308 B
Python
10 lines
308 B
Python
from typing import Dict
|
|
|
|
from django.forms.forms import BaseForm
|
|
from django.http.response import HttpResponse
|
|
|
|
class SuccessMessageMixin:
|
|
success_message: str = ...
|
|
def form_valid(self, form: BaseForm) -> HttpResponse: ...
|
|
def get_success_message(self, cleaned_data: Dict[str, str]) -> str: ...
|