summaryrefslogtreecommitdiff
path: root/Cython/Compiler
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-04-18 17:10:25 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-04-18 17:22:11 +0200
commitfdfd96d1b6e29dec0faa849321765c96fe39bb93 (patch)
treec22b1c194ea6152771fdd4ef37746fb1448b9033 /Cython/Compiler
parent1c8d21e19fbf469f770423fa8664f19a67a59ab2 (diff)
downloadcython-full_code_writer.tar.gz
Make CodeWriter inherit from ExpressionWriter in order to support all kinds of expressions without duplicating code.full_code_writer
Diffstat (limited to 'Cython/Compiler')
-rw-r--r--Cython/Compiler/AutoDocTransforms.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Compiler/AutoDocTransforms.py b/Cython/Compiler/AutoDocTransforms.py
index 9b8f2000b..a5648f49e 100644
--- a/Cython/Compiler/AutoDocTransforms.py
+++ b/Cython/Compiler/AutoDocTransforms.py
@@ -9,6 +9,9 @@ from .Errors import warning
class AnnotationWriter(ExpressionWriter):
+ """
+ A Cython code writer for Python expressions in argument/variable annotations.
+ """
def __init__(self, description=None):
"""description is optional. If specified it is used in
warning messages for the nodes that don't convert to string properly.