The following snippet crashes Pylint after the commit from the subject:

from django.views.generic import TemplateView
print(TemplateView.as_view())


Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 171, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File 
"C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\__main__.py",
line 3, in <module>
    pylint.run_pylint()
  File 
"C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\__init__.py",
line 21, in run_pylint
    Run(sys.argv[1:])
  File "C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\lint.py",
line 1048, in __init__
    linter.check(args)
  File "C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\lint.py",
line 627, in check
    self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
  File "C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\lint.py",
line 713, in check_astroid_module
    walker.walk(astroid)
  File "C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\utils.py",
line 711, in walk
    self.walk(child)
  File "C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\utils.py",
line 711, in walk
    self.walk(child)
  File "C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\utils.py",
line 711, in walk
    self.walk(child)
  File "C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\utils.py",
line 708, in walk
    cb(astroid)
  File 
"C:\Python34\lib\site-packages\pylint-1.1.0-py3.4.egg\pylint\checkers\typecheck.py",
line 320, in visit_callfunc
    called, implicit_args, callable_name = _determine_callable(called)
TypeError: 'NoneType' object is not iterable


The problem is that `as_view` is decorated with a descriptor and
`_determine_callable` returns None because it can't figure what type
it is.
Torsten, since you are the one who added this, could you provide a
fix? Right now I don't have much time myself, so I can't do anything.
Thanks!
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to