reportUnusedCallResult
special casing for reveal_type
doesn't work when aliased
#964
Labels
type checking / linting
issues relating to existing diagnostic rules or proposals for new diagnostic rules
Minimal example:
The
reportUnusedCallResult
rule is triggered in this case, with exit code = 1. However, if I don't renamereveal_type()
, then the rule is not triggered, and exit code = 0.Actually
pyright
has same problem if I forcefully add{"reportUnusedCallResult":"warning"}
topyrightconfig.json
. But sincebasedpyright
opt to turn on this rule by default but notpyright
, do you think if it worths fixing inbasedpyright
?The text was updated successfully, but these errors were encountered: