Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docstub for stm module - add MemoryObject class #255

Open
Josverl opened this issue Aug 12, 2022 · 0 comments
Open

docstub for stm module - add MemoryObject class #255

Josverl opened this issue Aug 12, 2022 · 0 comments
Labels
bug Something isn't working DocStubs stubber MicroPython-stubber CLI
Milestone

Comments

@Josverl
Copy link
Owner

Josverl commented Aug 12, 2022

there are a few pyright errors in the stm docstub
errors on getitem setitem not defined

#     Read/write 8 bits of memory.
mem8: Any = ...
#     Read/write 16 bits of memory.
mem16: Any = ...
#     Read/write 32 bits of memory.
mem32: int = 1

Describe the solution you'd like

class __MemoryObject():
    """
    A memory object.  This is a wrapper around a memory region.  It can be used
    to access the memory region as if it were an array of bytes.

    These memory objects can be used in combination with the peripheral register
    constants to read and write registers of the MCU hardware peripherals, as well
    as all other areas of address space.

    """
    ...

    def __getitem__(self, key: int) -> Any:
        ...
    def __setitem__(self, key: int, value: Any) -> None:
        ...

A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@Josverl Josverl added bug Something isn't working DocStubs labels Aug 12, 2022
@Josverl Josverl moved this to 🆕 New in stubber & stubs backlog Mar 4, 2023
@Josverl Josverl added this to the Docstubs v3 milestone Mar 4, 2023
@Josverl Josverl moved this from 🆕 New to 📋 Backlog in stubber & stubs backlog Mar 4, 2023
@Josverl Josverl moved this from 📋 Backlog to 🔖 Ready in stubber & stubs backlog Mar 4, 2023
@Josverl Josverl moved this from 🔖 Ready to 📋 Backlog in stubber & stubs backlog Mar 4, 2023
@Josverl Josverl added the stubber MicroPython-stubber CLI label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DocStubs stubber MicroPython-stubber CLI
Projects
No open projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant