The get_definition(self, key: str) -> str: function has a return type hint of str, however the set_definitions function accepts Union[float, int, list, np.ndarray, str, tuple] as a value. No casting is done, so get_definition should have the same return type Union[float, int, list, np.ndarray, str, tuple].
I'll open a PR to fix this when I have a chance.
The
get_definition(self, key: str) -> str:function has a return type hint ofstr, however theset_definitionsfunction acceptsUnion[float, int, list, np.ndarray, str, tuple]as a value. No casting is done, soget_definitionshould have the same return typeUnion[float, int, list, np.ndarray, str, tuple].I'll open a PR to fix this when I have a chance.