Skip to content

Commit 00b4a20

Browse files
authored
Fix error message ordering for ASYNC212 (#402)
Was: ASYNC212 Blocking sync HTTP call <object> on httpx object <call>, use httpx.AsyncClient. Now: ASYNC212 Blocking sync HTTP call <call> on httpx object <object>, use httpx.AsyncClient.
1 parent 57c7d00 commit 00b4a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake8_async/visitors/visitor2xx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def visit_blocking_call(self, node: ast.Call):
120120
class Visitor212(Visitor200):
121121
error_codes: Mapping[str, str] = {
122122
"ASYNC212": (
123-
"Blocking sync HTTP call {1} on httpx object {0}, use httpx.AsyncClient."
123+
"Blocking sync HTTP call {0} on httpx object {1}, use httpx.AsyncClient."
124124
)
125125
}
126126

0 commit comments

Comments
 (0)