You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recompiles `source_fn` so that essentially every node of its AST tree is wrapped by a call to `transform_fn` with the evaluated value along with context information about the source code.
375
376
"""
377
+
# TODO: use non-overridable __getattribute__ instead?
378
+
ifnothasattr(source_fn, "__name__"): # Safety check against weird functions
379
+
returnErr(f"There is no __name__ for function {get_fn_name(source_fn)}")
# SOUNDNESS: failure when decorators aren't applied at the definition site (will look for the original definition, ignoring any transformations that have been applied before the wrap but after definition)
0 commit comments