microsoft / microsoft/pyright

Allow more fine-grained configuration of tagged hints

Open
#11,278 0 comments 0 reactions 0 assignees View on GitHub
enhancement request
Dominant language
Python
Stars
15.6k
Forks
1.8k
Avg merge
12h 13m
Merged PRs (30d)
52

Description

I am using pyright through the LSP with NeoVim. Pyright currently displays a hint when I define a function where an argument isn't used, e.g.:

Image

I would like to disable this specific hint *without* disabling all Pyright hints. I like the reachability analysis, but I have a separate linter that handles things like unused arguments and I find that specific hint noisy. The only relevant setting I've seen is `pyright.disableTaggedHints` which isn't precise enough. I do not want to rename all my unused variables to `_` or refactor my code in any way to workaround a purely visual issue in my editor.

Thank you for your consideration on this

Contributor guide

Open the contributing guide

Research direction

Start by tracing how pyright.disableTaggedHints is exposed and how the unused-argument hint is identified in the language-server path. Define the configuration boundary needed to suppress that hint while retaining reachability hints, then add coverage for the separate behaviors; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
neovim, python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.