@@ -167,11 +167,11 @@ class AutorunProcessRegistry(object):
167
167
USBType .UPDATE : open_update_robot_process
168
168
} # type: Dict[USBType, TypeCloseHandler]
169
169
170
- def __init__ (self ):
170
+ def __init__ (self ) -> None :
171
171
self .mountpoint_processes = {} # type: Dict[str, subprocess.Popen]
172
172
self .mountpoint_types = {} # type: Dict[str, USBType]
173
173
174
- def update_filesystems (self , mountpoints : Iterator [Mountpoint ]):
174
+ def update_filesystems (self , mountpoints : Iterator [Mountpoint ]) -> None :
175
175
actual_mountpoint_paths = {
176
176
x .mountpoint
177
177
for x in mountpoints
@@ -196,7 +196,7 @@ class AutorunProcessRegistry(object):
196
196
):
197
197
self ._detect_dead_mountpoint_path (old_mountpoint_path )
198
198
199
- def _detect_new_mountpoint_path (self , path ) :
199
+ def _detect_new_mountpoint_path (self , path : str ) -> None :
200
200
LOGGER .info ("Found new mountpoint: %s" , path )
201
201
usb_type = detect_usb_type (path )
202
202
type_handler = self .TYPE_HANDLERS [usb_type ]
@@ -205,7 +205,7 @@ class AutorunProcessRegistry(object):
205
205
self .mountpoint_processes [path ] = process
206
206
self .mountpoint_types [path ] = usb_type
207
207
208
- def _detect_dead_mountpoint_path (self , path ) :
208
+ def _detect_dead_mountpoint_path (self , path : str ) -> None :
209
209
LOGGER .info ("Lost mountpoint: %s" , path )
210
210
usb_type = self .mountpoint_types [path ]
211
211
close_handler = self .TYPE_CLOSE_HANDLER [usb_type ]
0 commit comments