diff --git a/src/market_prices/prices/base.py b/src/market_prices/prices/base.py index 7b94846..18e1841 100644 --- a/src/market_prices/prices/base.py +++ b/src/market_prices/prices/base.py @@ -3764,7 +3764,7 @@ def get( excluded. If passed, do not pass `exclude`. exclude : list[str] | str | None - Symbol or symbols to include. All other symbols will be + Symbol or symbols to exclude. All other symbols will be included. If passed, do not pass `include`. side : Literal['left', 'right'] | None, default: None diff --git a/src/market_prices/prices/yahoo.py b/src/market_prices/prices/yahoo.py index dce02bd..5802c6e 100644 --- a/src/market_prices/prices/yahoo.py +++ b/src/market_prices/prices/yahoo.py @@ -24,6 +24,14 @@ ERROR404 = {"error": "HTTP 404 Not Found. Please try again"} +# TODO remove when FutureWarning fixed on yahooquery, for example if +# https://github.com/dpguthrie/yahooquery/pull/262 is merged and inlcuded to a release +warnings.filterwarnings( + "ignore", "A value is trying to be set on a copy of a DataFrame", FutureWarning +) +warnings.filterwarnings("ignore", "'S' is deprecated", FutureWarning) + + class YahooAPIError(errors.APIError): """A Yahoo API endpoint is not available."""