Hello everyone! I was reading the Pants docs for t...
# general
q
Hello everyone! I was reading the Pants docs for the
pants check
goal. Does this work only with MyPy? Would I be able to configure this with Pylance?
w
Oh, but if you use
pyright
- pay attention to your
node
version and
pyright
version. @better-van-82973 Are your updates merged into a stable release - or in 2.22?
q
I see. So there is no support for Pylance as of 2.21?
b
It’s in 2.23
w
So, unless it's changed - I thought pylance was MS's proprietary tool, built on top of pyright? pyright was the open source checker, as I understood (last time I looked into this was like 2 years ago though 😆 )
b
Yeah, you're right about that - Pylance is not open source, although they track issues and feature requests on GitHub. Since the OP was in context of type checking like MyPy, Pyright is the correct alternative
q
Hi @better-van-82973 so Pylance support is expected to be in 2.23?
b
I don't understand what "Pylance" support means in this context. What are you looking to accomplish with that support?
q
I am using pants for a monorepo in my company and they use pylance for typechecking. Are you saying I can use Pyright as a replacement? I have not tried that which is why I am asking
b
Yes, Pyright is the type checker underlying Pylance. So you should be able to get the same results assuming that the versions match.
q
ohk i see. thank you!