You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Passing Python objects implementing a generic C# interface to a C# method fails in 3.0.0 #1982
Python version: 3.7.6 (2.5.2) and 3.9.12 (3.0.0.post01)
Operating System: Win10
.NET Runtime: .NET 6
Details
Passing a Python object (obj) that implements a generic interface in Python (ISome) to a C# class fails in pythonnet 3.0 but works in 2.5.2; same behaviour whether specific (SomeSpecific) or generic (SomeGeneric)
Activity
filmor commentedon Nov 2, 2022
Thank you for the detailed report and reproducible example.
This is a regression due to #1663, I'll try to fix the generated code.
filmor commentedon Nov 2, 2022
Fixed in #1998, I'll cut a release tomorrow.