From f060248656204620ec41b6e967e2cc0f3c95c4b4 Mon Sep 17 00:00:00 2001 From: Harutaka Kawamura Date: Mon, 10 Oct 2022 02:01:36 +0900 Subject: [PATCH] Fix collapsed message (#372) --- README.md | 2 +- examples/generate_rules_table.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 875d9b9035..12d4a5fe26 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,7 @@ The 🛠 emoji indicates that a rule is automatically fixable by the `--fix` com | U004 | UselessObjectInheritance | Class `...` inherits from object | | 🛠 | | U005 | NoAssertEquals | `assertEquals` is deprecated, use `assertEqual` instead | | 🛠 | | U006 | UsePEP585Annotation | Use `list` instead of `List` for type annotations | | 🛠 | -| U007 | UsePEP604Annotation | Use `X | Y` for type annotations | | 🛠 | +| U007 | UsePEP604Annotation | Use `X \| Y` for type annotations | | 🛠 | | M001 | UnusedNOQA | Unused `noqa` directive | | 🛠 | ## Integrations diff --git a/examples/generate_rules_table.rs b/examples/generate_rules_table.rs index ae3096d446..4447e2ca4f 100644 --- a/examples/generate_rules_table.rs +++ b/examples/generate_rules_table.rs @@ -18,7 +18,7 @@ fn main() { "| {} | {} | {} | {} | {} |", check_kind.code().as_ref(), check_kind.as_ref(), - check_kind.body(), + check_kind.body().replace("|", r"\|"), default_token, fix_token );