python-doc-inherit 0.1.1
pip install python-doc-inherit==0.1.1
Newer version available (0.3.0)
Released:
A decorator used to inherit method documentation from parent classes.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (License :: OSI Approved :: MIT License)
- Author: Alexander Kavanaugh
- Tags doc_inherit , doc , inherit
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Programming Language
Project description
A decorator used to inherit method documentation from parent classes.
Badges
Usage
Install python-doc-inherit:
pip install python-doc-inherit
Put it to use:
from doc_inherit import method_doc_inherit
class Foo(object):
def foo(self):
"""Frobber"""
pass
class Bar(Foo):
@method_doc_inherit
def foo(self):
pass
Now, Bar.foo.__doc__ == Bar().foo.__doc__ == Foo.foo.__doc__ == "Frobber"
Running the Tests
pip install -r requirements/test.txt
./runtests.py
Changes
0.1.1 (2016-06-18)
small fixes
0.1.0 (2016-06-18)
Initial release
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (License :: OSI Approved :: MIT License)
- Author: Alexander Kavanaugh
- Tags doc_inherit , doc , inherit
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Programming Language
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-doc-inherit-0.1.1.tar.gz
.
File metadata
- Download URL: python-doc-inherit-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
30a5b4f9d219a75e6396f53d331b454c64b5394168e38bf41b9a1c87e098b5dc
|
|
MD5 |
80333e151501eb066b0679ac1dee4938
|
|
BLAKE2b-256 |
30e5220b5bc847d65418fe3d28db75ee681c7d450d74fa60698fa5c379865c33
|
File details
Details for the file python_doc_inherit-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: python_doc_inherit-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
71b4039a7009cdfec5f23fbb7d70a6e95f32477bcf9e9d02e5468b034bfc16db
|
|
MD5 |
c0902bf177f26d0b4b796c7e5ed40c0e
|
|
BLAKE2b-256 |
d3ea8411258c98baa8a63bc3b24e2925fa3406dd07ab0000504ae0e20ec38bab
|