DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
https://docs.basedpyright.com
Other
687 stars 14 forks source link

support pytest #311

Open KotlinIsland opened 3 months ago

KotlinIsland commented 3 months ago

pylance:

from pytest import fixture

@fixture()
def f() -> int:
    return 1

def test_asdf(f`: int`):
    reveal_type(f)  # Any

This is of course absolutely insane that it's Any.

I don't know the best way to handle this, via a plugin?

DetachHead commented 3 months ago

blocked by #22

i dont want to special-case specific modules if i can help it, especially 3rd party ones, so i don't really want to do this without a plugin system