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

Skip to content
Merged
Show file tree
Hide file tree
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
Merge branch 'master' into fix_kwarg_func_resolution
  • Loading branch information
filmor authored Oct 13, 2020
commit 1d01c457a5f573d9454dffc3da3ac93aee479be9
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ details about the cause of the failure

- Fix incorrect dereference of wrapper object in `tp_repr`, which may result in a program crash
- Fix incorrect dereference in params array handling
- Fixes issue with function resolution when calling overloaded function with keyword arguments from python ([#1097][i1097])
- Fixes issue with function resolution when calling overloaded function with keyword arguments from python ([#1097][i1097])
- Fix `object[]` parameters taking precedence when should not in overload resolution
- Fixed a bug where all .NET class instances were considered Iterable
- Fix incorrect choice of method to invoke when using keyword arguments.
- Fix non-delegate types incorrectly appearing as callable.
- Indexers can now be used with interface objects
- Fixed a bug where indexers could not be used if they were inherited
- Made it possible to use `__len__` also on `ICollection<>` interface objects

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

Expand Down
10 changes: 8 additions & 2 deletions src/tests/test_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,6 @@ def test_optional_and_default_params():
assert res == "0232"

def test_default_params_overloads():

res = MethodTest.DefaultParamsWithOverloading(1, 2)
assert res == "12"

Expand All @@ -1181,4 +1180,11 @@ def test_default_params_overloads():

def test_default_params_overloads_ambiguous_call():
with pytest.raises(TypeError):
MethodTest.DefaultParamsWithOverloading()
MethodTest.DefaultParamsWithOverloading()

def test_keyword_arg_method_resolution():
from Python.Test import MethodArityTest

ob = MethodArityTest()
assert ob.Foo(1, b=2) == "Arity 2"

You are viewing a condensed version of this merge commit. You can view the full changes here.