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
@@ -1,7 +1,6 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from django.db.backends.base.introspection import (BaseDatabaseIntrospection,
FieldInfo, TableInfo)
from django.db.backends.base.introspection import BaseDatabaseIntrospection, FieldInfo, TableInfo
from django.db.backends.utils import CursorWrapper
from django.db.models.fields import Field
@@ -11,32 +10,15 @@ def get_field_size(name: str) -> Optional[int]: ...
class FlexibleFieldLookupDict:
base_data_types_reverse: Any = ...
def __getitem__(
self, key: str
) -> Union[Tuple[str, Dict[str, int]], str]: ...
def __getitem__(self, key: str) -> Union[Tuple[str, Dict[str, int]], str]: ...
class DatabaseIntrospection(BaseDatabaseIntrospection):
connection: django.db.backends.sqlite3.base.DatabaseWrapper
data_types_reverse: Any = ...
def get_table_list(self, cursor: CursorWrapper) -> List[TableInfo]: ...
def get_table_description(
self, cursor: CursorWrapper, table_name: str
) -> List[FieldInfo]: ...
def get_sequences(
self,
cursor: CursorWrapper,
table_name: str,
table_fields: List[Field] = ...,
) -> List[Dict[str, str]]: ...
def get_relations(
self, cursor: CursorWrapper, table_name: str
) -> Dict[str, Tuple[str, str]]: ...
def get_key_columns(
self, cursor: CursorWrapper, table_name: str
) -> List[Tuple[str, str, str]]: ...
def get_primary_key_column(
self, cursor: CursorWrapper, table_name: str
) -> Optional[str]: ...
def get_constraints(
self, cursor: CursorWrapper, table_name: str
) -> Dict[str, Dict[str, Union[List[str], bool]]]: ...
def get_table_description(self, cursor: CursorWrapper, table_name: str) -> List[FieldInfo]: ...
def get_sequences(self, cursor: CursorWrapper, table_name: str, table_fields: List[Field] = ...) -> List[Dict[str, str]]: ...
def get_relations(self, cursor: CursorWrapper, table_name: str) -> Dict[str, Tuple[str, str]]: ...
def get_key_columns(self, cursor: CursorWrapper, table_name: str) -> List[Tuple[str, str, str]]: ...
def get_primary_key_column(self, cursor: CursorWrapper, table_name: str) -> Optional[str]: ...
def get_constraints(self, cursor: CursorWrapper, table_name: str) -> Dict[str, Dict[str, Union[List[str], bool]]]: ...