PyDocs

Nav

Development Tools

IO

typing

class (source)
  • IO[AnyStr]
Generic base class for TextIO and BinaryIO.

This is an abstract, generic version of the return of open().

NOTE: This does not distinguish between the different possible
classes (text vs. binary, read vs. write vs. read/write,
append-only, unbuffered).  The TextIO and BinaryIO subclasses
below capture the distinctions between text vs. binary, which is
pervasive in the interface. For more precise types, define a custom
Protocol.
0 Examples
No examples for typing/IO.
See Also
No see-alsos for typing/IO
0 Notes
No notes for IO