Skip to content

Commit 5c630b6

Browse files
committed
move no cover to dynamic key default
1 parent 2c26b51 commit 5c630b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/idom/core/layout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def _process_child_type_and_key(
684684
key = None
685685

686686
if key is None:
687-
key = _default_key(index)
687+
key = index
688688

689689
yield (child, child_type, key)
690690

@@ -698,10 +698,10 @@ def _process_child_type_and_key(
698698

699699
if IDOM_FEATURE_INDEX_AS_DEFAULT_KEY.current:
700700

701-
def _default_key(index: int) -> Any: # pragma: no cover
701+
def _default_key(index: int) -> Any:
702702
return index
703703

704704
else:
705705

706-
def _default_key(index: int) -> Any:
706+
def _default_key(index: int) -> Any: # pragma: no cover
707707
return object()

0 commit comments

Comments
 (0)