run black over stubs, add checking to travis

This commit is contained in:
Maxim Kurnikov
2018-12-03 18:52:44 +03:00
parent d5bc7d4ab2
commit cf6119bf9b
420 changed files with 2295 additions and 8384 deletions

View File

@@ -6,11 +6,7 @@ NOT_PROVIDED: Any
class FieldCacheMixin:
def get_cache_name(self) -> None: ...
def get_cached_value(
self, instance: Model, default: Any = ...
) -> Optional[Model]: ...
def get_cached_value(self, instance: Model, default: Any = ...) -> Optional[Model]: ...
def is_cached(self, instance: Model) -> bool: ...
def set_cached_value(
self, instance: Model, value: Optional[Model]
) -> None: ...
def set_cached_value(self, instance: Model, value: Optional[Model]) -> None: ...
def delete_cached_value(self, instance: Model) -> None: ...