Change default type hints and return type annotation

I've been using mypy and type hints for all python code, and the context menu's "Add type hints for ..." is very useful. However, the default parameter and return type is "object". I would like to change the default parameter to "str" and the default return type to "None", as at least the starting point has the potential of being correct. Is this possible?

1 comment
Comment actions Permalink

Hi, 

Unfortunately, I don't think this can be modified. May be a good feature request to add an option to modify the default types for this intention action.

You can submit feature requests to our tracker at https://youtrack.jetbrains.com/issues/py 

0

Please sign in to leave a comment.