You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the TODO comments, this PR removes some unnecessary `assert`s in
`mypy/ipc.py`. When these `assert`s were added in #6148, typeshed wasn't
able to use `Literal` types yet. However, nowadays, typeshed has precise
`Literal` overloads for `_winapi.WriteFile` and
`_winapi.ConnectNamedType`, meaning mypy is able to precisely infer the
return type of these function calls without the need for the `assert`s
in `mypy/ipc.py`:
https://github.com/python/typeshed/blob/main/stdlib/_winapi.pyi.
0 commit comments