Skip to content

Commit 513c5eb

Browse files
committed
raises: avoid breaking type string to multiple lines
Pyright doesn't handle this.
1 parent 0c4ed31 commit 513c5eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/_pytest/raises.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,7 @@ def __init__(
969969
# that are *very* hard to reconcile while adhering to the overloads, so we cast
970970
# it to avoid an error when passing it to super().__init__
971971
check = cast(
972-
"Callable[["
973-
"BaseExceptionGroup[ExcT_1|BaseExcT_1|BaseExceptionGroup[BaseExcT_2]]"
974-
"], bool]",
972+
"Callable[[BaseExceptionGroup[ExcT_1|BaseExcT_1|BaseExceptionGroup[BaseExcT_2]]], bool]",
975973
check,
976974
)
977975
super().__init__(match=match, check=check)

0 commit comments

Comments
 (0)