Skip to content

njqdev/vscode-python-typehint

Repository files navigation

Python Type Hint

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

Features

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

  • Searches Python files in the workspace for type estimation purposes.

  • Can provide completion items for the typing module if it is imported.

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. 20

Known Issues

  • 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

About

VSCode extension for Python type hint auto-completion.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •