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,19 +2,14 @@ from typing import Any, Optional, Tuple, Union
from django.db import models
class BaseUserManager(models.Manager):
creation_counter: int
model: None
name: None
@classmethod
def normalize_email(cls, email: Optional[str]) -> str: ...
def make_random_password(
self, length: int = ..., allowed_chars: str = ...
) -> str: ...
def get_by_natural_key(
self, username: Optional[str]
) -> AbstractBaseUser: ...
def make_random_password(self, length: int = ..., allowed_chars: str = ...) -> str: ...
def get_by_natural_key(self, username: Optional[str]) -> AbstractBaseUser: ...
class AbstractBaseUser(models.Model):
password: str = ...
@@ -39,6 +34,4 @@ class AbstractBaseUser(models.Model):
@classmethod
def get_email_field_name(cls) -> str: ...
@classmethod
def normalize_username(
cls, username: Union[int, str]
) -> Union[int, str]: ...
def normalize_username(cls, username: Union[int, str]) -> Union[int, str]: ...