Mark unsupported arguments with a disclaimer
(doc, args)
| 879 | |
| 880 | |
| 881 | def unsupported_arguments(doc, args): |
| 882 | """Mark unsupported arguments with a disclaimer""" |
| 883 | lines = doc.split("\n") |
| 884 | for arg in args: |
| 885 | subset = [ |
| 886 | (i, line) |
| 887 | for i, line in enumerate(lines) |
| 888 | if re.match(rf"^\s*{arg} ?:", line) |
| 889 | ] |
| 890 | if len(subset) == 1: |
| 891 | [(i, line)] = subset |
| 892 | lines[i] = f"{line} (Not supported in Dask)" |
| 893 | return "\n".join(lines) |
| 894 | |
| 895 | |
| 896 | def _derived_from( |
no test coverage detected
searching dependent graphs…