Skip to content

Commit 0c4ed31

Browse files
committed
raises: remove redundant type annotation
Pyright complains: Type annotation for "self" parameter of "__init__" method cannot contain class-scoped type variables (reportInvalidTypeVarUse) and I figure it's not needed since it's already the type of `self`.
1 parent b42a5d2 commit 0c4ed31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/raises.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ class RaisesExc(AbstractRaises[BaseExcT_co_default]):
588588
# At least one of the three parameters must be passed.
589589
@overload
590590
def __init__(
591-
self: RaisesExc[BaseExcT_co_default],
591+
self,
592592
expected_exception: (
593593
type[BaseExcT_co_default] | tuple[type[BaseExcT_co_default], ...]
594594
),

0 commit comments

Comments
 (0)