CMD + K

overrides

Community

A decorator to automatically detect mismatch when overriding a method

Installation

To install this package, run one of the following:

Conda
$conda install anaconda-python-gte-3.10::overrides

Usage Tracking

7.4.0
1 / 8 versions selected
Downloads (Last 6 months): 0

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.

About

Summary

A decorator to automatically detect mismatch when overriding a method

Last Updated

Mar 31, 2025 at 23:06

License

Apache-2.0

Total Downloads

3

Version Downloads

3

Supported Platforms

linux-64