basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

'uncommitted' level lints

Open KotlinIsland opened this issue 1 year ago • 2 comments

Errors that only appear on uncommitted code. Errors won't show for lines that are committed.

I suppose any rule could be configured to this level, but one rule that would be default is "type could be wider/narrower"

def f(a: str):  # error: type could be wider: "object"
    print(a) 
def f(l: list[object]):  # error: type could be narrower: "Sequence[object]"
    print(l[0])

KotlinIsland avatar Apr 13 '24 00:04 KotlinIsland

related (but different use case): #2

DetachHead avatar Jun 13 '24 10:06 DetachHead

yeah i think this is basically just the same as baseline. perhaps the docs can be updated to mention this use case

DetachHead avatar Sep 25 '24 16:09 DetachHead

i think the "hint" diagnostic category covers this actually

DetachHead avatar Dec 19 '24 09:12 DetachHead