devel/py-overrides 7.7.0_1 MidnightBSD
Decorator to automatically detect mismatch when overriding a method
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Port added
- Last update
- Commit
b807d69740- License
- Apache-2.0
- Categories
- devel, python
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
The newest version among them is 7.7.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/py-overrides | 7.7.0_1 newest | no data | - | [email protected] | 2026-07-14 |
| FreeBSD | devel/py-overrides | 7.7.0_1 newest | none known | - | [email protected] | - |
| OpenBSD | devel/py-overrides | 7.7.0p2 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/py-overrides | 7.7.0nb1 newest | none known | - | [email protected] | - |
| DragonFly | devel/py-overrides | 7.7.0_1 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-overrides | 7.7.0_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-overrides | 7.7.0_1 newest | no data | - | [email protected] | - |
Version history 1
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}overrides
From mports:
cd /usr/mports/devel/py-overrides && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}overrides>0:devel/py-overrides
Dependency graph
Ports that need it on the left, what it needs to run on the right (to build, as it needs nothing to run); at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Build dependencies 2
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| overrides-7.7.0.tar.gz | 22812 | 55158fa3d93b98cc75299b1e67078ad9003ca27945c76162c1c0766d6f91820a |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
b807d69740 |
Lucas Holt | Add LangChain AI ports and dependencies AI-Assisted-by: OpenAI Codex <[email protected]>
Signed-off-by: Lucas Holt <[email protected]> |