Skip to content

Commit

Permalink
Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Feb 25, 2025
1 parent 67759f1 commit eed0e35
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion python/kvikio/kvikio/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,22 @@ def _set_property(self, property: str, value: Any):
def set(*config: Any) -> ConfigContextManager:
"""Set KvikIO configurations.
Examples:
- To set one or more properties
.. code-block:: python
kvikio.defaults.set({"prop1": value1, "prop2": value2})
- To set a single property
.. code-block:: python
kvikio.defaults.set("prop", value)
Parameters
-------
----------
Any
The configurations. Can either be a single parameter (dict) consisting of one
or more properties, or two parameters key (string) and value (Any)
Expand Down

0 comments on commit eed0e35

Please sign in to comment.