Skip to content

Commit c8fa551

Browse files
authored
Merge pull request #613 from tvalenciaz/fix/union_type
2 parents 2c1a2d2 + cc5d66e commit c8fa551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mpisppy/utils/strings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
###############################################################################
99

1010
from collections.abc import Iterable
11+
from typing import Optional
1112

1213

1314
def nice_join(
1415
seq: Iterable,
1516
separator: str = ", ",
16-
conjunction: str | None = "or",
17+
conjunction: Optional[str] = "or",
1718
warp_in_single_quote: bool = False,
1819
) -> str:
1920
"""Joins items of a sequence into English phrases using the representation of the items and

0 commit comments

Comments
 (0)