AsyncClient gives TrioDeprecationWarning #2409
Unanswered
p-i-
asked this question in
Potential Issue
Replies: 2 comments
-
This is because AnyIO 3.x still uses the old |
Beta Was this translation helpful? Give feedback.
0 replies
-
This prevents the warning from showing: import warnings
from trio import TrioDeprecationWarning
warnings.filterwarnings(action='ignore', category=TrioDeprecationWarning) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following testcase gives a warning:
Output:
Checking my versions:
So I'm on the latest trio (as per https://pypi.org/project/trio/) and latest httpx (as per https://pypi.org/project/httpx/)
Presumably
httpx
needs to be somehow patched to handle a new construct intrio 0.22.0
What's my best play here? Simply supress the warning? (and if so, how?).
(Note: As can be seen from the output, the code still works, I'd just like to not have the warning).
Beta Was this translation helpful? Give feedback.
All reactions