Skip to content

Commit

Permalink
use private attrs for delegate attrs dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Jul 15, 2022
1 parent 439ad20 commit 35033a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcodes/instrument/instrument_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def _is_abstract(self) -> bool:
# instrument.get('someparam') === instrument['someparam'].get() #
# etc... #
#
delegate_attr_dicts = ["parameters", "functions", "submodules"]
delegate_attr_dicts = ["_parameters", "_functions", "_submodules"]

def __getitem__(self, key: str) -> Union[Callable[..., Any], Parameter]:
"""Delegate instrument['name'] to parameter or function 'name'."""
Expand Down

0 comments on commit 35033a3

Please sign in to comment.