Cursor suggesting type hints for python functions, won't turn off

Describe the Bug

Cursor is showing me suggestions for type hints in my python function definitions, and I can’t turn it off, even when I disable the cursor tab globally. When I disable cursor tab, all other suggestions turn off, but not these type hints for python functions.

Steps to Reproduce

The problem started after I created keyboard shortcuts for enabling and disabling cursor tab - I used (cmd + Shift + d) for disable and (cmd + Shift + t) for enable

Expected Behavior

I would expect to be able to turn all suggestions off, including those for type hints, when I disable cursor tab.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.43.6
VSCode Version: 1.93.1
Commit: a846435528b4b760494a836f96f0739889253530
Date: 2024-12-06T05:11:55.168Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 21.3.0

Additional Information

The problem started after I created keyboard shortcuts for enabling and disabling cursor tab - I used (cmd + Shift + d) for disable and (cmd + Shift + t) for enable

Does this stop you from using Cursor

No - Cursor works, but with this issue

I have the same issue.

Hey, the type hints are not there by Cursor Tab, and are a built-in feature of Cursor (and VSCode).

You should be able to turn them off in your normal settings with the same option you would use in VS Code to do the same:

This doesn’t fix it. That settings prevents the popup, not the code hint. This is an example of what I see.

image

Ah, apologies! I believe the setting editor.inlayHints.enabled may work, but the official name for the feature is “inlay hints”, so if you can figure out how to disable them in VSCode for your language, the same steps should apply in Cursor.

2 Likes

Bingo, that was it. Turns out that basedpyright – which I switch to when migrating from VSCode – had introduced some new settings. Thanks!

2 Likes