From 7d4a236f71ef438844bb1393fdb5079a2fe1ef58 Mon Sep 17 00:00:00 2001 From: Augustin Zidek Date: Wed, 20 May 2026 04:22:24 -0700 Subject: [PATCH] Fix typing issues revealed by Pyrefly in structure_tables PiperOrigin-RevId: 918363044 Change-Id: Ic95af5eaf8fc54fc576816473bda8bbe2a31015b --- src/alphafold3/structure/structure_tables.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/alphafold3/structure/structure_tables.py b/src/alphafold3/structure/structure_tables.py index 70f031a..e4f2bfe 100644 --- a/src/alphafold3/structure/structure_tables.py +++ b/src/alphafold3/structure/structure_tables.py @@ -67,7 +67,9 @@ class AuthorNamingScheme: def _default( - candidate_value: np.ndarray | None, default_value: Sequence[Any], dtype: Any + candidate_value: np.ndarray | None, + default_value: Sequence[Any] | np.ndarray, + dtype: Any, ) -> np.ndarray: if candidate_value is None: return np.array(default_value, dtype=dtype) @@ -521,7 +523,7 @@ def to_mmcif_atom_site_and_bonds_table( def _flatten_author_naming_scheme_table( - res_table: Mapping[str, Mapping[int, str]], + res_table: Mapping[str, Mapping[int, str | None]], chain_ids: np.ndarray, res_chain_ids: np.ndarray, res_ids: np.ndarray,