mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
split some lines that were too long for flake8
This commit is contained in:
@@ -42,7 +42,7 @@ class Num2Word_SV(lang_EU.Num2Word_EU):
|
|||||||
self.exclude_title = ["och", "komma", "minus"]
|
self.exclude_title = ["och", "komma", "minus"]
|
||||||
|
|
||||||
self.mid_numwords = [(1000, "tusen"), (100, "hundra"),
|
self.mid_numwords = [(1000, "tusen"), (100, "hundra"),
|
||||||
(90, "nittio"), (80, "\åttio"), (70, "sjuttio"),
|
(90, "nittio"), (80, "åttio"), (70, "sjuttio"),
|
||||||
(60, "sextio"), (50, "femtio"), (40, "förtio"),
|
(60, "sextio"), (50, "femtio"), (40, "förtio"),
|
||||||
(30, "trettio")]
|
(30, "trettio")]
|
||||||
self.low_numwords = ["tjugo", "nitton", "arton", "sjutton",
|
self.low_numwords = ["tjugo", "nitton", "arton", "sjutton",
|
||||||
@@ -105,11 +105,13 @@ class Num2Word_SV(lang_EU.Num2Word_EU):
|
|||||||
return " ".join(outwords)
|
return " ".join(outwords)
|
||||||
|
|
||||||
def to_ordinal_num(self, value):
|
def to_ordinal_num(self, value):
|
||||||
raise NotImplementedError("'ordinal_num' is not implemented for swedish language")
|
raise NotImplementedError(
|
||||||
|
"'ordinal_num' is not implemented for swedish language")
|
||||||
|
|
||||||
def to_year(self, val, longval=True):
|
def to_year(self, val, longval=True):
|
||||||
raise NotImplementedError("'year' is not implemented for swedish language")
|
raise NotImplementedError(
|
||||||
|
"'year' is not implemented for swedish language")
|
||||||
|
|
||||||
def to_currency(self, val, longval=True):
|
def to_currency(self, val, longval=True):
|
||||||
raise NotImplementedError("'currency' is not implemented for swedish language")
|
raise NotImplementedError(
|
||||||
|
"'currency' is not implemented for swedish language")
|
||||||
|
|||||||
Reference in New Issue
Block a user