summaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd
diff options
context:
space:
mode:
authornik-bes <[email protected]>2025-05-19 07:20:13 +0300
committernik-bes <[email protected]>2025-05-19 07:36:02 +0300
commit317b7368e24941ff76499f500579fd9b10f6656e (patch)
treeabbcbaea595e7d2e9f23cf59a408b3082fe4340d /contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd
parent6b666a52d40308ab9b3532cd8d3008b9f37cfffb (diff)
Update Cython to 3.0.10.
commit_hash:b43c96b868cd36d636192fd2c6024d9f0d2fb6f8
Diffstat (limited to 'contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd')
-rw-r--r--contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd12
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd b/contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd
index 2c17901fa4f..ee34c9420c2 100644
--- a/contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd
+++ b/contrib/tools/cython/Cython/Compiler/ParseTreeTransforms.pxd
@@ -1,5 +1,4 @@
-
-from __future__ import absolute_import
+# cython: language_level=3str
cimport cython
@@ -7,8 +6,8 @@ from .Visitor cimport (
CythonTransform, VisitorTransform, TreeVisitor,
ScopeTrackingTransform, EnvTransform)
-cdef class SkipDeclarations: # (object):
- pass
+# Don't include mixins, only the main classes.
+#cdef class SkipDeclarations:
cdef class NormalizeTree(CythonTransform):
cdef bint is_in_statlist
@@ -30,7 +29,7 @@ cdef map_starred_assignment(list lhs_targets, list starred_assignments, list lhs
#class PxdPostParse(CythonTransform, SkipDeclarations):
#class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
-#class WithTransform(CythonTransform, SkipDeclarations):
+#class WithTransform(VisitorTransform, SkipDeclarations):
#class DecoratorTransform(CythonTransform, SkipDeclarations):
#class AnalyseDeclarationsTransform(EnvTransform):
@@ -55,10 +54,12 @@ cdef class YieldNodeCollector(TreeVisitor):
cdef public bint has_return_value
cdef public bint has_yield
cdef public bint has_await
+ cdef list excludes
@cython.final
cdef class MarkClosureVisitor(CythonTransform):
cdef bint needs_closure
+ cdef list excludes
@cython.final
cdef class CreateClosureClasses(CythonTransform):
@@ -77,6 +78,7 @@ cdef class GilCheck(VisitorTransform):
cdef list env_stack
cdef bint nogil
cdef bint nogil_declarator_only
+ cdef bint current_gilstat_node_knows_gil_state
cdef class TransformBuiltinMethods(EnvTransform):
cdef visit_cython_attribute(self, node)