Skip to content

Commit

Permalink
mypy is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
MarquessV committed Aug 13, 2024
1 parent 812a7af commit 05617ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyquil/quilbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 05617ce

Please sign in to comment.