Skip to content

Use python properties to access BlueZ dbus properties#3235

Draft
infirit wants to merge 4 commits into
blueman-project:mainfrom
infirit:proptypes
Draft

Use python properties to access BlueZ dbus properties#3235
infirit wants to merge 4 commits into
blueman-project:mainfrom
infirit:proptypes

Conversation

@infirit
Copy link
Copy Markdown
Contributor

@infirit infirit commented May 9, 2026

This gives us strict type hints for each property. Mypy's imprecise report went from 7.60% to 6.78%.

infirit added 4 commits May 9, 2026 14:26
Battery percentage is always int.
RSSI/TPL got rounded to int with -1.
This confused at least one person and thought it was a joke.
This gives us strict type hints for each property. Mypy's imprecise
report went from 7.60% to	6.78%.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 9, 2026

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.

1 participant