BSD Ports

devel/pytype 2024.4.11 DragonFly

Python type inferencer

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
3604.6 KiB, 23709.0 KiB installed

Description

Pytype checks and infers types for your Python code - without requiring type annotations. Pytype can:

  • Lint plain Python code, flagging common mistakes such as misspelled attribute names, incorrect function calls, and much more, even across file boundaries.
  • Enforce user-provided type annotations. While annotations are optional for pytype, it will check and apply them where present.
  • Generate type annotations in standalone files ("pyi files"), which can be merged back into the Python source with a provided merge-pyi tool.

Pytype is a static analyzer; it does not execute the code it runs on.

Thousands of projects at Google rely on pytype to keep their Python code well-typed and error-free.

In the other systems

SystemPortVersion
DragonFlydevel/pytype2024.4.11
FreeBSDdevel/pytype2024.10.11_3

Install

Binary package:

pkg install pytype-py311

From DPorts:

cd /usr/dports/devel/pytype && make install clean

Dependencies

Run dependencies 14

No port depends on this one.