split error suppression for tests typechecking, fix ci, bunch of fixes

This commit is contained in:
Maxim Kurnikov
2019-02-03 19:33:51 +03:00
parent e409dbdb82
commit d03fddd96d
19 changed files with 191 additions and 105 deletions

View File

@@ -14,6 +14,9 @@ class SupportsLen(Protocol):
class SupportsCount(Protocol):
def count(self) -> int: ...
class SupportsOrdered(Protocol):
ordered: bool = ...
class Paginator:
object_list: QuerySet = ...
per_page: int = ...
@@ -21,7 +24,7 @@ class Paginator:
allow_empty_first_page: bool = ...
def __init__(
self,
object_list: Union[SupportsLen, SupportsCount],
object_list: Union[SupportsLen, SupportsCount, SupportsOrdered],
per_page: Union[int, str],
orphans: int = ...,
allow_empty_first_page: bool = ...,

View File

@@ -0,0 +1,6 @@
from django.dispatch import Signal
request_started: Signal = ...
request_finished: Signal = ...
got_request_exception: Signal = ...
setting_changed: Signal = ...