Registry / type-stubs / mypy-zope

mypy-zope

JSON →
library1.0.15pypypiunverified

mypy-zope is a plugin for Mypy that provides type checking support for projects utilizing Zope interfaces (`zope.interface`). It allows Mypy to correctly understand and validate code that implements or interacts with Zope interfaces. The current version is 1.0.14, with releases occurring periodically to support newer Mypy versions and address issues.

pip install mypy-zope
INSTALL
IMPORT
SIG · MYPY-ZOPE
M
mypy-zope
type-stubspythonv1.0.15
Install
4.0s avg
Import
Disk
83MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 84.8MB
glibc
py 3.103.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
Debug
Known issues
gotchaThe `mypy-zope` plugin requires Mypy version 1.0.0 or higher. Using it with older Mypy versions may lead to unexpected behavior or errors.
fix
Ensure you have `mypy>=1.0.0` installed. You can upgrade Mypy using `pip install --upgrade mypy`.
affects: <1.0.0 of mypy
gotchaThe plugin must be explicitly enabled in your Mypy configuration file (e.g., `mypy.ini`, `pyproject.toml`). It is not automatically discovered or activated upon installation.
fix
Add `plugins = mypy_zope.plugin` under the `[mypy]` section of your Mypy configuration file.
affects: All versions
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.
Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
mypy-zope — pip install mypy-zope · libregistry