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
StringIO breaking change for str subclasses #149046
This other PR fixed a breaking change in behaviour where classes inheriting str would have __str__ called on them when instead of using the "underlying" str itself. The PR fixed the problem for JSON serialisation, but seemingly missed some other call sites, including StringIO. This seems to affect Python 3.14+ (but works as expected on 3.13).
This is a reproducer and this is a fix PR: #149047.
Activity
[-]`StringIO`[/-][+]`StringIO` breaking change for `str` subclasses[/+]gh-149046: fix: correctly handle `str` subclasses in `io.StringIO` (#…
[3.14] gh-149046: fix: correctly handle `str` subclasses in `io.Strin…
[3.15] gh-149046: fix: correctly handle `str` subclasses in `io.Strin…