Attempt at a clearer example of data channels#785
Conversation
| city = Str() | ||
|
|
||
| country = Str() | ||
| country = Instance(Country, allow_none=True) |
There was a problem hiding this comment.
| country = Instance(Country, allow_none=True) | |
| country = Instance(Country, allow_none=False) |
D'oh!
Codecov Report
@@ Coverage Diff @@
## master #785 +/- ##
==========================================
+ Coverage 40.81% 40.88% +0.07%
==========================================
Files 508 508
Lines 27832 27832
Branches 4217 4217
==========================================
+ Hits 11359 11379 +20
+ Misses 15992 15979 -13
+ Partials 481 474 -7
Continue to review full report at Codecov.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #785 +/- ##
==========================================
+ Coverage 40.81% 40.88% +0.07%
==========================================
Files 508 508
Lines 27832 27832
Branches 4217 4217
==========================================
+ Hits 11359 11379 +20
+ Misses 15992 15979 -13
+ Partials 481 474 -7 see 9 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
This bundles country info into an object that contains name and flag information with a custom value type that handles it.
Hopefully this example makes clearer the idea that an item in a model may be more complex than just a scalar value and may have multiple linked data channels.
This is a draft, because it may make sense to bundle this example in with the EnumType PR in some way.