(
        self,
        path: PATH_TYPES,
        text: bool = True,
        encoding: str = "utf-8",
        errors: str | None = None,
    )
return contents
Return the contents of the requested file, either a a bytestring or a unicode
        string depending on whether **text** is True
Return the contents of the requested file, either a a bytestring or a unicode
        string depending on whether **text** is True
Return the contents of the requested file either a a bytestring or a unicode string depending on whether ** text ** is True
def read_file(
        self,
        path: PATH_TYPES,
        text: bool = True,
        encoding: str = "utf-8",
        errors: str | None = None,
    ) -> str | bytes:
        """Return the contents of the requested file, either a a bytestring or a unicode
        string depending on whether **text** is True"""

        fh = self.open_file(path, text=text, encoding=encoding)
        contents: str | bytes = fh.read()
        return contents
def read_file ( self , path : PATH_TYPES , text : bool = True , encoding : str = "utf-8" , errors : str | None = None , ) -> str | bytes : fh = self . open_file ( path , text = text , encoding = encoding ) contents : str | bytes = fh . read ( ) return contents