basedpyright
basedpyright copied to clipboard
`reportRedundantExpression`
if True: # erm...
print("hi")
assert True # yeah.....
there's already reportUnnecessaryIsInstance, reportUnnecessaryComparison, reportUnnecessaryContains and reportAssertAlwaysTrue but those are for specific cases. we should introduce a new rule to catch everything else
related: #672