Skip to content

Commit dd01b12

Browse files
committed
Fix setting ARRAY_API_STRICT_ENABLED_EXTENSIONS=''
1 parent 6a466f4 commit dd01b12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

array_api_strict/_flags.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,10 @@ def set_flags_from_environment():
317317
)
318318

319319
if "ARRAY_API_STRICT_ENABLED_EXTENSIONS" in os.environ:
320-
set_array_api_strict_flags(
321-
enabled_extensions=os.environ["ARRAY_API_STRICT_ENABLED_EXTENSIONS"].split(",")
322-
)
320+
enabled_extensions = os.environ["ARRAY_API_STRICT_ENABLED_EXTENSIONS"].split(",")
321+
if enabled_extensions == [""]:
322+
enabled_extensions = []
323+
set_array_api_strict_flags(enabled_extensions=enabled_extensions)
323324

324325
set_flags_from_environment()
325326

0 commit comments

Comments
 (0)