I have a python repl that seemed to work fine not too long ago but when I opened today my calls to db are all squiggly red lines in the linter. I did not change anything related to replit db so I am very confused why this isn’t working anymore.
Screenshots, links, or other helpful context:
Repl link/Link to where the bug appears:
Does the code error? If not, then it’s just a pyright glitch.
Ok, so I see the problem now. The pyright error messages all over the place were misleading me. I don’t understand why it labels things as errors now but not before but in any event I had a logic error for an edge case that was trying to pull a value from the databse that had not been written yet and the pyright errors made me think it was a bigger issue with the code. After fixing, if I just ignore pyright freaking out everything now works fine.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.