From f812e2cdbcc514cee0fe70e21f57d57b50059504 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Apr 27 2020 20:48:12 +0000 Subject: Fix APIVersion.__getnewargs__ ``__getnewargs__()`` must return a tuple. Fixes ``E0312(invalid-getnewargs-returned), APIVersion.__getnewargs__] __getnewargs__ does not return a tuple)``. Signed-off-by: Christian Heimes Reviewed-By: Alexander Bokovoy Reviewed-By: Rob Crittenden --- diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index e047324..7bb0415 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -1580,7 +1580,7 @@ class APIVersion(tuple): return "".format(*self) def __getnewargs__(self): - return str(self) + return (str(self),) @property def major(self):