ExtensionVersions

class hugr.ext.ExtensionVersions(latest: Extension)[source]

Bases: object

Set of versions of an extension.

Older versions of an extension may be kept for backwards compatibility.

Methods

add

Add an extension to the set.

Attributes

id

Get the ID of the extension.

latest

Get latest version of the extension.

versions

Get all versions of the extension.

add(extension: Extension) None[source]

Add an extension to the set.

property id: ExtensionId

Get the ID of the extension.

property latest: Extension

Get latest version of the extension.

property versions: frozenset[Version]

Get all versions of the extension.