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
[MAINTENANCE] Ensure that DataContextConfig
has a consistent shape when args are omitted
#9469
[MAINTENANCE] Ensure that DataContextConfig
has a consistent shape when args are omitted
#9469
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
if checkpoint_store_name is not None: | ||
self.checkpoint_store_name = checkpoint_store_name | ||
if profiler_store_name is not None: | ||
self.profiler_store_name = profiler_store_name | ||
self.checkpoint_store_name = checkpoint_store_name | ||
self.profiler_store_name = profiler_store_name | ||
self.plugins_directory = plugins_directory | ||
if validation_operators is not None: | ||
self.validation_operators = validation_operators |
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.
These feel bad. I shouldn't have the reason about whether or not an object has an attr. Shape should be consistent (even if values are not!)
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.
Nice!
The shape of the object should always be the same - we shouldn't conditionally set attrs but rather just use defaults or Nones
invoke lint
(usesblack
+ruff
)For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!