https://bugs.documentfoundation.org/show_bug.cgi?id=169229
Neil Roberts <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Neil Roberts <[email protected]> --- I had a go at implementing a patch that would make it possible to pass uno.Null("com.sun.star.task.XInteractionHandler") below. It’s still not really ideal so I’m not sure whether it’s worth it. I don’t think it’s really feasible to make None work in this case because that is already defined to represent the VOID type and when it’s passed through an Any pyuno has no way of knowing whether the callee actually wants a void type or not. https://gerrit.libreoffice.org/c/core/+/195100 Maybe another option that would help for the specific case of instantiating a service could be to make pyuno add class “create” methods for new-style services like it does when generating headers for C++. That way you could just call something like StringResourceWithLocation.create(…, None). If pyuno knows the destination type it can safely convert None to a null interface. That already happens if you call a regular method that takes an interface. I will have a go at implementing that too. -- You are receiving this mail because: You are the assignee for the bug.
