(
        self,
        path: PATH_TYPES,
        text: bool = True,
        encoding: str = "utf-8",
        errors: Optional[str] = None,
    )
return contents
Return the contents of the requested file, either a bytestring or a unicode
        string depending on whether **text** is True
Return the contents of the requested file, either a bytestring or a unicode
        string depending on whether **text** is True
Return the contents of the requested file either 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: Optional[str] = None,
    ) -> Union[str, bytes]:
        """Return the contents of the requested file, either a bytestring or a unicode
        string depending on whether **text** is True"""
        with self.open_file(path, text=text, encoding=encoding) as fh:
            contents: Union[str, bytes] = fh.read()
        return contents
def read_file ( self , path : PATH_TYPES , text : bool = True , encoding : str = "utf-8" , errors : Optional [ str ] = None , ) -> Union [ str , bytes ] : with self . open_file ( path , text = text , encoding = encoding ) as fh : contents : Union [ str , bytes ] = fh . read ( ) return contents