document SandboxedNativeEnvironment pattern (#2063)

This commit is contained in:
David Lord 2024-12-20 07:58:33 -08:00 committed by GitHub
commit e7cb37de59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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