-
-
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 (Sourcery refactored) #469
Conversation
5ea3f16
to
4389835
Compare
4389835
to
5959001
Compare
5959001
to
9462d28
Compare
20c27a1
to
3a8f6c0
Compare
a723275
to
bf885e5
Compare
bf885e5
to
7dd25a9
Compare
7dd25a9
to
f0704d0
Compare
f0704d0
to
84fdf9f
Compare
84fdf9f
to
ec53212
Compare
255146c
to
d142385
Compare
d142385
to
a383e26
Compare
a383e26
to
b6988bd
Compare
|
||
return generic_args[0] | ||
return None if len(generic_args) != 1 else generic_args[0] |
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.
Function BaseFactory._infer_model_type
refactored with the following changes:
- Lift code into else after jump in control flow (
reintroduce-else
) - Replace if statement with if expression (
assign-if-exp
)
|
Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/469 |
Pull Request #468 refactored by Sourcery.
Since the original Pull Request was opened as a fork in a contributor's
repository, we are unable to create a Pull Request branching from it.
To incorporate these changes, you can either:
Merge this Pull Request instead of the original, or
Ask your contributor to locally incorporate these commits and push them to
the original Pull Request
Incorporate changes via command line
NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.
See our documentation here.
Run Sourcery locally
Reduce the feedback loop during development by using the Sourcery editor plugin:
Help us improve this pull request!