from __future__ import annotations from typing import overload myint = int def sum(x: myint, y: myint) -> myint: """docstring""" return x + y @overload def mult(x: myint, y: myint) -> myint: ... @overload def mult(x: float, y: float) -> float: ... def mult(x, y): """docstring""" return x, y