Reader

class asdf.typing.Reader[source]

Bases: object

Protocol for simple I/O reader instances.

This protocol only supports blocking I/O.

Methods Summary

read([size])

Read data from the input stream and return it.

Methods Documentation

abstractmethod read(size=Ellipsis, /)[source]

Read data from the input stream and return it.

If size is specified, at most size items (bytes/characters) will be read.