@pganssle I wonder if that has to do with subclasses? Like if you extended str in a class FancyStr and passed that in, your function is expecting FancyStr to be returned back. But you're only returning str, not FancyStr.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.
@pganssle I wonder if that has to do with subclasses? Like if you extended str in a class FancyStr and passed that in, your function is expecting FancyStr to be returned back. But you're only returning str, not FancyStr.