--- id: types-ujson version: "5.10.0.20250822" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-ujson — Typing stubs for ujson License: permissive · Maintenance: active · Downloads: 2.5M/mo ## What it is and what it does types-ujson is a type stub package that provides type annotations for a JSON serialization library. It allows static type checkers like mypy and pyright to understand and validate the types of function calls and return values in code that uses the library. The stubs are generated from the typeshed project and tested against mypy 1.17.1 and pyright 1.1.404. This package contains no runtime code—it only provides metadata for type checkers. It is designed for Python 3.9 or later and targets library version 5.10.*. The package is part of the typeshed project, and all fixes and contributions should be directed there. Use it for: - Enable mypy or pyright to type-check code that calls the library in a Python 3.9+ project. - Catch type errors in serialization and deserialization calls before runtime. - Provide IDE autocomplete and type hints for library methods when using a compatible editor. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides type hints for JSON serialization library code, enabling static type checkers like mypy and pyright to validate annotated code. Yes, if you need static type checking for the corresponding library version 5.10.* and are on Python 3.9+. The package has low install friction and no runtime dependencies. Verify whether your library version includes built-in type stubs before installing. ## Install pip install types-ujson uv add types-ujson poetry add types-ujson ## Installing types-ujson Before you install: Low friction installation with no runtime dependencies. Actively maintained as part of typeshed; last commit 2026-08-14. License in practice: Apache-2.0 permissive license allows free use, modification, and distribution in most projects without significant restriction. Quickstart: pip install types-ujson import types_ujson Requires Python >=3.9. Intended for use with the subject package's corresponding library version 5.10.*. Verify before relying: - Whether version 5.10.* remains in active use given that newer versions include built-in type annotations - Compatibility with type checkers beyond mypy 1.17.1 and pyright 1.1.404 ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 2.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs json, type hints json library, type checking json, mypy json annotations, static typing json, type-stubs, type-checking [View on SkillFed](https://skillfed.io/packages/types-ujson) · [View on PyPI](https://pypi.org/project/types-ujson/)