Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eeebcd7

Browse files
committed
fixed derived classes not inheriting slots correctly
1 parent 82d6c33 commit eeebcd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/classderived.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ public static void InvokeCtor(IPythonDerivedType obj, string origCtorName, objec
812812
try
813813
{
814814
// create the python object
815-
var type = TypeManager.GetType(obj.GetType());
815+
var type = ClassManager.GetClass(obj.GetType());
816816
self = CLRObject.GetReference(obj, type);
817817

818818
// set __pyobj__ to self and deref the python object which will allow this

0 commit comments

Comments
 (0)