From a62a6fc3ba0cd9afc426f7684a16214d5e8251b7 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 30 Jul 2023 10:17:18 -0400 Subject: [PATCH] Add docstring --- pylint/utils/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index 4f9e054f8f..9b27e503e4 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -255,6 +255,8 @@ def _check_csv(value: list[str] | tuple[str] | str) -> Sequence[str]: def _check_regexp_csv(value: list[str] | tuple[str] | str) -> Iterable[str]: + r"""Split a comma-separated list of regexes, taking care to avoid splitting + a regex employing a comma as quantifier, as in `\d{1,2}`.""" if isinstance(value, (list, tuple)): yield from value else: