Equality comparison of Headers to an object results in a TypeError #2421
Unanswered
bkrutov-pf
asked this question in
Potential Issue
Replies: 1 comment 2 replies
-
|
I guess |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following code, comparing a
Headersinstance to an object or anything that is not aHeaders,Mapping, or iterable, results in aTypeErrorexception:It looks like this code intends to avoid it, but apparently,
Headers.__init__could raise aTypeError(and several other exceptions) in addition to aValueError:httpx/httpx/_models.py
Lines 281 to 285 in 9e97d7d
Beta Was this translation helpful? Give feedback.
All reactions