I can currently come up with the:
x = Response(…)
# never executed here
expected to evaluate expression in
if block but never actually evaluated.
bool(x) is always
I think, you might consider implementing
__bool__ particularly for
Response class with checking body or status code, or always being
This behavour comes from
MutableMapping, since it’s “empty” mapping.