Closed jokasimr closed 10 months ago
Fixes #151.
We just tried static type-checker, and I was not sure if H5Base.attr should be annotated as Mapping or Attr.
H5Base.attr
Mapping
Attr
Attr in scippnexus inherits from collections.abc.Mapping, an immutable mapping. But H5Base.attrs seems to be mutable (example).
collections.abc.Mapping
H5Base.attrs
It seems the H5Base.attrs attribute is not always an instantiation of the Attr class. Should it be?
Fixes #151.