@@ -91,22 +91,20 @@ def set_array_api_strict_flags(
9191 array-api-strict. The default is ``{default_extensions}``. Note that
9292 some extensions require a minimum version of the standard.
9393
94- The default values of the flags can also be changed by setting environment
95- variables:
96-
97- - ``ARRAY_API_STRICT_API_VERSION``: A string representing the version number.
98- - ``ARRAY_API_STRICT_DATA_DEPENDENT_SHAPES``: "True" or "False".
99- - ``ARRAY_API_STRICT_ENABLED_EXTENSIONS``: A comma separated list of
100- extensions to enable.
94+ The flags can also be changed by setting :ref:`environment variables
95+ <environment-variables>`.
10196
10297 Examples
10398 --------
10499
105100 >>> from array_api_strict import set_array_api_strict_flags
101+
106102 >>> # Set the standard version to 2021.12
107103 >>> set_array_api_strict_flags(api_version="2021.12")
104+
108105 >>> # Disable data-dependent shapes
109106 >>> set_array_api_strict_flags(data_dependent_shapes=False)
107+
110108 >>> # Enable only the linalg extension (disable the fft extension)
111109 >>> set_array_api_strict_flags(enabled_extensions=["linalg"])
112110
@@ -192,13 +190,17 @@ def reset_array_api_strict_flags():
192190 """
193191 Reset the array-api-strict flags to their default values.
194192
195- This will also reset any flags that were set by environment variables.
193+ This will also reset any flags that were set by :ref:`environment
194+ variables <environment-variables>` back to their default values.
196195
197196 .. note::
198197
199198 This function is **not** part of the array API standard. It only exists
200199 in array-api-strict.
201200
201+ See :func:`set_array_api_strict_flags` for a list of flags and their
202+ default values.
203+
202204 Examples
203205 --------
204206
@@ -229,7 +231,7 @@ class ArrayAPIStrictFlags:
229231 This class is **not** part of the array API standard. It only exists
230232 in array-api-strict.
231233
232- See :func:`~.array_api_strict. set_array_api_strict_flags` for a
234+ See :func:`set_array_api_strict_flags` for a
233235 description of the available flags.
234236
235237 See Also
0 commit comments