I can't get typing hinting for return types to generate any warnings. For example the following code generates no warnings:
def foo():
"""
:rtype : bool
"""
return "bar" # Returning wrong type
x, y = foo() # Incorrectly expecting tuple
Do return types generate warnings, or are they only used for code completion? Type warnings when using type hinting for function parameters is working as expected. Python is 2.7, PyCharm is 4.5.3.