Cherry-picked from python3.11-semantic_version 49b1589806b08ea9753f278b89d0a3f010af7b04 49b1589806 Amended to work with this version. Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
49b1589806