fix: add Python 3.9 compatibility
The "|" operator for union typing was added in Python 3.10 so fall back to the explicit `typing.Union` pattern.
Loading
The "|" operator for union typing was added in Python 3.10 so fall back to the explicit `typing.Union` pattern.