Automic VaultAutomic Vault

brew

使用 Homebrew, apt, Nix, pacman, zypper 安装 mypy

查看 mypy 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mypy

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install mypy

Debian stable package indexes · mypy · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#mypy

nixpkgs package indexes · mypy · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S mypy

Arch Linux sync databases · mypy · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install python313-mypy

openSUSE Tumbleweed package metadata · python313-mypy · 来源: download.opensuse.org

概览

软件包摘要

Experimental optional static type checker for Python

命令和别名

  • dmypy
  • mypy
  • mypyc
  • stubgen
  • stubtest

历史

项目历史与用法

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。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
mypy.ini.mypy.inipyproject.tomlsetup.cfg$XDG_CONFIG_HOME/mypy/config~/.config/mypy/config~/.mypy.ini

可执行文件

已安装的可执行文件

命令类型暴露范围备注
dmypycli全局可执行文件
mypycli全局可执行文件
mypyccli全局可执行文件
stubgencli全局可执行文件
stubtestcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.3.0
管理器更新时间2026-07-14
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.mypy-lang.org/

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖python@3.14
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemypy
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

mypy 1.15.0-5

optional static typing for Python

https://www.mypy-lang.org/

sudo apt install mypy
  • Section: python
  • Architecture: all
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Mypy
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mypy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

mypy-doc 1.15.0-5

documentation for mypy

https://www.mypy-lang.org/

sudo apt install mypy-doc
  • Section: doc
  • Architecture: all
  • Source Package: mypy
  • 1 依赖
  • 5 可选依赖
  • normalized package name match
  • 匹配方式:Mypy
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mypy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-mypy 1.15.0-5

public modules for mypy (Python 3)

https://www.mypy-lang.org/

sudo apt install python3-mypy
  • Section: python
  • Architecture: amd64
  • Source Package: mypy
  • 7 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Mypy
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-mypy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

mypy

nix profile install nixpkgs#mypy
  • normalized package name match
  • 匹配方式:Mypy
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: mypy from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

mypy 1.9.0-4ubuntu1

optional static typing for Python

https://www.mypy-lang.org/

sudo apt install mypy
  • Section: universe/python
  • Architecture: all
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Mypy
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mypy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mypy-doc 1.9.0-4ubuntu1

documentation for mypy

https://www.mypy-lang.org/

sudo apt install mypy-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: mypy
  • 1 依赖
  • 5 可选依赖
  • normalized package name match
  • 匹配方式:Mypy
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mypy-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-mypy 1.9.0-4ubuntu1

public modules for mypy (Python 3)

https://www.mypy-lang.org/

sudo apt install python3-mypy
  • Section: universe/python
  • Architecture: amd64
  • Source Package: mypy
  • 8 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Mypy
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-mypy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

mypy 1.20.2-1

Optional static typing for Python (PEP484)

http://www.mypy-lang.org/

sudo pacman -S mypy
  • License: MIT
  • Architecture: any
  • 6 依赖
  • 4 可选依赖
  • normalized package name match
  • 匹配方式:Mypy
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: mypy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

python313-mypy 2.1.0-1.1

Optional static typing for Python

https://www.mypy-lang.org/

sudo zypper install python313-mypy
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-mypy
  • 10 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Mypy
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python313-mypy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment