Skip to content

Commit eac5922

Browse files
committed
pydbus.proxy: fix names of typecheck-only types
1 parent 10c1545 commit eac5922

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

stubs/pydbus/pydbus/proxy.pyi

+22-22
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ _T = TypeVar("_T")
99
_ST = TypeVar("_ST") # signal type
1010

1111
@type_check_only
12-
class OrgBluezAdapter1Dict(TypedDict, total=False):
12+
class _OrgBluezAdapter1Dict(TypedDict, total=False): # noqa: Y049
1313
Address: str
1414
AddressType: Literal["public", "random"]
1515
Alias: str
@@ -29,7 +29,7 @@ class OrgBluezAdapter1Dict(TypedDict, total=False):
2929
Version: int
3030

3131
@type_check_only
32-
class OrgBluezDevice1Dict(TypedDict, total=False):
32+
class _OrgBluezDevice1Dict(TypedDict, total=False): # noqa: Y049
3333
Adapter: str
3434
Address: str
3535
AddressType: Literal["public", "random"]
@@ -50,32 +50,32 @@ class OrgBluezDevice1Dict(TypedDict, total=False):
5050
WakeAllowed: bool
5151

5252
@type_check_only
53-
class OrgBluezInput1Dict(TypedDict, total=False):
53+
class _OrgBluezInput1Dict(TypedDict, total=False): # noqa: Y049
5454
ReconnectMode: str
5555

5656
@type_check_only
57-
class OrgBluezMedia1Dict(TypedDict, total=False):
57+
class _OrgBluezMedia1Dict(TypedDict, total=False): # noqa: Y049
5858
SupportedUUIDs: list[str]
5959

6060
@type_check_only
61-
class OrgBluezMediaControl1Dict(TypedDict, total=False):
61+
class _OrgBluezMediaControl1Dict(TypedDict, total=False): # noqa: Y049
6262
Connected: bool
6363

6464
@type_check_only
65-
class OrgBluezBattery1Dict(TypedDict, total=False):
65+
class _OrgBluezBattery1Dict(TypedDict, total=False): # noqa: Y049
6666
Percentage: int
6767
Source: str
6868

6969
@type_check_only
70-
class OrgBluezGattService1Dict(TypedDict, total=False):
70+
class _OrgBluezGattService1Dict(TypedDict, total=False): # noqa: Y049
7171
Device: str
7272
Handle: int
7373
Includes: list[str]
7474
Primary: bool
7575
UUID: str
7676

7777
@type_check_only
78-
class OrgBluezGattCharacteristic1Dict(TypedDict, total=False):
78+
class _OrgBluezGattCharacteristic1Dict(TypedDict, total=False): # noqa: Y049
7979
Flags: list[str]
8080
Handle: int
8181
MTU: int
@@ -84,14 +84,14 @@ class OrgBluezGattCharacteristic1Dict(TypedDict, total=False):
8484
Value: list[int]
8585

8686
@type_check_only
87-
class OrgBluezGattDescriptor1Dict(TypedDict, total=False):
87+
class _OrgBluezGattDescriptor1Dict(TypedDict, total=False): # noqa: Y049
8888
Characteristic: str
8989
Handle: int
9090
UUID: str
9191
Value: list[int]
9292

9393
@type_check_only
94-
class OrgBluezLEAdvertisingManager1Dict(TypedDict, total=False):
94+
class _OrgBluezLEAdvertisingManager1Dict(TypedDict, total=False): # noqa: Y049
9595
ActiveInstances: int
9696
SupportedCapabilities: dict[str, int] # e.g. MaxTxPower: 7
9797
SupportedFeatures: list[str]
@@ -100,7 +100,7 @@ class OrgBluezLEAdvertisingManager1Dict(TypedDict, total=False):
100100
SupportedSecondaryChannels: list[str]
101101

102102
@type_check_only
103-
class OrgBluezNetwork1Dict(TypedDict, total=False):
103+
class _OrgBluezNetwork1Dict(TypedDict, total=False): # noqa: Y049
104104
Connected: bool
105105
Interface: str
106106
UUID: str
@@ -110,17 +110,17 @@ class OrgBluezNetwork1Dict(TypedDict, total=False):
110110
_OrgBluezDict = TypedDict(
111111
"_OrgBluezDict",
112112
{
113-
"org.bluez.Adapter1": OrgBluezAdapter1Dict,
114-
"org.bluez.Battery1": OrgBluezBattery1Dict,
115-
"org.bluez.Device1": OrgBluezDevice1Dict,
116-
"org.bluez.GattCharacteristic1": OrgBluezGattCharacteristic1Dict,
117-
"org.bluez.GattDescriptor1": OrgBluezGattDescriptor1Dict,
118-
"org.bluez.GattService1": OrgBluezGattService1Dict,
119-
"org.bluez.Input1": OrgBluezInput1Dict,
120-
"org.bluez.LEAdvertisingManager1": OrgBluezLEAdvertisingManager1Dict,
121-
"org.bluez.Media1": OrgBluezMedia1Dict,
122-
"org.bluez.Network1": OrgBluezNetwork1Dict,
123-
"org.bluez.MediaControl1": OrgBluezMediaControl1Dict,
113+
"org.bluez.Adapter1": _OrgBluezAdapter1Dict,
114+
"org.bluez.Battery1": _OrgBluezBattery1Dict,
115+
"org.bluez.Device1": _OrgBluezDevice1Dict,
116+
"org.bluez.GattCharacteristic1": _OrgBluezGattCharacteristic1Dict,
117+
"org.bluez.GattDescriptor1": _OrgBluezGattDescriptor1Dict,
118+
"org.bluez.GattService1": _OrgBluezGattService1Dict,
119+
"org.bluez.Input1": _OrgBluezInput1Dict,
120+
"org.bluez.LEAdvertisingManager1": _OrgBluezLEAdvertisingManager1Dict,
121+
"org.bluez.Media1": _OrgBluezMedia1Dict,
122+
"org.bluez.Network1": _OrgBluezNetwork1Dict,
123+
"org.bluez.MediaControl1": _OrgBluezMediaControl1Dict,
124124
# Dicts below are always empty because they have no properties. However, the key existence may still be useful
125125
# for introspection.
126126
"org.bluez.AgentManager1": dict[str, Any],

0 commit comments

Comments
 (0)