Skip to content

Commit 19ddff0

Browse files
committed
Fields is no longer an abc.Mapping
1 parent 46e59de commit 19ddff0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/stagpy/step.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import typing
1212
from abc import ABC, abstractmethod
13-
from collections import abc
1413
from dataclasses import dataclass
1514
from functools import cached_property
1615
from itertools import chain
@@ -272,14 +271,10 @@ def at_r(self, rval: float) -> int:
272271
return int(np.argmin(np.abs(self.r_centers - rval)))
273272

274273

275-
class Fields(abc.Mapping):
274+
class Fields:
276275
"""Fields data structure.
277276
278277
The `Step.fields` attribute is an instance of this class.
279-
280-
`Fields` implements `collections.abc.Mapping`. Keys are
281-
fields names defined in `stagpy.phyvars.[S]FIELD[_EXTRA]`. Each item
282-
is a [`Field`][stagpy.datatypes.Field] instance.
283278
"""
284279

285280
def __init__(
@@ -295,7 +290,6 @@ def __init__(
295290
self._extra = extravars
296291
self._files = files
297292
self._filesh5 = filesh5
298-
super().__init__()
299293

300294
@cached_property
301295
def _all_vars(self) -> set[str]:

0 commit comments

Comments
 (0)