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
stdio_mgr expects getvalue to exist on BytesIO, and previously expected it to exist on StringIO, and the docs still refer to StringIO.getvalue, but there is no base/abstract type which defines this.
We should create our own temporary ABC for this, so we can hang features on it, add new ones (like _PersistedFileIO as a BytesIO with a fileno()), and raise issues upstream about it. This is also 'needed' for bytes support (#36) if we use strict type checking (#60)
e.g. #80 is a feature that depends on .getvalue and little else.
The text was updated successfully, but these errors were encountered:
stdio_mgr expects
getvalue
to exist onBytesIO
, and previously expected it to exist onStringIO
, and the docs still refer to StringIO.getvalue, but there is no base/abstract type which defines this.There is nothing in https://github.com/python/typing or title search on bpo
We should create our own temporary ABC for this, so we can hang features on it, add new ones (like
_PersistedFileIO
as aBytesIO
with afileno()
), and raise issues upstream about it. This is also 'needed' for bytes support (#36) if we use strict type checking (#60)e.g. #80 is a feature that depends on
.getvalue
and little else.The text was updated successfully, but these errors were encountered: