You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a wrapper method around argparse.ArgumentParser.add_argument that has None as a default parameter value that gets passed to help of add_argument. It seems to work, but gets flagged as a type error.
Am I misunderstanding the types system, or should argparse.ArgumentParser.add_argument's help argument be Optional? I'm happy to make a PR with this change but I wanted to check I'm not doing something stupid first.
The text was updated successfully, but these errors were encountered:
I have a wrapper method around
argparse.ArgumentParser.add_argument
that hasNone
as a default parameter value that gets passed tohelp
ofadd_argument
. It seems to work, but gets flagged as a type error.Am I misunderstanding the types system, or should
argparse.ArgumentParser.add_argument
'shelp
argument beOptional
? I'm happy to make a PR with this change but I wanted to check I'm not doing something stupid first.The text was updated successfully, but these errors were encountered: