-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: read with args in flow.save_config #3256
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3256 +/- ##
==========================================
+ Coverage 89.11% 90.30% +1.18%
==========================================
Files 148 148
Lines 10392 10394 +2
==========================================
+ Hits 9261 9386 +125
+ Misses 1131 1008 -123
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
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.
I like :) Even though I feel the dict(...)
is to implicit.
if data._kwargs: | ||
r['with'] = data._kwargs | ||
|
||
if data._common_kwargs: | ||
r['with'] = dict(r.get('with', {}), **data._common_kwargs) | ||
|
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.
I think, something like the following is easier to reason about:
with_dict = {}
if ...:
with_dict.extend(data._kwargs
...
if with_dict:
r['with'] = with_dict
Uh oh!
There was an error while loading. Please reload this page.