Revisit all type hints if we can use native ones.
@JuniorJPDJ stated:
You are wrong in second case. You can use
Union[str, None]
or evenOptional[str]
fromtyping
package from stdlib.str | None
is just abbreviation ofUnion
introduced in py3.10.
This way we might be able to get rid of quite some if not all usage of spectacular in production