Skip to content

Commit

Permalink
Update os.EX_OK
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Sep 22, 2023
1 parent a76978b commit 23e4f4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion stdlib/os/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,14 @@ environ: _Environ[str]
if sys.platform != "win32":
environb: _Environ[bytes]

if sys.version_info >= (3, 11) or sys.platform != "win32":
EX_OK: int

if sys.platform != "win32":
confstr_names: dict[str, int]
pathconf_names: dict[str, int]
sysconf_names: dict[str, int]

EX_OK: int
EX_USAGE: int
EX_DATAERR: int
EX_NOINPUT: int
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/win32-py311.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
asyncio.IocpProactor.recvfrom_into
asyncio.windows_events.IocpProactor.recvfrom_into
msvcrt.GetErrorMode
os.EX_OK

# pathlib methods that exist on Windows, but always raise NotImplementedError,
# so are omitted from the stub
Expand Down

0 comments on commit 23e4f4d

Please sign in to comment.