MNT: Apply argparse changes to Python >=3.11.9 as they were backported to 3.11
Working around changes in https://github.com/python/cpython/pull/114180. Originally fixed for Python 3.12 in !432 (merged)
Working around changes in https://github.com/python/cpython/pull/114180. Originally fixed for Python 3.12 in !432 (merged)