Fixed polyfill for TypeBuilder.CreateType by lostmsu · Pull Request #1261 · pythonnet/pythonnet

What does this implement/fix? Explain your changes.

The TypeBuilder.CreateType() polyfill was incorrectly returning typeof(TypeBuilder) instead of the new type created using TypeBuilder.

Does this close any currently open issues?

#1228

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