Skip to content

Commit 7ee8540

Browse files
authored
Merge pull request #7755 from isacben/block-device-arguments-typing
Updated block_device type annotation
2 parents 67e0a49 + d9d27a3 commit 7ee8540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/storage/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ STATIC const mp_rom_map_elem_t storage_module_globals_table[] = {
252252
{ MP_ROM_QSTR(MP_QSTR_enable_usb_drive), MP_ROM_PTR(&storage_enable_usb_drive_obj) },
253253

254254
//| class VfsFat:
255-
//| def __init__(self, block_device: str) -> None:
255+
//| def __init__(self, block_device: BlockDevice) -> None:
256256
//| """Create a new VfsFat filesystem around the given block device.
257257
//|
258258
//| :param block_device: Block device the the filesystem lives on"""
@@ -267,7 +267,7 @@ STATIC const mp_rom_map_elem_t storage_module_globals_table[] = {
267267
//| ...
268268
//|
269269
//| @staticmethod
270-
//| def mkfs(self) -> None:
270+
//| def mkfs(block_device: BlockDevice) -> None:
271271
//| """Format the block device, deleting any data that may have been there.
272272
//|
273273
//| **Limitations**: On SAMD21 builds, `mkfs()` will raise ``OSError(22)`` when

0 commit comments

Comments
 (0)