Skip to content

Commit 337dba9

Browse files
committed
Add type annotations
Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 3bfb23d commit 337dba9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/monitor_dbus_signals.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# isort: STDLIB
2222
import os
2323
import xml.etree.ElementTree as ET
24+
from typing import List
2425

2526
# isort: THIRDPARTY
2627
import dbus
@@ -499,7 +500,12 @@ def _properties_changed(*props_changed, object_path=None):
499500
except Exception as exc: # pylint: disable=broad-except
500501
_CALLBACK_ERRORS.append(exc)
501502

502-
def _monitor(service, manager, manager_interfaces, interface_re):
503+
def _monitor(
504+
service: str,
505+
manager: str,
506+
manager_interfaces: List[str],
507+
interface_re: re.Pattern,
508+
):
503509
"""
504510
Monitor the signals and properties of the manager object.
505511

0 commit comments

Comments
 (0)