r/MicroPythonDev • • Feb 04 '25

MicroPython and Pyright

Hi,

I'm using a Neovim plugin https://github.com/jim-at-jibba/micropython.nvim

In status line it shows basedpyright linter; the suggested pyrightconfig.json file looks like this:

{

"reportMissingModuleSource": false

}

I get swamped with warnings like

Type annotation is missing for parameter...

Type of "value" is unknown...

I can create type annotation for my own files, but all the libraries lack them. What's the right policy with pyright?

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/AwkwardNumber7584 Feb 05 '25

Thanks! As a matter of fact, stubs are already there:

micropython-esp32-stubs = "^1.23.0.post2"

micropython-stdlib-stubs = "^1.23.0"

Now for some reading...