Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: must be real number, not str #49

Closed
loulsb opened this issue Jan 5, 2023 · 0 comments · Fixed by #50
Closed

TypeError: must be real number, not str #49

loulsb opened this issue Jan 5, 2023 · 0 comments · Fixed by #50
Labels
bug Something isn't working

Comments

@loulsb
Copy link

loulsb commented Jan 5, 2023

I get this error when I use richHelpFormatter with this code

from argparse import ArgumentParser
from rich_argparse import RichHelpFormatter
_p = ArgumentParser(prog= 'Comparator' ,
                    formatter_class = RichHelpFormatter)
_p.add_argument('resources',nargs='+')
_p.add_argument('-p','--precision', type=float , default=0.0005,
    help='The precision of the comparisons, %(default).10f by default.')
_a=vars( _p.parse_args() )
print( _a )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants