-
Notifications
You must be signed in to change notification settings - Fork 178
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
Fix traitlets warnings when running tests #169
Conversation
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.
The warning suggests default
is being treated as metadata on the property which implies it probably doesn't do anything useful.
Looking at https://traitlets.readthedocs.io/en/stable/trait_types.html is sounds like what was originally intended is default_value
, however that may now change the behaviour of the existing properties so perhaps we should just delete default
completely? @minrk ?
07ba448
to
2a55011
Compare
Yup, these want to be Background:
So this PR as it is preserves the current behavior avoiding the warning, but the current behavior is not the intended behavior. Aside: It is a little weird and not a pattern I particularly endorse to use |
2a55011
to
f1a0e59
Compare
f1a0e59
to
c885684
Compare
@minrk edited the commit to use
With the following diff, tests pass with no errors too.
But not too sure if there are no side effects. I had a look at a few uses of Thanks! |
Let's land this change and not worry about it too much. In the future, I think leaving |
Running tests locally got warnings such as
Fixed using the
.tag
. Tests passing locally, no more warnings