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
......@@ -827,3 +827,6 @@ class TypedImaginaryUnit(TypedSymbol):
__xnew__ = staticmethod(__new_stage2__)
__xnew_cached_ = staticmethod(cacheit(__new_stage2__))
def __getnewargs__(self):
return (self.dtype,)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment