doc: adding docstring
linting based on ruff
#7463
Merged
docstring
linting based on ruff
#7463