Any advice for working with Pyright/Pylance? #720
Replies: 1 comment
-
omg, I just realised I posted this in the wrong repo! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was not able to find anything on the documentation regarding these tools. I like to have my code thoroughly checked by pyright. Pyright does not like the fact that output functions appear to be unused.
For example, from the basic-sidebar template.
Here
hist
is unused according to Pyright.One option: I could add
# type: ignore
to all my output functions.Another option: I could exclude this rule from certain files somehow.
As I write this, it occurs to me my favourite option would be to use R style shiny and assign
hist
to output somehow. Is this possible? If so, it would seem less magical (potentially not using decorators) and would make Pyright happy. Is this possible?Beta Was this translation helpful? Give feedback.
All reactions