Skip to content

Define abstract "block device" type for use in VfsFat and elsewhere #7741

@dhalbert

Description

@dhalbert

The block device arguments for VfsFat are currently declared as str, which is completely wrong. We should define an abstract class for these in circuitpython_typing. Signatures are as described https://docs.micropython.org/en/latest/library/os.html#os.AbstractBlockDev, though I think the "extended" signatures may not be used by us.

Another bug is that the signature for mkfs() is mkfs(self), which is wrong: it should be a block device.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions