File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4262,10 +4262,14 @@ def defer(self, debug_context: Optional[Context] = None) -> None:
4262
4262
"""Defer current analysis target to be analyzed again.
4263
4263
4264
4264
This must be called if something in the current target is
4265
- incomplete or has a placeholder node.
4266
-
4267
- This must not be called during the final analysis iteration!
4268
- Instead, an error should be generated.
4265
+ incomplete or has a placeholder node. However, this must *not*
4266
+ be called during the final analysis iteration! Instead, an error
4267
+ should be generated. Often 'process_placeholder' is a good
4268
+ way to either defer or generate an error.
4269
+
4270
+ NOTE: Some methods, such as 'anal_type', 'mark_incomplete' and
4271
+ 'record_incomplete_ref', call this implicitly, or when needed.
4272
+ They are usually preferable to a direct defer() call.
4269
4273
"""
4270
4274
assert not self .final_iteration , 'Must not defer during final iteration'
4271
4275
self .deferred = True
You can’t perform that action at this time.
0 commit comments