BSD Ports

devel/py-overrides 7.7.0_1 FreeBSD

Decorator to automatically detect mismatch when overriding a method

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
devel, python
Package size
32.3 KiB, 158.8 KiB installed

Description

A decorator @override that verifies that a method that should override an inherited method actually does it.

Copies the docstring of the inherited method to the overridden method.

Since signature validation and docstring inheritance are performed on class creation and not on class instantiation, this library significantly improves the safety and experience of creating class hierarchies in Python without significantly impacting performance. See https://stackoverflow.com/q/1167617 for the initial inspiration for this library.

In the other systems

SystemPortVersion
FreeBSDdevel/py-overrides7.7.0_1
OpenBSDdevel/py-overrides7.7.0p2
NetBSDdevel/py-overrides7.7.0nb1
DragonFlydevel/py-overrides7.7.0_1
MidnightBSDdevel/py-overrides7.7.0_1
HardenedBSDdevel/py-overrides7.7.0_1
GhostBSDdevel/py-overrides7.7.0_1

Install

Binary package:

pkg install py312-overrides

From the ports tree:

cd /usr/ports/devel/py-overrides/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-overrides>0:devel/py-overrides

Packages

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

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest7.7.0_17.7.0_1-7.7.0_17.7.0_1
FreeBSD:14:quarterly7.7.0_17.7.0_1n/a7.7.0_17.7.0_1
FreeBSD:15:latest7.7.0_17.7.0_1n/a7.7.0_17.7.0_1
FreeBSD:15:quarterly7.7.0_17.7.0_1n/an/an/a
FreeBSD:16:latest7.7.0_17.7.0_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
overrides-7.7.0.tar.gz2281255158fa3d93b98cc75299b1e67078ad9003ca27945c76162c1c0766d6f91820a
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.