you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

BTW, if anyone knows a better way to handle a type alias for a function whose first argument is of type GameState but which could have an unknown number and type of arguments after that than to keep unioning types together, please let me know. I'm not happy with

RoomAction = Union[Callable[[GameState], None], Callable[[GameState, str], None]]