mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
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.
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user