gh-96127: Fix `inspect.signature` call on mocks (#96335)

3 files changed