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
183 stars 13 forks source link

gc.pyi is not read by PyRight #270

Closed Josverl closed 2 years ago

Josverl commented 2 years ago
Josverl commented 2 years ago

https://github.com/Josverl/micropython-stubber/blob/dev/use_modules_done/snippets/common/validate_gc.py

pyright 1.1.270
C:\develop\MyPython\micropython-stubber\snippets\common\validate_gc.py
  C:\develop\MyPython\micropython-stubber\snippets\common\validate_gc.py:7:16 - error: "mem_free" is not a known member of module (reportGeneralTypeIssues)
  C:\develop\MyPython\micropython-stubber\snippets\common\validate_gc.py:13:14 - error: "mem_free" is not a known member of module (reportGeneralTypeIssues)
  C:\develop\MyPython\micropython-stubber\snippets\common\validate_gc.py:20:4 - error: "threshold" is not a known member of module (reportGeneralTypeIssues)
  C:\develop\MyPython\micropython-stubber\snippets\common\validate_gc.py:20:17 - error: "mem_free" is not a known member of module (reportGeneralTypeIssues)
  C:\develop\MyPython\micropython-stubber\snippets\common\validate_gc.py:20:38 - error: "mem_alloc" is not a known member of module (reportGeneralTypeIssues)
Josverl commented 2 years ago

fixed 19/11/222 Published micropython-esp32-stubs 1.19.1.post7 Published micropython-esp32-um_tinypico-stubs 1.19.1.post4 Published micropython-esp8266-stubs 1.19.1.post6 ....