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

make typing-extensions dependency mandatory #2763

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

rathann
Copy link
Contributor

@rathann rathann commented Jan 6, 2025

Fixes #2762

It's imported unconditionally in:
lib/solaar/ui/about/presenter.py:19
lib/logitech_receiver/hidpp10.py:22
lib/logitech_receiver/hidpp20.py:35

Fixes 469c04f (committed as part of #2428).

It's imported unconditionally in:
lib/solaar/ui/about/presenter.py:19
lib/logitech_receiver/hidpp10.py:22
lib/logitech_receiver/hidpp20.py:35

Fixes 469c04f (committed as part of pwr-Solaar#2428).
@rathann
Copy link
Contributor Author

rathann commented Jan 6, 2025

I'm told this can be avoided by just type guarding that and defining Protocol = object when not type-checking, or checking sys.version , etc.

@rathann
Copy link
Contributor Author

rathann commented Jan 6, 2025

And the reason for this PR is this Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=2335637 .

@rathann
Copy link
Contributor Author

rathann commented Jan 6, 2025

Works around #2762 .

@pfps
Copy link
Collaborator

pfps commented Jan 6, 2025

Yes, that should have been changed in setup.py.

@MattHag
Copy link
Collaborator

MattHag commented Jan 7, 2025

Thanks for fixing it. This could be cherry-picked to the release branch.

Copy link
Collaborator

@pfps pfps left a comment

Choose a reason for hiding this comment

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

Thanks

@pfps pfps merged commit d95068c into pwr-Solaar:master Jan 10, 2025
5 checks passed
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.

Fedora 41: Solaar crashes at startup
3 participants