]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] Fix typo in typing.py (GH-22121) (GH-22156)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Sep 2020 23:36:07 +0000 (16:36 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Sep 2020 23:36:07 +0000 (16:36 -0700)
This is a trivial PR to fix a typo in a docstring in typing.py. From reverences -> references
(cherry picked from commit 84ef33c5117acd9867781135a9aeb62052432e8a)

Co-authored-by: Graham Bleaney <gbleaney@gmail.com>
Lib/typing.py

index 5da032bbee8f1e871885d921a7e51082f217128b..39c956dd1834da175b645b24ae530be120f3aad3 100644 (file)
@@ -245,7 +245,7 @@ def _tp_cache(func):
 
 
 def _eval_type(t, globalns, localns, recursive_guard=frozenset()):
-    """Evaluate all forward reverences in the given type t.
+    """Evaluate all forward references in the given type t.
     For use of globalns and localns see the docstring for get_type_hints().
     recursive_guard is used to prevent prevent infinite recursion
     with recursive ForwardRef.