Skip to content
Snippets Groups Projects
Commit 23463e30 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add __getnewargs__ to TypedImaginaryUnit

There was a problem when pickling TypedImaginaryUnit since it was using the __getnewargs__ of TypedSymbol.
parent c4e92d45
Branches
Tags
No related merge requests found
Pipeline #20114 passed
...@@ -827,3 +827,6 @@ class TypedImaginaryUnit(TypedSymbol): ...@@ -827,3 +827,6 @@ class TypedImaginaryUnit(TypedSymbol):
__xnew__ = staticmethod(__new_stage2__) __xnew__ = staticmethod(__new_stage2__)
__xnew_cached_ = staticmethod(cacheit(__new_stage2__)) __xnew_cached_ = staticmethod(cacheit(__new_stage2__))
def __getnewargs__(self):
return (self.dtype,)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment