Method: pylint.reporters.base_reporter.BaseReporter.set_output
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
EncodedFile (1)
1def set_output(self, output: TextIO | None = None) -> None:
2 """Set output stream."""
3 # TODO: 3.0: Remove deprecated method
4 warn(
5 "'set_output' will be removed in 3.0, please use 'reporter.out = stream' instead",
6 DeprecationWarning,
7 stacklevel=2,
8 )
9 self.out = output or sys.stdout