-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
add pydantic.color.Color objects as available input for Color fields #1258
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1258 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 3666 3669 +3
Branches 718 719 +1
=========================================
+ Hits 3666 3669 +3 Continue to review full report at Codecov.
|
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.
Otherwise looks good.
fix: remove ._original conditional (logic is set earlier in the method) fix: removed pydantic.color.Color line from errorstring
awesome, thank you. Sorry about the docs build, I'll fix it when I'm back in the UK. |
…ntic#1258) Signed-off-by: Lance Drane <dranelt@ornl.gov> Signed-off-by: Lance-Drane <ldraneutk@gmail.com>
Change Summary
If you pass a
pydantic.color.Color
object to aColor
field, it will fail b/c the objectThis small edit allows for
Color
objects as acceptable input for Color fields.Related issue number
Checklist
changes/<pull request or issue id>-<github username>.md
file added describing change(see changes/README.md for details)