diff --git a/pyquil/quilbase.py b/pyquil/quilbase.py index ba6b4075d..6099f1cf9 100644 --- a/pyquil/quilbase.py +++ b/pyquil/quilbase.py @@ -110,7 +110,7 @@ def __hash__(self) -> int: def _add_reduce_method(cls: _T) -> _T: def __reduce__(self: Any) -> tuple[Callable[[Any], AbstractInstruction], tuple[Any]]: - init_fn, args = super(self, cls).__reduce__() + init_fn, args = super(cls, self).__reduce__() # type: ignore obj = init_fn(*args) return ( _convert_to_py_instruction,