Fix typing issues revealed by Pyrefly in structure_tables

PiperOrigin-RevId: 918363044
Change-Id: Ic95af5eaf8fc54fc576816473bda8bbe2a31015b
This commit is contained in:
Augustin Zidek
2026-05-20 04:22:24 -07:00
committed by Copybara-Service
parent 5a3d6b6365
commit 7d4a236f71

View File

@@ -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,