MyPy complains about the line of code where bar is assigned the difference of two datetimes. The type of foo is datetime.timedelta. The error message from MyPy is “int not callable”. What am I missing? Answer This turned out to be a known issue. For details, see the following: https://github.com/python/mypy/issues/11613