Skip to content

Commit d8c3745

Browse files
committed
Disable extensions when setting the standard version
1 parent 2cd4c3f commit d8c3745

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

array_api_strict/_flags.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def set_array_api_strict_flags(
129129
f"Extension {extension} requires standard version "
130130
f"{extension_versions[extension]} or later"
131131
)
132-
ENABLED_EXTENSIONS = enabled_extensions
132+
ENABLED_EXTENSIONS = tuple(enabled_extensions)
133+
else:
134+
ENABLED_EXTENSIONS = tuple([ext for ext in all_extensions if extension_versions[ext] <= STANDARD_VERSION])
133135

134136
# We have to do this separately or it won't get added as the docstring
135137
set_array_api_strict_flags.__doc__ = set_array_api_strict_flags.__doc__.format(

0 commit comments

Comments
 (0)