parameterize_tree#

lsst.images.serialization.parameterize_tree(tree_cls: type[ArchiveTree], pointer_type: type[Any]) type[ArchiveTree]#

Parameterise tree_cls over pointer_type if it is generic.

Some ArchiveTree subclasses (e.g. SumFieldSerializationModel) take no type parameters; their _get_archive_tree_type returns the class itself. Match that behaviour here so per-backend open_tree implementations can call this uniformly.