Inflect

Latest version: v7.4.0

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 9

2.1.0

======

* 29: Relicensed under the more permissive MIT License.

2.0.1

======

* 57: Fix pluralization of taco.

2.0.0

======

* 37: fix inconsistencies with the inflect method

We now build and parse AST to extract function arguments instead of relying
on regular expressions. This also adds support for keyword arguments and
built-in constants when calling functions in the string.
Unfortunately, this is not backwards compatible in some cases:
* Strings should now be wrapped in single or double quotes
p.inflect("singular_noun(to them)") should now be p.inflect("singular_noun('to them')")
* Empty second argument to a function will now be parsed as None instead of ''.
p.inflect("num(%d,) eggs" % 2) now prints "2 eggs" instead of " eggs"
Since None, True and False are now supported, they can be passed explicitly:
p.inflect("num(%d, False) eggs" % 2) will print " eggs"
p.inflect("num(%d, True) eggs" % 2) will print "2 eggs"

1.0.2

======

* 53: Improved unicode handling.
* 5 and 40 via 55: Fix capitalization issues in processes where
more than one word is involved.
* 56: Handle correctly units containing 'degree' and 'per'.

1.0.1

======

* 31: fix extraneous close parentheses.

1.0.0

======

* Dropped support for Python 3.3.

Page 7 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.