not_callable_in_transactions#
- not_callable_in_transactions(func: Callable[[Node, Any], Any]) Callable[[Node, Any], Any] [source]#
Wrapper to prevent certain functions from being used within a transaction.
Certain utils functions which that both get and set values would not work like expected in a transaction. This wrapper prevents misuse by throwing an error in such cases.