We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c26b51 commit 5c630b6Copy full SHA for 5c630b6
src/idom/core/layout.py
@@ -684,7 +684,7 @@ def _process_child_type_and_key(
684
key = None
685
686
if key is None:
687
- key = _default_key(index)
+ key = index
688
689
yield (child, child_type, key)
690
@@ -698,10 +698,10 @@ def _process_child_type_and_key(
698
699
if IDOM_FEATURE_INDEX_AS_DEFAULT_KEY.current:
700
701
- def _default_key(index: int) -> Any: # pragma: no cover
+ def _default_key(index: int) -> Any:
702
return index
703
704
else:
705
706
- def _default_key(index: int) -> Any:
+ def _default_key(index: int) -> Any: # pragma: no cover
707
return object()
0 commit comments