__name__ and __signature__ for .NET methods by lostmsu · Pull Request #1133 · pythonnet/pythonnet

What does this implement/fix? Explain your changes.

This implements __name__ and __signature__ Python members for reflected .NET methods, that enables them to be analyzed with inspect module.

Does this close any currently open issues?

N/A

Any other comments?

Some Python libraries validate passed callables by using inspect module. This makes it possible for .NET methods to pass this kind of validation.

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself to AUTHORS
  • Updated the CHANGELOG