def has_return_hint(function): """ has_return_hint(function) Returns whether function has a return type hint. """ return "return" in typing.get_type_hints(function)