From 6740dc3b8ca59e65f49ceddc0d1eedefccaf0b83 Mon Sep 17 00:00:00 2001 From: "Pyre Bot Jr." Date: Tue, 17 Nov 2026 01:59:42 -0800 Subject: [PATCH] Upgrade packages to Pyrefly R1546.1 (landing group 69) Summary: This Phabricator Diff was generated from Pyrefly type-checker output by the per-target upgrade tool. It was not generated by an AI coding system. It adds `# pyrefly: ignore[...]` comments for type errors reported by Pyrefly R1546.1 and moves the packages it suppresses errors in to that release in `tools/build_defs/fbcode_macros/build_defs/rollouts/pyrefly_checker_rollout.bzl`, so they switch type checkers in the commit that adds their suppressions. Other packages move when the upgrade changes the default checker. It does not change Python runtime behavior or application logic. Landing group: `pyre_landing_split:1719048016592499:0` (attempt 1, 4 batches, 8 files) Merged patch SHA-256: `7f806c5f47328b5f1018dee5d6a7bb5d95969e56a709c2e6aec7f974512abdee` Packages moved to R1546.1: 6 #pyreupgrade Differential Revision: D132532276 --- ax/storage/json_store/tests/test_json_store.py | 8 ++++---- ax/storage/sqa_store/tests/test_sqa_store.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ax/storage/json_store/tests/test_json_store.py b/ax/storage/json_store/tests/test_json_store.py index 9e3f11b9238..be4e9e2e9e9 100644 --- a/ax/storage/json_store/tests/test_json_store.py +++ b/ax/storage/json_store/tests/test_json_store.py @@ -1070,11 +1070,11 @@ def test_encode_decode_surrogate_spec(self) -> None: def test_RegistryAdditions(self) -> None: class MyRunner(Runner): - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def run(): pass - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def staging_required(): return False @@ -1115,11 +1115,11 @@ class MyMetric(Metric): pass class MyRunner(Runner): - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def run(): pass - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def staging_required(): return False diff --git a/ax/storage/sqa_store/tests/test_sqa_store.py b/ax/storage/sqa_store/tests/test_sqa_store.py index 86327644703..f24ff59f6a7 100644 --- a/ax/storage/sqa_store/tests/test_sqa_store.py +++ b/ax/storage/sqa_store/tests/test_sqa_store.py @@ -2150,11 +2150,11 @@ def test_get_properties(self) -> None: def test_registry_additions(self) -> None: class MyRunner(Runner): - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def run(): pass - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def staging_required(): return False @@ -2189,11 +2189,11 @@ class MyMetric(Metric): def test_registry_bundle(self) -> None: class MyRunner(Runner): - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def run(): pass - # pyrefly: ignore [bad-override] + # pyrefly: ignore [bad-function-definition, bad-override] def staging_required(): return False