Convert labels to strings for README in package CLI (#9694)

This commit is contained in:
Adriane Boyd 2021-11-19 08:51:46 +01:00 committed by GitHub
parent ea450d652c
commit 0e93b315f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,7 +397,7 @@ def _format_label_scheme(data: Dict[str, Any]) -> str:
continue
col1 = md.bold(md.code(pipe))
col2 = ", ".join(
[md.code(label.replace("|", "\\|")) for label in labels]
[md.code(str(label).replace("|", "\\|")) for label in labels]
) # noqa: W605
label_data.append((col1, col2))
n_labels += len(labels)