Please note that this is a problem in the third-party stubs for mock, not the standard library, which has "fully" annotated (although probably incorrectly):
That said, incomplete stubs are expected in typeshed, and we don't keep issues about this open, although we value any contribution to complete our stubs.
Activity
srittau commented on Jun 2, 2026
Please note that this is a problem in the third-party stubs for mock, not the standard library, which has "fully" annotated (although probably incorrectly):
typeshed/stdlib/unittest/mock.pyi
Line 537 in 5f301d6
That said, incomplete stubs are expected in typeshed, and we don't keep issues about this open, although we value any contribution to complete our stubs.