Skip to content

Commit

Permalink
MNT: more explicit setup_preset_paths signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkong committed Jan 13, 2025
1 parent 61fe019 commit 3acf464
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pcdsdevices/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def set_position(self, position):
self.set_current_position(position)


def setup_preset_paths(**kwargs):
def setup_preset_paths(defer_loading: bool = False, **paths):
"""
Prepare the :class:`Presets` class.
Expand All @@ -920,8 +920,6 @@ def setup_preset_paths(**kwargs):
(Optional) "defer_loading": bool, whether or not to defer the loading
of preset files until the first tab completion
"""
defer_loading = kwargs.pop("defer_loading", False)
paths = kwargs
Presets._paths = {}
for k, v in paths.items():
Presets._paths[k] = Path(v)
Expand Down

0 comments on commit 3acf464

Please sign in to comment.