Rename serializarion writer to be consistent with generated names

This commit is contained in:
samwelkanda 2022-07-15 12:35:00 +03:00
Родитель c22bd29c44
Коммит ccf1ae0074
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -18,7 +18,7 @@ class SerializationWriter(ABC):
"""
@abstractmethod
def write_string_value(self, key: Optional[str], value: Optional[str]) -> None:
def write_str_value(self, key: Optional[str], value: Optional[str]) -> None:
"""Writes the specified string value to the stream with an optional given key.
Args:
@ -28,7 +28,7 @@ class SerializationWriter(ABC):
pass
@abstractmethod
def write_boolean_value(self, key: Optional[str], value: Optional[bool]) -> None:
def write_bool_value(self, key: Optional[str], value: Optional[bool]) -> None:
"""Writes the specified boolean value to the stream with an optional given key.
Args:
@ -68,7 +68,7 @@ class SerializationWriter(ABC):
pass
@abstractmethod
def write_datetime_offset_value(self, key: Optional[str], value: Optional[datetime]) -> None:
def write_datetime_value(self, key: Optional[str], value: Optional[datetime]) -> None:
"""Writes the specified datetime offset value to the stream with an optional given key.
Args:
@ -146,7 +146,7 @@ class SerializationWriter(ABC):
pass
@abstractmethod
def write_bytearray_value(self, key: Optional[str], value: BytesIO) -> None:
def write_bytes_value(self, key: Optional[str], value: BytesIO) -> None:
"""Writes the specified byte array as a base64 string to the stream with an optional
given key.