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

Fix ImportError: cannot import name 'override' from 'typing' (Python 3.11) #44

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

pdcastro
Copy link
Collaborator

Fixes #43.

PR #37 introduced an @override code annotation that while correct, is only available with Python 3.12 and later. But Home Assistant, and this integration, currently still support Python 3.11. This PR thus removes that annotation. (The annotation is only a development aid and does change the code’s functionality.)

Tested with Home Assistant 2024.1.6 which is the last container release shipped with Python 3.11.

Copy link
Owner

@megakid megakid left a comment

Choose a reason for hiding this comment

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

👍

@pdcastro pdcastro merged commit ecd940b into megakid:main Mar 20, 2024
2 checks passed
@pdcastro pdcastro deleted the fix-python11-override branch March 20, 2024 20:50
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 Import Name Override
3 participants