The target_version flag uses a fixed set of python versions with the latest being py310, no py311, py312 or py313.
It's nice it enforces the format, but might be better to accept a string so its not a maintenance burden when new releases come out, requiring users to update the this package when otherwise it wouldnt be needed.