Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A PyCharm plugin that implements inlay parameter and type annotation hints for Python.

License

NotificationsYou must be signed in to change notification settings

WhiteMemory99/Intellij-Python-Inlay-Params

Repository files navigation

BuildVersionRatingDownloadsLicense: MIT

Quick Installation

  • Using IDE built-in plugin system:

    Settings/Preferences >Plugins >Marketplace >
    Search for "Python Inlay Params" >Install Plugin

  • Manually:

    Download thelatest release andinstall it manually usingSettings/Preferences >Plugins >⚙️ >Install plugin from disk...

Description

This plugin(quite decently) implements inlay parameter hints forPython.
In addition, you can enable type annotation hints for variables and function return types.

Supported expressions

Pretty much any expression is supported:

  • dataclass and class instantiation
  • lambdas
  • decorators
  • function and method calls
  • etc.

Scroll to the demo at the bottom to see how it works.

Settings

Parameter hints

To enable/disable them entirely, follow this path:

Settings ->Editor ->Inlay Hints ->Parameter names ->Python

But you can also switch specific parts in that menu:Class hints,Function hints toenable/disable them individually.Additionally, there's an option to avoid redundant hints more aggressively, calledHide overlaps, which is used tohide a hint if a parameter name is completely overlapped by its argument.

Type annotation hints (BETA)

Partially disabled by default.
To enable/disable them entirely, follow this path:

Settings ->Editor ->Inlay Hints ->Types ->Python

There are two main options under this partition:Type annotations andFunction return types.
Look at the demo screenshot below to see them in work(last section).

Demo Screenshot

About

A PyCharm plugin that implements inlay parameter and type annotation hints for Python.

Topics

Resources

License

Stars

Watchers

Forks

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp