Closed dimaqq closed 1 month ago
Today (scenario 7.0 pre), relations= and containers= require frozensets specifically, which I think if an unnecessary burden on folks who write tests.
relations=
containers=
I think any of these should be allowed:
State(leader=True, relations={ingress, rate_limit}, containers={container}) State(leader=True, relations=[ingress, rate_limit], containers=[container]) State(leader=True, relations=(ingress, rate_limit), containers=(container,))
I find it particularly weird when charm author only has a single item to add, as the syntax for creating a frozenset with a single item requires significant Python experience.
Today (scenario 7.0 pre),
relations=
andcontainers=
require frozensets specifically, which I think if an unnecessary burden on folks who write tests.I think any of these should be allowed:
I find it particularly weird when charm author only has a single item to add, as the syntax for creating a frozenset with a single item requires significant Python experience.