I think this type hinting feature was introduced in python 3.10 so maybe we shouldn't use it for compatible reasons.
I got this error with python 3.8
pre_blur: int | None = None, sobel_gradient: int | None = 3, post_blur: int | None = None,
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
I think this type hinting feature was introduced in python 3.10 so maybe we shouldn't use it for compatible reasons.
I got this error with python 3.8