-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
rule improvementImprovement for currently existing ruleImprovement for currently existing rule
Description
Motivated by python-trio/pytest-trio#148
given that we already have special handling of httpx elsewhere we should probably support it here. There's probably some other packages out there too that might merit inclusion.
Implementation is simple, we simple extend this table
flake8-async/flake8_async/visitors/visitor101.py
Lines 50 to 57 in 4187fd9
and bool( | |
# nursery/taskgroup | |
with_has_call(node, "open_nursery", base="trio") | |
or with_has_call(node, "create_task_group", base="anyio") | |
or with_has_call(node, "TaskGroup", base="asyncio") | |
# cancel scopes | |
or with_has_call(node, "timeout", "timeout_at", base="asyncio") | |
or with_has_call(node, *cancel_scope_names, base=("trio", "anyio")) |
Zac-HD
Metadata
Metadata
Assignees
Labels
rule improvementImprovement for currently existing ruleImprovement for currently existing rule