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
1.23k stars 26 forks source link

a way to specify kwargs in `Callable`s and `ParamSpec`s #20

Open DetachHead opened 10 months ago

DetachHead commented 10 months ago

currently mypy supports it in mypy_extensions, so pyright needs an equivalent

from typing import *
from mypy_extensions import Arg

P = ParamSpec("P")

class A(Generic[P]): ...
a: A[[Arg(int, 'a')]]
c: Callable[[Arg(int, 'a')], None]
KotlinIsland commented 8 months ago

Can we just support mypy_extensions?