Another way to do this would be to check something like `issubclass(actual.type, str)` instead.