From b7a7a3f0f86a40be3089cdfdda895ad561e90f55 Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Thu, 3 Dec 2020 18:31:36 +0100
Subject: [PATCH] Fix __getnewargs__

---
 pystencils/interpolation_astnodes.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pystencils/interpolation_astnodes.py b/pystencils/interpolation_astnodes.py
index c230d0115..a694cb8ea 100644
--- a/pystencils/interpolation_astnodes.py
+++ b/pystencils/interpolation_astnodes.py
@@ -352,7 +352,7 @@ class InterpolatorAccess(TypedSymbol):
     __xnew_cached_ = staticmethod(cacheit(__new_stage2__))
 
     def __getnewargs__(self):
-        return tuple(self.symbol, *self.offsets)
+        return (self.symbol, *self.offsets)
 
 
 class DiffInterpolatorAccess(InterpolatorAccess):
@@ -397,7 +397,7 @@ class DiffInterpolatorAccess(InterpolatorAccess):
     __xnew_cached_ = staticmethod(cacheit(__new_stage2__))
 
     def __getnewargs__(self):
-        return tuple(self.symbol, self.diff_coordinate_idx, *self.offsets)
+        return (self.symbol, self.diff_coordinate_idx, *self.offsets)
 
 
 ##########################################################################################
-- 
GitLab