Added method return type hinting for assignments