macOS
brew install mypylocal Homebrew formula metadata
安装
brew install mypylocal Homebrew formula metadata
nix profile install nixpkgs#mypynixpkgs package indexes · mypy · 来源: raw.githubusercontent.com
sudo pacman -S mypyArch Linux sync databases · mypy · 来源: geo.mirror.pkgbuild.com
sudo zypper install python313-mypyopenSUSE Tumbleweed package metadata · python313-mypy · 来源: download.opensuse.org
概览
Experimental optional static type checker for Python
历史
mypy is an optional static type checker for Python. Jukka Lehtosalo began work on it in 2012 while at the University of Cambridge Computer Laboratory as a PhD student, borrowing ideas from his earlier Alore language and from gradual typing research. The project grew from an experiment in adding an optional static type system to Python-like code into the best-known standalone checker for ordinary Python programs.
The technical turning point was the standardization of Python type hints. PEP 484 defines the syntax and goals for type annotations in Python, explicitly naming offline type checkers such as mypy as a primary use case while keeping Python dynamically typed and type hints optional. The mypy blog described the first PEP 484 draft as heavily inspired by mypy, and later mypy versions implemented the PEP 484 annotation model used in Python codebases, editors, and CI systems.
Dropbox became a major adoption story and development home for mypy. A Dropbox engineering writeup describes its gradual migration to static checking across millions of lines of Python, calling mypy likely the most popular standalone Python type checker and noting that the core team was employed by Dropbox. In day-to-day use, developers add annotations in source files or stubs, run the `mypy` command to find type errors without executing the program, use `dmypy` for daemonized checks, and use helpers such as `stubgen`, `stubtest`, and `mypyc` for typing ecosystem work. Package managers ship it as a developer tool for Python projects that want static analysis without changing Python's runtime model.
安全态势
没有找到 mypy 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
mypy.ini.mypy.inipyproject.tomlsetup.cfg$XDG_CONFIG_HOME/mypy/config~/.config/mypy/config~/.mypy.ini可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
dmypy | cli | 全局可执行文件 | |
mypy | cli | 全局可执行文件 | |
mypyc | cli | 全局可执行文件 | |
stubgen | cli | 全局可执行文件 | |
stubtest | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:mypy |
|---|---|
| 版本 | 2.3.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mypy |
| 主页 | https://www.mypy-lang.org/ |
| 仓库 | https://github.com/python/mypy |
| 上游文档 | https://mypy-lang.org/ |
| 许可证 | MIT |
| 源码归档 | https://files.pythonhosted.org/packages/12/af/4e516a05d3ca2eb9283e9ec45b2c02225c1514dd6da49fd3c9eaa6639370/mypy-2.3.0.tar.gz |
| 最后更新 | 2026-07-14T12:42:18Z |
| Pulse | updated |
| 依赖 | python@3.14 |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mypy |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mypy 1.15.0-5
optional static typing for Python
sudo apt install mypymypy-doc 1.15.0-5
documentation for mypy
sudo apt install mypy-docpython3-mypy 1.15.0-5
public modules for mypy (Python 3)
sudo apt install python3-mypymypy
nix profile install nixpkgs#mypymypy 1.9.0-4ubuntu1
optional static typing for Python
sudo apt install mypymypy-doc 1.9.0-4ubuntu1
documentation for mypy
sudo apt install mypy-docpython3-mypy 1.9.0-4ubuntu1
public modules for mypy (Python 3)
sudo apt install python3-mypymypy 1.20.2-1
Optional static typing for Python (PEP484)
sudo pacman -S mypypython313-mypy 2.1.0-1.1
Optional static typing for Python
sudo zypper install python313-mypy来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.