diff --git a/stubs/assertpy/assertpy/exception.pyi b/stubs/assertpy/assertpy/exception.pyi index 2af5e46ba..b1eb47da6 100644 --- a/stubs/assertpy/assertpy/exception.pyi +++ b/stubs/assertpy/assertpy/exception.pyi @@ -5,4 +5,5 @@ __tracebackhide__: bool class ExceptionMixin: def raises(self, ex: type[BaseException] | BaseException) -> Self: ... - def when_called_with(self, *some_args: Any, **some_kwargs: dict[str, Any]) -> Self: ... + # The types of some_args and some_kwargs must equal the types of the called function. + def when_called_with(self, *some_args: Any, **some_kwargs: Any) -> Self: ...