Skip to content

Commit f198449

Browse files
thodson-usgsclaude
andcommitted
Restore consistent parenthesized-with form
The Copilot autofix in c635619 reverted one of four parenthesized-with blocks back to the chained form, leaving the file inconsistent under the project's ruff target (py39 prefers the parenthesized form per the 3.9 PEG parser). Re-running ruff format restores all four blocks to the canonical form so ruff format --check passes again. The "parenthesized with is 3.10+ only" concern is technically incorrect on this codebase: the 3.9 PEG parser accepts it, and the last CI run on 3a6cad9 / 2f7cf10 passed test (ubuntu-latest, 3.9) and test (windows-latest, 3.9) with this syntax in place. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent dd03edf commit f198449

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

tests/waterdata_filters_test.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -446,14 +446,17 @@ def fake_construct_api_requests(**kwargs):
446446
sent_filters.append(kwargs.get("filter"))
447447
return _fake_prepared_request()
448448

449-
with mock.patch(
450-
"dataretrieval.waterdata.utils._construct_api_requests",
451-
side_effect=fake_construct_api_requests,
452-
), mock.patch(
453-
"dataretrieval.waterdata.utils._walk_pages",
454-
return_value=(
455-
pd.DataFrame({"id": ["row-1"], "value": [1]}),
456-
_fake_response(),
449+
with (
450+
mock.patch(
451+
"dataretrieval.waterdata.utils._construct_api_requests",
452+
side_effect=fake_construct_api_requests,
453+
),
454+
mock.patch(
455+
"dataretrieval.waterdata.utils._walk_pages",
456+
return_value=(
457+
pd.DataFrame({"id": ["row-1"], "value": [1]}),
458+
_fake_response(),
459+
),
457460
),
458461
):
459462
get_continuous(

0 commit comments

Comments
 (0)