Skip to content

Commit 6385c63

Browse files
committed
pydbus.bus: bluez: better notes on the empty dicts
1 parent 6df27e0 commit 6385c63

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

stubs/pydbus/pydbus/bus.pyi

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class OrgBluezNetwork1Dict(TypedDict, total=False):
129129
UUID: str
130130

131131
# This is for keys under /org/bluez/hci0/*
132+
# Refer to https://github.com/bluez/bluez/blob/master/doc/ for interface details
132133
_OrgBluezDict = TypedDict(
133134
"_OrgBluezDict",
134135
{
@@ -143,18 +144,13 @@ _OrgBluezDict = TypedDict(
143144
"org.bluez.Media1": OrgBluezMedia1Dict,
144145
"org.bluez.Network1": OrgBluezNetwork1Dict,
145146
"org.bluez.MediaControl1": OrgBluezMediaControl1Dict,
146-
# Dicts below are always empty because they have no properties.
147-
# https://github.com/bluez/bluez/blob/master/doc/org.bluez.AgentManager.rst
147+
# Dicts below are always empty because they have no properties. However, the key existence may still be useful
148+
# for introspection.
148149
"org.bluez.AgentManager1": dict[str, Any],
149-
# https://github.com/bluez/bluez/blob/master/doc/org.bluez.BatteryProviderManager.rst
150150
"org.bluez.BatteryProviderManager1": dict[str, Any],
151-
# https://github.com/bluez/bluez/blob/master/doc/org.bluez.NetworkServer.rst
152151
"org.bluez.NetworkServer1": dict[str, Any],
153-
# https://github.com/bluez/bluez/blob/master/doc/org.bluez.ProfileManager.rst
154152
"org.bluez.ProfileManager1": dict[str, Any],
155-
# https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-introspectable
156153
"org.freedesktop.DBus.Introspectable": dict[str, Any],
157-
# https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties
158154
"org.freedesktop.DBus.Properties": dict[str, Any],
159155
},
160156
total=False,

0 commit comments

Comments
 (0)