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

Add __get__ to the column and relationship to improve usage #172

Closed
wants to merge 1 commit into from

Conversation

CaselIT
Copy link
Member

@CaselIT CaselIT commented Sep 1, 2021

when the plugin is not supported, for example when using other type checkers.

Description

This was taken from the dropbox stubs.

Fixes #170

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!

when the plugin is not supported, for example when using other type checkers.
@@ -0,0 +1,42 @@
from typing import List
Copy link
Member

Choose a reason for hiding this comment

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

this gets tested with the plugin installed, so isnt really tested, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, but the objective it to ensure that with the plugin nothing unsurprising happens.

I've looked at it in vscode and the types are inferred correctly

@CaselIT
Copy link
Member Author

CaselIT commented Sep 2, 2021

There is also column_property(), deferred(), query_property(), etc

@CaselIT
Copy link
Member Author

CaselIT commented Jan 4, 2023

closing since for v2 we went on another direction

@CaselIT CaselIT closed this Jan 4, 2023
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.

Supporting __get__ and __set__ on Column object
2 participants