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 24, 2025
1 parent 8f53d5f commit 67759f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/kvikio/kvikio/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ def _set_property(self, property: str, value: Any):


def set(*config: Any) -> ConfigContextManager:
"""Set KvikIO configurations.
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)
indicating a single property.
"""

err_msg = (
"Valid arguments are kvikio.defaults.set(config: dict) or "
"kvikio.defaults.set(key: str, value: Any)"
Expand Down

0 comments on commit 67759f1

Please sign in to comment.