Skip to content

fix(monty): update default description and tests for pydantic-monty 1.4.0 (decimal support) - #4170

Merged
davidsbatista merged 2 commits into
mainfrom
fix/monty-decimal-importable
Oct 29, 2026
Merged

davidsbatista merged 2 commits into
mainfrom
fix/monty-decimal-importable

Conversation

@davidsbatista

Copy link
Copy Markdown
Contributor

Proposed Changes:

pydantic-monty 1.4.0 added the decimal module. Because our dependency only sets a minimum, CI installs 1.4.0, and test_unlisted_modules_are_not_importable[decimal] now fails: that test exists to flag when Monty supports a new module, so the tool description can be updated.

Same approach as #4155 did for bisect in 1.3.0:

  • added decimal to the importable modules listed in the default tool description
  • removed decimal from the not-importable test cases
  • raised the minimum to pydantic-monty>=1.4.0, so the description doesn't list a module that older versions can't import

How did you test it?

  • hatch run test:unit passes (43 tests) with pydantic-monty 1.4.0
  • checked by hand that 1.3.0 can't import decimal and 1.4.0 can (Decimal('0.1') + Decimal('0.2') returns Decimal('0.3'))
  • hatch run fmt-check and hatch run test:types are clean

@github-actions

Copy link
Copy Markdown
Contributor

Coverage report (monty)

This PR does not seem to contain any modification to coverable code.

@davidsbatista
davidsbatista marked this pull request as ready for review October 28, 2026 15:06
@davidsbatista
davidsbatista requested a review from a team as a code owner October 28, 2026 15:06
@davidsbatista
davidsbatista requested review from julian-risch and removed request for a team October 28, 2026 15:06

@julian-risch julian-risch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please also do a small docs update in the haystack repo.

@davidsbatista

Copy link
Copy Markdown
Contributor Author

@davidsbatista
davidsbatista merged commit 0ee000d into main Oct 29, 2026
21 checks passed
@davidsbatista
davidsbatista deleted the fix/monty-decimal-importable branch October 29, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants