Josverl / micropython-stubber

Generate and maintain stubs for different MicroPython ports to use with VSCode and Pylance, PyRight, Thonny, PyCharm or MyPy
https://micropython-stubber.readthedocs.io
Other
175 stars 14 forks source link

Fix namedtuple Variable not allowed in type expression #476

Closed Josverl closed 9 months ago

Josverl commented 9 months ago

This pull request fixes the issue with the namedtuple causing a Pylance error of "Variable not allowed in type expression".

The issue is resolved by updating the import statement in the code to use stdlib_namedtuple instead of stdlib_NamedTuple.

Fixes https://github.com/Josverl/micropython-stubs/issues/731