-
Notifications
You must be signed in to change notification settings - Fork 227
Support setting @hybrid_property's return type from the functions type annotations. #340
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
Merged
erikwrede
merged 19 commits into
graphql-python:master
from
flipbit03:hybrid-property-type
Apr 29, 2022
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0cb60ad
Get default type of hybrid_property from type annotation
conao3 c6089e1
use type_ instead of type
conao3 1d754e0
In modern python, instead of a class, it contains class name
conao3 8f6fad8
show warnings to inform user that type convertion has failed
conao3 95b7012
Implemented matcher-based @singledispatch lookalike :-)
flipbit03 8cf39c1
Implemented type generation out of hybrid_property method's type anno…
flipbit03 3216608
Fixed tests (phew!!!)
flipbit03 a7e8a1b
Made tests also work in py36 (pheww!!! #2)
flipbit03 d83f7e1
Support Decimal() type.
flipbit03 6f6c61c
Fallback to String / Implemented Enum support.
flipbit03 3f3593e
better naming conventions (suggested by @erikwrede)
flipbit03 ac6c4bc
Reverted all tests. We will be writing new tests specifically for the…
flipbit03 44f0e62
removed unused function
flipbit03 95323f5
Tests: Fix failing tests and ensure **stable ordering** of property c…
flipbit03 c57eada
New test and models specific to hybrid_property type inference tests.
flipbit03 6c53351
Add a test for an unsupported type (Tuple), and test it coerces back …
flipbit03 a17782b
Lint.
flipbit03 687e96e
Self-referential SQLAlchemy Model Support.
flipbit03 3acd92b
Extra Tests for Self-referential SQLAlchemy Model Support (in special…
flipbit03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.