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

Stringification of empty bound parameters fails with exception #31

Closed
moshez opened this issue Dec 3, 2017 · 2 comments
Closed

Stringification of empty bound parameters fails with exception #31

moshez opened this issue Dec 3, 2017 · 2 comments

Comments

@moshez
Copy link

moshez commented Dec 3, 2017

Example:

>>> from clize import parser
>>> a=parser.CliSignature([])      
>>> b=a.read_arguments([], "thing")
>>> str(b)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/moshez/src/caparg/build/caparg/lib/python3.6/site-packages/attr/_make.py", line 814, in repr_
    for name in attr_names
  File "/home/moshez/src/caparg/build/caparg/lib/python3.6/site-packages/attr/_make.py", line 814, in <genexpr>
    for name in attr_names
AttributeError: 'CliBoundArguments' object has no attribute 'namedparam'

Expected instead useful string return value.

@epsy
Copy link
Owner

epsy commented Dec 9, 2017

Quick fix in ad57e79, with a cleaner fix pending release in attrs (python-attrs/attrs#308)

@epsy
Copy link
Owner

epsy commented Jan 6, 2018

Fixed in be37065

@epsy epsy closed this as completed Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants