Replies: 2 comments 1 reply
-
Hrm. Should we resolve this (which would mean adapting how we handle |
Beta Was this translation helpful? Give feedback.
0 replies
-
I feel that magic comparisons are a bit too magic from the library user perspective. They are probably fine from the library developer perspective through. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm testing a starlette app, let's pretend it's httpbin:
This fails with
E AttributeError: '_ANY' object has no attribute 'encode'
For now I work around this by "casting" the magic header dict to an actual dict:
Then the comparison works and test is happy.
Beta Was this translation helpful? Give feedback.
All reactions