Skip to content

Commit

Permalink
Typing update
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Nov 19, 2024
1 parent 726516f commit ad38d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/basix/ufl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ def element(


@element.register(collections.Sequence)
def _(elements: list[_ElementBase]) -> _ElementBase:
def _(elements: _typing.Union[_ElementBase, list[_ElementBase]]) -> _ElementBase:
"""Create a UFL compatible mixed element from a list of elements.
Args:
Expand Down

0 comments on commit ad38d3a

Please sign in to comment.