(venv) PS C:\path\to\project> dmypy run -- --strict --follow-imports error .
Restarting: configuration changed
Daemon stopped
Daemon started
Daemon crashed!
Traceback (most recent call last):
File "mypy\dmypy_server.py", line 223, in serve
File "mypy\dmypy_server.py", line 266, in run_command
File "mypy\dmypy_server.py", line 325, in cmd_run
File "mypy\dmypy_server.py", line 382, in check
File "mypy\dmypy_server.py", line 412, in initialize_fine_grained
File "mypy\build.py", line 180, in build
File "mypy\build.py", line 252, in _build
File "mypy\build.py", line 2626, in dispatch
File "mypy\build.py", line 2949, in process_graph
File "mypy\build.py", line 3041, in process_stale_scc
File "mypy\semanal_main.py", line 78, in semantic_analysis_for_scc
File "mypy\semanal_main.py", line 199, in process_top_levels
File "mypy\semanal_main.py", line 326, in semantic_analyze_target
File "mypy\semanal.py", line 357, in refresh_partial
File "mypy\semanal.py", line 368, in refresh_top_level
File "mypy\semanal.py", line 4693, in accept
File "mypy\errors.py", line 720, in report_internal_error
File "mypy\semanal.py", line 4691, in accept
File "mypy\nodes.py", line 939, in accept
File "mypy\semanal.py", line 1011, in visit_class_def
File "mypy\semanal.py", line 1088, in analyze_class
File "mypy\semanal.py", line 1097, in analyze_class_body_common
File "mypy\semanal.py", line 1157, in apply_class_plugin_hooks
File "c:\path\to\project\venv\lib\site-packages\flasksqlamypy\hooks.py", line 72, in model_base_class_hook
add_query_to_cls(ctx)
File "c:\path\to\project\venv\lib\site-packages\flasksqlamypy\utils.py", line 332, in add_query_to_cls
query_type = get_query_class_from_base(ctx)
File "c:\path\to\project\venv\lib\site-packages\flasksqlamypy\utils.py", line 313, in get_query_class_from_base
if "query_class" in expr.node.names: # type: ignore
AttributeError: 'Var' object has no attribute 'names'
(venv) PS C:\path\to\project> dmypy run -- --strict --follow-imports error .
Daemon crashed!
Traceback (most recent call last):
File "mypy\dmypy_server.py", line 221, in serve
File "mypy\dmypy_server.py", line 264, in run_command
File "mypy\dmypy_server.py", line 323, in cmd_run
File "mypy\dmypy_server.py", line 383, in check
File "mypy\dmypy_server.py", line 511, in fine_grained_increment
File "mypy\server\update.py", line 243, in update
File "mypy\server\update.py", line 309, in update_one
File "mypy\server\update.py", line 374, in update_module
File "mypy\server\update.py", line 590, in update_module_isolated
File "mypy\semanal_main.py", line 78, in semantic_analysis_for_scc
File "mypy\semanal_main.py", line 199, in process_top_levels
File "mypy\semanal_main.py", line 326, in semantic_analyze_target
File "mypy\semanal.py", line 357, in refresh_partial
File "mypy\semanal.py", line 368, in refresh_top_level
File "mypy\semanal.py", line 4702, in accept
File "mypy\errors.py", line 741, in report_internal_error
File "mypy\semanal.py", line 4700, in accept
File "mypy\nodes.py", line 1196, in accept
File "mypy\semanal.py", line 3255, in visit_if_stmt
File "mypy\semanal.py", line 3170, in visit_block
File "mypy\semanal.py", line 4702, in accept
File "mypy\errors.py", line 741, in report_internal_error
File "mypy\semanal.py", line 4700, in accept
File "mypy\nodes.py", line 1063, in accept
File "mypy\semanal.py", line 1943, in visit_assignment_stmt
File "mypy\semanal.py", line 2194, in apply_dynamic_class_hook
File "c:\path\to\project\venv\lib\site-packages\flasksqlamypy\hooks.py", line 38, in declarative_base_hook
info = create_dynamic_class(
File "c:\path\to\project\venv\lib\site-packages\flasksqlamypy\utils.py", line 204, in create_dynamic_class
add_query_cls_var(ctx.api, info)
File "c:\path\to\project\venv\lib\site-packages\flasksqlamypy\utils.py", line 145, in add_query_cls_var
assert sym is not None
AssertionError