-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add os.EX_OK for Python 3.11 #10748
Add os.EX_OK for Python 3.11 #10748
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
599d1cc
to
23e4f4d
Compare
@AlexWaygood Sorry I force-pushed to the branch, can you check it again? |
…ypeshed into add-os-ex-ok-windows
You partially undid the fix I had applied, but I've re-applied it :-) |
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
os.get_blocking | ||
os.listdrives | ||
os.listmounts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a bunch of functions were added to the os
module on Windows in Python 3.12, that we haven't added yet in typeshed. If you fancy tackling that in a followup PR, it would be really valuable!
Much like os.EX_OK
, it looks like at least some of them already existed on other platforms:
typeshed/stdlib/os/__init__.pyi
Line 624 in 6dfa285
def get_blocking(__fd: int) -> bool: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah sure, I'd love to.
closes #10242