Helper function for generating docstrings related to scales.
()
| 980 | |
| 981 | |
| 982 | def _get_scale_docs(): |
| 983 | """ |
| 984 | Helper function for generating docstrings related to scales. |
| 985 | """ |
| 986 | docs = [] |
| 987 | for name, scale_class in _scale_mapping.items(): |
| 988 | docstring = inspect.getdoc(scale_class.__init__) or "" |
| 989 | docs.extend([ |
| 990 | f" {name!r}", |
| 991 | "", |
| 992 | textwrap.indent(docstring, " " * 8), |
| 993 | "" |
| 994 | ]) |
| 995 | return "\n".join(docs) |
| 996 | |
| 997 | |
| 998 | _docstring.interpd.register( |