pg.with_contextual_override¶ Accessible via pg.with_contextual_override, pg.utils.with_contextual_override. with_contextual_override(func)[source]¶ Wraps a user function with the access to the current contextual override. The wrapped function can be called from another thread. Return type: Callable[..., Any] Parameters: func – The user function to be wrapped. Returns: A wrapper function that have the access to the current contextual override, which can be called from another thread.