Update mypy
to 1.3.0 and fix typing issues
#1877
Merged
mypy
to 1.3.0 and fix typing issues
#1877