-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
Improve types of as_sql() and as_<engine>() methods #1315
Conversation
f860731
to
625a94a
Compare
class PostgreSQLSHAMixin: | ||
def as_postgresql( | ||
self, compiler: SQLCompiler, connection: BaseDatabaseWrapper, **extra_content: Any | ||
self, compiler: SQLCompiler, connection: BaseDatabaseWrapper, **extra_context: Any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related: django/django#16437
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn. That was my typo 😂 Thanks for fixing!
This has been sitting for two weeks with no feedback. @ngnpope do you have time to do a review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
One that you've missed though:
django-stubs/contrib/gis/db/backends/utils.pyi: def as_sql(self, connection: Any, lookup: Any, template_params: Any, sql_params: Any) -> _AsSqlType: ...
3fd97c6
to
1b320cc
Compare
Rebased and typehinted |
Also fixed a failure detected by mypy-self-check, not sure why I didn't notice before. |
|
Related issues
Noticed this in #1243.