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

@@ -7,7 +7,6 @@ from django.utils.safestring import SafeText
from .base import BaseEngine
class DjangoTemplates(BaseEngine):
app_dirs: bool
dirs: List[str]
@@ -17,25 +16,17 @@ class DjangoTemplates(BaseEngine):
def __init__(self, params: Dict[str, Any]) -> None: ...
def from_string(self, template_code: str) -> Template: ...
def get_template(self, template_name: str) -> Template: ...
def get_templatetag_libraries(
self, custom_libraries: Dict[str, str]
) -> Dict[str, str]: ...
def get_templatetag_libraries(self, custom_libraries: Dict[str, str]) -> Dict[str, str]: ...
class Template:
template: django.template.base.Template = ...
backend: django.template.backends.django.DjangoTemplates = ...
def __init__(
self, template: Template, backend: DjangoTemplates
) -> None: ...
def __init__(self, template: Template, backend: DjangoTemplates) -> None: ...
@property
def origin(self) -> Origin: ...
def render(
self, context: Any = ..., request: Optional[HttpRequest] = ...
) -> SafeText: ...
def render(self, context: Any = ..., request: Optional[HttpRequest] = ...) -> SafeText: ...
def copy_exception(
exc: TemplateDoesNotExist, backend: Optional[DjangoTemplates] = ...
) -> TemplateDoesNotExist: ...
def copy_exception(exc: TemplateDoesNotExist, backend: Optional[DjangoTemplates] = ...) -> TemplateDoesNotExist: ...
def reraise(exc: TemplateDoesNotExist, backend: DjangoTemplates) -> Any: ...
def get_installed_libraries() -> Dict[str, str]: ...
def get_package_libraries(pkg: Any) -> Iterator[str]: ...