Sep-05-2020, 09:03 AM
It looks to me like a drawback of Pycharm (which I don't use). Try to use
argparse.ArgumentDefaultsHelpFormatter
alone instead of MyFormatter
to see if it complains again. If it does, it is a flaw of PyCharm.