Commit 9c5e495
committed
feat(dataset): expose
``ParamSpecBase`` is the canonical base class used for building ``InterDependencies_``
graphs on the public API surface, but until now it was only importable from
:mod:`qcodes.parameters`, while :mod:`qcodes.dataset` only re-exported the legacy
:class:`~qcodes.dataset.descriptions.param_spec.ParamSpec` class. Users who followed
the documented dataset-centric entry points had to reach into ``qcodes.parameters``
to construct dependency graphs.
Re-export ``ParamSpecBase`` from ``qcodes.dataset`` and add it to ``__all__`` so the
public namespace matches the actual recommended usage. Adds a regression test that
pins both the re-export and its presence in ``__all__``.
Closes #7369
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>ParamSpecBase from qcodes.dataset
1 parent 36967bf commit 9c5e495
3 files changed
Lines changed: 14 additions & 0 deletions
File tree
- docs/changes/newsfragments
- src/qcodes/dataset
- tests/dataset
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
0 commit comments