IORegistry.with_importer#

IORegistry.with_importer(kind, format, importer)[source]

Return a copy of the registry with an additional importer.

Parameters:
  • kind (GraphKind) – The graph kind.

  • format (str) – The IO format.

  • importer (type[GraphImporter]) – The importer class to register.

Returns:

A new registry containing the additional importer.

Return type:

IORegistry