Replies: 2 comments
-
There must be something wrong with your setup. Here's a link to the pyright playground that shows what you should see. When I follow the steps above, I see the following output:
The verbose output includes I wonder if your pyright install was corrupted. Perhaps try uninstalling it and reinstalling. One other idea... Which version of node do you have installed on your system? (Type |
Beta Was this translation helpful? Give feedback.
-
Hey Eric, In the mentioned folder
My node version seems up to date with the stable release:
I tried re-installing pyright with pip too, but the result is the same. |
Beta Was this translation helpful? Give feedback.
-
version: 1.1.381
I am very new to using pyright and just wanted to try it out.
My sample code is:
I expect pyright to complain about that the method receives a string argument and not an integer argument. So I call it on the CLI:
But it reports nothing. While mypy says:
foo.py:5: error: Argument 1 to "foo" has incompatible type "str"; expected "int" [arg-type]
Here is the verbose output of pyright:
Is something wrong in my setup?
Beta Was this translation helpful? Give feedback.
All reactions