making pyright happy with package imports

Oct 20, 2023

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