def _parse_singlefile(self, desired_type: Type[T], file_path: str, encoding: str, logger: Logger,
                          options: Dict[str, Dict[str, Any]]) -> T:
        """
        Implementation of AnyParser API
        """
        # first use the base parser to parse something compliant with the conversion chain
        first = self._base_parser._parse_singlefile(self._converter.from_type, file_path, encoding,
                                                    logger, options)

        # then apply the conversion chain
        return self._converter.convert(desired_type, first, logger, options)
def _parse_singlefile ( self , desired_type : Type [ T ] , file_path : str , encoding : str , logger : Logger , options : Dict [ str , Dict [ str , Any ] ] ) -> T : first = self . _base_parser . _parse_singlefile ( self . _converter . from_type , file_path , encoding , logger , options ) return self . _converter . convert ( desired_type , first , logger , options )
Implementation of AnyParser API