According to the docs of typing.TextIO and typing.BinaryIO:
typing.TextIO
typing.BinaryIO
In [6]: TextIO? Init signature: TextIO() Docstring: Typed version of th