Merge pull request #1608 from nightcityblade/fix/python-asend

fix: allow Python asend identifier
This commit is contained in:
Ed Page
2026-09-01 11:50:08 -05:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
+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: &[],
@@ -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