Skip to content

Commit 7d4a236

Browse files
Augustin-Zidekcopybara-github
authored andcommitted
Fix typing issues revealed by Pyrefly in structure_tables
PiperOrigin-RevId: 918363044 Change-Id: Ic95af5eaf8fc54fc576816473bda8bbe2a31015b
1 parent 5a3d6b6 commit 7d4a236

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/alphafold3/structure/structure_tables.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ class AuthorNamingScheme:
6767

6868

6969
def _default(
70-
candidate_value: np.ndarray | None, default_value: Sequence[Any], dtype: Any
70+
candidate_value: np.ndarray | None,
71+
default_value: Sequence[Any] | np.ndarray,
72+
dtype: Any,
7173
) -> np.ndarray:
7274
if candidate_value is None:
7375
return np.array(default_value, dtype=dtype)
@@ -521,7 +523,7 @@ def tile_for_models(arr: np.ndarray) -> list[str]:
521523

522524

523525
def _flatten_author_naming_scheme_table(
524-
res_table: Mapping[str, Mapping[int, str]],
526+
res_table: Mapping[str, Mapping[int, str | None]],
525527
chain_ids: np.ndarray,
526528
res_chain_ids: np.ndarray,
527529
res_ids: np.ndarray,

0 commit comments

Comments
 (0)