Typing optional fields with click did not work for me - I received TypeError: Cannot instantiate typing.Union (implicitly caused by using Optional which is shorthand for typing.Union[str, None])
added an optional type on one of the intermediate utilities
TypeError: Cannot instantiate typing.Union
(implicitly caused by usingOptional
which is shorthand fortyping.Union[str, None]
)