Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(KeyValuePairLogEvent): Extend to_dict() to support custom encoding and error handling for UnicodeDecodeError (resolves #129). #131

Merged
merged 14 commits into from
Jan 24, 2025
Merged
4 changes: 3 additions & 1 deletion clp_ffi_py/ir/native.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ class FourByteDeserializer:

class KeyValuePairLogEvent:
def __init__(self, auto_gen_kv_pairs: Dict[Any, Any], user_gen_kv_pairs: Dict[Any, Any]): ...
def to_dict(self) -> Tuple[Dict[Any, Any], Dict[Any, Any]]: ...
def to_dict(
self, encoding: str = "utf-8", errors: str = "strict"
) -> Tuple[Dict[Any, Any], Dict[Any, Any]]: ...

class Serializer:
def __init__(self, output_stream: IO[bytes], buffer_size_limit: int = 65536): ...
Expand Down
Loading
Loading