Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract Mixin classes #572

Merged
merged 6 commits into from
Dec 4, 2019
Merged

Abstract Mixin classes #572

merged 6 commits into from
Dec 4, 2019

Conversation

Borda
Copy link
Member

@Borda Borda commented Dec 3, 2019

What does this PR do?

This is a proposal how to make the Mixin classes "safer" - as abstract classes they should not be created and also with listed attributes in virtual init it is easier to check what attributes are needed/used...

https://softwareengineering.stackexchange.com/a/355476/337564

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

@neggert
Copy link
Contributor

neggert commented Dec 3, 2019

Great idea! I don’t love that we need to define all of those abstract methods. It makes everything interlinked (a pre-existing problem which this PR reveals), which defeats one of the main reasons to use mixins. That can be a task for a future PR, though.

@Borda Borda changed the title Abstract Mixin classes [wip] Abstract Mixin classes Dec 3, 2019
@Borda
Copy link
Member Author

Borda commented Dec 4, 2019

@jeffling @Ir1d ^^ @williamFalcon

@williamFalcon williamFalcon merged commit e0dbc8a into Lightning-AI:master Dec 4, 2019
@Borda Borda deleted the abstract branch December 4, 2019 16:00
@jeffling
Copy link
Contributor

jeffling commented Dec 5, 2019

Very nice. Re: @neggert's point, I think we should see if we can build the callback/plugin system and then switch these mixins to use them so it can solve the interconnectedness problem that was highlighted

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.

4 participants