Commit 63fce1b
fix(nwis): stop emitting a DeprecationWarning at import time
nwis.py warned at module top-level, and dataretrieval/__init__ star-imports
nwis, so `import dataretrieval` emitted a DeprecationWarning for every consumer
(including waterdata-only users) and failed to import entirely under
`-W error::DeprecationWarning`, which is common in CI.
Deprecation is already signaled where it matters: the @_deprecated decorator
emits a per-function warning on every nwis call. Removed the redundant
module-level warning; the per-function warnings are unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ee653e5 commit 63fce1b
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments