You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mypy not treating bytes as typing.ByteString #7714
In typeshed I have directed people to just use bytes instead of a union with memoryview, because of the documentation. In case we just change the documentation, we'd need to change the stubs as well.
I think this should be just fixed in mypy. It should be not hard, one just needs to update TYPE_PROMOTIONS_PYTHON2 and TYPE_PROMOTIONS_PYTHON3 in mypy/semanal_classprop.py and add a test for this. Anyone wants to make a PR?
Activity
srittau commentedon Oct 15, 2019
In typeshed I have directed people to just use
bytesinstead of a union withmemoryview, because of the documentation. In case we just change the documentation, we'd need to change the stubs as well.ilevkivskyi commentedon Oct 15, 2019
I think this should be just fixed in mypy. It should be not hard, one just needs to update
TYPE_PROMOTIONS_PYTHON2andTYPE_PROMOTIONS_PYTHON3inmypy/semanal_classprop.pyand add a test for this. Anyone wants to make a PR?Promote memoryview to bytes (#7717)