| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…al method .net to python
additional: add enums unit tests
There was a problem hiding this comment.
Awesome work 💪 Minor comments shared
Sorry, something went wrong.
|
|
||
| using var method = pyObj.GetAttr("another_int_property"); | ||
| Assert.IsTrue(method.IsCallable()); | ||
| Assert.AreEqual(654, method.Invoke().As<int>()); |
There was a problem hiding this comment.
Nice work 👍
Sorry, something went wrong.
…hod (#133) * Fix IndexOutOfRangeException on empty **kwargs call to overloaded method (#132) Calling an overloaded method with an empty kwargs mapping (e.g. obj.Method(arg, **{}), common when forwarding *args/**kwargs from a wrapper) crashed with an unhandled IndexOutOfRangeException in MethodBinder.CheckMethodArgumentsMatch. Since 10e721b (PR #83), the parameter names array is only populated when there are named arguments, but the kwargs code paths only checked the kwargs dictionary for null, so a non-null empty dict indexed into an empty names array. Treat an empty kwargs dict as no keyword arguments, matching Python semantics where f(x, **{}) is equivalent to f(x). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Update version to 2.0.60 Bump package <Version>, AssemblyVersion/AssemblyFileVersion and the perf-test baseline reference to 2.0.60. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Binding C# style names from C# method/fields/properties to PEP8 conforming names.
Examples: