docs: def format(self):
          """Return the format attribute of the BFD file being processed."""
          if not self._ptr:
              raise BfdException("BFD not initialized")
  
          return _bfd.get_bfd_attribute(self._ptr, BfdAttributes.FORMAT)