◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ details about the cause of the failure
- Fix incorrect dereference in params array handling
- Fix `object[]` parameters taking precedence when should not in overload resolution
- Fixed a bug where all .NET class instances were considered Iterable

## [2.5.0][] - 2020-06-14

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/constructorbinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ internal object InvokeRaw(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info)
// any extra args are intended for the subclass' __init__.

IntPtr eargs = Runtime.PyTuple_New(0);
binding = Bind(inst, eargs, kw);
Runtime.XDecref(eargs);

if (binding == null)
Expand Down
6 changes: 6 additions & 0 deletions src/testing/methodtest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,12 @@ public string PublicMethod(string echo)
return echo;
}
}
}

namespace PlainOldNamespace
Expand Down
7 changes: 7 additions & 0 deletions src/tests/test_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,3 +1149,10 @@ def test_optional_and_default_params():

res = MethodTest.OptionalAndDefaultParams2(b=2, c=3)
assert res == "0232"
Toggle all file notes Toggle all file annotations