TypeError in Viper routine but no floats in sight

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: TypeError in Viper routine but no floats in sight

Post by pythoncoder » Thu Aug 26, 2021 9:47 am

That shouldn't happen.

I've reviewed my own use of Viper and I don't generally have type hints within the body of routines, however they are always present in the definition. self doesn't have a type hint, but all other args do, e.g.

Code: Select all

    @micropython.viper
    def _setbuf_fixed(self, line: int, fixed_value: int):
I do think you should have a type hint for the timer instance.
Peter Hinch
Index to my micropython libraries.

Post Reply