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

@@ -2,7 +2,6 @@ from typing import Any, Optional, Dict, List
from django.db.models import Func
class CumeDist(Func):
function: str = ...
name: str = ...
@@ -25,13 +24,7 @@ class FirstValue(Func):
class LagLeadFunction(Func):
window_compatible: bool = ...
def __init__(
self,
expression: Optional[str],
offset: int = ...,
default: None = ...,
**extra: Any
) -> Any: ...
def __init__(self, expression: Optional[str], offset: int = ..., default: None = ..., **extra: Any) -> Any: ...
class Lag(LagLeadFunction):
function: str = ...
@@ -51,9 +44,7 @@ class NthValue(Func):
function: str = ...
name: str = ...
window_compatible: bool = ...
def __init__(
self, expression: Optional[str], nth: int = ..., **extra: Any
) -> Any: ...
def __init__(self, expression: Optional[str], nth: int = ..., **extra: Any) -> Any: ...
class Ntile(Func):
function: str = ...