Hide Python type hints in PyCharm

Viewed 376

Is there some way to hide/toggle Python's type hints in PyCharm?

Code with a lot of type hints is sometimes harder to understand and such a feature could help with that.

2 Answers

Hiding type hints isn't currently possible in PyCharm. There is an open ticket PY-40996 requesting the feature.

In the ticket one of the developers elaborates on possible UX implementations so you can contribute your opinion and also support the ticket by leaving a vote.

It is possible to make hint adjustments in PyCharm for Angular, JavaScript, SQL and TypeScript by going to Settings -> Editor -> Inlay Hints, but not yet for Python type hints.

Go to Setting > Intentions > Python and uncheck both "Add type hints..." boxes.

Related