pre === .. py:module:: pre .. autoapi-nested-parse:: Pre-processing Phase for Call Rewriting. Handles functional unwrapping, plugin claims, and lifecycle method stripping. Updated to remove dependencies on deleted legacy modules. Functions --------- .. autoapisummary:: pre.handle_pre_checks pre.resolve_implicit_method Module Contents --------------- .. py:function:: handle_pre_checks(rewriter: Any, original: libcst.Call, updated: libcst.Call, func_name: Optional[str]) -> Tuple[bool, libcst.CSTNode] Executes pre-lookup checks and transformations. :param rewriter: The calling transformer (duck typing: needs _get_source_traits, _report_warning, _is_stateful, semantics, target_fw, ctx). :param original: The original CST node. :param updated: The updated CST node. :param func_name: Resolved function name. :returns: Tuple(handled, result_node). .. py:function:: resolve_implicit_method(rewriter: Any, original: libcst.Call, func_name: Optional[str]) -> Optional[str] Attempts to resolve method calls on objects to full API paths.