From 97fe88989c3cefb10190e921d99036df9efbef3d Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Thu, 4 May 2023 20:08:33 +0200 Subject: [PATCH] Replace deprecated inspect.getargspec with inspect.getfullargspec Python 3.11 removes inspect.getargspec completely. --- toast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toast.py b/toast.py index 519b1d1..4df9b97 100644 --- a/toast.py +++ b/toast.py @@ -107,7 +107,7 @@ class ToastMachine: for k, v in self.machine.types.items(): if self.machine.type == k: try: - args = inspect.getargspec(v.__init__).args + args = inspect.getfullargspec(v.__init__).args except: args = [] @@ -133,7 +133,7 @@ class ToastMachine: if "default" in self.machine.types: if ( "parent" - in inspect.getargspec( + in inspect.getfullargspec( self.machine.types["default"].__init__ ).args ):