From e57044800c47c30eaece1ca99e2120a6b540cce7 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 11 Dec 2022 19:30:39 -0800 Subject: [PATCH] Fix quotes in SIM118 error message (#1204) --- README.md | 2 +- src/checks.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae60bd7f0e..abcac13bc6 100644 --- a/README.md +++ b/README.md @@ -778,7 +778,7 @@ For more, see [flake8-simplify](https://pypi.org/project/flake8-simplify/0.19.3/ | Code | Name | Message | Fix | | ---- | ---- | ------- | --- | -| SIM118 | KeyInDict | Use 'key in dict' instead of 'key in dict.keys() | 🛠 | +| SIM118 | KeyInDict | Use `key in dict` instead of `key in dict.keys()` | 🛠 | ### flake8-tidy-imports (TID) diff --git a/src/checks.rs b/src/checks.rs index 504a178637..38c6a9b686 100644 --- a/src/checks.rs +++ b/src/checks.rs @@ -2334,7 +2334,7 @@ impl CheckKind { } // flake8-simplify CheckKind::KeyInDict(key, dict) => { - format!("Use '{key} in {dict}' instead of '{key} in {dict}.keys()") + format!("Use `{key} in {dict}` instead of `{key} in {dict}.keys()`") } // pyupgrade CheckKind::TypeOfPrimitive(primitive) => {