◐ Shell
reader mode source ↗
Skip to content

1783 Implement Interface And Inherit Class#2028

Merged
lostmsu merged 3 commits into
pythonnet:masterfrom
rmadsen-ks:1783-ImplementInterfaceAndInheritClass
Feb 3, 2023
Merged

1783 Implement Interface And Inherit Class#2028
lostmsu merged 3 commits into
pythonnet:masterfrom
rmadsen-ks:1783-ImplementInterfaceAndInheritClass

Conversation

@rmadsen-ks

Copy link
Copy Markdown
Contributor

Added support for multiple inheritance when inheriting from one base class and/or multiple interfaces.

Added a unit test verifying that it works with a simple class and interface. This unit test would previously have failed since multiple types are in the class super class list.

Close #1783

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
  • Ensure you have signed the .NET Foundation CLA
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

@eirannejad eirannejad mentioned this pull request Dec 19, 2022
5 tasks

@lostmsu lostmsu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Please, rebase before posting a new iteration.

P.S. sorry for the late response

Added support for multiple inheritance when inheriting from one base class and/or multiple interfaces.

Added a unit test verifying that it works with a simple class and interface. This unit test would previously have failed since multiple types are in the class super class list.
- Added exceptions during unintended use of superclasses.
- Removed invalid comment.
- Improved exceptions from MetaType slightly.
@rmadsen-ks rmadsen-ks force-pushed the 1783-ImplementInterfaceAndInheritClass branch from cf4d59a to 7acbb22 Compare February 2, 2023 21:07
@rmadsen-ks

Copy link
Copy Markdown
Contributor Author

@lostmsu,

Thanks for doing the review.

I have rebased and fixed things you mentioned.

Will you mark the conversations resolved where appropriate?

@lostmsu lostmsu merged commit a404d6e into pythonnet:master Feb 3, 2023
@lostmsu

lostmsu commented Feb 3, 2023

Copy link
Copy Markdown
Member

Thank you for the contribution!

elan-ajain pushed a commit to elancapital/pythonnet that referenced this pull request Feb 17, 2023
* 1783 Implement Interface And Inherit Class

Added support for multiple inheritance when inheriting from one base class and/or multiple interfaces.

Added a unit test verifying that it works with a simple class and interface. This unit test would previously have failed since multiple types are in the class super class list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot implement an interface that extends another interface

2 participants