TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Critical
|
John Vandenberg | ||
pyflakes (Debian) |
Fix Released
|
Unknown
|
|||
pyflakes (Ubuntu) |
Fix Released
|
Critical
|
Barry Warsaw |
Bug Description
This simple code make pyflakes throw and exception (python 2.7.11 and 3.5.1).
-------
# -*- coding: utf-8 -*-
from . import foo
class MyClass(object):
pass
-------
Traceback (most recent call last):
File "/usr/lib/
"__main__", mod_spec)
File "/usr/lib/
exec(code, run_globals)
File "pyflakes/
main(
File "/home/
warnings = checkRecursive(
File "/home/
warnings += checkPath(
File "/home/
return check(codestr, filename, reporter)
File "/home/
w = checker.
File "/home/
self.
File "/home/
self.
File "/home/
handler(node)
File "/home/
node.module, alias.name)
File "/home/
full_name = module + '.' + self.real_name
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
summary: |
- checkr.py; TypeError: unsupported operand type(s) for +: 'NoneType' and - 'str' + TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' |
Changed in pyflakes: | |
assignee: | nobody → John Vandenberg (jayvdb) |
Changed in pyflakes (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in pyflakes (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Barry Warsaw (barry) |
Changed in pyflakes (Debian): | |
status: | Unknown → Fix Released |
Changed in pyflakes (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in pyflakes: | |
status: | New → Fix Released |
I'm pretty sure this is fixed in the current version of pyflakes. What version are you using?