import typing
from typeguard import typecheked
@typecheked
def test(t:typing.Tuple[str, Node]):
pass
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 2000, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/sqlalchemy_imageattach/stores/fs.py", line 226, in app
return _app(environ, start_response)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/sqlalchemy_imageattach/stores/fs.py", line 283, in __call__
return self.app(environ, start_response)
File "/Users/ung/dodo-ads/ads/web/wsgi.py", line 119, in __call__
return self.app(environ, start_response)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/sassutils/wsgi.py", line 162, in __call__
return self.app(environ, start_response)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 1991, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 1567, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/ung/dodo-ads/ads/web/oauth.py", line 53, in decorator
return f(*args, **kwargs)
File "/Users/ung/dodo-ads/ads/web/admin.py", line 70, in list_channels
return render_template('admin/list_channels.html', channels=channels)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/templating.py", line 134, in render_template
context, ctx.app)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/flask/templating.py", line 116, in _render
rv = template.render(context)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/jinja2/environment.py", line 989, in render
return self.environment.handle_exception(exc_info, True)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/Users/ung/dodo-ads/ads/web/templates/admin/list_channels.html", line 1, in top-level template code
{% extends 'admin/layout.html' %}
File "/Users/ung/dodo-ads/ads/web/templates/admin/layout.html", line 1, in top-level template code
{% extends 'layout.html' %}
File "/Users/ung/dodo-ads/ads/web/templates/layout.html", line 97, in top-level template code
{% block sidebar %}
File "/Users/ung/dodo-ads/ads/web/templates/layout.html", line 98, in block "sidebar"
{% for label, link in list_sitemap() if link.has_permission() %}
File "/Users/ung/dodo-ads/ads/web/sitemap.py", line 62, in list_sitemap
'admin.targets',
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 457, in wrapper
check_argument_types(memo)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 426, in check_argument_types
check_type(description, value, expected_type, memo)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 377, in check_type
check_tuple(argname, value, expected_type, memo)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 257, in check_tuple
check_type('{}[{}]'.format(argname, i), element, element_type, memo)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 373, in check_type
checker_func(argname, value, expected_type, memo)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 213, in check_sequence
check_type('{}[{}]'.format(argname, i), v, value_type, memo)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 377, in check_type
check_tuple(argname, value, expected_type, memo)
File "/Users/ung/.venvs/ads/lib/python3.5/site-packages/typeguard.py", line 240, in check_tuple
format(argname, qualified_name(value)))
TypeError: type of argument "nodes"[0][0] must be a tuple; got str instead