BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/py-overrides7.7.0_1 newestno data-[email protected]2026-07-14
FreeBSDdevel/py-overrides7.7.0_1 newestnone known-[email protected]-
OpenBSDdevel/py-overrides7.7.0p2 newestno data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/py-overrides7.7.0nb1 newestnone known-[email protected]-
DragonFlydevel/py-overrides7.7.0_1 newestnone known-[email protected]-
HardenedBSDdevel/py-overrides7.7.0_1 newestno data-[email protected]-
GhostBSDdevel/py-overrides7.7.0_1 newestno data-[email protected]-

Compare across BSDs

Version history 1

  1. 7.7.0 b807d69740

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

Build dependencies 2

No port depends on this one.

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 1

DateCommitCreditsLog message
b807d69740 Lucas Holt Add LangChain AI ports and dependencies
AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>