Pycharm type hinting does not work if `self` argument is not annotated

Answered

I am using mypy-style type annotations for python 2.7. MyPy does not require to specify type of `self` argument, but if I do this in PyCharm type hinting stops working:

If I specify type everything is fine:

If I use sphinx-style annotations type hinting works fine without specifying type of self.

Is It bug or intended behavior?

2
2 comments
Avatar
Permanently deleted user

Thanks!

0

Please sign in to leave a comment.