You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2a7596e
Browse filesBrowse the repository at this point in the historyBrowse files
fix: client.viz raises ImportError naming the viz extra without matplotlib (#151)
Adversarial review of #157 found client.viz returned None when matplotlib
was missing, so client.viz.plot_* failed with a bare AttributeError. The
viz property now always builds a cached PriceVisualizer lazily (no import,
no warning at construction), and each plotting method raises ImportError:
"matplotlib is required for visualization. Install it with:
pip install 'oilpriceapi[viz]'". Adds the viz extra to pyproject.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QQ7W3CkRKEnBpU5KRQUfUu
0 commit comments