Return the appropriate output stream.
(quiet: bool, log_file: IO[str] | None)
| 135 | |
| 136 | |
| 137 | def _get_output(quiet: bool, log_file: IO[str] | None) -> IO[str]: |
| 138 | """Return the appropriate output stream.""" |
| 139 | if quiet and log_file is not None: |
| 140 | return log_file |
| 141 | if quiet: |
| 142 | return io.StringIO() # discard |
| 143 | return sys.stdout |
| 144 | |
| 145 | |
| 146 | def _get_env_job_count(name: str) -> int | None: |
no outgoing calls
no test coverage detected