Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [E   TypeError: unsupported operand type(s) for |: 'type' and 'type']: [cause of the failed tests]
=============
[RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.SpPQzz (%check)
    Bad exit status from /var/tmp/rpm-tmp.SpPQzz (%check)]: [reason why the build failed]

Issue: Using typing hints for union in Python 3.9 that are supported since Python 3.10
Resolution: Use the backward-compatible `Union[X, Y]`