Skip to content

Commit e97b5d3

Browse files
committed
fix bug from review, which also resolves confusion with unexpected test passing
1 parent b640a1d commit e97b5d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flake8_async/visitors/visitor_utility.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(self, *args: Any, **kwargs: Any):
118118
if self.options.anyio:
119119
self.add_library("anyio")
120120
if self.options.asyncio:
121-
self.add_library("anyio")
121+
self.add_library("asyncio")
122122

123123
def visit_Import(self, node: ast.Import):
124124
for alias in node.names:

tests/eval_files/anyio_trio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# type: ignore
22
# ARG --enable=ASYNC220
33
# NOTRIO
4+
# NOASYNCIO
45
# BASE_LIBRARY anyio
5-
# TODO: why does this pass with --asyncio
66

77
# anyio eval will automatically prepend this test with `--anyio`
88
import trio # isort: skip

0 commit comments

Comments
 (0)