Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0: Update django.db.models.sql.compiler #2166

Merged
merged 2 commits into from
May 19, 2024

Conversation

JaeHyuckSa
Copy link
Contributor

@JaeHyuckSa JaeHyuckSa commented May 16, 2024

I have made things!

Update stubs for django.db.models.sql.compiler for Django 5.0.

  • django.db.models.sql.compiler
    • django.db.models.sql.compiler.PositionRef was added

Related issues

Refs

Upstream PR

@JaeHyuckSa JaeHyuckSa mentioned this pull request May 16, 2024
39 tasks
@@ -18,6 +18,10 @@ _ParamT: TypeAlias = str | int
_ParamsT: TypeAlias = list[_ParamT]
_AsSqlType: TypeAlias = tuple[str, _ParamsT]

class PositionRef(Ref):
def __init__(self, ordinal: str, refs: str, source: Expression) -> None: ...
def as_sql(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper) -> _AsSqlType: ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as_sql exists here:

def as_sql(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper) -> _AsSqlType: ...

Ref is a subclass of BaseExpression

django-stubs/db/models/sql/compiler.pyi Outdated Show resolved Hide resolved
@sobolevn sobolevn merged commit 2224595 into typeddjango:master May 19, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants