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.