Skip to content

Commit a1e73b4

Browse files
fix: qualify secure dependencies with current Specs (#57)
* ci: bump urllib3 from 2.7.0 to 2.8.0 Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.7.0 to 2.8.0. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](urllib3/urllib3@2.7.0...2.8.0) --- updated-dependencies: - dependency-name: urllib3 dependency-version: 2.8.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix: update vulnerable contributor environment dependencies * fix: serialize current Specs through its public mapping contract --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefan Jansen <[email protected]>
1 parent 786ca1b commit a1e73b4

2 files changed

Lines changed: 16 additions & 17 deletions

File tree

‎src/ml4t/models/integration/backtest.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,9 @@ def backtest_inputs_from_weights(
405405
def _coerce_feed_spec_mapping(schema: Any | None) -> dict[str, Any]:
406406
feed_spec_cls = _load_feed_spec_class()
407407
if feed_spec_cls is not None:
408-
return {
409-
key: value
410-
for key, value in asdict(feed_spec_cls.from_any(schema)).items()
411-
if value is not None
412-
}
408+
spec = feed_spec_cls.from_any(schema)
409+
data = spec.to_dict() if hasattr(spec, "to_dict") else asdict(spec)
410+
return {key: value for key, value in data.items() if value is not None}
413411
return _fallback_feed_spec_mapping(schema)
414412

415413

‎uv.lock‎

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)