File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ def set_array_api_strict_flags(
81
81
array-api-strict will change the default version to 2023.12.
82
82
83
83
boolean_indexing : bool, optional
84
- Whether indexing by a boolean array is supported.
85
- Note that although boolean array indexing does result in
84
+ Whether indexing by a boolean array is supported. This flag is enabled
85
+ by default. Note that although boolean array indexing does result in
86
86
data-dependent shapes, this flag is independent of the
87
87
`data_dependent_shapes` flag (see below).
88
88
@@ -276,6 +276,19 @@ class ArrayAPIStrictFlags:
276
276
See :func:`set_array_api_strict_flags` for a
277
277
description of the available flags.
278
278
279
+ Examples
280
+ --------
281
+
282
+ >>> from array_api_strict import ArrayAPIStrictFlags, get_array_api_strict_flags
283
+ >>> with ArrayAPIStrictFlags(api_version="2022.12", boolean_indexing=False):
284
+ ... flags = get_array_api_strict_flags()
285
+ >>> flags
286
+ {'api_version': '2022.12',
287
+ 'boolean_indexing': False,
288
+ 'data_dependent_shapes': True,
289
+ 'enabled_extensions': ('linalg', 'fft')
290
+ }
291
+
279
292
See Also
280
293
--------
281
294
You can’t perform that action at this time.
0 commit comments