-
-
Notifications
You must be signed in to change notification settings - Fork 348
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 executable
kwarg to trio.run_process type hints
#3183
Comments
Absolutely, and it looks like we're missing other kwargs in the signature too. (and same for
Feel free to make a PR -- you'll have to add some
Done! |
That |
I don't think this is possible because typeshed structures its overloads differently to ours (eg no platform specific ones) |
Happy to give this a go. Can I create script than generates it? I feel like doing this by hand is too much work and maintenance nightmare when they add more kwargs. |
If you want to! I don't think it's necessary: we'll just change the 2 overloads for things on Unix into 6 overloads across 3 different branches. But also 6 overloads still is somewhat large, plus open_process. (If you do make a script, don't bother with making it work completely on its own IMO) |
I think maintaining a script across platforms etc is going to be way more work than adding a kwarg at most once a year with a new python release. Lotsa stuff needs updating with new releases anyway. |
The
executable
kwarg is missing from the type hints oftrio.run_process
. It works at run time but Pyright is complaining.The text was updated successfully, but these errors were encountered: