-
Notifications
You must be signed in to change notification settings - Fork 44
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
Font default validation not working correctly on subclasses #945
Comments
Do we have existing code that uses this pattern? The general form of this pattern hasn't worked in Traits for quite a while. As a workaround, can we recommend that people not subclass in this way, and instead do: class A(HasTraits):
f = KivaFont()
class B(A):
f = KivaFont("modern 11") We should of course fix this in Traits eventually, but I'm having trouble seeing this as something that needs an urgent fix in Traits when this aspect of Traits hasn't changed for quite a while. |
Alternatively, could |
The problem is that the breakage is in |
This is fixed by enthought/traits#1645 which is available in Traits >= 6.4.0 |
In the following code,
b.f
is undefined when assigned at the class level, but works fine when assigned as ab attribute (so not a problem with the font):This might be a traits bug?
The text was updated successfully, but these errors were encountered: