Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dubreuia/python-inlay-hints-plugin

Show inferred Python types as Inlay Hints using folds
https://github.com/dubreuia/python-inlay-hints-plugin

intellij intellij-plugin pycharm

Last synced: 9 days ago
JSON representation

Show inferred Python types as Inlay Hints using folds

Awesome Lists containing this project

README

        

# Python Inlay Hints Plugin

![Build](https://github.com/dubreuia/python-inlay-hints-plugin/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/18174-python-inlay-hints.svg)](https://plugins.jetbrains.com/plugin/18174-python-inlay-hints)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/18174-python-inlay-hints.svg)](https://plugins.jetbrains.com/plugin/18174-python-inlay-hints)

## Description

Show inferred Python types as Inlay Hints using folds (while we wait for [Displaying inlay hints for inferred types](https://youtrack.jetbrains.com/issue/PY-45743)).

## Features

- Shows inferred type for any variable
- Works on nested generic collection types

## Usage

Showing and hiding types is done using the default folding commands:

- **Show all the types**
- "Collapse All" (ctrl/cmd + shift + -)
- "Uncollapse All" (ctrl/cmd + shift + +)
- **Hide all the types**
- "Uncollapse All" (ctrl/cmd + shift + +)

## Example

| Python Inlay Hints in folds | Python Inlay Hints Demo |
|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| python inlay hints screenshot | python inlay hints video |