From ae68c961dc52d48580dc9005c9ebe9117590f690 Mon Sep 17 00:00:00 2001 From: David Lord Date: Fri, 20 Dec 2024 07:57:11 -0800 Subject: [PATCH] document SandboxedNativeEnvironment pattern --- docs/nativetypes.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/nativetypes.rst b/docs/nativetypes.rst index 1a08700b0..fb2a76718 100644 --- a/docs/nativetypes.rst +++ b/docs/nativetypes.rst @@ -55,6 +55,17 @@ Foo >>> print(result.value) 15 +Sandboxed Native Environment +---------------------------- + +You can combine :class:`.SandboxedEnvironment` and :class:`NativeEnvironment` to +get both behaviors. + +.. code-block:: python + + class SandboxedNativeEnvironment(SandboxedEnvironment, NativeEnvironment): + pass + API ---