mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
make pep561 compliant
This commit is contained in:
24
django-stubs/contrib/messages/storage/fallback.pyi
Normal file
24
django-stubs/contrib/messages/storage/fallback.pyi
Normal file
@@ -0,0 +1,24 @@
|
||||
from django.contrib.messages.storage.base import Message
|
||||
from django.http.response import HttpResponse
|
||||
from typing import (
|
||||
Any,
|
||||
List,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
class FallbackStorage:
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def _get(
|
||||
self,
|
||||
*args,
|
||||
**kwargs
|
||||
) -> Union[Tuple[List[Any], bool], Tuple[List[str], bool], Tuple[List[Message], bool]]: ...
|
||||
def _store(
|
||||
self,
|
||||
messages: List[Message],
|
||||
response: HttpResponse,
|
||||
*args,
|
||||
**kwargs
|
||||
) -> List[Any]: ...
|
||||
Reference in New Issue
Block a user