os.EX_OK
exists on Win32
#10242
Labels
help wanted
An actionable problem of low to medium complexity where a PR would be very welcome
stubs: incomplete
Annotations or sub-modules missing from an existing package or module
Running
python.exe -m mypy .
on a directory where there's a script withfrom os import EX_OK
leads to an error on Windows:stdlib/os/__init__.pyi
contains a type hint forEX_OK
that is guarded by anif sys.platform != "win32"
block. However, since python/cpython@19459f8,EX_OK
has been supported on Windows. It should be placed outside the guard block.The text was updated successfully, but these errors were encountered: