Skip to content

Commit f28e7fa

Browse files
committed
fixup! docs(core.utils): sync _option_is_set docstring with Sequence check
1 parent 8c70110 commit f28e7fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cuda_core/cuda/core/utils/_program_cache.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,10 @@ def _option_is_set(options: ProgramOptions, name: str) -> bool:
319319
320320
- Boolean flags (``pch``): truthy only.
321321
- str-or-sequence fields (``include_path``, ``pre_include``): ``str``
322-
(including empty) or a non-empty ``list``/``tuple``; everything else
323-
(``False``, ``int``, empty sequence, ``None``) is ignored by the
324-
compiler and must not trigger a cache-time guard.
322+
(including empty) or a non-empty ``collections.abc.Sequence`` (list,
323+
tuple, range, user subclass, ...); everything else (``False``, ``int``,
324+
empty sequence, ``None``) is ignored by the compiler and must not
325+
trigger a cache-time guard.
325326
- Path/string-shaped fields (``create_pch``, ``time``,
326327
``fdevice_time_trace``, ``use_pch``, ``pch_dir``): ``is not None`` --
327328
the compiler emits ``--flag=<value>`` for any non-None value, so

0 commit comments

Comments
 (0)