Closed hartytp closed 1 year ago
Replacing https://github.com/OxIonics/ionics_fits/blob/4116574ce7a0507e23ba3a9d1ce7fa2f10812a69/ionics_fits/common.py#L147 with
self.parameters = {name: copy.deepcopy(spec.annotations[name]) for name in spec.args[2:]}
``` resolves this. Not sure if that's the most appropriate resolution though?
I think that deepcopy is a perfectly reasonable way to resolve this.
Consider this case:
prints
which is not desired behaviour. @mbirtwell any thoughts about the best way of handling this?