kastiglione added a comment. I wonder how much breakage there would be if you implemented a bunch of the dunder methods. Ex:
class StopReason: def __int__(self) -> int: ... def __eq__(self, other: StopReason | int) -> bool: ... # ... This would cover many cases, but not all. For example `5 == StopReason.whatever` would fail, even when `StopReason.whatever == 5` passes. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131138/new/ https://reviews.llvm.org/D131138 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits