On Wednesday, April 24, 2024 at 10:02:34 AM UTC-5 Edward K. Ream wrote:

Thanks for this report, Thomas.  See #3884 
<https://github.com/leo-editor/leo-editor/issues/3884>. I'll fix this 
immediately.


PR #3885 <https://github.com/leo-editor/leo-editor/pull/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

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f49496ec-f6b4-43fd-9899-bd07371ec74bn%40googlegroups.com.

Reply via email to