Skip to content

Research using @mp_available to make features selectively per port #854

@Josverl

Description

@Josverl

The library documentation is generic, and does not really om allow per port specification of parameters for methods.

This leads to mistakes such as reported

Soft timers using Timer(-1) has been missing, but appeared to work due to type checking not being right on the ESP32 platforms.

micropython/micropython#18263

Look into a way to use decorators in the reference stubs to make certain overloads available, or suppress a specific overload or parameter combinatie for a specific port

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreferencereference stubs for micropython

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions