OpenAssetIO / OpenAssetIO-TraitGen

A code generation tool that produces OpenAssetIO Traits and Specifications from a simple YAML description.
Apache License 2.0
6 stars 5 forks source link

Use `frozenset` for `Specification.kTraitSet` #55

Open foundrytom opened 1 year ago

foundrytom commented 1 year ago

What

Define the (Python) Specifications trait set using a frozenset so it can be hashed.

Why

Simplifies switching on trait set in manager implementations in Python, where a handler map is a nice way to structure code.

ACs

feltech commented 1 week ago

Re-opening due to the change being reverted in https://github.com/OpenAssetIO/OpenAssetIO-TraitGen/issues/94. This issue is blocked until we can bump the required version of pybind11 used by OpenAssetIO.