From b98a27df5a7b6eb5314018f7cd41e46b6f9f49d9 Mon Sep 17 00:00:00 2001 From: thodson-usgs Date: Wed, 13 May 2026 11:00:36 -0500 Subject: [PATCH] Fix missing comma in get_reference_table doctest example 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) --- dataretrieval/waterdata/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataretrieval/waterdata/api.py b/dataretrieval/waterdata/api.py index 886a989c..a8bdd234 100644 --- a/dataretrieval/waterdata/api.py +++ b/dataretrieval/waterdata/api.py @@ -2050,8 +2050,8 @@ def get_reference_table( >>> # Get table of selected USGS parameter codes >>> ref, md = dataretrieval.waterdata.get_reference_table( - ... collection="parameter-codes" - ... query={'id': '00001,00002'} + ... collection="parameter-codes", + ... query={"id": "00001,00002"}, ... ) """ valid_code_services = get_args(METADATA_COLLECTIONS)