(self)
return empty_gen()
Raises errors for incomplete buffered data that could not be parsed
		because the end of the input data has been reached.
		
		Raises
		------
		~ipfshttpclient.exceptions.DecodingError
Raises errors for incomplete buffered data that could not be parsed
		because the end of the input data has been reached.
		
		Raises
		------
		~ipfshttpclient.exceptions.DecodingError
Raises errors for incomplete buffered data that could not be parsed because the end of the input data has been reached . Raises ------ ~ipfshttpclient . exceptions . DecodingError
def parse_finalize(self) -> ty.Generator[utils.json_value_t, ty.Any, ty.Any]:
		"""Raises errors for incomplete buffered data that could not be parsed
		because the end of the input data has been reached.
		
		Raises
		------
		~ipfshttpclient.exceptions.DecodingError
		"""
		try:
			try:
				# Raise exception for remaining bytes in bytes decoder
				self._decoder1.decode(b'', True)
			except UnicodeDecodeError as error:
				raise exceptions.DecodingError('json', error) from error

			# Late raise errors that looked like they could have been fixed if
			# the caller had provided more data
			if self._buffer and self._lasterror:
				raise exceptions.DecodingError('json', self._lasterror) from self._lasterror
		finally:
			# Reset state
			self._buffer    = []
			self._lasterror = None
			self._decoder1.reset()
		
		return empty_gen()
def parse_finalize ( self ) -> ty . Generator [ utils . json_value_t , ty . Any , ty . Any ] : try : try : # Raise exception for remaining bytes in bytes decoder self . _decoder1 . decode ( b'' , True ) except UnicodeDecodeError as error : raise exceptions . DecodingError ( 'json' , error ) from error # Late raise errors that looked like they could have been fixed if # the caller had provided more data if self . _buffer and self . _lasterror : raise exceptions . DecodingError ( 'json' , self . _lasterror ) from self . _lasterror finally : # Reset state self . _buffer = [ ] self . _lasterror = None self . _decoder1 . reset ( ) return empty_gen ( )