Skip to content

Commit

Permalink
document SandboxedNativeEnvironment pattern (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Dec 20, 2024
2 parents 028f61d + ae68c96 commit e7cb37d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/nativetypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

Expand Down

0 comments on commit e7cb37d

Please sign in to comment.