Traceback (most recent call last):


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/usr/local/lib/python2.7/dist-packages/samcli/local/apigw/service.py", line 161, in _request_handler

self.lambda_runner.invoke(route.function_name, event, stdout=stdout_stream, stderr=self.stderr)


 "/usr/local/lib/python2.7/dist-packages/samcli/commands/local/lib/local_lambda.py", line 80, in invoke

stdout=stdout, stderr=stderr)


 "/usr/local/lib/python2.7/dist-packages/samcli/local/lambdafn/runtime.py", line 83, in invoke

self._container_manager.run(container)


 "/usr/local/lib/python2.7/dist-packages/samcli/local/docker/manager.py", line 52, in run

if not self.has_image(image_name) or not self.skip_pull_image:


 "/usr/local/lib/python2.7/dist-packages/samcli/local/docker/manager.py", line 110, in has_image

except docker.errors.ImageNotFound:
AttributeError: 'module' object has no attribute 'ImageNotFound'

Traceback (most recent call last):


 "/usr/local/bin/mypy", line 6, in <module>

main(__file__)


 "/usr/local/lib/python3.4/dist-packages/mypy/main.py", line 42, in main

res = type_check_only(sources, bin_dir, options)


 "/usr/local/lib/python3.4/dist-packages/mypy/main.py", line 86, in type_check_only

options=options)


 "/usr/local/lib/python3.4/dist-packages/mypy/build.py", line 183, in build

dispatch(sources, manager)


 "/usr/local/lib/python3.4/dist-packages/mypy/build.py", line 1531, in dispatch

process_graph(graph, manager)


 "/usr/local/lib/python3.4/dist-packages/mypy/build.py", line 1768, in process_graph

process_stale_scc(graph, scc)


 "/usr/local/lib/python3.4/dist-packages/mypy/build.py", line 1847, in process_stale_scc

graph[id].type_check_first_pass()


 "/usr/local/lib/python3.4/dist-packages/mypy/build.py", line 1453, in type_check_first_pass

self.type_checker.check_first_pass()


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 167, in check_first_pass

self.accept(d)


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 233, in accept

stmt.accept(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/nodes.py", line 717, in accept

return visitor.visit_class_def(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 964, in visit_class_def

self.accept(defn.defs)


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 233, in accept

stmt.accept(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/nodes.py", line 778, in accept

return visitor.visit_block(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 1057, in visit_block

self.accept(s)


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 233, in accept

stmt.accept(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/nodes.py", line 819, in accept

return visitor.visit_assignment_stmt(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 1064, in visit_assignment_stmt

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


 "/usr/local/lib/python3.4/dist-packages/mypy/checker.py", line 1140, in check_assignment

self.infer_variable_type(inferred, lvalue, self.expr_checker.accept(rvalue),


 "/usr/local/lib/python3.4/dist-packages/mypy/checkexpr.py", line 2015, in accept

typ = node.accept(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/nodes.py", line 1492, in accept

return visitor.visit_super_expr(self)


 "/usr/local/lib/python3.4/dist-packages/mypy/checkexpr.py", line 1835, in visit_super_expr

t = self.analyze_super(e, False)


 "/usr/local/lib/python3.4/dist-packages/mypy/checkexpr.py", line 1854, in analyze_super

args = self.chk.scope.top_function().arguments
AttributeError: 'NoneType' object has no attribute 'arguments'
