python-tcod-ecs icon indicating copy to clipboard operation
python-tcod-ecs copied to clipboard

Switch component types to use TypeExpr

Open HexDecimal opened this issue 1 year ago • 0 comments

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.

HexDecimal avatar Aug 21 '24 08:08 HexDecimal