(args: Sequence[str], conjunction: str)
| 3387 | |
| 3388 | |
| 3389 | def pretty_seq(args: Sequence[str], conjunction: str) -> str: |
| 3390 | quoted = ['"' + a + '"' for a in args] |
| 3391 | if len(quoted) == 1: |
| 3392 | return quoted[0] |
| 3393 | if len(quoted) == 2: |
| 3394 | return f"{quoted[0]} {conjunction} {quoted[1]}" |
| 3395 | last_sep = ", " + conjunction + " " |
| 3396 | return ", ".join(quoted[:-1]) + last_sep + quoted[-1] |
| 3397 | |
| 3398 | |
| 3399 | def append_invariance_notes( |
no test coverage detected
searching dependent graphs…