Latest push checks key type via isinstance, but if people don't like that it could be changed to an enum.