fix: Allow Python asend identifier

This commit is contained in:
nightcityblade authored and nightcityblade committed 2026-08-28 23:52:32 +08:00
1 parent f6ce659dbc
commit 5956a2610c
2 files changed
+2 -8

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
"NDArray", // numpy.typing.NDArray
"EOFError", // std
"arange", // torch.arange, numpy.arange
"asend", // AsyncGenerator.asend
"certifi", // popular package
],
ignore_words: &[],
@@ -1,11 +1,4 @@
bin.name = "typos"
stdin = ""
stdout = """
error: `asend` should be `ascend`
╭▸ ./sample.py:9:21
│
9 │ await generator.asend(None) # should work
╰╴ ━━━━━
"""
stdout = ""
stderr = ""
status.code = 2