We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e611bbf commit eb24ee4Copy full SHA for eb24ee4
2 files changed
src/runtime/methodbinder.cs
@@ -375,7 +375,7 @@ internal Binding Bind(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, Meth
375
if (clrtype != null)
376
{
377
var typematch = false;
378
- if (pi[n].ParameterType != clrtype)
+ if (pi[n].ParameterType != typeof(object) && pi[n].ParameterType != clrtype)
379
380
IntPtr pytype = Converter.GetPythonTypeByAlias(pi[n].ParameterType);
381
pyoptype = Runtime.PyObject_Type(op);
src/tests/test_method.py
@@ -781,7 +781,6 @@ def test_no_object_in_param():
781
MethodTest.TestOverloadedNoObject("test")
782
783
784
-@pytest.mark.xfail(reason="Needs fixing. #203")
785
def test_object_in_param():
786
"""Test regression introduced by #151 in which Object method overloads
787
aren't being used. See #203 for issue."""
0 commit comments