Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyglove/core/geno/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ def from_fn(
f'Choices: {dna_spec.num_choices}, '
f'Location: {dna_spec.location.path}.')
children = []
for i, choice in enumerate(decision): # pyrefly: ignore[bad-argument-type]
for i, choice in enumerate(decision): # pyrefly: ignore[bad-argument-type, not-iterable]
choice_location = utils.KeyPath(i, dna_spec.location)
if not isinstance(choice, int):
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion pyglove/core/hyper/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _decode(self) -> List[Any]:
)
)
choices = []
for i, sub_dna in enumerate(dna): # pyrefly: ignore[bad-argument-type]
for i, sub_dna in enumerate(dna): # pyrefly: ignore[bad-argument-type, not-iterable]
if not isinstance(sub_dna.value, int):
raise ValueError(
utils.message_on_path(
Expand Down
2 changes: 1 addition & 1 deletion pyglove/core/symbolic/class_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def wrap_module(
origin_cls_to_wrap_cls = {}
for symbol_name in (names or dir(module)):
s = getattr(module, symbol_name)
if inspect.isclass(s) and (not where or where(s)):
if inspect.isclass(s) and (not where or where(s)): # pyrefly: ignore[bad-argument-type]
# NOTE(daiyip): It's possible that a name under a module is an alias for
# another class. In such case, we do not create duplicated wrappers but
# shares the same wrapper classes with different names.
Expand Down
Loading