@@ -134,7 +134,9 @@ void _PyCompile_ExitScope(struct _PyCompiler *c);
134134Py_ssize_t _PyCompile_AddConst (struct _PyCompiler * c , PyObject * o );
135135_PyInstructionSequence * _PyCompile_InstrSequence (struct _PyCompiler * c );
136136int _PyCompile_FutureFeatures (struct _PyCompiler * c );
137- PyObject * _PyCompile_DeferredAnnotations (struct _PyCompiler * c );
137+ void _PyCompile_DeferredAnnotations (
138+ struct _PyCompiler * c , PyObject * * deferred_annotations ,
139+ PyObject * * conditional_annotation_indices );
138140PyObject * _PyCompile_Mangle (struct _PyCompiler * c , PyObject * name );
139141PyObject * _PyCompile_MaybeMangle (struct _PyCompiler * c , PyObject * name );
140142int _PyCompile_MaybeAddStaticAttributeToClass (struct _PyCompiler * c , expr_ty e );
@@ -178,13 +180,16 @@ int _PyCompile_TweakInlinedComprehensionScopes(struct _PyCompiler *c, _Py_Source
178180 _PyCompile_InlinedComprehensionState * state );
179181int _PyCompile_RevertInlinedComprehensionScopes (struct _PyCompiler * c , _Py_SourceLocation loc ,
180182 _PyCompile_InlinedComprehensionState * state );
181- int _PyCompile_AddDeferredAnnotaion (struct _PyCompiler * c , stmt_ty s );
183+ int _PyCompile_AddDeferredAnnotation (struct _PyCompiler * c , stmt_ty s ,
184+ PyObject * * conditional_annotation_index );
185+ void _PyCompile_EnterConditionalBlock (struct _PyCompiler * c );
186+ void _PyCompile_LeaveConditionalBlock (struct _PyCompiler * c );
182187
183188int _PyCodegen_AddReturnAtEnd (struct _PyCompiler * c , int addNone );
184189int _PyCodegen_EnterAnonymousScope (struct _PyCompiler * c , mod_ty mod );
185190int _PyCodegen_Expression (struct _PyCompiler * c , expr_ty e );
186- int _PyCodegen_Body (struct _PyCompiler * c , _Py_SourceLocation loc , asdl_stmt_seq * stmts ,
187- bool is_interactive );
191+ int _PyCodegen_Module (struct _PyCompiler * c , _Py_SourceLocation loc , asdl_stmt_seq * stmts ,
192+ bool is_interactive );
188193
189194int _PyCompile_ConstCacheMergeOne (PyObject * const_cache , PyObject * * obj );
190195
0 commit comments