Fix pep8 issues.

This is in support of issues-1959.
pull/1977/head
Chris Rogers 2019-02-12 17:29:21 -05:00
parent 4bca969316
commit 113352339d
1 changed files with 2 additions and 0 deletions

View File

@ -90,12 +90,14 @@ _STRING_NUM_EN.update({
_STRING_SHORT_ORDINAL_EN = _invert_dict(_SHORT_ORDINAL_STRING_EN)
_STRING_LONG_ORDINAL_EN = _invert_dict(_LONG_ORDINAL_STRING_EN)
# _Token is intended to be used in the number processing functions in
# this module. The parsing requires slicing and dividing of the original
# text. To ensure things parse correctly, we need to know where text came
# from in the original input, hence this nametuple.
_Token = namedtuple('_Token', 'word index')
class _ReplaceableNumber():
"""
Similar to _Token, this class is used in number parsing.