-
Notifications
You must be signed in to change notification settings - Fork 748
Allow setting typed objects via PyModule.Set #2311
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
Comments
We were able to achieve the desired effect by using the following code:
However, as some of these types/methods are internal, this is only possible if we use IgnoresAccessChecksToGenerator, which we would really like to avoid. |
Sounds like we just need an overload for |
We've sent PR via a separate ticket: |
…sion using a specific type fixes pythonnet#2311
Environment
Details
We'd like to pass a certain interface that the object supports, so only methods of this interface are available for Python scripting.
I suspect that adding the overloaded method PyModule.Set or ConverterExtension.ToPython that accepts the type of the object may resolve this issue.
The text was updated successfully, but these errors were encountered: