{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/9"}],"enrichment":{"capability":"Provides type hints and stubs for the diskcache library to enable static type checking in projects that use disk-based caching.","skillfed_tags":["type-stubs","static-typing"],"use_cases":["Enable mypy or pyright to type-check code that imports and uses diskcache for disk-based caching.","Provide IDE autocomplete and inline type hints when working with diskcache objects in an editor.","Catch type mismatches in cache key/value operations before runtime in a typed Python project.","Support gradual typing migration in a codebase that uses diskcache by adding type annotations incrementally."],"what_it_does":"diskcache-stubs is a type-hints-only package that provides static type information for the diskcache library. It does not contain runtime code; instead, it supplies .pyi stub files and type annotations so that type checkers like mypy, pyright, and similar tools can understand the types used in diskcache code. This allows developers to catch type errors during development rather than at runtime.\n\nThe package depends only on typing-extensions and installs with low friction. However, it is archived and abandoned as of October 2024, meaning type hints may fall behind as diskcache itself evolves. The package's own TODO list indicates incomplete coverage of several diskcache classes and methods, particularly around Cache.pull, Cache.peek, Cache.peekitem, BaseCache.get, BaseCache.pop, and DjangoCache.","worth_installing":"Yes, if you use diskcache and want static type checking\u2014but with caveats. Install it alongside python-diskcache to get type hints for your type checker. Be aware that the package is abandoned and may not cover all diskcache APIs or stay current with future diskcache releases. If you need comprehensive, actively maintained type support, verify that the stubs cover the specific diskcache methods your code relies on."},"id":"diskcache-stubs","links":{"html":"https://skillfed.io/packages/diskcache-stubs","md":"https://skillfed.io/packages/diskcache-stubs.md","pypi":"https://pypi.org/project/diskcache-stubs/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2024-08-18","license_spdx":null,"license_treatment":"permissive","name":"diskcache-stubs","python_support":"supports_current","summary":"diskcache stubs"},"popularity":{"monthly_downloads":362833,"position":7229,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.6.3.6.20240818"}
