[FEATURE] Bigger, better, SecretStr
We should create a custom SecretStr implementation that plays a bit nicer with str operations, but that's up for debate.
For example, this code would throw an error:
python
from pydantic import SecretStr
body = SecretStr("foobarbazbladibla")
type = "bearer"
header = type + body
results in TypeError: unsupported operand type(s) for +: 'SecretStr' and 'str'
using f-string notation also doesn't work nicely:
python
header = f"{type}{body}"
you don't get an error doing this, but the resulting type of header will be str and will be set to 'bearer **********'. The resulting str also seems to be 'broken' in that you can't run type against it for example.
Long story short, we should make 'adding' things (prefixing of suffixes) something to a given SecretStr easy as well.