From a9402e3f47e6caa2565ad3ad222026cfb8a8bf41 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 2 Apr 2024 10:34:28 -0500 Subject: [PATCH] fix: Don't correct common Python identifiers Fixes #966 Fixes #969 --- crates/typos-cli/src/file_type_specifics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/typos-cli/src/file_type_specifics.rs b/crates/typos-cli/src/file_type_specifics.rs index 482b0d0..cf39719 100644 --- a/crates/typos-cli/src/file_type_specifics.rs +++ b/crates/typos-cli/src/file_type_specifics.rs @@ -41,7 +41,9 @@ pub const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[ "py", StaticDictConfig { ignore_idents: &[ - "NDArray", // numpy.typing.NDArray + "NDArray", // numpy.typing.NDArray + "EOFError", // std + "arange", // torch.arange, numpy.arange ], ignore_words: &[], },