class documentation

class _PTYPath:

Constructor: _PTYPath(contents)

View In Hierarchy

A FilePath-like object which can be opened to create a _ReadFile with certain contents.

Method __init__ No summary
Method open If the mode is r+, return a file with the given contents as a line.
Instance Variable contents Undocumented
def __init__(self, contents: bytes):
Parameters
contents:bytesbytes which will be the contents of the _ReadFile this path can open.
def open(self, mode: str) -> IO[bytes]:

If the mode is r+, return a file with the given contents as a line.

Returns
IO[bytes]a buffer of the given contents, which will discard any writes given to it.
contents =

Undocumented