# mypy を Homebrew, apt, Nix, pacman, zypper でインストール

mypy のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:mypy
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install mypy
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mypy
```

  証拠: Debian stable package indexes: mypy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#mypy
```

  証拠: nixpkgs package indexes: mypy from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S mypy
```

  証拠: Arch Linux sync databases: mypy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install python313-mypy
```

  証拠: openSUSE Tumbleweed package metadata: python313-mypy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:mypy
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/mypy>
- **バージョン:** 2.3.0
- **ソース概要:** Experimental optional static type checker for Python
- **ホームページ:** <https://www.mypy-lang.org/>
- **リポジトリ:** <https://github.com/python/mypy>
- **上流ドキュメント:** <https://www.mypy-lang.org/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/12/af/4e516a05d3ca2eb9283e9ec45b2c02225c1514dd6da49fd3c9eaa6639370/mypy-2.3.0.tar.gz>
- **最終更新:** 2026-07-14T12:42:18Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- dmypy (cli)
- mypy (cli)
- mypyc (cli)
- stubgen (cli)
- stubtest (cli)
- dmypy (エイリアス)
- mypy (エイリアス)
- mypyc (エイリアス)
- stubgen (エイリアス)
- stubtest (エイリアス)

## 依存関係

- python@3.14

## ビルド依存関係

- rust

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.3.0
- マネージャ更新日: 2026-07-14
- ローカルデータ: OK
- 上流リポジトリ: https://www.mypy-lang.org/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://dropbox.tech/application/our-journey-to-type-checking-4-million-lines-of-python>
- <https://formulae.brew.sh/formula/mypy>
- <https://github.com/python/mypy>
- <https://mypy-lang.blogspot.com/2015/01/mypy-and-pep-484-type-hinting-draft.html>
- <https://mypy-lang.org/>
- <https://mypy-lang.org/about.html>
- <https://mypy.readthedocs.io/>
- <https://peps.python.org/pep-0484/>


## セキュリティノート

mypy に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。



## 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

- Unix: mypy.ini, .mypy.ini, pyproject.toml, setup.cfg, $XDG_CONFIG_HOME/mypy/config, ~/.config/mypy/config, ~/.mypy.ini
## ソースデータベース詳細

- **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:** head, stable

## 他のパッケージマネージャ記録

- Debian apt - mypy - 1.15.0-5: normalized package name match | Debian stable package indexes: mypy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | optional static typing for Python | https://www.mypy-lang.org/
- Debian apt - mypy-doc - 1.15.0-5: normalized package name match | Debian stable package indexes: mypy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for mypy | https://www.mypy-lang.org/
- Debian apt - python3-mypy - 1.15.0-5: normalized package name match | Debian stable package indexes: python3-mypy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | public modules for mypy (Python 3) | https://www.mypy-lang.org/
- Nix - mypy: normalized package name match | nixpkgs package indexes: mypy from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - mypy - 1.9.0-4ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: mypy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | optional static typing for Python | https://www.mypy-lang.org/
- Ubuntu apt - mypy-doc - 1.9.0-4ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: mypy-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | documentation for mypy | https://www.mypy-lang.org/
- Ubuntu apt - python3-mypy - 1.9.0-4ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-mypy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | public modules for mypy (Python 3) | https://www.mypy-lang.org/
- pacman - mypy - 2.1.0-2: normalized package name match | Arch Linux sync databases: mypy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Optional static typing for Python (PEP484) | http://www.mypy-lang.org/
- zypper - python313-mypy - 2.2.0-2.1: normalized package name match | openSUSE Tumbleweed package metadata: python313-mypy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Optional static typing for Python | https://www.mypy-lang.org/


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://pkg.so/ja/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [pyright](https://pkg.so/ja/brew/pyright/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis, type-checker.
- [pyrefly](https://pkg.so/ja/brew/pyrefly/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis, type-checker.
- [basedpyright](https://pkg.so/ja/brew/basedpyright/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis, type-checker.
- [pylint](https://pkg.so/ja/brew/pylint/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis.
- [pyscn](https://pkg.so/ja/brew/pyscn/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis.
- [datadog-static-analyzer](https://pkg.so/ja/brew/datadog-static-analyzer/) - Shares pkgdb curated category or tags: cli, developer-tool, developer-tools, static-analysis.
- [esbmc](https://pkg.so/ja/brew/esbmc/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis.
- [pylyzer](https://pkg.so/ja/brew/pylyzer/) - Shares pkgdb curated category or tags: cli, developer-tools, python, static-analysis.

## Combined YAML source

View the package source record on GitHub. [combined/mypy.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mypy.yml)


## ソース

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