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

More typehints #1514

Merged
merged 1 commit into from
Feb 21, 2024
Merged

More typehints #1514

merged 1 commit into from
Feb 21, 2024

Conversation

Siecje
Copy link
Contributor

@Siecje Siecje commented Feb 15, 2024

No description provided.

@@ -21,10 +21,10 @@
class BleakGATTService(abc.ABC):
"""Interface for the Bleak representation of a GATT Service."""

def __init__(self, obj):
def __init__(self, obj) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What should obj be?

Copy link
Collaborator

Choose a reason for hiding this comment

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

typing.Any

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I saw that but what are the possible types? Can we list them?

Copy link
Collaborator

Choose a reason for hiding this comment

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

They are backend-specific so we can't because it would cause import errors. Also, this is considered internal API, so I don't want people expecting any specific stable type.

@dlech dlech merged commit 5e294f4 into hbldh:develop Feb 21, 2024
13 checks passed
@dlech
Copy link
Collaborator

dlech commented Feb 21, 2024

Thanks!

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