The pipe is an "or" operator. (You can also use it in your type hints in python 3.10 instead of union!)
I know you implied it, but I think it's nice to be explicit when we're talking about new language features for people new to programming to understand what's going on.