{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"}],"enrichment":{"capability":"A mypy plugin that treats zope.interface declarations as types, enabling type checking for zope-based code with interface polymorphism, schema field inference, and adaptation patterns.","skillfed_tags":["mypy-plugin","zope-ecosystem","type-checking"],"use_cases":["Type-check a zope-based application where interfaces define contracts and implementations are polymorphic.","Verify that schema field assignments match their declared types (e.g., Int fields reject strings).","Enable IDE autocomplete and type hints for code using zope.interface.implementer decorators.","Narrow types in conditional branches using zope's providedBy() and implementedBy() runtime checks.","Catch adapter lookup errors by treating interface calls as typed function invocations."],"what_it_does":"mypy-zope is a mypy plugin that bridges the gap between zope.interface's runtime interface system and static type checking. It teaches mypy to understand zope interfaces as types, so you can write polymorphic code using zope's interface pattern and have mypy verify type safety across interface boundaries. The plugin infers types from zope.schema field declarations (Int, Text, etc.), handles interface implementation via @implementer decorators or classImplements calls, supports the adaptation pattern where interfaces are called to look up adapters, and enables type narrowing with providedBy() and implementedBy() checks.\n\nThe package ships with type stubs for zope.interface and zope.schema, which are automatically enabled when the plugin is active. It supports overloaded methods in interfaces, field properties, and conditional type inference. The plugin is marked production-grade and used in large projects, though the maintainers note that subtle bugs may still exist. Some advanced zope.interface features\u2014like module-level interface declarations, List and Dict field type inference, and full interface compatibility checking\u2014are not yet supported.","worth_installing":"Yes, if you use zope.interface in a mypy-checked project. The plugin is active, production-grade, and has no security vulnerabilities. Install friction is low. The main caveat: some advanced zope.interface features remain unsupported, and stub coverage is incomplete\u2014verify that your specific patterns are listed in the documented supported features before committing."},"id":"mypy-zope","links":{"html":"https://skillfed.io/packages/mypy-zope","md":"https://skillfed.io/packages/mypy-zope.md","pypi":"https://pypi.org/project/mypy-zope/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-15","license_spdx":null,"license_treatment":"permissive","name":"mypy-zope","python_support":"unspecified","summary":"Plugin for mypy to support zope interfaces"},"popularity":{"monthly_downloads":132498,"position":11548,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.16"}
