{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"Provides type stubs for the mock library, enabling type checkers like mypy and pyright to validate code that uses mock for unit testing.","skillfed_tags":["type-stubs","testing"],"use_cases":["Enable type checking in test files that use mock.patch, mock.Mock, and other mock utilities.","Catch typos or incorrect mock configuration before runtime in CI/CD pipelines.","Provide IDE autocomplete and inline documentation for mock's API in test code."],"what_it_does":"types-mock is a type stub package that bridges the gap between the mock library and static type checkers. It provides type annotations for mock's public API, allowing mypy, pyright, and other type checkers to understand and validate code that uses mock for unit testing. The stubs are generated from typeshed, a community-maintained repository of type information for Python packages.\n\nThis package is useful when you want type safety in test code. Without it, type checkers see mock as untyped, which can hide bugs in test setup or assertions. The stubs are kept in sync with mock==5.2.* releases and have been validated against mypy 2.1.0 and pyright 1.1.409.","worth_installing":"Yes, if you use mock in typed test code and want your type checker to validate test setup. It has no runtime dependencies, low friction, and is actively maintained. If you don't use a type checker or don't test with mock, it adds no value."},"id":"types-mock","links":{"html":"https://skillfed.io/packages/types-mock","md":"https://skillfed.io/packages/types-mock.md","pypi":"https://pypi.org/project/types-mock/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-18","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"types-mock","python_support":"supports_current","summary":"Typing stubs for mock"},"popularity":{"monthly_downloads":5331311,"position":2117,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"5.2.0.20260518"}
