overrides
========
.. image:: https://api.travis-ci.org/drorasaf/overrides.svg?branch=python3_support
:target: https://travis-ci.org/drorasaf/overrides
.. image:: https://coveralls.io/repos/drorasaf/overrides/badge.svg?branch=python3_support
:target: https://coveralls.io/r/drorasaf/overrides
.. image:: https://img.shields.io/pypi/v/overrides.svg
:target: https://pypi.python.org/pypi/overrides
.. image:: https://img.shields.io/pypi/dm/overrides.svg
:target: https://pypi.python.org/pypi/overrides
A decorator to automatically detect mismatch when overriding a method.
See http://stackoverflow.com/questions/1167617/in-python-how-do-i-indicate-im-overriding-a-method
Installation
------------
.. code-block:: bash
$ pip install overrides
Usage
-----
.. code-block:: python
from overrides import overrides
class SuperClass(object):
def method(self):
"""This is the doc for method and will be shown in subclass method too!"""
return 2
class SubClass(SuperClass):
@overrides
def method(self):
return 1
========
.. image:: https://api.travis-ci.org/drorasaf/overrides.svg?branch=python3_support
:target: https://travis-ci.org/drorasaf/overrides
.. image:: https://coveralls.io/repos/drorasaf/overrides/badge.svg?branch=python3_support
:target: https://coveralls.io/r/drorasaf/overrides
.. image:: https://img.shields.io/pypi/v/overrides.svg
:target: https://pypi.python.org/pypi/overrides
.. image:: https://img.shields.io/pypi/dm/overrides.svg
:target: https://pypi.python.org/pypi/overrides
A decorator to automatically detect mismatch when overriding a method.
See http://stackoverflow.com/questions/1167617/in-python-how-do-i-indicate-im-overriding-a-method
Installation
------------
.. code-block:: bash
$ pip install overrides
Usage
-----
.. code-block:: python
from overrides import overrides
class SuperClass(object):
def method(self):
"""This is the doc for method and will be shown in subclass method too!"""
return 2
class SubClass(SuperClass):
@overrides
def method(self):
return 1
Metadata
Release files for overrides 1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| overrides-1.8.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| overrides-1.8-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 10.5 kB
Release files / overrides-1.8.tar.gz
| Download URL | overrides-1.8.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf0a02552001aeafeaac154e61b0b2fd378ec56d30b086dec9512741f9dcc4b9
|
|
BLAKE2b-256 checksum How to use checksums |
0fd0cb55e002609e2f3f6442518c610e60650a6fab07fdd681cc09ec3c6ca47f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / overrides-1.8-py2.7.egg
| Download URL | overrides-1.8-py2.7.egg |
|---|---|
| Size | 7.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d2ccd5b18e3aadb5801700e3adc50f18618b26f79040d17a6d2314bf6ec4fc9c
|
|
BLAKE2b-256 checksum How to use checksums |
b9b9554899d8883258ef7b9f3c2ce00c5fa5a5bf4a61be646db6e5e239402bb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |