-
-
Notifications
You must be signed in to change notification settings - Fork 2k
os.EX_OK exists on Win32 #10242
Copy link
Copy link
Closed
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations or sub-modules missing from an existing package or module
Metadata
Metadata
Assignees
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: incompleteAnnotations or sub-modules missing from an existing package or moduleAnnotations 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_OKleads to an error on Windows:stdlib/os/__init__.pyicontains a type hint forEX_OKthat is guarded by anif sys.platform != "win32"block. However, since python/cpython@19459f8,EX_OKhas been supported on Windows. It should be placed outside the guard block.