Repository navigation
Fix stdlib subprocess.Popen.returncode typing - #7806
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The problem with this change is that there are situations where the caller knows that the exit code can't be |
Thank you for your explanation. So according to my understanding, using |
A mixture of compatibility with existing code, but also not requiring authors of new code to have to add Edit: But |
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
According to the document, the
Popen.returncodeshould beOptional[int]: