Skip to content

TypeError when analyzing a module #73

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

Closed
pylint-bot opened this issue Jan 13, 2015 · 1 comment
Closed

TypeError when analyzing a module #73

pylint-bot opened this issue Jan 13, 2015 · 1 comment
Labels

Comments

@pylint-bot
Copy link

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)


Analyzing this project https://github.com/stackforge/anvil with Pylint leads to the following crash.

#!python

Traceback (most recent call last):
  File "C:\Python34\Scripts\pylint-script.py", line 9, in <module>
    load_entry_point('pylint==1.4.0', 'console_scripts', 'pylint')()
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\__init__.py", line 23, in run_pylint
    Run(sys.argv[1:])
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\lint.py", line 1271, in __init__
    linter.check(args)
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\lint.py", line 686, in check
    self._do_check(files_or_modules)
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\lint.py", line 810, in _do_check
    self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\lint.py", line 886, in check_astroid_module
    walker.walk(ast_node)
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\utils.py", line 869, in walk
    self.walk(child)
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\utils.py", line 866, in walk
    cb(astroid)
  File "C:\Python34\lib\site-packages\pylint-1.4.0-py3.4.egg\pylint\checkers\base.py", line 1003, in visit_class
    if not list(node.instance_attr_ancestors(attr)):
  File "C:\Python34\lib\site-packages\astroid-1.3.2-py3.4.egg\astroid\scoped_nodes.py", line 1112, in instance_attr_ancestors
    for astroid in self.ancestors(context=context):
  File "C:\Python34\lib\site-packages\astroid-1.3.2-py3.4.egg\astroid\scoped_nodes.py", line 1091, in ancestors
    context=context):
  File "C:\Python34\lib\site-packages\astroid-1.3.2-py3.4.egg\astroid\scoped_nodes.py", line 1077, in ancestors
    for baseobj in infer:
TypeError: '_Yes' object is not iterable


@pylint-bot
Copy link
Author

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):


This doesn't reproduce anymore with the new astroid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant