-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
IntField handles only Int(), not Long(), fails in cryptic way #172
Comments
hmm... it looks like https://github.com/nucleic/enaml/blob/master/enaml/validator.py |
this appears to work... one of these days I will learn how to do git pull requests :/
|
This should handle ints and longs:
|
Oh, that's much simpler. Thanks! Is this something you could add to a future enaml release? |
I'm holding off on new features for now, until we hit Atom 1.0 and we get an idea of where we to take the project. |
sounds good, it's an easy workaround. Perhaps a note in the |
I'm working with unsigned 32-bit integers, which won't fit in an
int
, so I need to use anatom.api.Long
rather than anatom.api.Int
, but thenIntField
won't work. But there is noLongField
orLongValidator
:/This gist https://gist.github.com/jason-s/5f884e80ffd8a7c15af7 fails with
TypeError: invalid instance type
when I use enaml-run.The text was updated successfully, but these errors were encountered: