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

Fixes: #257 Add joins_implicitly as arg to column_valued() #258

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

joshvoigts
Copy link
Contributor

Description

Type checking fails when using the joins_implicitly parameter with column_valued().

Checklist

This pull request is:

  • A documentation / typographical error fix
    • Good to go, no issue or tests are needed
  • A short code fix
    • please include the issue number, and create an issue if none exists, which
      must include a complete example of the issue. one line code fixes without an
      issue and demonstration will not be accepted.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests. one line code fixes without tests will not be accepted.
  • A new feature implementation
    • please include the issue number, and create an issue if none exists, which must
      include a complete example of how the feature would look.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests.

Have a nice day!

@CaselIT CaselIT merged commit 20436f7 into sqlalchemy:main Oct 29, 2023
2 checks passed
self, name: Optional[Any] = ...
self, name: Optional[Any], joins_implicitly: bool = False
Copy link
Contributor

@andersk andersk Nov 13, 2023

Choose a reason for hiding this comment

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

The = ... default should not have been deleted. This was needed to accept calls without a name, i.e. .column_valued().

andersk added a commit to andersk/sqlalchemy2-stubs that referenced this pull request Nov 13, 2023
Commit 20436f7 (sqlalchemy#258) incorrectly
removed this default, which is needed to accept calls without a name,
i.e., .column_valued().

Signed-off-by: Anders Kaseorg <[email protected]>
andersk added a commit to andersk/sqlalchemy2-stubs that referenced this pull request Nov 13, 2023
Commit 20436f7 (sqlalchemy#258) incorrectly
removed this default, which is needed to accept calls without a name,
i.e., .column_valued().

Fixes sqlalchemy#259.

Signed-off-by: Anders Kaseorg <[email protected]>
CaselIT pushed a commit that referenced this pull request Nov 14, 2023
Commit 20436f7 (#258) incorrectly
removed this default, which is needed to accept calls without a name,
i.e., .column_valued().

Fixes #259.

Signed-off-by: Anders Kaseorg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants