Generate and maintain stubs for different MicroPython ports to use with VSCode and Pylance, PyRight, Thonny, PyCharm or MyPy
175
stars
14
forks
source link
Fix namedtuple Variable not allowed in type expression #476
Closed
Josverl closed 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 ofstdlib_NamedTuple
.Fixes https://github.com/Josverl/micropython-stubs/issues/731
[x] Add snippet tests to detect issue in QA ( collections and ucollections )
[x] research found --> typing tools require `namedtuple' to be defined in stdlib/collections
[x] add functionality to
stubber merge
docstubs into stdlib/collections/init.pyi[x] publish (beta) update to
micropython-stdlib-stubs ( 1.1.1.a2)
[x] update
stubber build
to filter out 'collections.pyi' from all micropython-stubs[x] need change to
ucollections
[x] publish new version of stubber
[x] publish stdlib
[x] update dependency in publish template
[x] update all stubs and publish