On Wednesday, April 24, 2024 at 10:02:34 AM UTC-5 Edward K. Ream wrote:
Thanks for this report, Thomas. See
#3884. I'll fix this immediately.
PR
#3885 contains an elegant fix.
The PR moves from typing import TypeAlias into the range of if TYPE_CHECKING:
This change works because TYPE_CHECKING is always False at runtime. Even if the import fails, only mypy will be affected. At worst, mypy's type checking will be degraded for the five affected files.
Tests show that Leo loads with Python 3.9 :-)
Edward