class documentation

class NoneStream(RawIOBase):

View In Hierarchy

Fallback if stdout or stderr are unavailable, does nothing.

Method read Read from stream (returns None as this is a null stream).
Method readall Read all bytes (returns empty bytes).
Method readinto Undocumented
Method write Undocumented
def read(self, size: int = -1):

Read from stream (returns None as this is a null stream).

def readall(self) -> bytes:

Read all bytes (returns empty bytes).

Returns
bytesEmpty bytes object
def readinto(self, b: Buffer) -> int | None:

Undocumented

def write(self, b: Buffer) -> int | None:

Undocumented