-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add missing fcntl
constants.
#12409
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 missing fcntl
constants.
#12409
Conversation
92be9b3
to
75487db
Compare
stdlib/fcntl.pyi
Outdated
RWH_WRITE_LIFE_LONG: Final = 4 | ||
RWH_WRITE_LIFE_EXTREME: Final = 5 | ||
|
||
if sys.version_info >= (3, 13) and sys.platform == "darwin": |
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.
On my local I can access these on 3.11+, but stubtest fails if we don't have this 3.13+, not sure if anyone has an idea what might be going on. This is at least an improvement in the interim.
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.
Whether these constants are defined or not depends on whether they are present on the build machine. In this case it looks like Apple added them at some point, so we should use the same version_info range than for Linux. We need to add stubtest exclude entries, although I would recommend to add it as a regexp entry to the general darwin exclude list (with an appropriate comment, and possibly the current date) as it seems that the availability can fluctuate. I guess that we can remove the allowlist entry in a few years when MacOS systems have been updated.
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.
I would agree, but my on my local having the same constant not work on 3.10, but work on 3.11 indicates that something did change between those versions to make them work properly on MacOs. Let me do some more digging.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
No description provided.