Skip to content

Commit 6042d2c

Browse files
committed
Ignore type checking of empty list
This statement is valid; since the list is empty it doesn't really matter what type of list it is -- update_filesystems is only every going to try to iterate over it anyway (which will yield no entries). However, mypy doesn't understand it. Unfortunately I can't find either a reference to the canonical solution or bug; the nearest I get is point (8) at python/mypy#1055.
1 parent 68d01c5 commit 6042d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runusb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def main():
260260
except KeyboardInterrupt:
261261
# Tell the registry that all filesystems were unmounted, which has the
262262
# effect of making it do cleanup.
263-
registry.update_filesystems([])
263+
registry.update_filesystems([]) # type: ignore
264264

265265

266266
if __name__ == '__main__':

0 commit comments

Comments
 (0)