--- id: types-markupsafe version: "1.1.10" license: Apache-2.0 license license_treatment: permissive maintenance: active --- # types-MarkupSafe — Typing stubs for MarkupSafe License: permissive · Maintenance: active · Downloads: 2.6M/mo ## What it is and what it does This is a PEP 561 type stub package that provides type information for MarkupSafe, allowing static type checkers like mypy, PyCharm, and pytype to validate code using MarkupSafe. The stubs are maintained as part of the typeshed project. The description notes that MarkupSafe has included type annotations since version 2.0, and recommends uninstalling this package if using that version or newer. It remains relevant primarily for projects using older MarkupSafe versions that lack built-in type information. Use it for: - Type-checking code using older MarkupSafe versions with mypy or similar tools - Providing IDE type hints for MarkupSafe usage in projects constrained to pre-2.0 versions - Supporting static analysis in legacy projects that depend on older MarkupSafe releases ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides type stubs for MarkupSafe, enabling static type checkers like mypy and PyCharm to validate code that uses MarkupSafe. No for modern projects. The description explicitly recommends uninstalling this package if using MarkupSafe 2.0 or later, since MarkupSafe now includes its own type annotations. Install only if locked into older MarkupSafe versions lacking built-in types. ## Install pip install types-markupsafe uv add types-markupsafe poetry add types-markupsafe ## Installing types-MarkupSafe Before you install: Low install friction with no runtime dependencies. Package maintenance is active, though the latest release dates to 2021-11-27. License in practice: Licensed under Apache-2.0 (permissive), allowing broad use, modification, and distribution with minimal restrictions. Quickstart: pip install types-MarkupSafe # Then use with mypy or other type checkers # mypy your_code.py Verify before relying: - Whether this package remains necessary for MarkupSafe 2.0 or later, given MarkupSafe's own type annotations - Current compatibility with modern versions of MarkupSafe and type-checking tools ## Package facts - License: Apache-2.0 license (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 2.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs markupsafe, mypy markupsafe typing, pep 561 type stubs, markupsafe type checking, static type hints markupsafe, type-stubs, legacy [View on SkillFed](https://skillfed.io/packages/types-markupsafe) · [View on PyPI](https://pypi.org/project/types-markupsafe/)