I have this, via the Github API, after base64 decoding:
[b'<!DOCTYPE html>\n', b'<html>\n', b' <head>\n']
And I'd really like a string (with \n line endings), or a list of strings.
I spent an hour chasing TypeError: a bytes-like object is required, not 'str' because I thought it was already a list of strings, and questioning my own lambda/filter skills before I realized the root cause was somewhere else. I tried googling but I only get hits for 'python bytes to string' which is different.