Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify _safer_popen_windows "if shell" logic (helps mypy)
Using a separate variable, as I had done originally, does not seem to be clearer than rebinding the parameter, and in this case the code is simpler and can be checked by mypy without needing another explicit type annotation to be added. This fixes one mypy error. This also adds a comment to make clearer why the mapping passed in is copied when modifications are needed, rather than mutated.
- Loading branch information