]> granicus.if.org Git - python/commitdiff
Fix use of default reST role
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 8 Aug 2016 10:34:49 +0000 (13:34 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 8 Aug 2016 10:34:49 +0000 (13:34 +0300)
Doc/library/typing.rst

index 29211c004c625c9d256233ec5653d3053ed4e9ef..c982a7fae151c11f64d845452a6a0012175c9847 100644 (file)
@@ -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()
        ...