I have a stack of several commits that improve mypy's narrowing I will post relevant PRs and notes in this thread