diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d74445a8..06f5ed65d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Remove unused `pub(crate)` blocking wrappers `macroeconomic_indicators_v2` / `macroeconomic_v2` from `FundamentalContextSync`; the public blocking methods already proxy through v2 via the async chain +- **Python:** add `eq, eq_int, from_py_object` to `MacroeconomicCountry` pyclass to resolve pyo3 v0.28 deprecation of automatic `FromPyObject` for `Clone` types; also add `Hash, Eq, PartialEq` derives consistent with other argument enums in the file + ## [4.3.2] - 2026-06-13 ### Added diff --git a/python/src/fundamental/types.rs b/python/src/fundamental/types.rs index ea842a54b..4c0f66420 100644 --- a/python/src/fundamental/types.rs +++ b/python/src/fundamental/types.rs @@ -1988,8 +1988,8 @@ impl From for MultiLanguageText { } /// Country code for filtering macroeconomic indicators -#[pyclass] -#[derive(Debug, Copy, Clone)] +#[pyclass(eq, eq_int, from_py_object)] +#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq)] pub(crate) enum MacroeconomicCountry { HongKong, China, diff --git a/rust/src/blocking/fundamental.rs b/rust/src/blocking/fundamental.rs index 532c09bc1..ea3890c28 100644 --- a/rust/src/blocking/fundamental.rs +++ b/rust/src/blocking/fundamental.rs @@ -320,33 +320,4 @@ impl FundamentalContextSync { }) } - /// List macroeconomic indicators (v2) with optional keyword filter - pub(crate) fn macroeconomic_indicators_v2( - &self, - country: Option, - keyword: Option + Send + 'static>, - offset: Option, - limit: Option, - ) -> Result { - self.rt.call(move |ctx| async move { - ctx.macroeconomic_indicators_v2(country, keyword, offset, limit) - .await - }) - } - - /// Get historical data for a macroeconomic indicator (v2) with sort support - pub(crate) fn macroeconomic_v2( - &self, - indicator_code: impl Into + Send + 'static, - start_date: Option + Send + 'static>, - end_date: Option + Send + 'static>, - offset: Option, - limit: Option, - sort: Option + Send + 'static>, - ) -> Result { - self.rt.call(move |ctx| async move { - ctx.macroeconomic_v2(indicator_code, start_date, end_date, offset, limit, sort) - .await - }) - } }