python-tcod-ecs
python-tcod-ecs copied to clipboard
Switch component types to use TypeExpr
Putting this up as a self-reminder. TypeExpr is needed for component type-hinting to work correctly. See PEP 747 – TypeExpr: Type Hint for a Type Expression.
It won't exist until Python 3.14, but I can start using them the moment they show up on typing_extensions.
Until then some aspects such as component assignments are not properly type-checked.