{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"Provides type stubs for the sortedcontainers library, enabling type checkers like mypy to validate code using SortedDict, SortedSet, and SortedList with their specific API requirements.","skillfed_tags":["type-stubs","type-checking"],"use_cases":["Enable mypy or other type checkers to catch incorrect usage of SortedDict, SortedSet, or SortedList in your codebase.","Get IDE autocomplete and type hints for sortedcontainers methods and their return types.","Validate that keys or values passed to sorted containers meet their comparability or hashability requirements at type-check time.","Distinguish between SortedDict and SortedKeyDict in type annotations to document whether a key function is used.","Maintain type safety in projects that rely on sortedcontainers for performance-critical sorted data structures."],"what_it_does":"sortedcontainers-stubs is a type stub package that teaches type checkers like mypy about the sortedcontainers library's API. The sortedcontainers library provides ordered dict, set, and list data structures that maintain elements sorted by value rather than insertion order, and these types have different requirements and methods than Python's built-in equivalents. Without type stubs, type checkers cannot validate that you're using these types correctly.\n\nThe package is maintained separately from sortedcontainers itself because the main library's author chose not to include type annotations in the core codebase. The stubs handle the library's API quirks, including the distinction between regular and key-function variants of SortedDict and SortedSet (which are stub-only types) and SortedKeyList (which exists at runtime). Version numbers track sortedcontainers releases: version 2.4.3 of the stubs supports sortedcontainers 2.x.","worth_installing":"Yes, if you use sortedcontainers and run mypy or another type checker. The package is low-friction to install, has no known vulnerabilities, and is actively maintained. The aging status reflects infrequent releases rather than abandonment\u2014the repo is not archived and received a commit in April 2025. Install it alongside sortedcontainers to get full type coverage."},"id":"sortedcontainers-stubs","links":{"html":"https://skillfed.io/packages/sortedcontainers-stubs","md":"https://skillfed.io/packages/sortedcontainers-stubs.md","pypi":"https://pypi.org/project/sortedcontainers-stubs/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-04-23","license_spdx":null,"license_treatment":"permissive","name":"sortedcontainers-stubs","python_support":"supports_current","summary":"Type stubs for sortedcontainers"},"popularity":{"monthly_downloads":1054560,"position":4435,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.4.3"}
