Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
Python classes cannot inherit from C# interfaces that themselves inherit from C# interfaces with methods:
namespace A { public interface B { void C(); } public interface D : B { } }
import clr clr.AddReference('A') import A class E(A.D): __namespace__ = 'F'
Output:
Traceback (most recent call last): File "<stdin>", line 6, in <module> TypeError: Failed to create Python type for F.E
Extending from B works. It also works if C is removed from B.
B
C
Possibly related to #2511. Reverting to 3.0.3 (before 9ebfbde) provides the moderately-more-useful error TypeError: VTable setup of type F.E failed.
TypeError: VTable setup of type F.E failed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Details
Python classes cannot inherit from C# interfaces that themselves inherit from C# interfaces with methods:
Output:
Extending from
B
works. It also works ifC
is removed fromB
.Possibly related to #2511. Reverting to 3.0.3 (before 9ebfbde) provides the moderately-more-useful error
TypeError: VTable setup of type F.E failed
.The text was updated successfully, but these errors were encountered: