You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As was discovered by @ValdezFOmar the async D-Bus properties in version 0.11.1 do not type hint properly. This means for example ssid = await access_point.ssid or ssid = await access_point.ssid.get_async() would make the the ssid variable have the type of Any instead of a specific type.
This actually got accidentally fixed in the development branch because most the classes got reworked. The 0.12.0 version is pretty far away because it will introduce a lot of reworks to internal APIs. (the documented APIs should stay the same)
However, I do consider the type hints a core feature of python-sdbus. There is an option of forking the 0.11.1 and fixing the property type hints. (maybe adding a few more hotfixes?)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As was discovered by @ValdezFOmar the async D-Bus properties in version 0.11.1 do not type hint properly. This means for example
ssid = await access_point.ssid
orssid = await access_point.ssid.get_async()
would make the thessid
variable have the type of Any instead of a specific type.python-sdbus/python-sdbus-networkmanager#63
This actually got accidentally fixed in the development branch because most the classes got reworked. The 0.12.0 version is pretty far away because it will introduce a lot of reworks to internal APIs. (the documented APIs should stay the same)
However, I do consider the type hints a core feature of python-sdbus. There is an option of forking the 0.11.1 and fixing the property type hints. (maybe adding a few more hotfixes?)
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions