mypy
mypy copied to clipboard
Enhance type resolution for instance variables
Added logic to resolve types for instance variables and handle partial types.
(Explain how this PR changes mypy.)
Diff from mypy_primer, showing the effect of this PR on open source code:
beartype (https://github.com/beartype/beartype)
+ beartype/_util/ast/utilastmunge.py:105: 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.68a19e38ffa59f1e4b7d79d802722ee53408e08a
+ beartype/_util/ast/utilastmunge.py:105: : 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 213, in build
+ result = _build(
+ File "/build.py", line 292, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2931, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3322, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 915, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3460, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2322, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 524, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 971, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1192, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1196, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1231, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1504, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1723, in accept
+ return visitor.visit_for_stmt(self)
+ File "/checker.py", line 5318, in visit_for_stmt
+ self.accept_loop(
+ File "/checker.py", line 667, in accept_loop
+ self.accept(body)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1629, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3180, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3333, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
- 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/_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: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/_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/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/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: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: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]
- beartype/_check/metadata/metadecor.py:333: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:334: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:335: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:336: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:337: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:338: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:339: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:340: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:341: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:342: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:343: 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/bite/_infermain.py:272: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/hint/hintsmeta.py:358: error: Unused "type: ignore" comment [unused-ignore]
... (truncated 56 lines) ...
pyinstrument (https://github.com/joerick/pyinstrument)
+ pyinstrument/magic/_utils.py:73: 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.68a19e38ffa59f1e4b7d79d802722ee53408e08a
+ pyinstrument/magic/_utils.py:73: : note: use --pdb to drop into pdb
- 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 "Callable[[Any, Any, VarArg(Any), KwArg(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 "Callable[[Any, Any, VarArg(Any), KwArg(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 213, in build
+ result = _build(
+ File "/build.py", line 292, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2931, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3322, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 915, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3460, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2322, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 524, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1445, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2666, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 971, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1192, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1196, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1231, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1504, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1629, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3180, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3333, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
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]
+ dacite/frozen_dict.py:31: 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.68a19e38ffa59f1e4b7d79d802722ee53408e08a
+ dacite/frozen_dict.py:31: : 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 213, in build
+ result = _build(
+ File "/build.py", line 292, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2931, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3322, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 915, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3460, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2322, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 524, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1445, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2666, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 971, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1192, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1196, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1231, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1504, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1810, in accept
+ return visitor.visit_if_stmt(self)
+ File "/checker.py", line 5058, in visit_if_stmt
+ self.accept(b)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1629, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3180, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3333, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
spack (https://github.com/spack/spack)
+ .../projects/spack/lib/spack/spack/util/unparse/unparser.py:175: 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.68a19e38ffa59f1e4b7d79d802722ee53408e08a
+ .../projects/spack/lib/spack/spack/util/unparse/unparser.py:175: : 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 213, in build
+ result = _build(
+ File "/build.py", line 292, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2931, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3322, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 915, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3460, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2322, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 524, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1445, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2666, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1127, in accept
+ return visitor.visit_decorator(self)
+ File "/checker.py", line 5446, in visit_decorator
+ self.visit_decorator_inner(e)
+ File "/checker.py", line 5453, in visit_decorator_inner
+ self.check_func_item(e.func, name=e.func.name, allow_empty=allow_empty)
+ File "/checker.py", line 1231, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1504, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3127, in visit_block
+ self.accept(s)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1629, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3180, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3333, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
- 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:467: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/config.py:490: 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:1533: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/spec.py:1565: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/spec.py:3571: 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/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/binary_distribution.py:2200: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/installer.py:221: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/installer.py:2376: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/installer.py:2612: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/solver/asp.py:1420: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/solver/asp.py:2999: error: Unused "type: ignore[call-overload]" comment [unused-ignore]
- lib/spack/spack/solver/asp.py:3540: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3543: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3546: 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/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:1604: 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:231: 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/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/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/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: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:854: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/cmd/ci.py:855: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
CPython (Argument Clinic) (https://github.com/python/cpython)
+ Tools/clinic/libclinic/cpp.py:45: 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.68a19e38ffa59f1e4b7d79d802722ee53408e08a
+ Tools/clinic/libclinic/cpp.py:45: : 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 213, in build
+ result = _build(
+ File "/build.py", line 292, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2931, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3322, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 915, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3460, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2322, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 524, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1445, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2666, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 635, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1542, in accept
... (truncated 15749 lines) ...```
Diff from mypy_primer, showing the effect of this PR on open source code:
beartype (https://github.com/beartype/beartype)
+ beartype/_util/ast/utilastmunge.py:105: 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.9f126bd8eefaa23c930bc5fccb1a27e732985ca9
+ beartype/_util/ast/utilastmunge.py:105: : 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 215, in build
+ result = _build(
+ File "/build.py", line 294, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2945, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3336, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 918, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3474, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2333, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 532, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 994, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1200, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1204, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1239, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1512, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1753, in accept
+ return visitor.visit_for_stmt(self)
+ File "/checker.py", line 5361, in visit_for_stmt
+ self.accept_loop(
+ File "/checker.py", line 675, in accept_loop
+ self.accept(body)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1659, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3214, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3377, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
- 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/_data/typing/datatyping.py:671: error: Name "beartype._check.forward.reference.fwdrefabc.BeartypeForwardRefABC" is not defined [name-defined]
- 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: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/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:229: 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:332: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:333: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:334: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:335: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:336: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:337: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:338: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:339: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:340: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:341: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:342: error: Unused "type: ignore" comment [unused-ignore]
- beartype/_check/metadata/metadecor.py:343: 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]
... (truncated 65 lines) ...
pyinstrument (https://github.com/joerick/pyinstrument)
+ pyinstrument/magic/_utils.py:73: 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.9f126bd8eefaa23c930bc5fccb1a27e732985ca9
+ pyinstrument/magic/_utils.py:73: : note: use --pdb to drop into pdb
- 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 215, in build
+ result = _build(
+ File "/build.py", line 294, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2945, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3336, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 918, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3474, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2333, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 532, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1477, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2689, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 994, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1200, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1204, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1239, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1512, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1659, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3214, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3377, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
CPython (Argument Clinic) (https://github.com/python/cpython)
- Tools/clinic/libclinic/clanguage.py:67: error: Module has no attribute "cpp" [attr-defined]
+ Tools/clinic/libclinic/cpp.py:45: 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.9f126bd8eefaa23c930bc5fccb1a27e732985ca9
+ Tools/clinic/libclinic/cpp.py:45: : 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 215, in build
+ result = _build(
+ File "/build.py", line 294, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2945, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3336, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 918, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3474, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2333, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 532, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1477, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2689, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 994, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1200, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1204, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1239, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1512, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1659, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3214, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3377, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'TypeAliasType' object has no attribute 'type'
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]
+ dacite/frozen_dict.py:31: 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.9f126bd8eefaa23c930bc5fccb1a27e732985ca9
+ dacite/frozen_dict.py:31: : 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 215, in build
+ result = _build(
+ File "/build.py", line 294, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2945, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3336, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 918, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3474, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2333, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 532, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1477, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2689, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 994, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1200, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1204, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1239, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1512, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1840, in accept
+ return visitor.visit_if_stmt(self)
+ File "/checker.py", line 5097, in visit_if_stmt
+ self.accept(b)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1659, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3214, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3377, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
spack (https://github.com/spack/spack)
+ .../projects/spack/lib/spack/spack/util/unparse/unparser.py:175: 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.9f126bd8eefaa23c930bc5fccb1a27e732985ca9
+ .../projects/spack/lib/spack/spack/util/unparse/unparser.py:175: : 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 215, in build
+ result = _build(
+ File "/build.py", line 294, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 2945, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3336, in process_graph
+ done, still_working = manager.wait_for_done(graph)
+ File "/build.py", line 918, in wait_for_done
+ process_stale_scc(graph, next_scc, self)
+ File "/build.py", line 3474, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2333, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 532, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1477, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2689, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1154, in accept
+ return visitor.visit_decorator(self)
+ File "/checker.py", line 5489, in visit_decorator
+ self.visit_decorator_inner(e)
+ File "/checker.py", line 5496, in visit_decorator_inner
+ self.check_func_item(e.func, name=e.func.name, allow_empty=allow_empty)
+ File "/checker.py", line 1239, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1512, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1572, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3161, in visit_block
+ self.accept(s)
+ File "/checker.py", line 643, in accept
+ stmt.accept(self)
+ ~~~~~~~~~~~^^^^^^
+ File "/nodes.py", line 1659, in accept
+ return visitor.visit_assignment_stmt(self)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
+ File "/checker.py", line 3214, in visit_assignment_stmt
+ self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)
+ ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ File "/checker.py", line 3377, in check_assignment
+ elif lvalue_type.type is not None and isinstance(proper_rvalue_type, Instance):
+ ^^^^^^^^^^^^^^^^
+ AttributeError: 'AnyType' object has no attribute 'type'
- 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:491: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/config.py:520: 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:522: 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:1548: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/spec.py:1580: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/spec.py:3602: 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/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:221: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/installer.py:2408: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/installer.py:2647: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/solver/asp.py:1431: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3020: error: Unused "type: ignore[call-overload]" comment [unused-ignore]
- lib/spack/spack/solver/asp.py:3576: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3579: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
- lib/spack/spack/solver/asp.py:3582: 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:231: 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:561: error: Unused "type: ignore" comment [unused-ignore]
- lib/spack/spack/test/binary_distribution.py:1246: 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/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/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:499: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
... (truncated 15257 lines) ...```