Skip to content

Commit a46eea7

Browse files
authored
Correct type of kwargs in assertpy.exception.ExceptionMixin.when_called_with (#13903)
The keys of `kwargs` dicts are always strings, the type hint is for the values, which in this case could be anything.
1 parent eec809d commit a46eea7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/assertpy/assertpy/exception.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ __tracebackhide__: bool
55

66
class ExceptionMixin:
77
def raises(self, ex: type[BaseException] | BaseException) -> Self: ...
8-
def when_called_with(self, *some_args: Any, **some_kwargs: dict[str, Any]) -> Self: ...
8+
# The types of some_args and some_kwargs must equal the types of the called function.
9+
def when_called_with(self, *some_args: Any, **some_kwargs: Any) -> Self: ...

0 commit comments

Comments
 (0)