Skip to content

Commit 950fc54

Browse files
committed
adding object type to methodbind
patch for #203 - not best solution though.
1 parent d2d091b commit 950fc54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/runtime/methodbinder.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ internal Binding Bind(IntPtr inst, IntPtr args, IntPtr kw,
344344
if (clrtype != null)
345345
{
346346
bool typematch = false;
347-
if (pi[n].ParameterType != clrtype)
347+
if ((pi[n].ParameterType != clrtype) && !(pi[n].ParameterType is object))
348348
{
349349
IntPtr pytype = Converter.GetPythonTypeByAlias(pi[n].ParameterType);
350350
pyoptype = Runtime.PyObject_Type(op);

0 commit comments

Comments
 (0)