"str" is not defined basedpyright

Describe the Bug

The Anysphere Python 1.0.6 extension reports python language features as errors. This extension updated two hours ago. Before this the bug was not present.

Steps to Reproduce

  • Install Cursor
  • type “for i in range(10)”
  • range has error message

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Following the provided instructions for reporting versioning:
Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
OS: Darwin arm64 24.5.0

But I’m SSH’d into a linux box so these instructions seem wrong.

Does this stop you from using Cursor

Yes - Cursor is unusable

2 Likes

Same here. I saw over hundreds of “not defined” errors following the update.

4 Likes

Same in MacOS

Cursor Version: 1.2.4 (Universal)

Identifier anysphere.cursorpyright
Version 1.0.6
Last Updated 2025-07-19, 08:42:45

Hi all, thanks for flagging this issue. It looks like there was an issue where the typeshed_fallback wasn’t copied in this build, causing it fail to resolve the builtin types. We fixed this in version 1.0.7 of the extension; could you try upgrading?

Thanks! It looks like the issue has gone.