Using mock.patch
as a decorator doesn't properly forward the underlying function signature (even with a new=
argument)
#10324
Labels
stubs: false negative
Type checkers do not report an error, but should
The following seems to type check fine (both mypy and pyright) even though it should not (I would hope):
Tried with
types-mock==5.0.0.6
.The text was updated successfully, but these errors were encountered: