Skip to content

Commit 37e2c19

Browse files
committed
[FIX] upgrade num2words library to 0.5.13
As of version 0.5.8, the num2words library does not correctly convert some numbers to words in Arabic. It erroneously appends the Arabic equivalent of "one" to the translation of 1000 (one thousand), when it must be implicit. Expected output: 'ألف و مئتان و أربعة و ثلاثون , ست و خمسون' 0.5.9: >>> from num2words import num2words >>> num2words(1234.56, lang="ar") 'واحد ألف و مئتان و أربعة و ثلاثون , ست و خمسون' This bug has been fixed in version 0.5.13 of the library: 0.5.13: >>> from num2words import num2words >>> num2words(1234.56, lang="ar") 'ألف و مئتان و أربعة و ثلاثون , ست و خمسون' This commit updates the requirements.txt to use the version of the library that produces the correct output. opw-3756778 References: + savoirfairelinux/num2words#512
1 parent 66f7ee7 commit 37e2c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ lxml==4.6.5 ; python_version <= '3.10' # min version = 4.5.0 (Focal - with secu
2424
lxml==4.9.2 ; python_version > '3.10'
2525
MarkupSafe==1.1.1 ; python_version <= '3.10'
2626
MarkupSafe==2.1.2 ; python_version > '3.10'
27-
num2words==0.5.9
27+
num2words==0.5.13
2828
ofxparse==0.19; python_version <= '3.9'
2929
ofxparse==0.21; python_version > '3.9' # (Jammy)
3030
passlib==1.7.4 # min version = 1.7.2 (Focal with security backports)

0 commit comments

Comments
 (0)