[docs] Improvements

Closes #5846, closes #5774
This commit is contained in:
pukkandan
2023-01-02 19:39:28 +05:30
parent 05997b6e98
commit 8e174ba7de
3 changed files with 34 additions and 31 deletions

View File

@@ -5438,7 +5438,7 @@ def traverse_obj(
The keys in the path can be one of:
- `None`: Return the current object.
- `str`/`int`: Return `obj[key]`. For `re.Match, return `obj.group(key)`.
- `str`/`int`: Return `obj[key]`. For `re.Match`, return `obj.group(key)`.
- `slice`: Branch out and return all values in `obj[key]`.
- `Ellipsis`: Branch out and return a list of all values.
- `tuple`/`list`: Branch out and return a list of all matching values.