Skip to content

Commit

Permalink
LNT: Run pre-commit. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Feb 9, 2024
1 parent 81cd7aa commit 4a9c6ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pynhd/network_tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Access NLDI and WaterData databases."""
# pyright: reportGeneralTypeIssues=false, reportAttributeAccessIssue=false, reportMissingTypeArgument=false
# pyright: reportGeneralTypeIssues=false, reportMissingTypeArgument=false
from __future__ import annotations

import io
Expand Down
3 changes: 1 addition & 2 deletions pynhd/nhdplus_derived.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,7 @@ def streamcat(
"""
sc = StreamCatValidator()
names = [metric_names] if isinstance(metric_names, str) else metric_names
lower = (n.lower() for n in names)
names = [sc.alt_names[s] if s in sc.alt_names else s for s in lower]
names = [sc.alt_names.get(s.lower(), s.lower()) for s in names]
sc.validate(name=names)
params = {"name": ",".join(n for n in names)}

Expand Down

0 comments on commit 4a9c6ae

Please sign in to comment.