traitlets
traitlets copied to clipboard
nicer falsy behavior for LazyConfigValue
- empty lazy config is falsy, non-empty is truthy
- checking
infor empty lazy config returns False, indicating there's no config there
I'm not sure if we should fix the tests, or the __contains__. I can't see why we would like 'foo' in c.foo to be true-ish.
Sorry or leaving this forever. The failing tests were mainly verifying that the LazyConfig was stored so that future access would retrieve the same thing, but the asserts were broken by the new falsiness. So I updated the tests to verify presence in another way.