-
-
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
os.waitid can return None #10564
Comments
Since there are 5 flags that can be bitwise-ORed, there are 16 combinations of flags where I would prefer the simpler |
If it's rarely used, maybe it's better to go the more type-safe route and use |
While part of me wants it to infer the return type, a more realistic part of me thinks that being forced to check for None is fine. |
Specifically, it can return None when its options argument contains os.WNOHANG.
I'm not sure there's any way to express that with overrides, given that it depends on the value of a specific argument. I'm also not sure of the ergonomic effect of making it return
os.waitid_result | None
.The text was updated successfully, but these errors were encountered: