devika
devika copied to clipboard
Fixed: TypeError: unsupported operand type(s) for |: 'type' and 'type'
TypeError: unsupported operand type(s) for |: 'type' and 'type' fix
The problem was just that python < 3.10 is incompatible with new typing syntax. Not sure if all type hints should be rewritten in a compatible manner or if the project should just require python >= 3.10 which is quite reasonable in 2024.
@jmtatsch That's true. It could be changed to >= 3.10 in requirements then. But what I feel is if this works for lower versions and higher ones, then it doesn't hurt to change them. I'm new to open source, hence I might be wrong. So do excuse.
No worries. We will just let the maintainer decide.
I test this version on python 3.8 and 3.10 works fine. but we recommend to use >= 3.10 and < 3.12 currently closing this issue cause no one has this problem.