Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor cleanup
  • Loading branch information
rmadsen-ks authored and filmor committed Mar 25, 2026
commit 9831bb91632d8e762eb8181b8678686271e6b213
6 changes: 2 additions & 4 deletions src/runtime/Types/ClassDerived.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ internal static Type CreateDerivedType(string name,


// override the virtual method to call out to the python method, if there is one.
AddVirtualMethod(method, baseType, typeBuilder, isDeclared);
AddVirtualMethod(method, typeBuilder);
}

// Add any additional methods and properties explicitly exposed from Python.
Expand Down Expand Up @@ -384,10 +384,8 @@ private static void AddConstructor(ConstructorInfo ctor, Type baseType, TypeBuil
/// and calls it, otherwise fall back to the base class method.
/// </summary>
/// <param name="method">virtual method to be overridden</param>
/// <param name="baseType">Python callable object</param>
/// <param name="typeBuilder">TypeBuilder for the new type the method is to be added to</param>
/// <param name="isDeclared"></param>
private static void AddVirtualMethod(MethodInfo method, Type baseType, TypeBuilder typeBuilder, bool isDeclared)
private static void AddVirtualMethod(MethodInfo method, TypeBuilder typeBuilder)
{
ParameterInfo[] parameters = method.GetParameters();
Type[] parameterTypes = (from param in parameters select param.ParameterType).ToArray();
Expand Down
Loading