Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Python Type HintNew to Visual Studio Code? Get it now.
Python Type Hint

Python Type Hint

njqdev

|
1,535,773 installs
| (7) | Free
Type hint completion for Python.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Python Type Hint

Provides type hint auto-completion for Python, with completion items for built-in types, classes and the typing module.

Features

  • Provides type hint completion items for built-in types, estimated types and the typing module.

  • Estimates the correct type to provide as a completion item.

  • Can search Python files in the workspace for type estimation purposes.

Settings

Name Description Default
workspace.searchEnabled (boolean) If enabled, other files in the workspace are searched when estimating types for a parameter. Disabling this will increase performance, but may reduce estimation accuracy. true
workspace.searchLimit (number) The maximum number of files searched in a workspace search. Has no effect if workspace searching is disabled. 10

Known Issues

  • If workspace searching is enabled, a VSCode event (onDidOpen) is triggered when a file is searched. This causes other extensions that are listening to the event to analyse the same files, which can add the problems of those files to the Problems window. The only way to prevent this, for now, is by disabling the workspace search setting.

  • The difference between function and class constructor calls when detecting types is determined by the first letter being upper case (unless the class or function is defined in the currently edited document).

Installation

The extension can found on the Visual Studio Marketplace.


Installs CodeFactor

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft