Skip to content

Commit

Permalink
fix: Fixed compiler.pui file (#1689)
Browse files Browse the repository at this point in the history
* fix: Fixed compiler.pui file

* fix: Three methods have been removed from the allowlist
  • Loading branch information
Shamil authored Sep 8, 2023
1 parent f65e2c2 commit 12422e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions django-stubs/db/models/sql/compiler.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class SQLCompiler:
ordering_parts: Any
def __init__(self, query: Query, connection: BaseDatabaseWrapper, using: str | None) -> None: ...
col_count: int | None
def setup_query(self) -> None: ...
def setup_query(self, with_col_aliases: bool = ...) -> None: ...
has_extra_select: Any
def pre_sql_setup(
self,
self, with_col_aliases: bool = ...
) -> tuple[
list[tuple[Expression, _AsSqlType, None]],
list[tuple[Expression, tuple[str, _ParamsT, bool]]],
Expand All @@ -46,7 +46,7 @@ class SQLCompiler:
self, expressions: list[Expression], having: list[Expression] | tuple
) -> list[Expression]: ...
def get_select(
self,
self, with_col_aliases: bool = ...
) -> tuple[list[tuple[Expression, _AsSqlType, str | None]], dict[str, Any] | None, dict[str, int]]: ...
def _order_by_pairs(self) -> None: ...
def get_order_by(self) -> list[tuple[Expression, tuple[str, _ParamsT, bool]]]: ...
Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1966,9 +1966,6 @@ django.db.models.sql.compiler.SQLCompiler.deferred_to_columns
django.db.models.sql.compiler.SQLCompiler.get_default_columns
django.db.models.sql.compiler.SQLCompiler.get_qualify_sql
django.db.models.sql.compiler.SQLCompiler.get_related_selections
django.db.models.sql.compiler.SQLCompiler.get_select
django.db.models.sql.compiler.SQLCompiler.pre_sql_setup
django.db.models.sql.compiler.SQLCompiler.setup_query
django.db.models.sql.compiler.SQLDeleteCompiler.contains_self_reference_subquery
django.db.models.sql.compiler.SQLDeleteCompiler.single_alias
django.db.models.sql.datastructures.BaseTable.equals
Expand Down

0 comments on commit 12422e6

Please sign in to comment.