Skip to content

Commit cc26be3

Browse files
committed
removing tuple declaration
1 parent 10b6b46 commit cc26be3

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

wolframclient/language/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ def _valid_type_or_fail(self, type):
4141
if type not in constants.VALID_PACKED_ARRAY_LABEL_TYPES:
4242
raise WolframLanguageException(
4343
"Type %s is not one of the supported packed array types: %s."
44-
% (type, ", ".join(constants.VALID_PACKED_ARRAY_LABEL_TYPES_TUPLE))
44+
% (type, ", ".join(sorted(constants.VALID_PACKED_ARRAY_LABEL_TYPES)))
4545
)

wolframclient/serializers/wxfencoder/constants.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,18 @@ def _bytes(value):
9191
)
9292
)
9393

94-
VALID_PACKED_ARRAY_LABEL_TYPES_TUPLE = (
95-
"Integer8",
96-
"Integer16",
97-
"Integer32",
98-
"Integer64",
99-
"Real32",
100-
"Real64",
101-
"ComplexReal32",
102-
"ComplexReal64",
94+
VALID_PACKED_ARRAY_LABEL_TYPES = frozenset(
95+
(
96+
"Integer8",
97+
"Integer16",
98+
"Integer32",
99+
"Integer64",
100+
"Real32",
101+
"Real64",
102+
"ComplexReal32",
103+
"ComplexReal64",
104+
)
103105
)
104-
VALID_PACKED_ARRAY_LABEL_TYPES = frozenset(VALID_PACKED_ARRAY_LABEL_TYPES_TUPLE)
105106

106107
STRUCT_MAPPING = Settings(
107108
Integer8=struct.Struct(b"<b"),

0 commit comments

Comments
 (0)