HF RL Explorer

Version normalization fails to assign implicit zero when pre/post segment number is omitted

Version normalization fails to assign implicit zero when pre/post segment number is omitted: a task in repo2rlenv-swe-smith (Harbor dataset). Version. str () does not correctly normalize version strings where a pre-release or post-release label appears without an explicit number. According to PEP…

The task

`Version.__str__()` does not correctly normalize version strings where a pre-release or post-release label appears without an explicit number. According to PEP 440, a bare label such as `rc`, `post`, `r`, or `rev` (with no trailing digit) should be treated as implicitly numbered `0`, so `1.0rc` → `1.0rc0`, `1.0post`…

Part of FineEnvs/repo2rlenv-swe-smith.