From c8e141e36f414d51e9ef0769b61137fe0fa27765 Mon Sep 17 00:00:00 2001 From: "Pyre Bot Jr." Date: Mon, 1 Jun 2026 10:30:14 -0700 Subject: [PATCH] Enable Pyrefly in fbcode/openzl Summary: Automated migration to enable Pyrefly type checking for `fbcode/openzl`. - Added `python.set_pyrefly(True)` to PACKAGE file - Suppressed pre-existing type errors Pyrefly is Meta's next-generation Python type checker, replacing Pyre. If you encounter issues, you can revert the PACKAGE change by removing the `python.set_pyrefly(True)` line. #pyreupgrade Differential Revision: D107114149 --- benchmark/runner/zstrong_gbenchmarks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benchmark/runner/zstrong_gbenchmarks.py b/benchmark/runner/zstrong_gbenchmarks.py index 39cbf1007..e08430d33 100644 --- a/benchmark/runner/zstrong_gbenchmarks.py +++ b/benchmark/runner/zstrong_gbenchmarks.py @@ -228,6 +228,7 @@ def from_scuba_latest_dev(cls): return cls.from_scuba("zstrong_benchmarks", "raw", filters={"run_id": run_id}) def to_markdown(self) -> str: + # pyrefly: ignore [missing-attribute] md = self.results.to_markdown(showindex=False).replace("|:--", "|---") if md is None: raise RuntimeError("Unable to create markdown, tabulate might be missing") @@ -462,5 +463,7 @@ def run(self) -> ZstrongGoogleBenchmarkResults: result = result.append(curr_result) else: result = curr_result + # pyrefly: ignore [missing-attribute] result.set_timestamp() + # pyrefly: ignore [bad-return] return result