| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Any update on this? This is a great feature add that I need. For now, I'm setting the requirement to use git at this PR. |
Sorry, something went wrong.
|
@svlandeg what is the next step in the process? How do I get this to be reviewed? (Thanks!) |
Sorry, something went wrong.
|
Hi @nkrishnaswami! It's in our review queue, so not much to be done by you at this point in time. We'll get back to you once we've had time to go through this in details 🙏 |
Sorry, something went wrong.
There was a problem hiding this comment.
Good addition — the change in _compat.py improves handling of dict annotations, and the new test (test_attribute_keyed_dict.py) clearly validates the functionality with attribute_keyed_dict.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good!
We should probably re-export sqlalchemy.orm.collections
Sorry, something went wrong.
There was a problem hiding this comment.
@nkrishnaswami, thank you!
Could you please address my review comments?
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
@nkrishnaswami, thank you!
Sorry, something went wrong.
|
YW, and thanks for reviewing it! |
Sorry, something went wrong.
|
What is the next step after approval? |
Sorry, something went wrong.
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
This PR is in the queue for the final review by Sebastian |
Sorry, something went wrong.
| "type arguments. Exactly two required (e.g., dict[str, " | ||
| "Model])" | ||
| ) | ||
| use_annotation = args[1] |
There was a problem hiding this comment.
@nkrishnaswami Should we add:
else:
raise ValueError(f'Unsupported type {annotation} in relationship field {name}')to avoid going into infinite recursion and get a better error message?
Could be on a separate pull request too.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
To add support for SQLAlchemy mapped collections, I'd like to add a case for dict origins to the Pydantic v2 get_relationship_to implementation. This PR does so, with a test case using a dictionary with collection class attribute_keyed_dict.