https://github.com/josverl/rt_typing
Runtime modules for type checking on MicroPython
https://github.com/josverl/rt_typing
Last synced: 6 months ago
JSON representation
Runtime modules for type checking on MicroPython
- Host: GitHub
- URL: https://github.com/josverl/rt_typing
- Owner: Josverl
- Created: 2024-08-30T19:55:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-08T22:00:59.000Z (12 months ago)
- Last Synced: 2025-03-28T17:09:32.773Z (6 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# runtime modules for type checking on MicroPython
This repo is a test of a few different ways to support type checking in MicroPython.
The goal is to be able to run code on a MicroPython board that contains include statements and typing annotations unchanged.
By default the `typing` module is not included in MicroPython.
This repo contains an experiment in enhancing the modules
- `typing`,
- `typing_extensions`,
- `abc`
- `collections.abc`
- `__future__`,
in MicroPython as a cross-compiled module or frozen code.Micropython-lib and Micropython PRs
- https://github.com/Josverl/micropython-stubs/issues/755#issuecomment-2136479507
- https://github.com/micropython/micropython-lib/pull/584Micropython-stubs
- [MicroPython’s typing.mpy module](https://micropython-stubs.readthedocs.io/en/main/typing_mpy.html)