Skip to content

Commit

Permalink
try to fix sphinx build
Browse files Browse the repository at this point in the history
  • Loading branch information
brownj85 committed Jul 21, 2023
1 parent 7c4b245 commit 6719168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pennylane/data/base/attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ class AttributeInfo(MutableMapping):
attribute. Is stored in the HDF5 object's ``attrs`` dict.
Attributes:
attrs_namespace: Keys for this class's attributes will
be prefixed with this string in ``attrs_bind``.
attrs_bind: The HDF5 attrs dict that this instance is bound to,
or any mutable mapping
py_type: Type annotation for this attribute
Expand Down
6 changes: 4 additions & 2 deletions pennylane/data/base/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ class Dataset(MapperMixin, _DatasetTransform):
fields: A mapping of attribute names to their ``Attribute`` information. Note that
this contains attributes declared on the class, not attributes added to
an instance. Use ``attrs`` to view all attributes on an instance.
bind: The HDF5 group that contains this dataset's attributes
"""

__data_name__: ClassVar[str]
__identifiers__: ClassVar[Tuple[str, ...]]

fields: ClassVar[typing.Mapping[str, Field]] = MappingProxyType({})
fields: ClassVar[typing.Mapping[str, Field]]

bind_: Optional[HDF5Group] = _init_arg(default=None, alias="bind", kw_only=False)
data_name_: Optional[str] = _init_arg(default=None, alias="data_name")
Expand Down Expand Up @@ -406,6 +405,9 @@ def __dir__(self):
from other datasets."""


Dataset.fields = MappingProxyType({})


class _DatasetAttributeType(DatasetAttribute[HDF5Group, Dataset, Dataset]):
"""Attribute type for loading and saving datasets as attributes of
datasets, or elements of collection types."""
Expand Down

0 comments on commit 6719168

Please sign in to comment.