-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH]: Add TypedDict (like) type hints to rcParams #28222
Labels
Comments
Um, this is probably a good idea, give or take #25617, but for your specific use case there's maybe also https://github.com/yy0931/vscode-mplstyle |
Off topic, you can also try https://github.com/yy0931/vscode-mplstyle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 for
rcParams
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:
Proposed solution
No response
The text was updated successfully, but these errors were encountered: