Return the file descriptor of the saved original stream when ``CliRunner`` runs in ``fd`` mode. Otherwise delegate to :class:`~io.TextIOWrapper`, which raises :exc:`io.UnsupportedOperation` for a ``BytesIO``-backed buffer.
(self)
| 190 | """ |
| 191 | |
| 192 | def fileno(self) -> int: |
| 193 | """Return the file descriptor of the saved original stream when |
| 194 | ``CliRunner`` runs in ``fd`` mode. Otherwise delegate to |
| 195 | :class:`~io.TextIOWrapper`, which raises |
| 196 | :exc:`io.UnsupportedOperation` for a ``BytesIO``-backed buffer. |
| 197 | """ |
| 198 | if self._original_fd >= 0: |
| 199 | return self._original_fd |
| 200 | return super().fileno() |
| 201 | |
| 202 | @property |
| 203 | def name(self) -> str: |
no outgoing calls
no test coverage detected