make pep561 compliant

This commit is contained in:
Maxim Kurnikov
2018-07-29 20:19:43 +03:00
parent 89bb6eac75
commit f471b7b1bf
372 changed files with 51 additions and 0 deletions

View 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]: ...