Skip to content

Commit

Permalink
Add warning to docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
mejroslav committed Aug 3, 2023
1 parent 58f3650 commit 9d75653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asab/library/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def _set_ready(self, provider):

async def read(self, path: str, tenant: typing.Optional[str] = None) -> typing.Optional[typing.IO]:
"""
Read the content of the library item specified by `path`.
Read the content of the library item specified by `path`. This method can be used only after the Library is ready.
Args:
path (str): Path to the file, `LibraryItem.name` can be used directly.
Expand Down Expand Up @@ -195,7 +195,7 @@ async def read(self, path: str, tenant: typing.Optional[str] = None) -> typing.O

async def list(self, path: str = "/", tenant: typing.Optional[str] = None, recursive: bool = False) -> typing.List[LibraryItem]:
"""
List the directory of the library specified by the path that are enabled for the specified tenant.
List the directory of the library specified by the path that are enabled for the specified tenant. This method can be used only after the Library is ready.
Args:
path (str): Path to the directory.
Expand Down

0 comments on commit 9d75653

Please sign in to comment.