Context managers type hinting broken (PyCharm) #2134
Answered
by
arthur-tacca
Wouterkoorn
asked this question in
Potential Issue
-
Beta Was this translation helpful? Give feedback.
Answered by
arthur-tacca
Mar 25, 2022
Replies: 1 comment 3 replies
-
|
It looks to me like a bug in PyCharm rather than httpx (but I'm not associated with the httpx project so that is just a random person's observation). In any case, as a workaround, you can always do which is picked up by PyCharm's type hinting. (In fact it used to be the main way to do type hinting in PyCharm before annotations were added to Python.) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Wouterkoorn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



It looks to me like a bug in PyCharm rather than httpx (but I'm not associated with the httpx project so that is just a random person's observation). In any case, as a workaround, you can always do
which is picked up by PyCharm's type hinting. (In fact it used to be the main way to do type hinting in PyCharm before annotations were added to Python.)