-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Type postgresql.aggregate_order_by() #12463
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
Conversation
let's also what in what happens in https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/5799 since I proposed a slight change on the current overloads. Sadly I could not remove them, but I think I reduced at least the scope of the issue at sqlalchemy/lib/sqlalchemy/sql/_typing.py Lines 88 to 91 in aae34df
or at least that is part of the problem |
I have to admit that this problem is not clear to me at the moment... Maybe we could track this as a dedicated issue, possibly with a reference in code? And maybe gather help from mypy people if we manage to produce a minimal example? |
25e8f01
to
98c9a76
Compare
98c9a76
to
0c34d5e
Compare
I guess in this case we don't allow a literal here, so the changes done in 084eac6 do not apply. buy maybe only 2 overload could be enough? |
Can you clarify what you mean? There are only 2 overloads in my proposal. In fact, I only implemented what's tested (i.e. Column and mapper's attribute). If there are more use cases (now or later), we can add more overloads and tests. |
indeed sorry, I counted 3 inits, but the 3rd on is the implementation. I wounder if the second overload could be |
Overloading of `__init__()` is needed, probably for the same reason as it is in ReturnTypeFromArgs. Related to sqlalchemy#6810.
0c34d5e
to
701d979
Compare
It seems to work. Changed, thanks. |
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.
OK, this is sqla-tester setting up my work on behalf of CaselIT to try to get revision 701d979 of this pull request into gerrit so we can run tests and reviews and stuff
New Gerrit review created for change 701d979: https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/5839 |
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/5839 has been merged. Congratulations! :) |
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/5840 has been merged. Congratulations! :) |
Overloading of
__init__()
is needed, probably for the same reason as it is inReturnTypeFromArgs
.Related to #6810.