BSD Ports

devel/py-overrides 7.7.0_1 DragonFly

Decorator to automatically detect mismatch when overriding a method

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
30.5 KiB, 166.2 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
DragonFlydevel/py-overrides7.7.0_1
FreeBSDdevel/py-overrides7.7.0_1
OpenBSDdevel/py-overrides7.7.0p2
NetBSDdevel/py-overrides7.7.0nb1
MidnightBSDdevel/py-overrides7.7.0_1
HardenedBSDdevel/py-overrides7.7.0_1
GhostBSDdevel/py-overrides7.7.0_1

Install

Binary package:

pkg install py311-overrides

From DPorts:

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

Dependencies

Run dependencies 1
Required by 1