I think I'm out of puzzling build failure juice fo...
# development
c
I think I'm out of puzzling build failure juice for the day. But I am totally baffled how https://github.com/pantsbuild/pants/pull/21717 is failing with a mypy error
I have smashed the re-run button several times:
Copy code
23:07:39.80 [ERROR] Completed: Typecheck using MyPy - mypy - mypy failed (exit code 1).
Partition #1 - pbs-script, ['CPython==3.11.*']:
Success: no issues found in 2 source files
Partition #2 - python-default, ['CPython==3.11.*']:
src/python/pants/engine/collection.py: note: In class "Collection":
src/python/pants/engine/collection.py:55:16: error: Incompatible types in assignment (expression has type "Callable[[], int]", base class "tuple" defined the type as "Callable[[tuple[T, ...]], int]")  [assignment]
        __hash__ = Tuple.__hash__
                   ^~~~~~~~~~~~~~
src/python/pants/engine/target.py: note: In class "CoarsenedTargets":
src/python/pants/engine/target.py:939:16: error: Incompatible types in assignment (expression has type "Callable[[], int]", base class "tuple" defined the type as "Callable[[tuple[CoarsenedTarget, ...]], int]")  [assignment]
        __hash__ = Tuple.__hash__
                   ^~~~~~~~~~~~~~
Found 2 errors in 2 files (checked 1725 source files)
✓ javac succeeded.
✕ mypy failed.
✓ scalac succeeded.
Error: Process completed with exit code 1.
f
I've seen that issue as well with other PRs.
It's "a macOS thing" apparently
the PRs will be fine on Linux
You should be able to find related discussion here on Slack.
h
Narrator: It was not a macos thing…
I managed to get it to fail on linux in CI