[Python-checkins] peps: Fix some cursive markup.
guido.van.rossum
python-checkins at python.org
Mon May 9 23:42:52 EDT 2016
https://hg.python.org/peps/rev/538ca691a576
changeset: 6317:538ca691a576
user: Guido van Rossum <guido at python.org>
date: Mon May 09 20:42:47 2016 -0700
summary:
Fix some cursive markup.
files:
pep-0484.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pep-0484.txt b/pep-0484.txt
--- a/pep-0484.txt
+++ b/pep-0484.txt
@@ -634,14 +634,14 @@
reject such a call: the function might append an ``Employee`` instance
to the list, which would violate the variable's type in the caller.
-It turns out such an argument acts _contravariantly_, whereas the
+It turns out such an argument acts *contravariantly*, whereas the
intuitive answer (which is correct in case the function doesn't mutate
-its argument!) requires the argument to act _covariantly_. A longer
+its argument!) requires the argument to act *covariantly*. A longer
introduction to these concepts can be found on Wikipedia
[wiki-variance]_; here we just show how to control a type checker's
behavior.
-By default type variables are considered _invariant_, which means that
+By default type variables are considered *invariant*, which means that
arguments for arguments annotated with types like ``List[Employee]``
must exactly match the type annotation -- no subclasses or
superclasses of the type parameter (in this example ``Employee``) are
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list