Python 3.9 doesn't support the `|` syntax so we'll have to wait to drop support for it before making this change.