Skip to content

Commit 97f80dc

Browse files
committed
Replace str with _StrOrPromise where the latter is expected.
Fixes typeddjango#1231 Signed-off-by: Zixuan James Li <[email protected]>
1 parent f4cf7f2 commit 97f80dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django-stubs/contrib/messages/views.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ from typing import Dict
22

33
from django.forms.forms import BaseForm
44
from django.http.response import HttpResponse
5+
from django.utils.functional import _StrOrPromise
56

67
class SuccessMessageMixin:
7-
success_message: str = ...
8+
success_message: _StrOrPromise = ...
89
def form_valid(self, form: BaseForm) -> HttpResponse: ...
910
def get_success_message(self, cleaned_data: Dict[str, str]) -> str: ...

0 commit comments

Comments
 (0)