urllib.request.Request.data
type erroring when using decode
#11470
Labels
status: deferred
Issue or PR deferred until some precondition is fixed
stubs: false positive
Type checkers report false errors
When getting the data out of a
urllib.request.Request
object,mypy
is erroring saying thatdecode
is not supported even tho it is abytes
object (and does not error when at runtime).I believe PR #10225 had made this an error as it changed
bytes
toBuffer
.Before: https://github.com/python/typeshed/blame/56aeeb677f27c6771e683314621521aff5c97cd1/stdlib/_typeshed/__init__.pyi#L230-L241
After: https://github.com/python/typeshed/blame/1e7e174b4fc4da6a66622168f8012c7ee0499392/stdlib/_typeshed/__init__.pyi#L263-L267
Deferred until #11422.
The text was updated successfully, but these errors were encountered: