blob: cc067b6f1783ba1ebf797acb6a65f87255012fa8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
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.
|