Fix bug with mypy plugin and no_strict_optional = True
#8666
+53
−2
no_strict_optional = True
#8666