From 41273df385b405f00abdc5037d77ce99453a67d8 Mon Sep 17 00:00:00 2001 From: nick Date: Mon, 1 May 2023 17:16:30 -0400 Subject: [PATCH] list -> set for efficiency --- tfscript/tftypes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tfscript/tftypes.py b/tfscript/tftypes.py index 79e2fc0..178fb88 100644 --- a/tfscript/tftypes.py +++ b/tfscript/tftypes.py @@ -1,4 +1,4 @@ -validKeyList = [ +validKeyList = { # top row 'escape', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12', # keyboard @@ -16,7 +16,7 @@ validKeyList = [ # arrows 'uparrow', 'downarrow', 'leftarrow', 'rightarrow' -] +} popErrors = (AttributeError, KeyError, TypeError) @@ -636,4 +636,4 @@ class Bind(ScriptBind): # all inheritances have been completed ScriptBind.bindTypes = ScriptBind.__subclasses__() -Double.bindNames = [ bind.__name__.lower() for bind in ScriptBind.bindTypes ] \ No newline at end of file +Double.bindNames = [ bind.__name__.lower() for bind in ScriptBind.bindTypes ]