BSD Ports

lang/py-mypy 2.3.1 NetBSD

Optional static typing for Python

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
613027ad15
License
mit
Categories
lang, python
Package size
3844.5 KiB, 27428.3 KiB installed

Description

Add type annotations to your Python programs, and use mypy to type check them. Mypy is essentially a Python linter on steroids, and it can catch many programming errors by analyzing your program, without actually having to run it. Mypy has a powerful type system with features such as type inference, gradual typing, generics and union types.

In the other systems

SystemPortVersion
NetBSDlang/py-mypy2.3.1
DragonFlydevel/py-mypy1.15.0

Install

Binary package:

pkgin install py311-mypy

From pkgsrc:

cd /usr/pkgsrc/lang/py-mypy && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_642.3.1
NetBSD 10.1 aarch642.1.0
SmartOS / illumos x86_642.4.0
macOS 15 arm642.4.0

Dependencies

Run dependencies 6

Configuration

No options to configure.

Service scripts
none
Flavors
py312-mypy-2.3.1, py313-mypy-2.3.1, py314-mypy-2.3.1

Commit history 5

DateCommitCreditsLog message
613027ad15 adam py-mypy: forget Python 3.10
ba4b4fc085 wiz py-mypy: update to 2.4.0.
This release includes new features, performance improvements and bug fixes. Details at https://mypy-lang.blogspot.com/2026/10/mypy-24-released.html
e2057ec73b wiz py-mypy: update to 2.3.1.
Changes not found.
089162c6a9 adam py-mypy: updated to 2.3.0
2.3.0 The Upcoming Switch to the New Native Parser Mypyc Free-threading Memory Safety librt.threading: Fast Native Lock Type Mypyc: Read-only Final Instance Attributes
4607693b8c wiz py-mypy: update to 2.2.0.
## Mypy 2.2 ### Support for Closed TypedDicts (PEP 728) Mypy now supports closed TypedDicts as specified in PEP 728. A closed TypedDict cannot have extra keys beyond those explicitly defined. This allows the type checker to determine that certain operations are safe when they otherwise wouldn't be due to the potential presence of unknown keys. You can use the `closed` keyword argument with `TypedDict`: ```python HasName = TypedDict("HasName", {"name": str}) HasOnlyName = TypedDict("HasOnlyName", {"name": str}, closed=True) Movie = TypedDict("Movie", {"name": str, "year": int}) movie: Movie = {"name": "Nimona", "year": 2023} has_name: HasName = movie # OK: HasName is open (default) has_only_name: HasOnlyName = movie # Error: HasOnlyName is closed and Movie has extra "year" key ``` …