Skip to content

Commit 81c8e3d

Browse files
committed
Complete more signatures
1 parent 0245314 commit 81c8e3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runusb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ class AutorunProcessRegistry(object):
167167
USBType.UPDATE: open_update_robot_process
168168
} # type: Dict[USBType, TypeCloseHandler]
169169

170-
def __init__(self):
170+
def __init__(self) -> None:
171171
self.mountpoint_processes = {} # type: Dict[str, subprocess.Popen]
172172
self.mountpoint_types = {} # type: Dict[str, USBType]
173173

174-
def update_filesystems(self, mountpoints: Iterator[Mountpoint]):
174+
def update_filesystems(self, mountpoints: Iterator[Mountpoint]) -> None:
175175
actual_mountpoint_paths = {
176176
x.mountpoint
177177
for x in mountpoints
@@ -196,7 +196,7 @@ class AutorunProcessRegistry(object):
196196
):
197197
self._detect_dead_mountpoint_path(old_mountpoint_path)
198198

199-
def _detect_new_mountpoint_path(self, path):
199+
def _detect_new_mountpoint_path(self, path: str) -> None:
200200
LOGGER.info("Found new mountpoint: %s", path)
201201
usb_type = detect_usb_type(path)
202202
type_handler = self.TYPE_HANDLERS[usb_type]
@@ -205,7 +205,7 @@ class AutorunProcessRegistry(object):
205205
self.mountpoint_processes[path] = process
206206
self.mountpoint_types[path] = usb_type
207207

208-
def _detect_dead_mountpoint_path(self, path):
208+
def _detect_dead_mountpoint_path(self, path: str) -> None:
209209
LOGGER.info("Lost mountpoint: %s", path)
210210
usb_type = self.mountpoint_types[path]
211211
close_handler = self.TYPE_CLOSE_HANDLER[usb_type]

0 commit comments

Comments
 (0)