Example:
def f(a: Optional[str]) -> str:
if a == '<string>': return a[1:-1]
else: return ''
With --strict-optional, this produces an error:
error: Value of type None is not indexable
It would be nice if mypy understood that a is a string if this == returns True.