diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-08-08 10:35:27 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-08-08 10:35:27 (GMT) |
commit | 1107f09bfcdb4f139495fdde21e066c6ee6cbb27 (patch) | |
tree | 14a3c3fba7800da36a794513652ad1d846a9cccd /Doc/library/typing.rst | |
parent | f4c69ab0ed64f3ac054bd197ca25f76da38bafab (diff) | |
parent | 08d85ee78d8bc69cefa627c309c2de51a97bc2b2 (diff) | |
download | cpython-1107f09bfcdb4f139495fdde21e066c6ee6cbb27.zip cpython-1107f09bfcdb4f139495fdde21e066c6ee6cbb27.tar.gz cpython-1107f09bfcdb4f139495fdde21e066c6ee6cbb27.tar.bz2 |
Merge from 3.5
Diffstat (limited to 'Doc/library/typing.rst')
-rw-r--r-- | Doc/library/typing.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ad97193..c83bf6b 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -296,8 +296,8 @@ value of type on :class:`Any` and assign it to any variable:: s = a # OK def foo(item: Any) -> int: - # Typechecks; `item` could be any type, - # and that type might have a `bar` method + # Typechecks; 'item' could be any type, + # and that type might have a 'bar' method item.bar() ... @@ -333,7 +333,7 @@ reject almost all operations on it, and assigning it to a variable (or using it as a return value) of a more specialized type is a type error. For example:: def hash_a(item: object) -> int: - # Fails; an object does not have a `magic` method. + # Fails; an object does not have a 'magic' method. item.magic() ... |