mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Fix/semanal nested class scope

Open ines-bg opened this issue 1 month ago • 1 comments

Work in progress for issue https://github.com/python/mypy/issues/9991 . More work is needed, including tests and adjustments.

ines-bg avatar Dec 08 '25 08:12 ines-bg

Diff from mypy_primer, showing the effect of this PR on open source code:

pyinstrument (https://github.com/joerick/pyinstrument)
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 1.20.0+dev.0e7f383c63e0e2b6f29735b7bb9629abd0d728f2
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: : note: use --pdb to drop into pdb
- pyinstrument/vendor/appdirs.py:559: error: Module "ctypes" has no attribute "windll"  [attr-defined]
- pyinstrument/magic/_utils.py:73: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/magic/_utils.py:74: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/frame.py:160: error: Missing return statement  [return]
- pyinstrument/frame.py:165: error: Missing return statement  [return]
- pyinstrument/frame.py:220: error: Name "attributes" already defined on line 67  [no-redef]
- pyinstrument/frame.py:274: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/frame.py:277: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/frame.py:346: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/frame.py:348: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- pyinstrument/frame.py:352: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- pyinstrument/frame.py:394: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- pyinstrument/vendor/decorator.py:55: error: All conditional function variants must have identical signatures  [misc]
- pyinstrument/vendor/decorator.py:55: note: Original:
- pyinstrument/vendor/decorator.py:55: note:     def getfullargspec(func: object) -> FullArgSpec
- pyinstrument/vendor/decorator.py:55: note: Redefinition:
- pyinstrument/vendor/decorator.py:55: note:     def getfullargspec(f: Any) -> Any
- pyinstrument/vendor/decorator.py:66: error: Incompatible redefinition (redefinition with type "Callable[[Any], Any]", original type overloaded function)  [misc]
- pyinstrument/vendor/decorator.py:279: error: Module "contextlib" has no attribute "GeneratorContextManager"; maybe "_GeneratorContextManager", "_GeneratorContextManagerBase", or "_AsyncGeneratorContextManager"?  [attr-defined]
- pyinstrument/vendor/decorator.py:279: error: Name "_GeneratorContextManager" already defined (possibly by an import)  [no-redef]
- pyinstrument/vendor/decorator.py:295: error: Cannot assign to a method  [method-assign]
- pyinstrument/vendor/decorator.py:295: error: Incompatible types in assignment (expression has type "def __init__(self: Any, g: Any, *a: Any, **k: Any) -> Any", variable has type "Callable[[_GeneratorContextManagerBase[Generator[Any, None, None]], Callable[..., Generator[Any, None, None]], tuple[Any, ...], dict[str, Any]], None]")  [assignment]
- pyinstrument/vendor/decorator.py:301: error: Cannot assign to a method  [method-assign]
- pyinstrument/vendor/decorator.py:301: error: Incompatible types in assignment (expression has type "def __init__(self: Any, g: Any, *a: Any, **k: Any) -> Any", variable has type "Callable[[_GeneratorContextManagerBase[Generator[Any, None, None]], Callable[..., Generator[Any, None, None]], tuple[Any, ...], dict[str, Any]], None]")  [assignment]
- pyinstrument/low_level/pyi_timing_thread_python.py:18: error: Need type annotation for "subscribers" (hint: "subscribers: list[<type>] = ...")  [var-annotated]
- pyinstrument/processors.py:90: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/stack_sampler.py:102: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/stack_sampler.py:312: error: Incompatible types in string interpolation (expression has type "int | None", placeholder has type "int | float | SupportsInt")  [str-format]
- pyinstrument/renderers/pstatsrenderer.py:50: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/renderers/pstatsrenderer.py:53: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/renderers/pstatsrenderer.py:54: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/renderers/pstatsrenderer.py:64: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/renderers/pstatsrenderer.py:66: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/renderers/pstatsrenderer.py:67: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
- pyinstrument/profiler.py:246: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/context_manager.py:40: error: Argument 1 to "Profiler" has incompatible type "**dict[str, Literal['enabled', 'disabled', 'strict'] | float | bool | None]"; expected "float"  [arg-type]
- pyinstrument/context_manager.py:40: error: Argument 1 to "Profiler" has incompatible type "**dict[str, Literal['enabled', 'disabled', 'strict'] | float | bool | None]"; expected "Literal['enabled', 'disabled', 'strict']"  [arg-type]
- pyinstrument/context_manager.py:40: error: Argument 1 to "Profiler" has incompatible type "**dict[str, Literal['enabled', 'disabled', 'strict'] | float | bool | None]"; expected "bool | None"  [arg-type]
- pyinstrument/context_manager.py:63: error: Argument 1 to "ProfileContext" has incompatible type "**dict[str, object]"; expected "float"  [arg-type]
- pyinstrument/context_manager.py:63: error: Argument 1 to "ProfileContext" has incompatible type "**dict[str, object]"; expected "Literal['enabled', 'disabled', 'strict']"  [arg-type]
- pyinstrument/context_manager.py:63: error: Argument 1 to "ProfileContext" has incompatible type "**dict[str, object]"; expected "bool | None"  [arg-type]
- pyinstrument/context_manager.py:63: error: Argument 1 to "ProfileContext" has incompatible type "**dict[str, object]"; expected "Renderer | None"  [arg-type]
- pyinstrument/context_manager.py:63: error: Argument 1 to "ProfileContext" has incompatible type "**dict[str, object]"; expected "str | None"  [arg-type]
- pyinstrument/context_manager.py:71: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/__main__.py:35: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- pyinstrument/__main__.py:270: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/__main__.py:275: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/__main__.py:587: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/magic/magic.py:11: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/magic/magic.py:54: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/magic/magic.py:289: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/middleware.py:37: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/middleware.py:107: error: Unused "type: ignore" comment  [unused-ignore]
- pyinstrument/middleware.py:111: error: Unused "type: ignore" comment  [unused-ignore]
+ Traceback (most recent call last):
+   File "", line 7, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 127, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 211, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 313, in build
+     result = build_inner(
+   File "/build.py", line 410, in build_inner
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 3170, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3576, in process_graph
+     done, still_working, results = manager.wait_for_done(graph)
+   File "/build.py", line 1063, in wait_for_done
+     process_stale_scc(graph, next_scc, self)
+   File "/build.py", line 3733, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 94, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 232, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(
+   File "/semanal_main.py", line 409, in semantic_analyze_target
+     analyzer.refresh_partial(
+   File "/semanal.py", line 701, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 719, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 7601, in accept
+     node.accept(self)
+     ~~~~~~~~~~~^^^^^^
+   File "/nodes.py", line 1487, in accept
+     return visitor.visit_class_def(self)
+            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+   File "/semanal.py", line 1828, in visit_class_def
+     if self.scope.active_function() is not None:
+        ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AttributeError: 'Scope' object has no attribute 'active_function'

CPython (Argument Clinic) (https://github.com/python/cpython)
- Tools/clinic/libclinic/clanguage.py:67: error: Module has no attribute "cpp"  [attr-defined]
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 1.20.0+dev.0e7f383c63e0e2b6f29735b7bb9629abd0d728f2
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 7, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 127, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 211, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 313, in build
+     result = build_inner(
+   File "/build.py", line 410, in build_inner
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 3170, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3576, in process_graph
+     done, still_working, results = manager.wait_for_done(graph)
+   File "/build.py", line 1063, in wait_for_done
+     process_stale_scc(graph, next_scc, self)
+   File "/build.py", line 3733, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 94, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 232, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(
+   File "/semanal_main.py", line 409, in semantic_analyze_target
+     analyzer.refresh_partial(
+   File "/semanal.py", line 701, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 719, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 7601, in accept
+     node.accept(self)
+     ~~~~~~~~~~~^^^^^^
+   File "/nodes.py", line 1487, in accept
+     return visitor.visit_class_def(self)
+            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+   File "/semanal.py", line 1828, in visit_class_def
+     if self.scope.active_function() is not None:
+        ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AttributeError: 'Scope' object has no attribute 'active_function'

beartype (https://github.com/beartype/beartype)
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 1.20.0+dev.0e7f383c63e0e2b6f29735b7bb9629abd0d728f2
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 7, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 127, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 211, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 313, in build
+     result = build_inner(
+   File "/build.py", line 410, in build_inner
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 3170, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3576, in process_graph
+     done, still_working, results = manager.wait_for_done(graph)
+   File "/build.py", line 1063, in wait_for_done
+     process_stale_scc(graph, next_scc, self)
+   File "/build.py", line 3733, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 94, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 232, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(
+   File "/semanal_main.py", line 409, in semantic_analyze_target
+     analyzer.refresh_partial(
+   File "/semanal.py", line 701, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 719, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 7601, in accept
+     node.accept(self)
+     ~~~~~~~~~~~^^^^^^
+   File "/nodes.py", line 1487, in accept
+     return visitor.visit_class_def(self)
+            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+   File "/semanal.py", line 1828, in visit_class_def
+     if self.scope.active_function() is not None:
+        ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AttributeError: 'Scope' object has no attribute 'active_function'
- beartype/typing/__init__.py:250: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:268: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:275: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:285: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:306: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:320: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/kind/maplike/utilmaptest.py:97: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_cave/_cavefast.py:181: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_cave/_cavefast.py:1213: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/text/utiltextjoin.py:123: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncwrap.py:349: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncframe.py:573: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfunccodeobj.py:244: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfunccodeobj.py:306: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/error/utilerrwarn.py:60: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/error/utilerrwarn.py:83: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/api/external/utilclick.py:104: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/api/external/utilclick.py:111: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/module/utilmodtest.py:21: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/kind/maplike/utilmapfrozen.py:155: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncmake.py:27: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncmake.py:310: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncmake.py:315: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncmake.py:357: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncmake.py:358: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep649.py:153: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep649.py:229: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep649.py:567: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncscope.py:99: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/arg/utilfuncargiter.py:404: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/arg/utilfuncargiter.py:419: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/arg/utilfuncargiter.py:424: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/utilhintfactory.py:46: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/api/external/utilnumpy.py:253: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_conf/_confoverrides.py:89: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep646692.py:369: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep585.py:373: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep557.py:81: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep544.py:428: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep544.py:481: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep544.py:488: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484604.py:150: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484604.py:278: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484604.py:283: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/pep484585.py:61: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484/pep484union.py:87: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484/pep484generic.py:149: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484/pep484generic.py:177: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/cls/pep/clspep3119.py:90: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/cls/pep/clspep3119.py:277: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/cls/pep/clspep3119.py:508: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/cls/pep/clspep3119.py:649: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/cls/pep/clspep3119.py:874: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/cls/pep/clspep3119.py:994: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_conf/confmain.py:1386: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/hint/hintsane.py:294: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/utilpepget.py:793: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/utilpepget.py:927: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/pep484585func.py:108: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_decor/_nontype/_decordescriptor.py:92: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_decor/_nontype/_decordescriptor.py:143: error: Unused "type: ignore[assignment, union-attr]" comment  [unused-ignore]
- beartype/_decor/_nontype/_decordescriptor.py:144: error: Unused "type: ignore[assignment, union-attr]" comment  [unused-ignore]
- beartype/_decor/_nontype/_decordescriptor.py:145: error: Unused "type: ignore[assignment, union-attr]" comment  [unused-ignore]
- beartype/_decor/_nontype/_decordescriptor.py:263: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_redrecurse.py:228: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_pep/pep484585/redpep484585itemsview.py:70: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_pep/pep484585/redpep484585itemsview.py:80: error: Unused "type: ignore[assignment]" comment  [unused-ignore]
- beartype/_check/pep/checkpep484typevar.py:167: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_nonpep/api/redapinumpy.py:101: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_nonpep/api/redapinumpy.py:189: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_nonpep/api/redapinumpy.py:239: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:297: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:371: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:392: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:448: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:518: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:541: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:572: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:573: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:608: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:712: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:713: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:737: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:61: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:265: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:270: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:298: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:327: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:380: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:443: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmeta.py:543: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefabc.py:112: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefabc.py:218: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/reference/fwdrefmake.py:91: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:360: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:361: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:362: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:363: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:364: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:365: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:366: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:367: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:368: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:369: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:370: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:371: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:372: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/metadecor.py:373: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep612.py:88: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep612.py:94: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep612.py:165: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep612.py:225: error: Unused "type: ignore[attr-defined]" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep612.py:258: error: Unused "type: ignore[attr-defined]" comment  [unused-ignore]
- beartype/_decor/_type/_pep/_decortypepep557.py:313: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/fwdresolve.py:233: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/fwdresolve.py:259: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/forward/fwdresolve.py:524: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_pep/redpep484612646.py:216: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_pep/redpep484612646.py:627: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_reduce/_pep/redpep484612646.py:1205: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_decor/_type/decortype.py:87: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_decor/_type/decortype.py:226: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_convcoerce.py:190: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/convert/_convcoerce.py:408: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/metadata/hint/hintsmeta.py:358: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/error/errcause.py:575: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/error/errmain.py:236: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/code/_pep/codepep484604.py:211: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/code/codemain.py:535: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/code/codemain.py:748: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/code/codemain.py:858: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/code/codemain.py:1216: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/checkmake.py:800: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_check/checkmake.py:879: error: Unused "type: ignore" comment  [unused-ignore]

... (truncated 64 lines) ...

com2ann (https://github.com/ilevkivskyi/com2ann)
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 1.20.0+dev.0e7f383c63e0e2b6f29735b7bb9629abd0d728f2
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 7, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 127, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 211, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 313, in build
+     result = build_inner(
+   File "/build.py", line 410, in build_inner
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 3170, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3576, in process_graph
+     done, still_working, results = manager.wait_for_done(graph)
+   File "/build.py", line 1063, in wait_for_done
+     process_stale_scc(graph, next_scc, self)
+   File "/build.py", line 3733, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 94, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 232, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(
+   File "/semanal_main.py", line 409, in semantic_analyze_target
+     analyzer.refresh_partial(
+   File "/semanal.py", line 701, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 719, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 7601, in accept
+     node.accept(self)
+     ~~~~~~~~~~~^^^^^^
+   File "/nodes.py", line 1487, in accept
+     return visitor.visit_class_def(self)
+            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+   File "/semanal.py", line 1828, in visit_class_def
+     if self.scope.active_function() is not None:
+        ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AttributeError: 'Scope' object has no attribute 'active_function'

dacite (https://github.com/konradhalas/dacite)
- dacite/data.py:2: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/data.py:4: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/config.py:8: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/types.py:5: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/types.py:47: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/types.py:62: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/types.py:110: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/dataclasses.py:17: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/dataclasses.py:18: error: Unused "type: ignore" comment  [unused-ignore]
- dacite/generics.py:10: error: Unused "type: ignore" comment  [unused-ignore]
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 1.20.0+dev.0e7f383c63e0e2b6f29735b7bb9629abd0d728f2
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 7, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 127, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 211, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 313, in build
+     result = build_inner(
+   File "/build.py", line 410, in build_inner
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 3170, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3576, in process_graph
+     done, still_working, results = manager.wait_for_done(graph)
+   File "/build.py", line 1063, in wait_for_done
+     process_stale_scc(graph, next_scc, self)
+   File "/build.py", line 3733, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 94, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 232, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(
+   File "/semanal_main.py", line 409, in semantic_analyze_target
+     analyzer.refresh_partial(
+   File "/semanal.py", line 701, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 719, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 7601, in accept
+     node.accept(self)
+     ~~~~~~~~~~~^^^^^^
+   File "/nodes.py", line 1487, in accept
+     return visitor.visit_class_def(self)
+            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+   File "/semanal.py", line 1828, in visit_class_def
+     if self.scope.active_function() is not None:
+        ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AttributeError: 'Scope' object has no attribute 'active_function'

spack (https://github.com/spack/spack)
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/python/mypy/issues
+ version: 1.20.0+dev.0e7f383c63e0e2b6f29735b7bb9629abd0d728f2
+ ...venv/lib/python3.14/site-packages/mypy/typeshed/stdlib/typing.pyi:146: : note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+   File "", line 7, in <module>
+     sys.exit(console_entry())
+   File "/__main__.py", line 15, in console_entry
+     main()
+   File "/main.py", line 127, in main
+     res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+   File "/main.py", line 211, in run_build
+     res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+   File "/build.py", line 313, in build
+     result = build_inner(
+   File "/build.py", line 410, in build_inner
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 3170, in dispatch
+     process_graph(graph, manager)
+   File "/build.py", line 3576, in process_graph
+     done, still_working, results = manager.wait_for_done(graph)
+   File "/build.py", line 1063, in wait_for_done
+     process_stale_scc(graph, next_scc, self)
+   File "/build.py", line 3733, in process_stale_scc
+     mypy.semanal_main.semantic_analysis_for_scc(graph, scc, manager.errors)
+   File "/semanal_main.py", line 94, in semantic_analysis_for_scc
+     process_top_levels(graph, scc, patches)
+   File "/semanal_main.py", line 232, in process_top_levels
+     deferred, incomplete, progress = semantic_analyze_target(
+   File "/semanal_main.py", line 409, in semantic_analyze_target
+     analyzer.refresh_partial(
+   File "/semanal.py", line 701, in refresh_partial
+     self.refresh_top_level(node)
+   File "/semanal.py", line 719, in refresh_top_level
+     self.accept(d)
+   File "/semanal.py", line 7601, in accept
+     node.accept(self)
+     ~~~~~~~~~~~^^^^^^
+   File "/nodes.py", line 1487, in accept
+     return visitor.visit_class_def(self)
+            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+   File "/semanal.py", line 1828, in visit_class_def
+     if self.scope.active_function() is not None:
+        ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ AttributeError: 'Scope' object has no attribute 'active_function'
- lib/spack/spack/util/elf.py:220: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:225: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:226: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:228: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:229: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:230: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:233: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:234: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/util/elf.py:235: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/llnl/util/lang.py:441: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/llnl/util/lang.py:777: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/llnl/util/lang.py:993: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/llnl/util/filesystem.py:3000: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/operating_systems/windows_os.py:52: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/config.py:493: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/config.py:522: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/fetch_strategy.py:393: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/fetch_strategy.py:523: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/fetch_strategy.py:834: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/fetch_strategy.py:835: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/fetch_strategy.py:836: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/patch.py:187: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/version/git_ref_lookup.py:46: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/spec.py:1549: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/spec.py:1581: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/spec.py:3603: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/stage.py:843: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/environment/list.py:182: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/externals.py:257: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/externals.py:291: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/database.py:1063: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/database.py:1764: error: Unused "type: ignore[call-overload]" comment  [unused-ignore]
- lib/spack/spack/install_test.py:259: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/install_test.py:409: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/install_test.py:514: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/install_test.py:830: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/build_environment.py:398: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/build_environment.py:561: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/installer.py:226: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/installer.py:2398: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/installer.py:2637: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/solver/asp.py:1425: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/solver/asp.py:2982: error: Unused "type: ignore[call-overload]" comment  [unused-ignore]
- lib/spack/spack/solver/asp.py:3536: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3539: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3542: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/test/versions.py:672: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/test/spec_semantics.py:1981: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/test/sbang.py:58: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/externals.py:108: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/test/externals.py:127: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/test/entry_points.py:105: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/config.py:1803: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/graph.py:445: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/graph.py:446: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/graph.py:506: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/unit_test.py:17: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/cmd/python.py:94: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/cmd/create.py:754: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/buildcache_prune.py:233: error: Redundant cast to "URLBuildcacheEntry"  [redundant-cast]
- lib/spack/spack/test/cmd/versions.py:44: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code  [unused-ignore]
- lib/spack/spack/test/cmd/edit.py:56: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:35: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:36: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:53: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:54: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:58: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:59: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:60: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:71: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:72: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:76: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:77: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:78: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:383: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:460: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:461: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/binary_distribution.py:564: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/binary_distribution.py:1252: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/ci/common.py:221: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/ci/common.py:239: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/spec_yaml.py:555: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/test/repo.py:119: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code  [unused-ignore]
- lib/spack/spack/test/repo.py:217: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code  [unused-ignore]
- lib/spack/spack/test/repo.py:220: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code  [unused-ignore]
- lib/spack/spack/cmd/repo.py:269: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/repo.py:439: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/repo.py:452: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/external.py:144: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/config.py:500: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/checksum.py:90: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/checksum.py:100: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/checksum.py:113: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/buildcache.py:435: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/buildcache.py:860: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/buildcache.py:861: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/buildcache.py:862: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/env.py:373: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/ci.py:851: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/ci.py:852: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]

optuna (https://github.com/optuna/optuna)
- optuna/_gp/gp.py:177: error: Unused "type: ignore" comment  [unused-ignore]
- optuna/_gp/gp.py:278: error: Unused "type: ignore" comment  [unused-ignore]

... (truncated 12415 lines) ...```

github-actions[bot] avatar Dec 08 '25 08:12 github-actions[bot]