Skip to content

Bump inflect from 7.5.0 to 7.6.0 - #1155

Merged
dgarijo merged 1 commit into
devfrom
dependabot/pip/dev/inflect-7.6.0
Oct 30, 2026
Merged

dgarijo merged 1 commit into
devfrom
dependabot/pip/dev/inflect-7.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 29, 2026

Copy link
Copy Markdown
Contributor

Bumps inflect from 7.5.0 to 7.6.0.

Changelog

Sourced from inflect's changelog.

v7.6.0

Features

  • Added number_to_currency, which writes an amount in words with the cents as a fraction of one hundred, as on checks and money orders (number_to_currency(100020.56) is "one hundred thousand and twenty and 56/100"). (#213)
  • defnoun now accepts a keyword-only case parameter. Pass case="preserve" to retain the literal case of an uppercase noun's custom plural (such as defnoun("URL", "URLs", case="preserve")) rather than normalizing it to the case of the input. (#275)

Bugfixes

  • Pluralizing a multi-word phrase whose word count changes during inflection (such as when a leading article is dropped) no longer raises an IndexError. postprocess now restores word-wise capitalization by pairing original and inflected words rather than by index. (#172)
  • number_to_words now honors a custom comma separator across the word-spelling, grouped, and threshold code paths rather than only the default ", ". (#176)
  • ordinal now handles negative numbers: it no longer raises a TypeError on negative integers and returns a suffix based on the last digit (e.g. ordinal(-1) is -1st). (#192)
  • singular_noun now recognizes words ending in "-ss" (such as "class", "boss", and "address") as already singular and returns False instead of stripping the trailing "s". (#214)
  • number_to_words now groups digits from the right, so 123 with group=2 reads as one, twenty-three instead of twelve, three. (#217)
  • Avoid a TypeError when singularizing long compounds whose leading noun is already singular. (#222)
  • number_to_words now expands floats expressed in scientific notation (such as 1e20 or 0.000001) instead of mis-parsing the exponent. (#226)
  • number_to_words no longer emits a stray space before a punctuation andword (such as number_to_words(541140, andword=",")). (#229)
  • In classical "names" mode, a capitalized multi-word phrase whose final noun is lowercase and ends in a consonant plus "y" now pluralizes that noun (e.g. "Old technology" -> "Old technologies") instead of treating the whole phrase as a proper name. (#231)
  • Numeric count values equal to 1 (such as 1.0) are now treated as singular. (#232)
  • Word arguments are now exposed as str to static type checkers (such as Pylance and mypy) while still enforcing the non-empty-string check at runtime. (#233)
  • Common uncountable mass nouns (such as "equipment", "luggage", "baggage", "jewelry", "machinery", "cutlery", and "livestock") are now left unchanged by plural_noun instead of being incorrectly pluralized. (#239)
  • number_to_words now raises the documented NumOutOfRangeError for numbers whose magnitude exceeds the largest known scale word, instead of leaking an uncaught IndexError. (#242)
  • present_participle now returns "being" for the verb "be" (and its forms "is", "are", "were") instead of the malformed "bing". (#252)
  • num now raises BadNumValueError instead of leaking an OverflowError for non-finite counts such as float("inf"). (#256)
  • plural_noun no longer drops the trailing prepositional phrase when the head of a compound has an irregular plural (e.g. "brother-in-law" now pluralizes to "brothers-in-law"). (#264)
  • ordinal now raises BadNumValueError for malformed numeric input such as "11 11" instead of leaking a bare ValueError. (#269)
  • Handle signed numeric literals in inflect() interpolation arguments.
  • Restore the persistent count when an interpolated function in inflect() raises an exception.
  • compare and the related compare_nouns/compare_verbs/compare_adjs no longer leave the engine in classical mode as a side effect of the comparison.
  • present_participle now inserts a k before -ing for verbs ending in a vowel followed by c (for example "panics" becomes "panicking").
Commits
  • f51d6c4 Finalize
  • d71ac13 Merge pull request #284 from FatmaMahmoudR/number-to-currency
  • 4f08d01 Merge origin/main into pr-284
  • 5dbb158 Merge main into pr-284
  • a6487c1 Merge pull request #283 from Madin-H23/fix/group-numbers-from-the-right
  • f90d024 Model grouping concerns: reuse _grouped_from_right, render per group
  • 8db9695 Merge main into pr-283
  • e966293 Merge pull request #276 from SparkUiX/codex/fix-capitalized-compound-plurals
  • 159543a Merge main into pr-276
  • a58a8a3 Merge pull request #282 from jaraco/fix-172-postprocess-index
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [inflect](https://github.com/jaraco/inflect) from 7.5.0 to 7.6.0.
- [Release notes](https://github.com/jaraco/inflect/releases)
- [Changelog](https://github.com/jaraco/inflect/blob/main/NEWS.rst)
- [Commits](jaraco/inflect@v7.5.0...v7.6.0)

---
updated-dependencies:
- dependency-name: inflect
  dependency-version: 7.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 29, 2026
@dgarijo
dgarijo merged commit 77bc8f0 into dev Oct 30, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/dev/inflect-7.6.0 branch October 30, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant