def __init__(self, *args, **kwargs):
"""Sets up the dummy argument registry."""
# The type profile for this it really complex and we don't do anything to it, so
# I would rather not duplicate the typeshed's effort keeping it up to date.
# https://github.com/python/typeshed/blob/master/stdlib/2and3/argparse.pyi#L27-L39
self.__dummy_arguments = []
self.__is_posix = not any(platform.win32_ver())
super(CommentIgnoringArgumentParser, self).__init__(*args, **kwargs)
评论列表
文章目录