Traceback (most recent call last):


 "/Users/ambv/.venvs/mypy/bin/mypy", line 11, in <module>

load_entry_point('mypy', 'console_scripts', 'mypy')()


 "mypy/__main__.py", line 7, in console_entry

main(None)


 "mypy/main.py", line 50, in main

res = type_check_only(sources, bin_dir, options)


 "mypy/main.py", line 103, in type_check_only

options=options)


 "mypy/build.py", line 198, in build

graph = dispatch(sources, manager)


 "mypy/build.py", line 1841, in dispatch

process_graph(graph, manager)


 "mypy/build.py", line 2091, in process_graph

process_stale_scc(graph, scc, manager)


 "mypy/build.py", line 2194, in process_stale_scc

graph[id].type_check_first_pass()


 "mypy/build.py", line 1753, in type_check_first_pass

self.type_checker.check_first_pass()


 "mypy/checker.py", line 194, in check_first_pass

self.accept(d)


 "mypy/checker.py", line 282, in accept

stmt.accept(self)


 "mypy/nodes.py", line 519, in accept

return visitor.visit_func_def(self)


 "mypy/checker.py", line 530, in visit_func_def

self.check_func_item(defn, name=defn.name())


 "mypy/checker.py", line 590, in check_func_item

self.check_func_def(defn, typ, name)


 "mypy/checker.py", line 750, in check_func_def

self.accept(item.body)


 "mypy/checker.py", line 282, in accept

stmt.accept(self)


 "mypy/nodes.py", line 773, in accept

return visitor.visit_block(self)


 "mypy/checker.py", line 1304, in visit_block

self.accept(s)


 "mypy/checker.py", line 282, in accept

stmt.accept(self)


 "mypy/nodes.py", line 817, in accept

return visitor.visit_assignment_stmt(self)


 "mypy/checker.py", line 1311, in visit_assignment_stmt

self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)


 "mypy/checker.py", line 1339, in check_assignment

infer_lvalue_type)


 "mypy/checker.py", line 1589, in check_assignment_to_multiple_lvalues

self.check_multi_assignment(lvalues, rvalue, context, infer_lvalue_type)


 "mypy/checker.py", line 1630, in check_multi_assignment

context, undefined_rvalue, infer_lvalue_type)


 "mypy/checker.py", line 1650, in check_multi_assignment_from_tuple

reinferred_rvalue_type = self.expr_checker.accept(rvalue, lvalue_type)


 "mypy/checkexpr.py", line 2372, in accept

typ = node.accept(self)


 "mypy/nodes.py", line 1256, in accept

return visitor.visit_call_expr(self)


 "mypy/checkexpr.py", line 266, in visit_call_expr

ret_type = self.check_call_expr_with_callee_type(callee_type, e, fullname, object_type)


 "mypy/checkexpr.py", line 503, in check_call_expr_with_callee_type

object_type=object_type)[0]


 "mypy/checkexpr.py", line 563, in check_call

callee, context)


 "mypy/checkexpr.py", line 752, in infer_function_type_arguments_using_context

erased_ctx = replace_meta_vars(ctx, ErasedType())


 "mypy/erasetype.py", line 94, in replace_meta_vars

return t.accept(TypeVarEraser(lambda id: id.is_meta_var(), target_type))


 "mypy/types.py", line 982, in accept

return visitor.visit_tuple_type(self)


 "mypy/types.py", line 1554, in visit_tuple_type

return TupleType(self.translate_types(t.items),


 "mypy/types.py", line 1574, in translate_types

return [t.accept(self) for t in types]


 "mypy/types.py", line 1574, in <listcomp>

return [t.accept(self) for t in types]


 "mypy/types.py", line 982, in accept

return visitor.visit_tuple_type(self)


 "mypy/types.py", line 1554, in visit_tuple_type

return TupleType(self.translate_types(t.items),


 "mypy/types.py", line 1574, in translate_types

return [t.accept(self) for t in types]


 "mypy/types.py", line 1574, in <listcomp>

return [t.accept(self) for t in types]
AttributeError: 'NoneType' object has no attribute 'accept'

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/usr/local/lib/python2.7/dist-packages/pkuseg/__init__.py", line 2, in <module>

from .config import Config


 "/usr/local/lib/python2.7/dist-packages/pkuseg/config.py", line 174, in <module>

config = Config()


 "/usr/local/lib/python2.7/dist-packages/pkuseg/config.py", line 39, in __init__

self.regList = self.regs.copy()
AttributeError: 'list' object has no attribute 'copy'
