From 48aa0e9780c98813e9539a9232a61ae20ed7cc5a Mon Sep 17 00:00:00 2001 From: Clinton Roy Date: Fri, 15 Dec 2023 15:17:33 +1100 Subject: [PATCH] DOC: missing self argument. --- docs/user/explanations/staging.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/explanations/staging.rst b/docs/user/explanations/staging.rst index 9946b364c..86c6ff982 100644 --- a/docs/user/explanations/staging.rst +++ b/docs/user/explanations/staging.rst @@ -39,10 +39,10 @@ customize ``stage_sigs`` in the device's ``__init__`` method, like so: .. code:: python class MyMotor(EpicsMotor): - def __init__(*args, **kwargs): + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.stage_sigs[self.user_offset] = 5 When a ``MyMotor`` device is staged, its ``user_offset`` value will be set to 5. When it is unstaged, it will be set back to whatever value it had -right before it was staged. \ No newline at end of file +right before it was staged.