Skip to content

Commit

Permalink
Small docstring fixes (#2791)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom authored Jan 22, 2025
1 parent 9b58862 commit c743f4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modal/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class NonLocalMountError(Exception):

class _Mount(_Object, type_prefix="mo"):
"""
**Deprecated**: Mounts should not be used explicitly anymore, use image.add_local_* commands instead
**Deprecated**: Mounts should not be used explicitly anymore, use `Image.add_local_*` commands instead.
Create a mount for a local directory or file that can be attached
to one or more Modal functions.
Expand Down
8 changes: 5 additions & 3 deletions modal/partial_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,12 @@ def _build(
_warn_parentheses_missing=None, *, force: bool = False, timeout: int = 86400
) -> Callable[[Union[Callable[[Any], Any], _PartialFunction]], _PartialFunction]:
"""
Decorator for methods that should execute at _build time_ to create a new layer
in a `modal.Image`.
Decorator for methods that execute at _build time_ to create a new Image layer.
See the [lifeycle function guide](https://modal.com/docs/guide/lifecycle-functions#build) for more information.
**Deprecated**: This function is deprecated. We recommend using `modal.Volume`
to store large assets (such as model weights) instead of writing them to the
Image during the build process. For other use cases, you can replace this
decorator with the `Image.run_function` method.
**Usage**
Expand Down

0 comments on commit c743f4e

Please sign in to comment.