mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 01:25:12 +02:00
Merge pull request #1608 from nightcityblade/fix/python-asend
fix: allow Python asend identifier
This commit is contained in:
+1
@@ -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: &[],
|
||||
|
||||
@@ -3,3 +3,7 @@ import os
|
||||
from numpy.typing import NDArray # should work
|
||||
|
||||
print(os.O_WRONLY) # should work
|
||||
|
||||
|
||||
async def consume(generator):
|
||||
await generator.asend(None) # should work
|
||||
|
||||
Reference in New Issue
Block a user