Skip to content

Commit cf41a7c

Browse files
committed
Fix typing for old python
1 parent 54d98b8 commit cf41a7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/tools/dbus-proxy-bluez.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import os.path
2020
from argparse import ArgumentParser
2121
from collections import namedtuple
22+
import typing
2223

2324
from gi.repository import Gio, GLib
2425

@@ -60,8 +61,8 @@ class DBusServiceProxy:
6061

6162
MappingKey = namedtuple("MappingKey", ["path", "iface"])
6263

63-
objects: dict[MappingKey, int] = {}
64-
subscriptions: set[str] = set()
64+
objects: typing.Dict[MappingKey, int] = {}
65+
subscriptions: typing.Set[str] = set()
6566
clients = {}
6667

6768
def __init__(self, source: str, proxy: str, service: str):

0 commit comments

Comments
 (0)