We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff53af4 commit 56c8cebCopy full SHA for 56c8ceb
tableauserverclient/models/property_decorators.py
@@ -86,13 +86,16 @@ def property_type_decorator(func):
86
def wrapper(self, value):
87
error = "Invalid property defined: '{}'. Integer value expected.".format(value)
88
89
+ if value in allowed:
90
+ return func(self, value)
91
+
92
if valid_int_range is None:
93
if isinstance(value, int):
94
return func(self, value)
95
else:
96
raise ValueError(error)
97
- if (value not in range(*valid_int_range)) and (value not in allowed):
98
+ if not (valid_int_range[0] < value < valid_int_range[1]):
99
100
101
0 commit comments