From: Zachary Ware Date: Tue, 2 Feb 2016 23:04:41 +0000 (-0600) Subject: Fix typo. X-Git-Tag: v3.6.0a1~656^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3df11b2bd6df1940636683ea67ce5721974bb4ed;p=thirdparty%2FPython%2Fcpython.git Fix typo. Reported by Jon Tetlak on docs@ --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 0fe11671373f..41f594ecc4d0 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -20,7 +20,7 @@ The function below takes and returns a string and is annotated as follows:: def greeting(name: str) -> str: return 'Hello ' + name -In the function ``greeting``, the argument ``name`` is expected to by of type +In the function ``greeting``, the argument ``name`` is expected to be of type :class:`str` and the return type :class:`str`. Subtypes are accepted as arguments.