diff --git a/release_scripts/localization_scripts/itemchange.py b/release_scripts/localization_scripts/itemchange.py index 8533be9469..698e710375 100644 --- a/release_scripts/localization_scripts/itemchange.py +++ b/release_scripts/localization_scripts/itemchange.py @@ -3,6 +3,12 @@ from propsutil import get_entry_dict class ItemChange: + rel_path: str + key: str + prev_val: str + cur_val: str + type: str + def __init__(self, rel_path: str, key: str, prev_val: str, cur_val: str): """Describes the change that occurred for a particular key of a properties file. diff --git a/release_scripts/localization_scripts/propentry.py b/release_scripts/localization_scripts/propentry.py index 4821f4bc5f..d6930c1c1e 100644 --- a/release_scripts/localization_scripts/propentry.py +++ b/release_scripts/localization_scripts/propentry.py @@ -1,4 +1,9 @@ class PropEntry: + rel_path: str + key: str + value: str + should_delete: str + def __init__(self, rel_path: str, key: str, value: str, should_delete: bool = False): """Defines a property file entry to be updated in a property file. diff --git a/release_scripts/localization_scripts/regexutil.py b/release_scripts/localization_scripts/regexutil.py new file mode 100644 index 0000000000..ce1952e3bb --- /dev/null +++ b/release_scripts/localization_scripts/regexutil.py @@ -0,0 +1,16 @@ +from typing import TypeVar, Callable, Tuple + + +def is_match(content: str, regex: str) -> bool: + pass + +T = TypeVar('T') + +def is_match_on_field(obj: T, prop_retriever: Callable[T, str]) -> bool: + pass + +class SeparationResult: + + def __init__(self, ): + +def separate(obj: T, prop_retriever: Callable[T, str]) ->