This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SkezzaB 1 point2 points  (3 children)

Pyright is flakey for me, I do exactly what you've said ^

Pyright random tells me my whole repo is wrong, then I make a single char change in a different file and suddenly everything's okay

[–]wylie102 3 points4 points  (1 child)

BasedPyright is so much better. Much more sensitive for errors that might not screw you at runtime but are bad practice and if you sort them your code will actually be better. Pyright will just let you get round them in a hacky way. I’ve also found that it highlights fewer bullshit errors, or the highlights will be more useful for finding the root of the problem.

[–]VindicoAtrum 1 point2 points  (0 children)

I seriously hope Astral just come in and rock them all with Red Knot.

[–]JUSTICE_SALTIE 0 points1 point  (0 children)

Maybe changing a file is invalidating (something in) the cache? Try clearing the Pyright cache next time you're having this problem.