Traceback (most recent call last):


 "/Users/user/.local/share/virtualenvs/my_project/bin/pylint", line 8, in <module>

sys.exit(run_pylint())


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/__init__.py", line 22, in run_pylint

PylintRun(sys.argv[1:])


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/lint/run.py", line 344, in __init__

linter.check(args)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/lint/pylinter.py", line 871, in check

self.get_ast, self._iterate_file_descrs(files_or_modules)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/lint/pylinter.py", line 904, in _check_files

self._check_file(get_ast, check_astroid_module, name, filepath, modname)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/lint/pylinter.py", line 930, in _check_file

check_astroid_module(ast_node)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/lint/pylinter.py", line 1063, in check_astroid_module

ast_node, walker, rawcheckers, tokencheckers


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/lint/pylinter.py", line 1107, in _check_astroid_module

walker.walk(ast_node)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/utils/ast_walker.py", line 75, in walk

self.walk(child)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/utils/ast_walker.py", line 75, in walk

self.walk(child)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/utils/ast_walker.py", line 75, in walk

self.walk(child)

[Previous line repeated 1 more times]


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/utils/ast_walker.py", line 72, in walk

callback(astroid)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/checkers/variables.py", line 1019, in visit_name

self._check_late_binding_closure(node, defnode)


 "/Users/user/.local/share/virtualenvs/my_project/lib/python3.6/site-packages/pylint/checkers/variables.py", line 1722, in _check_late_binding_closure

maybe_for = maybe_for.parent
AttributeError: 'NoneType' object has no attribute 'parent'

Traceback (most recent call last):


 "mypy/semanal.py", line 4835, in accept


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


 "mypy/semanal.py", line 1048, in visit_class_def


 "mypy/semanal.py", line 1125, in analyze_class


 "mypy/semanal.py", line 1134, in analyze_class_body_common


 "mypy/semanal.py", line 1194, in apply_class_plugin_hooks


 "(...)/test_sqlalchemy/venv/lib/python3.9/site-packages/sqlalchemy/ext/mypy/plugin.py", line 173, in _base_cls_hook

decl_class._scan_declarative_assignments_and_apply_types(ctx.cls, ctx.api)


 "(...)/test_sqlalchemy/venv/lib/python3.9/site-packages/sqlalchemy/ext/mypy/decl_class.py", line 125, in _scan_declarative_assignments_and_apply_types

_scan_declarative_decorator_stmt(cls, api, stmt, cls_metadata)


 "(...)/test_sqlalchemy/venv/lib/python3.9/site-packages/sqlalchemy/ext/mypy/decl_class.py", line 163, in _scan_declarative_decorator_stmt

if names._type_id_for_named_node(dec) is names.DECLARED_ATTR:


 "(...)/test_sqlalchemy/venv/lib/python3.9/site-packages/sqlalchemy/ext/mypy/names.py", line 187, in _type_id_for_named_node

type_id, fullnames = _lookup.get(node.name, (None, None))
AttributeError: 'CallExpr' object has no attribute 'name'
