document SandboxedNativeEnvironment pattern

This commit is contained in:
David Lord 2024-12-20 07:57:11 -08:00
parent 028f61da7b
commit ae68c961dc
No known key found for this signature in database
GPG Key ID: 43368A7AA8CC5926

View File

@ -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
---