From 2197ed3192682da36c244c58bc92988ebba232ce Mon Sep 17 00:00:00 2001 From: Amethyst Reese Date: Tue, 26 Aug 2025 12:00:43 -0700 Subject: [PATCH] Fix error message ordering for ASYNC212 Was: ASYNC212 Blocking sync HTTP call on httpx object , use httpx.AsyncClient. Now: ASYNC212 Blocking sync HTTP call on httpx object , use httpx.AsyncClient. --- flake8_async/visitors/visitor2xx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8_async/visitors/visitor2xx.py b/flake8_async/visitors/visitor2xx.py index cd416d1f..91df95d5 100644 --- a/flake8_async/visitors/visitor2xx.py +++ b/flake8_async/visitors/visitor2xx.py @@ -120,7 +120,7 @@ def visit_blocking_call(self, node: ast.Call): class Visitor212(Visitor200): error_codes: Mapping[str, str] = { "ASYNC212": ( - "Blocking sync HTTP call {1} on httpx object {0}, use httpx.AsyncClient." + "Blocking sync HTTP call {0} on httpx object {1}, use httpx.AsyncClient." ) }