summaryrefslogtreecommitdiffstats
path: root/Doc/library/typing.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@users.noreply.github.com>2017-10-12 16:28:55 (GMT)
committerGitHub <noreply@github.com>2017-10-12 16:28:55 (GMT)
commit03b9537dc515d10528f83c920d38910b95755aff (patch)
tree78544b30548bd7d2b5a4b703387962ba819bf049 /Doc/library/typing.rst
parentcba9a0c6def70549046f1afa6a80e38fe706520e (diff)
downloadcpython-03b9537dc515d10528f83c920d38910b95755aff.zip
cpython-03b9537dc515d10528f83c920d38910b95755aff.tar.gz
cpython-03b9537dc515d10528f83c920d38910b95755aff.tar.bz2
bpo-31567: more decorator markup fixes in docs (GH-3959) (#3966)
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r--Doc/library/typing.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index bd04f73..9883d8b 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -897,17 +897,17 @@ The module defines the following classes, functions and decorators:
See :pep:`484` for details and comparison with other typing semantics.
-.. decorator:: no_type_check(arg)
+.. decorator:: no_type_check
Decorator to indicate that annotations are not type hints.
- The argument must be a class or function; if it is a class, it
+ This works as class or function :term:`decorator`. With a class, it
applies recursively to all methods defined in that class (but not
to methods defined in its superclasses or subclasses).
This mutates the function(s) in place.
-.. decorator:: no_type_check_decorator(decorator)
+.. decorator:: no_type_check_decorator
Decorator to give another decorator the :func:`no_type_check` effect.