Skip to content

Commit

Permalink
Improve docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanhed committed Jan 21, 2024
1 parent 9257a18 commit 77a2b04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mijnbib/mijnbibliotheek.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def extend_loans(self, extend_url: str, execute: bool = False) -> tuple[bool, di
`success==False`, rather then raising an ExtendLoanError)
Args:
extend_url: url to use for extending one or multiple loans
execute: A development flag; set to True actually perform loan extension
Returns:
A result tuple (success, details).
Expand Down Expand Up @@ -284,12 +285,12 @@ def extend_loans(self, extend_url: str, execute: bool = False) -> tuple[bool, di
def extend_loans_by_ids(
self, acc_extids: list[tuple[str, str]], execute: bool = False
) -> tuple[bool, dict]:
"""Extend loan(s) via list of (account, extend_id) tuples. Will login first if needed.
"""Extend loan(s) via list of (account_id, extend_id) tuples. Will login first if needed.
For return value, exceptions thrown and more details, see `extend_loans()`
Args:
acc_eids: List of (account, extend_id) tuples
acc_extids: List of (account_id, extend_id) tuples
execute: A development flag; set to True actually perform loan extension
"""
_log.info(f"Extending loans via ids: '{acc_extids}'")
Expand Down

0 comments on commit 77a2b04

Please sign in to comment.