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

@@ -21,10 +21,7 @@ class Sitemap:
@property
def paginator(self) -> Paginator: ...
def get_urls(
self,
page: Union[int, str] = ...,
site: Optional[Union[Site, RequestSite]] = ...,
protocol: Optional[str] = ...,
self, page: Union[int, str] = ..., site: Optional[Union[Site, RequestSite]] = ..., protocol: Optional[str] = ...
) -> List[Dict[str, Optional[Union[datetime, Model, str]]]]: ...
class GenericSitemap(Sitemap):

View File

@@ -2,7 +2,6 @@ from typing import Any, Optional
from django.core.management.base import BaseCommand, CommandParser
class Command(BaseCommand):
stderr: django.core.management.base.OutputWrapper
stdout: django.core.management.base.OutputWrapper

View File

@@ -5,7 +5,6 @@ from django.contrib.sitemaps import GenericSitemap, Sitemap
from django.core.handlers.wsgi import WSGIRequest
from django.template.response import TemplateResponse
def x_robots_tag(func: Callable) -> Callable: ...
def index(
request: WSGIRequest,
@@ -16,9 +15,7 @@ def index(
) -> TemplateResponse: ...
def sitemap(
request: WSGIRequest,
sitemaps: Union[
Dict[str, Type[Sitemap]], Dict[str, GenericSitemap], OrderedDict
],
sitemaps: Union[Dict[str, Type[Sitemap]], Dict[str, GenericSitemap], OrderedDict],
section: Optional[str] = ...,
template_name: str = ...,
content_type: str = ...,