-
Notifications
You must be signed in to change notification settings - Fork 84
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 new "ArrayOrNone" Trait type. #219
Conversation
LGTM! Thanks! |
""" A trait whose value may be either a NumPy array or None, with | ||
casting allowed. The default is None. | ||
""" | ||
def __init__(self, *args, **metadata): |
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.
@corranwebster pointed out that this class mixes old-style and new-style; it should be consistent.
numpy_available = True | ||
|
||
from traits.testing.unittest_tools import UnittestTools | ||
from ..api import (ArrayOrNone, HasTraits, List, NO_COMPARE, on_trait_change, |
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.
List
and on_trait_change
aren't used here.
Add new "ArrayOrNone" Trait type.
Resolves #218.