Cleanup: use static sets

This commit is contained in:
2021-11-08 14:26:48 +11:00
parent 42df2a7b57
commit 27b37517f8
5 changed files with 8 additions and 8 deletions

View File

@@ -113,7 +113,7 @@ class OperatorSpecEditMode:
"""
self.operator_name = operator_name
self.operator_parameters = operator_parameters
if select_mode not in ['VERT', 'EDGE', 'FACE']:
if select_mode not in {'VERT', 'EDGE', 'FACE'}:
raise ValueError("select_mode must be either {}, {} or {}".format('VERT', 'EDGE', 'FACE'))
self.select_mode = select_mode
self.selection = selection