mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
black reformat, some fixes
This commit is contained in:
@@ -17,8 +17,12 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||
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_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_constraints(
|
||||
self, cursor: CursorWrapper, table_name: str
|
||||
) -> Dict[str, Dict[str, Union[List[str], bool]]]: ...
|
||||
|
||||
@@ -16,7 +16,9 @@ class DatabaseOperations(BaseDatabaseOperations):
|
||||
cast_char_field_without_max_length: str = ...
|
||||
cast_data_types: Any = ...
|
||||
explain_prefix: str = ...
|
||||
def bulk_batch_size(self, fields: Union[List[Field], List[str], ImmutableList], objs: Union[List[Model], range]) -> int: ...
|
||||
def bulk_batch_size(
|
||||
self, fields: Union[List[Field], List[str], ImmutableList], objs: Union[List[Model], range]
|
||||
) -> int: ...
|
||||
def check_expression_support(self, expression: Union[BaseExpression, SQLiteNumericMixin]) -> None: ...
|
||||
def date_extract_sql(self, lookup_type: str, field_name: str) -> str: ...
|
||||
def date_interval_sql(self, timedelta: timedelta) -> str: ...
|
||||
@@ -54,12 +56,16 @@ class DatabaseOperations(BaseDatabaseOperations):
|
||||
self, value: Optional[Union[time, str]], expression: Expression, connection: DatabaseWrapper
|
||||
) -> Optional[time]: ...
|
||||
def get_decimalfield_converter(self, expression: Expression) -> Callable: ...
|
||||
def convert_uuidfield_value(self, value: Optional[str], expression: Col, connection: DatabaseWrapper) -> Optional[UUID]: ...
|
||||
def convert_uuidfield_value(
|
||||
self, value: Optional[str], expression: Col, connection: DatabaseWrapper
|
||||
) -> Optional[UUID]: ...
|
||||
def convert_booleanfield_value(
|
||||
self, value: Optional[int], expression: Expression, connection: DatabaseWrapper
|
||||
) -> Optional[bool]: ...
|
||||
def bulk_insert_sql(
|
||||
self, fields: Union[List[None], List[Field], ImmutableList], placeholder_rows: Union[List[Any], Tuple[Tuple[str]]]
|
||||
self,
|
||||
fields: Union[List[None], List[Field], ImmutableList],
|
||||
placeholder_rows: Union[List[Any], Tuple[Tuple[str]]],
|
||||
) -> str: ...
|
||||
def combine_expression(self, connector: str, sub_expressions: List[str]) -> str: ...
|
||||
def combine_duration_expression(self, connector: str, sub_expressions: List[str]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user