basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

random false positive errors appear in vscode that go away after saving the file again

Open DetachHead opened this issue 2 years ago • 5 comments

need to figure out if this is an upstream issue

DetachHead avatar Feb 01 '24 01:02 DetachHead

functions decorated with pytest_robotframework.keyword often seem to trigger this issue

DetachHead avatar Jun 26 '24 04:06 DetachHead

i think it might be https://github.com/microsoft/pyright/issues/8779

DetachHead avatar Aug 18 '24 02:08 DetachHead

it was not, still happens in 1.17.1

DetachHead avatar Sep 02 '24 01:09 DetachHead

I think it's worth saying that I have this happen a lot but only specifically with classes annotated with @dataclasses.dataclass. So the decorators that change the program semantics may be the cause of it.

Wizzerinus avatar Apr 23 '25 14:04 Wizzerinus

interestingly i haven't noticed this happening in a while. i have a feeling this is a very broad issue that can come up in many different scenarios

DetachHead avatar May 10 '25 05:05 DetachHead

Also happens with subclasses of Pydantic's BaseModel in my experience.

cswimr avatar Jun 27 '25 10:06 cswimr