FreeBSD.software
Home/devel/py311-overrides

py311-overrides

7.7.0_1

Decorator to automatically detect mismatch when overriding a method

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.

Origin: devel/py-overrides
Category: devel
Size: 166KiB
License: APACHE20
Maintainer: sunpoet@FreeBSD.org
Dependencies: 1 packages
Required by: 1 packages
$pkg install py311-overrides

Dependencies (1)

Required By (1 packages)

More in devel