improved version

This commit is contained in:
Maxim Kurnikov
2018-07-29 20:06:41 +03:00
parent c180555415
commit 89bb6eac75
160 changed files with 1007 additions and 607 deletions

View File

@@ -1,6 +1,6 @@
from django.db.models.base import Model
from django.db.models.sql.where import WhereNode
from typing import (
Any,
Set,
Tuple,
Type,
@@ -10,9 +10,13 @@ from typing import (
class JoinPromoter:
def __init__(self, connector: str, num_children: int, negated: bool) -> None: ...
def add_votes(self, votes: Union[Tuple, Set[str]]) -> None: ...
def add_votes(self, votes: Union[Set[str], Tuple]) -> None: ...
def update_join_types(self, query: Query) -> Set[str]: ...
class Query:
def __init__(self, model: Any, where: Type[WhereNode] = ...) -> None: ...
def __init__(
self,
model: Type[Model],
where: Type[WhereNode] = ...
) -> None: ...