making pyright happy with package imports

Sep 16, 2022

by default, pyright will not recognize package imports because it doesn't know where your project root is. To fix that, create a pyproject.toml file at your project root.

I think you don't actually need any options in that case, but I created it with just this config:

[tool.pyright]
include = ["src"]

and it began recognizing my package imports so I got my intellisense (which I have allowed myself to become dependent on... sigh...)

↑ up