Comment by notpushkin
Comment by notpushkin 2 days ago
Should be possible to fix automatically though? Something like https://github.com/PyCQA/modernize, but for type hints.
Edit: there is pyupgrade which can do this: https://github.com/asottile/pyupgrade#pep-585-typing-rewrite...