summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-06-04 11:16:53 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-06-04 11:23:23 +0200
commitcefaa6522d60c4daecf01083641b874235f07bb3 (patch)
treec447ec3a9b0f16e105c744fc02037a740d4c345c
parentc02c3f36488c46d4cbdacbf339931183f3b0fa4c (diff)
downloadcython-cefaa6522d60c4daecf01083641b874235f07bb3.tar.gz
Fix typo in comment.
-rw-r--r--Cython/Compiler/ParseTreeTransforms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py
index 17631e650..acdbd0c0d 100644
--- a/Cython/Compiler/ParseTreeTransforms.py
+++ b/Cython/Compiler/ParseTreeTransforms.py
@@ -2441,7 +2441,7 @@ class AdjustDefByDirectives(CythonTransform, SkipDeclarations):
return_type_node = self.directives.get('returns')
if return_type_node is None and self.directives['annotation_typing']:
return_type_node = node.return_type_annotation
- # for Python anntations, prefer safe exception handling by default
+ # for Python annotations, prefer safe exception handling by default
if return_type_node is not None and except_val is None:
except_val = (None, True) # except *
elif except_val is None: