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

[ENH]: Add TypedDict (like) type hints to rcParams #28222

Open
@dstansby

Description

@dstansby

Problem

In Python 3.8,typing.TypedDict was added to represent dictionary objects with a specific set of keys:https://typing.readthedocs.io/en/latest/spec/typeddict.html#typeddict. Using aTypedDict allows code editors (in my case VSCode) to offer autocomplete suggestions for keys.

It would be super useful forrcParams if one could e.g., typercParams["font and get autocomplete suggestions for all the font keys.

This is what it an example looks like in VSCode:
Screenshot 2024-05-14 at 08 58 07

Proposed solution

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp