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
AnyStr.startswith(AnyStr) fails due to bytes not matching Buffer protocol #5452
The fix for this has landed, so AnyStr methods like startswith and split now accept an AnyStr argument when the receiver is also AnyStr. It'll be in the next release. Thanks for the clear report!
Activity
rchen152 commentedon Nov 5, 2026
@shahhamdihassan are you still working on this one?
shahhamdihassan commentedon Nov 5, 2026
Yes, still on it! The fix is going up for review today, with you and Steven as reviewers. I'll post here once it lands.
Test an AnyStr method call whose argument is also AnyStr
Accept a constrained TypeVar where its constraint is accepted in a bo…
shahhamdihassan commentedon Nov 9, 2026
The fix for this has landed, so
AnyStrmethods likestartswithandsplitnow accept anAnyStrargument when the receiver is alsoAnyStr. It'll be in the next release. Thanks for the clear report!