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

MAINT: Dont use ABC #10508

Closed
wants to merge 1 commit into from
Closed

MAINT: Dont use ABC #10508

wants to merge 1 commit into from

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented Apr 9, 2022

Working on mne-tools/mne-qt-browser#104 on PySide6 + macOS I hit a bug where PySide6 does not play nicely with ABC:

https://askpythonquestions.com/2022/01/07/pyside6-shiboken-and-abcmeta-bug

I don't think we need the BrowserBase to be an ABC subclass, even if it's nice to have it that way. Given that it breaks PySide6 (which seems to be the preferred framework going forward), it seems worth it to remove it here.

@larsoner
Copy link
Member Author

larsoner commented Apr 9, 2022

I think we'll want to wait for mne-tools/mne-qt-browser#104 and merge them simultaneously, because removing the ABC actually causes a problem with the latest released mne-qt-browser.

@larsoner
Copy link
Member Author

larsoner commented Apr 9, 2022

I think I found a different solution in mne-tools/mne-qt-browser#104, namely to change the MRO. Since our BrowserBase doesn't have any methods that overlap with QMainWindow, this should be fine. I'll close this for now, hopefully won't need to reopen...

@larsoner larsoner closed this Apr 9, 2022
@larsoner larsoner deleted the pyside6 branch April 9, 2022 14:35
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.

None yet

1 participant