Skip to content

Commit

Permalink
Format docstring for Graph.value to match others (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
ageorgou authored Aug 31, 2024
1 parent 6882f5f commit 2f2cf94
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rdflib/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,10 +1015,11 @@ def value(
'macro' like utility
Parameters:
subject, predicate, object -- exactly one must be None
default -- value to be returned if no values found
any -- if True, return any value in the case there is more than one,
else, raise UniquenessError
- subject, predicate, object: exactly one must be None
- default: value to be returned if no values found
- any: if True, return any value in the case there is more than one,
else, raise UniquenessError
"""
retval = default

Expand Down

0 comments on commit 2f2cf94

Please sign in to comment.