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

[BUG] 0.5.0 AttributeError Tuple has no attribute id #43

Closed
ofek opened this issue Jun 8, 2020 · 3 comments
Closed

[BUG] 0.5.0 AttributeError Tuple has no attribute id #43

ofek opened this issue Jun 8, 2020 · 3 comments
Labels
attributes bug Something isn't working

Comments

@ofek
Copy link

ofek commented Jun 8, 2020

Describe the bug

Traceback (most recent call last):
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/cli.py", line 193, in main
    output = json.dumps(process_json(line))
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/cli.py", line 114, in process_json
    return process_config(json.loads(json_input))
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/cli.py", line 91, in process_config
    obj = loader.get_object_documentation(path, members)
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/loader.py", line 232, in get_object_documentation
    root_object = self.get_class_documentation(leaf, members)
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/loader.py", line 333, in get_class_documentation
    merge(attributes_data, get_class_attributes(cls))
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/parsers/attributes.py", line 127, in get_class_attributes
    return combine(get_module_or_class_attributes(nodes[0].body), type_hints)
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/parsers/attributes.py", line 85, in get_module_or_class_attributes
    names = [target.id for target in assignment.targets]
  File "/home/runner/work/integrations-core/integrations-core/.tox/docs/lib/python3.8/site-packages/pytkdocs/parsers/attributes.py", line 85, in <listcomp>
    names = [target.id for target in assignment.targets]
AttributeError: 'Tuple' object has no attribute 'id'

Screenshots

https://github.com/DataDog/integrations-core/runs/751798110?check_suite_focus=true

@pawamoy
Copy link
Member

pawamoy commented Jun 9, 2020

One build breakage, one 🤡! Sorry about that! It should be fixed in pytkdocs 0.5.1.

@pawamoy pawamoy added attributes bug Something isn't working labels Jun 9, 2020
@ofek
Copy link
Author

ofek commented Jun 9, 2020

Thanks!

@pawamoy
Copy link
Member

pawamoy commented Jun 9, 2020

Closing, re-open if needed 🙂

@pawamoy pawamoy closed this as completed Jun 9, 2020
@pawamoy pawamoy changed the title [BUG] 0.5.0 [BUG] 0.5.0 AttributeError Tuple has no attribute id Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attributes bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants