diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-01-02 10:00:10 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-01-02 10:00:10 -0600 |
commit | 53cdae597c8de9378d879ec63da4cf510f82d329 (patch) | |
tree | b54041231f06552d9a7a8fbae8806608d2791aa1 /documentation | |
parent | 78c34ffdf70b08633157ad92b1d6af50dfa7fc46 (diff) | |
download | six-git-53cdae597c8de9378d879ec63da4cf510f82d329.tar.gz |
use decorator directive for add_metaclass and wraps
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/index.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/index.rst b/documentation/index.rst index e0ce4cc..627862a 100644 --- a/documentation/index.rst +++ b/documentation/index.rst @@ -243,7 +243,7 @@ functions and methods is the stdlib :mod:`py3:inspect` module. aliased to :class:`py3:object`.) -.. function:: wraps(wrapped, assigned=functools.WRAPPER_ASSIGNMENTS, updated=functools.WRAPPER_UPDATES) +.. decorator:: wraps(wrapped, assigned=functools.WRAPPER_ASSIGNMENTS, updated=functools.WRAPPER_UPDATES) This is exactly the :func:`py3:functools.wraps` decorator, but it sets the ``__wrapped__`` attribute on what it decorates as :func:`py3:functools.wraps` @@ -320,7 +320,7 @@ Python 2 and 3. decorator. -.. function:: add_metaclass(metaclass) +.. decorator:: add_metaclass(metaclass) Class decorator that replaces a normally-constructed class with a metaclass-constructed one. Example usage: :: |