-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
feat: add recursion guard #468
Conversation
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.
Thanks @adhtruong! I like the use of the BuildContext
.
I agree with you. I don't think adding the recursion guard is a breaking change. It doesn't change the behavior nor the returned type. |
9329754
to
66475db
Compare
56fd574
to
a22a980
Compare
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.
This looks great! I just had a few doubts/comments. Once those are cleared up, I think this is good to go.
docs/examples/library_factories/sqlalchemy_factory/test_example_4.py
Outdated
Show resolved
Hide resolved
All comments addressed now:
|
@adhtruong that's fantastic! I'll take a look at it today or tomorrow :) |
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.
If we can somehow workaround the type checkers as well, then I think it'd be great. I've suggested a possible workaround. Let me know what you think @adhtruong.
docs/examples/library_factories/sqlalchemy_factory/test_example_4.py
Outdated
Show resolved
Hide resolved
44ab851
to
b444845
Compare
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.
Thanks @adhtruong!
Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/468 |
Pull Request Checklist
Description
build_context
to build related methodsClose Issue(s)
SQLAlchemyFactory
#467