Code shows error even when there is none

I was writing some code to process a csv file, and while comparing two dataframes, I kept getting this error:

This is not an error in my code at all, it runs just fine. I looked up this error and that is not happening with my code at all. is there any way to remove this? It is annoying to see this error underline even though the code works just fine

This is the typechecker, pyright.
You can disable that specific error by putting # type: ignore at the end of the line.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.