PyCharm incorrectly formats comments in multiline type hint
PyCharm incorrectly formats comments in multiline type hint.
You can use this public code snippet to try (screenshot below):
Comments are not highlighted as comments - but that is a minor issue.
The worst thing is that auto-formatting applies wrong rules.
And it is also inconsistent.
See the first line # all_tokens is not indented but the other # comment lines are:
Please sign in to leave a comment.
Related to (but auto-formatting is more important):
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000112030-PyCharm-comment-font-color-invalid-for-type-hints