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 ruff suggestions #1516

Closed
wants to merge 1 commit into from
Closed

Fix ruff suggestions #1516

wants to merge 1 commit into from

Conversation

Siecje
Copy link
Contributor

@Siecje Siecje commented Feb 20, 2024

No description provided.

from uuid import UUID


uuid16_dict: Dict[int, str] = {
uuid16_dict: dict[int, str] = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We still support Python 3.8 so can't make this change yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This also adds from __future__ import annotations

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm... I guess that prevents runtime errors, but it still technically isn't valid. Since Python 3.8 is reaching end of life later this year, I'm tempted to defer this until then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bleak/__init__.py has from __future__ import annotations

from __future__ import annotations

@dlech dlech closed this Apr 28, 2024
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.

2 participants