Not showing errors for undefined functions

In Python, when there’s a syntax error—especially when trying to use an undefined function or variable—it’s inconvenient that the er

ror underline doesn’t appear. I’ve installed Pylance, Python is working well, and I’ve set the Python path correctly.

When a definition exists, “Go to Definition” works perfectly.

But when a definition is missing, no error appears.

Does anyone know about this? Is there anyone who can help?

Can you double check the type check mode? (In the settings, cursor pyright.analysis.typeCheckingMode)? If it is off, then it will hide many types of errors.

Thank you so much! It turned out the issue was with the pyright.analysis.typeCheckingMode setting. Once I set it correctly, the errors started showing up as expected. Really appreciate your help!