Add support for arguments with Nil type#160
Conversation
|
Thanks for the PR! Any chance you can fix the failing builds on 3.7 and above? Then I'mm merge, thanks. |
|
Done! |
|
doh, now it seems to be failing only on 3.6... |
|
Ah, in my haste, I removed something that is still required for tests to pass - should be good now 🤞 |
|
sorry for the back and forth but this isn't fixed yet |
|
Apologies, I am a bit baffled - it's bailing at places unrelated to my new additions, stemming from an earlier commit. It's to do with this line in osc_server.py: I think it could be fixed by removing |
|
If we're seeing errors due to ignores which were previously needed now being unused (which is what In this case it could mean that the error code that needs to be ignored has changed. If that's the case and we're happy to keep ignoring whatever is wrong then a valid fix is to update the error code in use. That probably does want to happen as a separate PR though. This showing up on an unrelated PR is unfortunately a side effect of the linting tools used in CI not being version pinned. I've put together #161 which should fix the CI, though highlights has an issue on Python 3.6. |
|
Ok, I think that the typing issues are all sorted now. If you rebase just your original commit onto |
|
Done — I don't have permissions to run the workflow myself, but hopefully this time we should be good to go. Thanks @PeterJCLaw! |
|
All green now, thanks! |
This PR adds support for creating and parsing messages with a
Nilargument type. Arguments ofNiltype are mapped to a pythonNone(and vice versa).I have added unit tests for the new functionality, and verified third-party compatibility by sending/receiving messages containing nil parameters with
liblo.I needed this for some features I'm developing for AbletonOSC, in which OSC endpoints need to return lists of arguments which may contain one or more nil values.
Thanks for the great library!