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,32 +7,21 @@ from django.db.models.base import Model
TableInfo = namedtuple("TableInfo", ["name", "type"])
FieldInfo = namedtuple(
"FieldInfo",
"name type_code display_size internal_size precision scale null_ok default",
)
FieldInfo = namedtuple("FieldInfo", "name type_code display_size internal_size precision scale null_ok default")
class BaseDatabaseIntrospection:
data_types_reverse: Any = ...
connection: Any = ...
def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
def get_field_type(
self, data_type: str, description: FieldInfo
) -> Union[Tuple[str, Dict[str, int]], str]: ...
def get_field_type(self, data_type: str, description: FieldInfo) -> Union[Tuple[str, Dict[str, int]], str]: ...
def table_name_converter(self, name: str) -> str: ...
def column_name_converter(self, name: str) -> str: ...
def table_names(
self, cursor: Optional[CursorWrapper] = ..., include_views: bool = ...
) -> List[str]: ...
def table_names(self, cursor: Optional[CursorWrapper] = ..., include_views: bool = ...) -> List[str]: ...
def get_table_list(self, cursor: Any) -> None: ...
def django_table_names(
self, only_existing: bool = ..., include_views: bool = ...
) -> List[str]: ...
def django_table_names(self, only_existing: bool = ..., include_views: bool = ...) -> List[str]: ...
def installed_models(self, tables: List[str]) -> Set[Type[Model]]: ...
def sequence_list(self) -> List[Dict[str, str]]: ...
def get_sequences(
self, cursor: Any, table_name: Any, table_fields: Any = ...
) -> None: ...
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...) -> None: ...
def get_key_columns(self, cursor: Any, table_name: Any) -> None: ...
def get_primary_key_column(self, cursor: Any, table_name: Any): ...
def get_constraints(self, cursor: Any, table_name: Any) -> None: ...