Skip to content

Conversation

devmotion
Copy link
Member

@devmotion devmotion commented Sep 8, 2025

The PR fixes the JET errors (see #465, #466, #467) that are caused by DataStructures 0.19.

The package-wide analysis of JET is solely based on the function definitions, and for untyped arguments this means JET only reasons with Any. Prior to DataStructures 0.19 and its merge definitions, this was sufficient to infer that (iterations = i, ..., tstat..., mass_matrix=metric) is a NamedTuple; with DataStructures >= 0.19, however, it could in principle also be a DataStructures.SortedMultiDict. The PR fixes the problem by adding type annotations to a few functions.

Copy link
Contributor

github-actions bot commented Sep 8, 2025

AdvancedHMC.jl documentation for PR #468 is available at:
https://TuringLang.github.io/AdvancedHMC.jl/previews/PR468/

Copy link

codecov bot commented Sep 8, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.44%. Comparing base (e737660) to head (9ddd9ce).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/sampler.jl 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #468   +/-   ##
=======================================
  Coverage   75.44%   75.44%           
=======================================
  Files          21       21           
  Lines        1230     1230           
=======================================
  Hits          928      928           
  Misses        302      302           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@devmotion devmotion merged commit 2f5b6c1 into main Sep 9, 2025
20 of 21 checks passed
@devmotion devmotion deleted the dw/jet branch September 9, 2025 20:52
@devmotion devmotion mentioned this pull request Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants