Skip to content

TypeError when analyzing a module #73

@pylint-bot

Description

@pylint-bot

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions