I want to share a file between Micropython and Python but for the MicroPython version I want to annotate with viper. The Micropython version outline is:
Code: Select all
import micropython
class Message:
@micropython.viper
def transaction_id(...):
...
Help much appreciated,
-- Howard.
PS Edit after original post. What I am currently doing is using a dummy `micropython.py` file for CPython, it works quite well but was wondering if there is a better approach.