Install & Compatibility
Where this runs
tested against v1.0.15 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 84.8MB
glibcpy 3.10–3.920 runs
installs and imports cleanly · install 4.0s · import 0.000s · 83MB
83MB installed
● package 83MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Mypy Plugin Configuration
✓ plugins = mypy_zope.plugin
✗ import mypy_zope.plugin
mypy-zope is a Mypy plugin, not a standard Python library to be imported directly into Python code. It is enabled via Mypy's configuration file (e.g., mypy.ini) under the [mypy] section.
To get started, install `mypy-zope` and ensure `mypy` is also installed. Then, create a `mypy.ini` configuration file in your project root and add `plugins = mypy_zope.plugin` under the `[mypy]` section. Write some Python code that uses `zope.interface`, and then run `mypy` on your files. The plugin will enable Mypy to understand interface implementations and usage.
# 1. Create a mypy.ini file in your project root:
# [mypy]
# plugins = mypy_zope.plugin
# python_version = 3.9 # or your project's Python version
# 2. Create a Python file, e.g., my_app.py:
# from zope.interface import Interface, implementer
# class IGreeter(Interface):
# def greet(name: str) -> str:
# """Greets the given name."""
# @implementer(IGreeter)
# class HelloGreeter:
# def greet(self, name: str) -> str:
# return f"Hello, {name}!"
# def use_greeter(greeter: IGreeter) -> None:
# print(greeter.greet("World"))
# use_greeter(HelloGreeter())
# 3. Run mypy from your terminal:
# mypy my_app.py
# Expected output for the above example (no errors if configured correctly):
# Success: no issues found in 1 source file
Upgrade
Version history
1.0.15latest on PyPI · released May 18, 2026
Audit
Dependencies
mypyrequiredThis library is a plugin for Mypy and requires Mypy to be installed and available in the environment to function.