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
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-overrides | 7.7.0_1 |
| FreeBSD | devel/py-overrides | 7.7.0_1 |
| OpenBSD | devel/py-overrides | 7.7.0p2 |
| NetBSD | devel/py-overrides | 7.7.0nb1 |
| MidnightBSD | devel/py-overrides | 7.7.0_1 |
| HardenedBSD | devel/py-overrides | 7.7.0_1 |
| GhostBSD | devel/py-overrides | 7.7.0_1 |
Install
Binary package:
pkg install py311-overrides
From DPorts:
cd /usr/dports/devel/py-overrides && make install clean