@@ -229,6 +229,7 @@ def __init__(
229229 self ._backend_version = response .get ("version" )
230230 self ._backend_api_server_build_info = response .get ("api_server_build_info" )
231231 self ._backend_product_build_info = response .get ("product_build_info" )
232+ self ._backend_additional_info = response .get ("additional_info" , {})
232233
233234 # Register the close method to be called at exit - irrespectively of
234235 # the user calling it or not...
@@ -313,12 +314,23 @@ def backend_info(self, indent=0) -> str:
313314 str
314315 String with the backend information.
315316 """
316- return (
317+ base_info = (
317318 f"{ ' ' * indent } Version: { self .backend_version } \n "
318319 f"{ ' ' * indent } Backend type: { self .backend_type .name } \n "
319320 f"{ ' ' * indent } Backend number: { self ._backend_product_build_info } \n "
320321 f"{ ' ' * indent } API server number: { self ._backend_api_server_build_info } "
321322 )
323+ if self ._backend_additional_info :
324+ # Calculate padding to align values consistently
325+ # (19 chars total for label + colon + spaces)
326+ additional_info_lines = [
327+ f"{ ' ' * indent } { key + ':' :<19} { value } "
328+ for key , value in self ._backend_additional_info .items ()
329+ ]
330+ additional_info_str = "\n " .join (additional_info_lines )
331+ return f"{ base_info } \n { additional_info_str } "
332+ else : # pragma: no cover
333+ return base_info
322334
323335 def __repr__ (self ) -> str :
324336 """Represent the client as a string."""
0 commit comments