Skip to content

Commit

Permalink
remove redundant cast to Iterable[_T] in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
v.garkaviy authored and jonathanslenders committed Jul 4, 2023
1 parent dceaf86 commit 0bbc653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompt_toolkit/layout/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __setitem__(
if isinstance(value, tuple): # In case of `OneStyleAndTextTuple`.
value = cast("List[_T]", [value])

super().__setitem__(index, explode_text_fragments(cast("Iterable[_T]", value)))
super().__setitem__(index, explode_text_fragments(value))


def explode_text_fragments(fragments: Iterable[_T]) -> _ExplodedList[_T]:
Expand Down

0 comments on commit 0bbc653

Please sign in to comment.