class astropy.io.typing.WriteableFileLike(*args, **kwargs)[source]#

Bases: Protocol[_T_contra]

A file-like object that supports writing with a method write.

This is a Protocol that can be used to annotate file-like objects. It is also runtime-checkable and can be used with isinstance(). See runtime_checkable() for more information about how runtime checking with Protocols works.

Methods Summary


Methods Documentation

write(data: _T_contra) None[source]#