Skip to content

Conversation

BobTheBuidler
Copy link
Contributor

@BobTheBuidler BobTheBuidler commented Oct 2, 2025

I added a new class ArgKinds that caches .count and .index

Hopefully this should speed up mypyc compilation a little bit, and in any case it lets us cleanup the codebase slightly

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Oct 2, 2025

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

git-revise (https://github.com/mystor/git-revise)
- gitrevise/utils.py:145: error: Function is missing a return type annotation  [no-untyped-def]
- gitrevise/utils.py:198: error: Returning Any from function declared to return "bytes"  [no-any-return]
- gitrevise/utils.py:201: error: Function is missing a return type annotation  [no-untyped-def]
+ gitrevise/merge.py: 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.19.0+dev.dfb3a7328bb9a5b6ecc129f3712ec1627ece7af7
+ gitrevise/merge.py: : 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 196, in build
+     result = _build(
+   File "/build.py", line 272, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2880, in dispatch
+     graph = load_graph(sources, manager)
+   File "/build.py", line 3066, in load_graph
+     st = State(
+   File "/build.py", line 2000, in __init__
+     self.parse_file(temporary=temporary)
+   File "/build.py", line 2134, in parse_file
+     with self.wrap_context():
+   File "/opt/hostedtoolcache/Python/3.13.7/x64/lib/python3.13/contextlib.py", line 162, in __exit__
+     self.gen.throw(value)
+   File "/build.py", line 2055, in wrap_context
+     yield
+   File "/build.py", line 2172, in parse_file
+     self.tree = manager.parse_file(
+                 ~~~~~~~~~~~~~~~~~~^
+         self.id,
+         ^^^^^^^^
+     ...<3 lines>...
+         options=self.options,
+         ^^^^^^^^^^^^^^^^^^^^^
+     )
+     ^
+   File "/build.py", line 851, in parse_file
+     tree = parse(source, path, id, self.errors, options=options)
+   File "/parse.py", line 27, in parse
+     tree = mypy.fastparse.parse(source, fnam=fnam, module=module, errors=errors, options=options)
+   File "/fastparse.py", line 247, in parse
+     ).visit(ast)
+       ~~~~~^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 907, in visit_Module
+     body = self.fix_function_overloads(self.translate_stmt_list(mod.body, ismodule=True))
+                                        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 920, in visit_FunctionDef
+     return self.do_func_def(n)
+            ~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 1057, in do_func_def
+     body = self.as_required_block(n.body, can_strip=True, is_coroutine=is_coroutine)
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1472, in visit_Expr
+     value = self.visit(n.value)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1635, in visit_Call
+     arg_types = self.translate_expr_list(
+         [a.value if isinstance(a, Starred) else a for a in args] + [k.value for k in keywords]
+     )
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1680, in visit_JoinedStr
+     strs_to_join = ListExpr(self.translate_expr_list(n.values))
+                             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1710, in visit_FormattedValue
+     result_expression = CallExpr(
+         format_method, [val_exp, format_spec_exp], [ARG_POS, ARG_POS], [None, None]
+     )
+   File "/nodes.py", line 2291, in __init__
+     assert isinstance(arg_kinds, ArgKinds), type(arg_kinds)
+            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
+ AssertionError: <class 'list'>

mypy_primer (https://github.com/hauntsaninja/mypy_primer)
+ .../projects/mypy_primer/mypy_primer/git_utils.py: 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.19.0+dev.dfb3a7328bb9a5b6ecc129f3712ec1627ece7af7
+ .../projects/mypy_primer/mypy_primer/git_utils.py: : 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 196, in build
+     result = _build(
+   File "/build.py", line 272, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2880, in dispatch
+     graph = load_graph(sources, manager)
+   File "/build.py", line 3066, in load_graph
+     st = State(
+   File "/build.py", line 2000, in __init__
+     self.parse_file(temporary=temporary)
+   File "/build.py", line 2134, in parse_file
+     with self.wrap_context():
+   File "/opt/hostedtoolcache/Python/3.13.7/x64/lib/python3.13/contextlib.py", line 162, in __exit__
+     self.gen.throw(value)
+   File "/build.py", line 2055, in wrap_context
+     yield
+   File "/build.py", line 2172, in parse_file
+     self.tree = manager.parse_file(
+                 ~~~~~~~~~~~~~~~~~~^
+         self.id,
+         ^^^^^^^^
+     ...<3 lines>...
+         options=self.options,
+         ^^^^^^^^^^^^^^^^^^^^^
+     )
+     ^
+   File "/build.py", line 851, in parse_file
+     tree = parse(source, path, id, self.errors, options=options)
+   File "/parse.py", line 27, in parse
+     tree = mypy.fastparse.parse(source, fnam=fnam, module=module, errors=errors, options=options)
+   File "/fastparse.py", line 247, in parse
+     ).visit(ast)
+       ~~~~~^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 907, in visit_Module
+     body = self.fix_function_overloads(self.translate_stmt_list(mod.body, ismodule=True))
+                                        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 925, in visit_AsyncFunctionDef
+     return self.do_func_def(n, is_coroutine=True)
+            ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 1057, in do_func_def
+     body = self.as_required_block(n.body, can_strip=True, is_coroutine=is_coroutine)
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1426, in visit_Assert
+     node = AssertStmt(self.visit(n.test), self.visit(n.msg))
+                                           ~~~~~~~~~~^^^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1680, in visit_JoinedStr
+     strs_to_join = ListExpr(self.translate_expr_list(n.values))
+                             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1710, in visit_FormattedValue
+     result_expression = CallExpr(
+         format_method, [val_exp, format_spec_exp], [ARG_POS, ARG_POS], [None, None]
+     )
+   File "/nodes.py", line 2291, in __init__
+     assert isinstance(arg_kinds, ArgKinds), type(arg_kinds)
+            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
+ AssertionError: <class 'list'>

beartype (https://github.com/beartype/beartype)
+ beartype/__init__.py: 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.19.0+dev.dfb3a7328bb9a5b6ecc129f3712ec1627ece7af7
+ beartype/__init__.py: : 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 196, in build
+     result = _build(
+   File "/build.py", line 272, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2880, in dispatch
+     graph = load_graph(sources, manager)
+   File "/build.py", line 3066, in load_graph
+     st = State(
+   File "/build.py", line 2000, in __init__
+     self.parse_file(temporary=temporary)
+   File "/build.py", line 2134, in parse_file
+     with self.wrap_context():
+   File "/opt/hostedtoolcache/Python/3.13.7/x64/lib/python3.13/contextlib.py", line 162, in __exit__
+     self.gen.throw(value)
+   File "/build.py", line 2055, in wrap_context
+     yield
+   File "/build.py", line 2172, in parse_file
+     self.tree = manager.parse_file(
+                 ~~~~~~~~~~~~~~~~~~^
+         self.id,
+         ^^^^^^^^
+     ...<3 lines>...
+         options=self.options,
+         ^^^^^^^^^^^^^^^^^^^^^
+     )
+     ^
+   File "/build.py", line 851, in parse_file
+     tree = parse(source, path, id, self.errors, options=options)
+   File "/parse.py", line 27, in parse
+     tree = mypy.fastparse.parse(source, fnam=fnam, module=module, errors=errors, options=options)
+   File "/fastparse.py", line 247, in parse
+     ).visit(ast)
+       ~~~~~^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 907, in visit_Module
+     body = self.fix_function_overloads(self.translate_stmt_list(mod.body, ismodule=True))
+                                        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 920, in visit_FunctionDef
+     return self.do_func_def(n)
+            ~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 1057, in do_func_def
+     body = self.as_required_block(n.body, can_strip=True, is_coroutine=is_coroutine)
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1356, in visit_If
+     [self.visit(n.test)], [self.as_required_block(n.body)], self.as_block(n.orelse)
+                            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1356, in visit_If
+     [self.visit(n.test)], [self.as_required_block(n.body)], self.as_block(n.orelse)
+                            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1385, in visit_Raise
+     node = RaiseStmt(self.visit(n.exc), self.visit(n.cause))
+                      ~~~~~~~~~~^^^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1635, in visit_Call
+     arg_types = self.translate_expr_list(
+         [a.value if isinstance(a, Starred) else a for a in args] + [k.value for k in keywords]
+     )
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1680, in visit_JoinedStr
+     strs_to_join = ListExpr(self.translate_expr_list(n.values))
+                             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1710, in visit_FormattedValue
+     result_expression = CallExpr(
+         format_method, [val_exp, format_spec_exp], [ARG_POS, ARG_POS], [None, None]
+     )
+   File "/nodes.py", line 2291, in __init__
+     assert isinstance(arg_kinds, ArgKinds), type(arg_kinds)
+            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
+ AssertionError: <class 'list'>
- beartype/typing/__init__.py:222: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:234: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:252: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:259: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:290: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/typing/__init__.py:304: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/kind/maplike/utilmaptest.py:97: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_data/typing/datatyping.py:721: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_data/typing/datatyping.py:732: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/text/utiltextjoin.py:123: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfunccodeobj.py:245: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfunccodeobj.py:307: 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/kind/maplike/utilmapfrozen.py:155: 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/_conf/_confoverrides.py:89: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_conf/confmain.py:1386: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_decor/decormain.py:53: error: Unused "type: ignore[misc]" comment  [unused-ignore]
- beartype/_util/utilobjattr.py:127: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/module/utilmodtest.py:21: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/utilhintfactory.py:46: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncwrap.py:349: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/func/utilfuncscope.py:99: 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/func/utilfuncframe.py:573: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/api/external/utilnumpy.py:253: 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/bite/kind/inferthirdparty.py:125: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/bite/kind/inferthirdparty.py:134: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/bite/kind/inferthirdparty.py:138: error: Unused "type: ignore[misc, valid-type]" comment  [unused-ignore]
- beartype/bite/kind/inferthirdparty.py:144: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/bite/collection/infercollectionsabc.py:165: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/bite/collection/infercollectionsabc.py:822: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep649.py:229: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/vale/_is/_valeisoper.py:184: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/vale/_is/_valeisobj.py:138: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/vale/_is/_valeis.py:260: 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:76: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484604.py:301: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484604.py:309: 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: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/_check/metadata/hint/hintsane.py:294: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/vale/_is/_valeistype.py:122: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/vale/_is/_valeistype.py:325: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/utilpepget.py:765: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/utilpepget.py:899: 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/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/door/_cls/doormeta.py:169: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/door/_cls/doormeta.py:235: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:293: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:367: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:388: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:444: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:514: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:537: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:568: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:569: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:604: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:708: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:709: error: Unused "type: ignore" comment  [unused-ignore]
- beartype/_util/hint/pep/proposal/pep484585/generic/pep484585genget.py:733: 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: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/metadata/metadecor.py:332: error: Unused "type: ignore" comment  [unused-ignore]

... (truncated 81 lines) ...

bidict (https://github.com/jab/bidict)
+ bidict/_base.py: 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.19.0+dev.dfb3a7328bb9a5b6ecc129f3712ec1627ece7af7
+ bidict/_base.py: : 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 196, in build
+     result = _build(
+   File "/build.py", line 272, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2880, in dispatch
+     graph = load_graph(sources, manager)
+   File "/build.py", line 3066, in load_graph
+     st = State(
+   File "/build.py", line 2000, in __init__
+     self.parse_file(temporary=temporary)
+   File "/build.py", line 2134, in parse_file
+     with self.wrap_context():
+   File "/opt/hostedtoolcache/Python/3.13.7/x64/lib/python3.13/contextlib.py", line 162, in __exit__
+     self.gen.throw(value)
+   File "/build.py", line 2055, in wrap_context
+     yield
+   File "/build.py", line 2172, in parse_file
+     self.tree = manager.parse_file(
+                 ~~~~~~~~~~~~~~~~~~^
+         self.id,
+         ^^^^^^^^
+     ...<3 lines>...
+         options=self.options,
+         ^^^^^^^^^^^^^^^^^^^^^
+     )
+     ^
+   File "/build.py", line 851, in parse_file
+     tree = parse(source, path, id, self.errors, options=options)
+   File "/parse.py", line 27, in parse
+     tree = mypy.fastparse.parse(source, fnam=fnam, module=module, errors=errors, options=options)
+   File "/fastparse.py", line 247, in parse
+     ).visit(ast)
+       ~~~~~^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 907, in visit_Module
+     body = self.fix_function_overloads(self.translate_stmt_list(mod.body, ismodule=True))
+                                        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1199, in visit_ClassDef
+     self.as_required_block(n.body),
+     ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 920, in visit_FunctionDef
+     return self.do_func_def(n)
+            ~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 1057, in do_func_def
+     body = self.as_required_block(n.body, can_strip=True, is_coroutine=is_coroutine)
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1295, in visit_Assign
+     rvalue = self.visit(n.value)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1635, in visit_Call
+     arg_types = self.translate_expr_list(
+         [a.value if isinstance(a, Starred) else a for a in args] + [k.value for k in keywords]
+     )
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1680, in visit_JoinedStr
+     strs_to_join = ListExpr(self.translate_expr_list(n.values))
+                             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1710, in visit_FormattedValue
+     result_expression = CallExpr(
+         format_method, [val_exp, format_spec_exp], [ARG_POS, ARG_POS], [None, None]
+     )
+   File "/nodes.py", line 2291, in __init__
+     assert isinstance(arg_kinds, ArgKinds), type(arg_kinds)
+            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
+ AssertionError: <class 'list'>

spack (https://github.com/spack/spack)
- 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:462: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/config.py:485: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/fetch_strategy.py:392: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/fetch_strategy.py:520: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/fetch_strategy.py:832: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/fetch_strategy.py:833: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- 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/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:3554: error: Unused "type: ignore" comment  [unused-ignore]
- 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/database.py:1061: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/install_test.py:259: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/install_test.py:407: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/install_test.py:512: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/install_test.py:828: 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/binary_distribution.py:2185: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/installer.py:222: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/installer.py:2377: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/installer.py:2613: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/solver/asp.py:1398: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3615: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3618: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3621: 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:1980: 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/entry_points.py:105: 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:92: 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:169: error: Redundant cast to "URLBuildcacheEntry"  [redundant-cast]
- lib/spack/spack/test/cmd/versions.py:39: 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:34: 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:52: 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:57: 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:70: 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:75: 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:382: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/cmd/dev_build.py:459: 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/binary_distribution.py:560: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/binary_distribution.py:1245: error: Unused "type: ignore" comment  [unused-ignore]
- lib/spack/spack/test/repo.py:120: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code  [unused-ignore]
- lib/spack/spack/test/repo.py:218: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code  [unused-ignore]
- lib/spack/spack/test/repo.py:221: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code  [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/cmd/repo.py:256: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/repo.py:425: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/repo.py:438: 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:459: 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:429: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/buildcache.py:850: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/buildcache.py:851: 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:842: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
- lib/spack/spack/cmd/ci.py:843: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
+ .../projects/spack/lib/spack/spack/__init__.py: 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.19.0+dev.dfb3a7328bb9a5b6ecc129f3712ec1627ece7af7
+ .../projects/spack/lib/spack/spack/__init__.py: : 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 196, in build
+     result = _build(
+   File "/build.py", line 272, in _build
+     graph = dispatch(sources, manager, stdout)
+   File "/build.py", line 2880, in dispatch
+     graph = load_graph(sources, manager)
+   File "/build.py", line 3066, in load_graph
+     st = State(
+   File "/build.py", line 2000, in __init__
+     self.parse_file(temporary=temporary)
+   File "/build.py", line 2134, in parse_file
+     with self.wrap_context():
+   File "/opt/hostedtoolcache/Python/3.13.7/x64/lib/python3.13/contextlib.py", line 162, in __exit__
+     self.gen.throw(value)
+   File "/build.py", line 2055, in wrap_context
+     yield
+   File "/build.py", line 2172, in parse_file
+     self.tree = manager.parse_file(
+                 ~~~~~~~~~~~~~~~~~~^
+         self.id,
+         ^^^^^^^^
+     ...<3 lines>...
+         options=self.options,
+         ^^^^^^^^^^^^^^^^^^^^^
+     )
+     ^
+   File "/build.py", line 851, in parse_file
+     tree = parse(source, path, id, self.errors, options=options)
+   File "/parse.py", line 27, in parse
+     tree = mypy.fastparse.parse(source, fnam=fnam, module=module, errors=errors, options=options)
+   File "/fastparse.py", line 247, in parse
+     ).visit(ast)
+       ~~~~~^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 907, in visit_Module
+     body = self.fix_function_overloads(self.translate_stmt_list(mod.body, ismodule=True))
+                                        ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 920, in visit_FunctionDef
+     return self.do_func_def(n)
+            ~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 1057, in do_func_def
+     body = self.as_required_block(n.body, can_strip=True, is_coroutine=is_coroutine)
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1356, in visit_If
+     [self.visit(n.test)], [self.as_required_block(n.body)], self.as_block(n.orelse)
+                            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
+   File "/fastparse.py", line 630, in as_required_block
+     self.translate_stmt_list(stmts, can_strip=can_strip, is_coroutine=is_coroutine)
+     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/fastparse.py", line 515, in translate_stmt_list
+     node = self.visit(stmt)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1279, in visit_Return
+     node = ReturnStmt(self.visit(n.value))
+                       ~~~~~~~~~~^^^^^^^^^
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1680, in visit_JoinedStr
+     strs_to_join = ListExpr(self.translate_expr_list(n.values))
+                             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
+   File "/fastparse.py", line 459, in translate_expr_list
+     return cast(list[Expression], self.translate_opt_expr_list(l))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
+   File "/fastparse.py", line 454, in translate_opt_expr_list
+     exp = self.visit(e)
+   File "/fastparse.py", line 441, in visit
+     return visitor(node)
+   File "/fastparse.py", line 1710, in visit_FormattedValue
+     result_expression = CallExpr(
+         format_method, [val_exp, format_spec_exp], [ARG_POS, ARG_POS], [None, None]
+     )
+   File "/nodes.py", line 2291, in __init__
+     assert isinstance(arg_kinds, ArgKinds), type(arg_kinds)
+            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
+ AssertionError: <class 'list'>

psycopg (https://github.com/psycopg/psycopg)
- Warning: unused section(s) in pyproject.toml: module = ['polib']
- psycopg/psycopg/types/shapely.py:31: error: Unused "type: ignore" comment  [unused-ignore]
- psycopg/psycopg/types/shapely.py:32: error: Unused "type: ignore" comment  [unused-ignore]
- psycopg/psycopg/types/shapely.py:52: error: Returning Any from function declared to return "bytes | bytearray | memoryview[int] | None"  [no-any-return]
- psycopg/psycopg/types/shapely.py:57: error: Returning Any from function declared to return "bytes | bytearray | memoryview[int] | None"  [no-any-return]
- tests/test_dns.py:21: error: Cannot find implementation or library stub for module named "dns.rdtypes.IN.A"  [import-not-found]
- tests/test_dns.py:21: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
- tests/test_dns.py:21: error: Cannot find implementation or library stub for module named "dns.rdtypes.IN"  [import-not-found]
- tests/test_dns.py:21: error: Cannot find implementation or library stub for module named "dns.rdtypes"  [import-not-found]
- tests/test_dns.py:21: error: Cannot find implementation or library stub for module named "dns"  [import-not-found]
- tests/types/test_shapely.py:18: error: Unused "type: ignore" comment  [unused-ignore]
- tests/types/test_shapely.py:21: error: Unused "type: ignore" comment  [unused-ignore]
- tests/test_dns_srv.py:114: error: Cannot find implementation or library stub for module named "dns.exception"  [import-not-found]
- tests/test_dns_srv.py:115: error: Cannot find implementation or library stub for module named "dns.rdtypes.IN.A"  [import-not-found]
- tests/test_dns_srv.py:116: error: Cannot find implementation or library stub for module named "dns.rdtypes.IN.SRV"  [import-not-found]
+ psycopg/psycopg/crdb/connection.py: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build

... (truncated 22138 lines) ...```

@BobTheBuidler
Copy link
Contributor Author

I don't think I like this like I did originally. Will leave open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant