This patch fixes invalid annotations detected for the tests generated
by Ghostwritter. It will now correctly generate "Optional" types with
just one type argument and handle union expressions inside of type
arguments correctly. Additionally, it now supports code with the "from
future import annotations" marker for Python 3.10 and newer.
The canonical version of these notes (with links) is on readthedocs.