mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-27 12:02:20 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -6,15 +6,10 @@ from django.db.models.fields.mixins import FieldCacheMixin
|
||||
from django.db.models.query_utils import FilteredRelation, PathInfo
|
||||
from django.db.models.sql.compiler import SQLCompiler
|
||||
|
||||
|
||||
class MultiJoin(Exception):
|
||||
level: int = ...
|
||||
names_with_path: List[
|
||||
Tuple[str, List[django.db.models.query_utils.PathInfo]]
|
||||
] = ...
|
||||
def __init__(
|
||||
self, names_pos: int, path_with_names: List[Tuple[str, List[PathInfo]]]
|
||||
) -> None: ...
|
||||
names_with_path: List[Tuple[str, List[django.db.models.query_utils.PathInfo]]] = ...
|
||||
def __init__(self, names_pos: int, path_with_names: List[Tuple[str, List[PathInfo]]]) -> None: ...
|
||||
|
||||
class Empty: ...
|
||||
|
||||
@@ -26,9 +21,7 @@ class Join:
|
||||
join_cols: Tuple = ...
|
||||
join_field: django.db.models.fields.mixins.FieldCacheMixin = ...
|
||||
nullable: bool = ...
|
||||
filtered_relation: Optional[
|
||||
django.db.models.query_utils.FilteredRelation
|
||||
] = ...
|
||||
filtered_relation: Optional[django.db.models.query_utils.FilteredRelation] = ...
|
||||
def __init__(
|
||||
self,
|
||||
table_name: str,
|
||||
@@ -39,15 +32,9 @@ class Join:
|
||||
nullable: bool,
|
||||
filtered_relation: Optional[FilteredRelation] = ...,
|
||||
) -> None: ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Union[int, str]]]: ...
|
||||
def relabeled_clone(
|
||||
self, change_map: Union[Dict[str, str], OrderedDict]
|
||||
) -> Join: ...
|
||||
def equals(
|
||||
self, other: Union[BaseTable, Join], with_filtered_relation: bool
|
||||
) -> bool: ...
|
||||
def as_sql(self, compiler: SQLCompiler, connection: DatabaseWrapper) -> Tuple[str, List[Union[int, str]]]: ...
|
||||
def relabeled_clone(self, change_map: Union[Dict[str, str], OrderedDict]) -> Join: ...
|
||||
def equals(self, other: Union[BaseTable, Join], with_filtered_relation: bool) -> bool: ...
|
||||
def __eq__(self, other: Union[BaseTable, Join]) -> bool: ...
|
||||
def demote(self) -> Join: ...
|
||||
def promote(self) -> Join: ...
|
||||
@@ -59,8 +46,6 @@ class BaseTable:
|
||||
table_name: str = ...
|
||||
table_alias: Optional[str] = ...
|
||||
def __init__(self, table_name: str, alias: Optional[str]) -> None: ...
|
||||
def as_sql(
|
||||
self, compiler: SQLCompiler, connection: DatabaseWrapper
|
||||
) -> Tuple[str, List[Any]]: ...
|
||||
def as_sql(self, compiler: SQLCompiler, connection: DatabaseWrapper) -> Tuple[str, List[Any]]: ...
|
||||
def relabeled_clone(self, change_map: OrderedDict) -> BaseTable: ...
|
||||
def equals(self, other: Join, with_filtered_relation: bool) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user