Skip to content

Commit

Permalink
Add set_type_value method to DataPropertyExtractor class
Browse files Browse the repository at this point in the history
Signed-off-by: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  • Loading branch information
thombashi committed Dec 31, 2024
1 parent 44a2eff commit ed7f53f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dataproperty/_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ def type_value_map(self, value: TypeValueMap) -> None:
self.__type_value_map = value
self.__clear_cache()

def set_type_value(self, key: Typecode, value: Union[float, str, Decimal, None]) -> None:
self.__type_value_map[key] = value
self.__clear_cache()

def register_trans_func(self, trans_func: TransFunc) -> None:
self.__trans_func_list.insert(0, trans_func)
self.__clear_cache()
Expand Down

0 comments on commit ed7f53f

Please sign in to comment.