Files
deepset-ai--haystack/haystack/marshal/protocol.py
Stefano Fiorucci 819ed7244b chore: drop pylint (#10640)
* draft

* progress

* more fixes

* improvs

* strict

* rm pylint

* rm pylint comments

* fix and simplify

* standardize

* more

* alpha order

* final touch

* remove template

* rm ellipsis comments
2026-02-24 07:46:20 +00:00

16 lines
462 B
Python

# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Protocol
class Marshaller(Protocol):
def marshal(self, dict_: dict[str, Any]) -> str:
"Convert a dictionary to its string representation"
...
def unmarshal(self, data_: str | bytes | bytearray) -> dict[str, Any]:
"""Convert a marshalled object to its dictionary representation"""
...