| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@RobPasMue @dipinknair @SMoraisAnsys I can't reproduce the CI failures locally and it seems the upgrade to 3.13 didn't have any CI issue. Any ideas? |
Sorry, something went wrong.
|
Looks like your implementation is getting "activated" somehow even if the user doesn't opt-in? https://github.com/ansys/ansys-pythonnet/actions/runs/12750835469/job/35536486536?pr=23#step:11:75 The failing tests talk about internal properties being accessed. The tests are expected to raise an error because the user shouldn't be able to access them but now, with your implementation, they are accessible by default and do not raise an error. |
Sorry, something went wrong.
|
I'll try to reproduce that locally and come back once I'm done :) |
Sorry, something went wrong.
I'm able to reproduce the CI failure locally and passed main locally. As @RobPasMue mentioned, the implementation is at cause here. |
Sorry, something went wrong.
|
@RobPasMue @SMoraisAnsys @dipinknair this is ready for review |
Sorry, something went wrong.
There was a problem hiding this comment.
Fine by me - should we consider bringing these changes upstream? In any case, I would include in the main README of our fork some info regarding this implementation
Sorry, something went wrong.
|
@RobPasMue I started to propose the binding manager upstream first. If that is accepted, I can propose the explicit interface implementation option too. Yes - the readme should be updated. Should we do that on pypi releases or on merges to main? |
Sorry, something went wrong.
Awesome, thanks for handling that!
I would do it as part of this PR. Our main branch should reflect the change already. We can do a follow up release right after. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #22
Gives the user an option to opt-into exposing explicit interface implementations.
This is done by adding a place to register customizations for python bindings by type or assembly.
Usage (to customize binding for all types in an assembly):
m = clr.AddReference('TestInheritance') from Python.Runtime import BindingManager, BindingOptions binding_options = BindingOptions() binding_options.AllowExplicitInterfaceImplementation = True BindingManager.SetBindingOptions(m, binding_options)