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

Improve AdvertisingData type annotations #646

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

zxzxwu
Copy link
Collaborator

@zxzxwu zxzxwu commented Feb 11, 2025

  • Add overloads to provide better return type hints
  • Make advertising data type enum so they can be considered constants

* Add overloads to provide better return type hints
* Make advertising data type enum so they can be considered constants
@@ -90,7 +90,7 @@ class BaseError(BaseBumbleError):

def __init__(
self,
error_code: Optional[int],
error_code: int | None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Using | for unions is only supported for Python >= 3.10, so we can't use it yet.

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