HF RL Explorer

Rewriting TypedDict can lead to SyntaxError

Rewriting TypedDict can lead to SyntaxError: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). pyupgrade checks if the keys of a TypedDict are strings, but not if they are valid for usage in class syntax. Here's a minimal input: This is the rewrite produced by pyupgrade…

The task

pyupgrade checks if the keys of a TypedDict are strings, but not if they are valid for usage in class syntax. Here's a minimal input: This is the rewrite produced by pyupgrade --py36-plus minimal.py: The - and the space in the keys are invalid syntax.

Part of XiaomiMiMo/MiMo-V2.6-RL-oss.