Skip to content

Commit da49749

Browse files
thodson-usgsclaude
andauthored
Fix missing comma in get_reference_table doctest example (#275)
The second example block in `get_reference_table`'s docstring was unrunnable: `collection="parameter-codes"` and `query={...}` were on separate lines with no comma between them, so the doctest text doesn't parse as a valid call. Surfaced from PR #229's verification pass where I executed each public function's docstring example against the live USGS OGC API. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 31ff4ba commit da49749

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dataretrieval/waterdata/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,8 +2050,8 @@ def get_reference_table(
20502050
20512051
>>> # Get table of selected USGS parameter codes
20522052
>>> ref, md = dataretrieval.waterdata.get_reference_table(
2053-
... collection="parameter-codes"
2054-
... query={'id': '00001,00002'}
2053+
... collection="parameter-codes",
2054+
... query={"id": "00001,00002"},
20552055
... )
20562056
"""
20572057
valid_code_services = get_args(METADATA_COLLECTIONS)

0 commit comments

Comments
 (0)