diff --git a/src/hya/braceexpand.py b/src/hya/braceexpand.py index 6d8fe56..5294efc 100644 --- a/src/hya/braceexpand.py +++ b/src/hya/braceexpand.py @@ -1,8 +1,9 @@ r"""Implement a braceexpand resolver for brace expansion patterns. -This module provides OmegaConf resolvers that use the braceexpand library -to expand string patterns with brace notation (similar to bash brace expansion). -The resolver is registered only if the ``braceexpand`` package is available. +This module provides OmegaConf resolvers that use the braceexpand +library to expand string patterns with brace notation (similar to bash +brace expansion). The resolver is registered only if the ``braceexpand`` +package is available. """ from __future__ import annotations diff --git a/src/hya/numpy.py b/src/hya/numpy.py index 5d35ceb..e205b6a 100644 --- a/src/hya/numpy.py +++ b/src/hya/numpy.py @@ -1,12 +1,11 @@ r"""Implement NumPy resolvers for array creation and manipulation. -This module provides OmegaConf resolvers that use NumPy for array operations. -The resolvers are registered only if the ``numpy`` package is available, -allowing users to create NumPy arrays directly from configuration files. - registry.register_resolvers() +This module provides OmegaConf resolvers that use NumPy for array +operations. The resolvers are registered only if the ``numpy`` package +is available, allowing users to create NumPy arrays directly from +configuration files. registry.register_resolvers() - # Then in your OmegaConf config: - # data: ${hya.np.array:[1, 2, 3]} +# Then in your OmegaConf config: # data: ${hya.np.array:[1, 2, 3]} """ from __future__ import annotations diff --git a/src/hya/torch.py b/src/hya/torch.py index db6c39e..23d11f0 100644 --- a/src/hya/torch.py +++ b/src/hya/torch.py @@ -1,9 +1,9 @@ r"""Implement PyTorch resolvers for tensor creation and dtype handling. -This module provides OmegaConf resolvers that use PyTorch for tensor operations -and data type specifications. The resolvers are registered only if the ``torch`` -package is available, enabling users to create PyTorch tensors and specify dtypes -directly from configuration files. +This module provides OmegaConf resolvers that use PyTorch for tensor +operations and data type specifications. The resolvers are registered +only if the ``torch`` package is available, enabling users to create +PyTorch tensors and specify dtypes directly from configuration files. """ from __future__ import annotations