Commit 08d85ee7 authored by Berker Peksag's avatar Berker Peksag

Fix use of default reST role

parent 7d1c5efe
...@@ -296,8 +296,8 @@ value of type on :class:`Any` and assign it to any variable:: ...@@ -296,8 +296,8 @@ value of type on :class:`Any` and assign it to any variable::
s = a # OK s = a # OK
def foo(item: Any) -> int: def foo(item: Any) -> int:
# Typechecks; `item` could be any type, # Typechecks; 'item' could be any type,
# and that type might have a `bar` method # and that type might have a 'bar' method
item.bar() item.bar()
... ...
...@@ -333,7 +333,7 @@ reject almost all operations on it, and assigning it to a variable (or using ...@@ -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:: it as a return value) of a more specialized type is a type error. For example::
def hash_a(item: object) -> int: 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() item.magic()
... ...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment