Skip to content

Conversation

@aminalaee
Copy link
Contributor

closes #10242

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@aminalaee
Copy link
Contributor Author

@AlexWaygood Sorry I force-pushed to the branch, can you check it again?

@AlexWaygood
Copy link
Member

AlexWaygood commented Sep 22, 2023

@AlexWaygood Sorry I force-pushed to the branch, can you check it again?

You partially undid the fix I had applied, but I've re-applied it :-)

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 6dfa285 into python:main Sep 22, 2023
Comment on lines 8 to 10
os.get_blocking
os.listdrives
os.listmounts
Copy link
Member

@AlexWaygood AlexWaygood Sep 22, 2023

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:

def get_blocking(__fd: int) -> bool: ...

Copy link
Contributor Author

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.

@aminalaee aminalaee deleted the add-os-ex-ok-windows branch September 22, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

os.EX_OK exists on Win32

2 participants