Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 575227726
  • Loading branch information
isingoo authored and copybara-github committed Oct 20, 2023
1 parent 30397e9 commit 337c2e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nisaba/scripts/natural_translit/utils/type_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def value_from_list(some_list, index, exclude=UNSPECIFIED, instead=0):
`value_from_list(things, 2)` returns `UNASSIGNED`
`value_from_list(things, 2, exclude=UNASSIGNED)` returns `0`
TODO(): Fix typing in natural_translit.
"""

import logging
Expand Down Expand Up @@ -100,6 +101,7 @@ def __init__(self, alias: str = '', text: str = ''):
Catalog = Union[Dict, List, NamedTuple]
# Restricted generic class to avoid using Any type.
Valid = Union[range, Thing, Catalog, numbers.Number, Tuple, set, FstLike]
OptSet = Union[set, Thing]

# Log functions

Expand Down

0 comments on commit 337c2e7

Please sign in to comment.