Skip to content

Any advice for working with Pyright/Pylance? #2017

Answered by wch
travis-leith asked this question in Q&A
Discussion options

You must be logged in to vote

If you have a pyrightconfig.json file in your project, you can add:

  "reportUnusedFunction": "none"

Or you can add this at the top of your app.py file to have it ignore the rule just for that file.

# pyright: reportUnusedFunction=false

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@travis-leith
Comment options

Answer selected by travis-leith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants