Skip to content

Conversation

amyreese
Copy link
Contributor

Was:

ASYNC212 Blocking sync HTTP call <object> on httpx object <call>, use httpx.AsyncClient.
amethyst@lunatone ~/scratch/flake8-async main » uvx -w flake8-async flake8 --select ASYNC212 tests/eval_files/async212.py
tests/eval_files/async212.py:7:5: ASYNC212 Blocking sync HTTP call client on httpx object close, use httpx.AsyncClient.
tests/eval_files/async212.py:8:5: ASYNC212 Blocking sync HTTP call client on httpx object delete, use httpx.AsyncClient.
tests/eval_files/async212.py:9:5: ASYNC212 Blocking sync HTTP call client on httpx object get, use httpx.AsyncClient.
tests/eval_files/async212.py:10:5: ASYNC212 Blocking sync HTTP call client on httpx object head, use httpx.AsyncClient.
tests/eval_files/async212.py:11:5: ASYNC212 Blocking sync HTTP call client on httpx object options, use httpx.AsyncClient.
tests/eval_files/async212.py:12:5: ASYNC212 Blocking sync HTTP call client on httpx object patch, use httpx.AsyncClient.
tests/eval_files/async212.py:13:5: ASYNC212 Blocking sync HTTP call client on httpx object post, use httpx.AsyncClient.
tests/eval_files/async212.py:14:5: ASYNC212 Blocking sync HTTP call client on httpx object put, use httpx.AsyncClient.
tests/eval_files/async212.py:15:5: ASYNC212 Blocking sync HTTP call client on httpx object request, use httpx.AsyncClient.
tests/eval_files/async212.py:16:5: ASYNC212 Blocking sync HTTP call client on httpx object send, use httpx.AsyncClient.
tests/eval_files/async212.py:17:5: ASYNC212 Blocking sync HTTP call client on httpx object stream, use httpx.AsyncClient.
tests/eval_files/async212.py:25:5: ASYNC212 Blocking sync HTTP call client on httpx object send, use httpx.AsyncClient.
tests/eval_files/async212.py:29:5: ASYNC212 Blocking sync HTTP call client on httpx object send, use httpx.AsyncClient.
tests/eval_files/async212.py:33:5: ASYNC212 Blocking sync HTTP call client on httpx object send, use httpx.AsyncClient.
tests/eval_files/async212.py:37:5: ASYNC212 Blocking sync HTTP call client on httpx object send, use httpx.AsyncClient.
tests/eval_files/async212.py:42:5: ASYNC212 Blocking sync HTTP call client on httpx object send, use httpx.AsyncClient.
tests/eval_files/async212.py:49:5: ASYNC212 Blocking sync HTTP call glob_client on httpx object send, use httpx.AsyncClient.
tests/eval_files/async212.py:75:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:77:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:79:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:81:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:83:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:85:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:87:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:89:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:91:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
tests/eval_files/async212.py:93:5: ASYNC212 Blocking sync HTTP call c on httpx object anything, use httpx.AsyncClient.
> [1]

Now:

ASYNC212 Blocking sync HTTP call <call> on httpx object <object>, use httpx.AsyncClient.
amethyst@lunatone ~/scratch/flake8-async async212-message+ » uvx --with-editable . flake8 --select ASYNC212 tests/eval_files/async212.py
      Built flake8-async @ file:///Users/amethyst/scratch/flake8-async
Installed 8 packages in 4ms
tests/eval_files/async212.py:7:5: ASYNC212 Blocking sync HTTP call close on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:8:5: ASYNC212 Blocking sync HTTP call delete on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:9:5: ASYNC212 Blocking sync HTTP call get on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:10:5: ASYNC212 Blocking sync HTTP call head on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:11:5: ASYNC212 Blocking sync HTTP call options on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:12:5: ASYNC212 Blocking sync HTTP call patch on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:13:5: ASYNC212 Blocking sync HTTP call post on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:14:5: ASYNC212 Blocking sync HTTP call put on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:15:5: ASYNC212 Blocking sync HTTP call request on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:16:5: ASYNC212 Blocking sync HTTP call send on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:17:5: ASYNC212 Blocking sync HTTP call stream on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:25:5: ASYNC212 Blocking sync HTTP call send on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:29:5: ASYNC212 Blocking sync HTTP call send on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:33:5: ASYNC212 Blocking sync HTTP call send on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:37:5: ASYNC212 Blocking sync HTTP call send on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:42:5: ASYNC212 Blocking sync HTTP call send on httpx object client, use httpx.AsyncClient.
tests/eval_files/async212.py:49:5: ASYNC212 Blocking sync HTTP call send on httpx object glob_client, use httpx.AsyncClient.
tests/eval_files/async212.py:75:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:77:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:79:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:81:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:83:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:85:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:87:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:89:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:91:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
tests/eval_files/async212.py:93:5: ASYNC212 Blocking sync HTTP call anything on httpx object c, use httpx.AsyncClient.
> [1]

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.
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Amethyst! Clearly an improvement over the status quo 😁

@Zac-HD Zac-HD merged commit 00b4a20 into python-trio:main Aug 26, 2025
10 checks passed
@trio-bot
Copy link

trio-bot bot commented Aug 26, 2025

Hey @amyreese, it looks like that was the first time we merged one of your PRs! Thanks so much! 🎉 🎂

If you want to keep contributing, we'd love to have you. So, I just sent you an invitation to join the python-trio organization on Github! If you accept, then here's what will happen:

  • Github will automatically subscribe you to notifications on all our repositories. (But you can unsubscribe again if you don't want the spam.)

  • You'll be able to help us manage issues (add labels, close them, etc.)

  • You'll be able to review and merge other people's pull requests

  • You'll get a [member] badge next to your name when participating in the Trio repos, and you'll have the option of adding your name to our member's page and putting our icon on your Github profile (details)

If you want to read more, here's the relevant section in our contributing guide.

Alternatively, you're free to decline or ignore the invitation. You'll still be able to contribute as much or as little as you like, and I won't hassle you about joining again. But if you ever change your mind, just let us know and we'll send another invitation. We'd love to have you, but more importantly we want you to do whatever's best for you.

If you have any questions, well... I am just a humble Python script, so I probably can't help. But please do post a comment here, or in our chat, or on our forum, whatever's easiest, and someone will help you out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants