Skip to content

Commit c259224

Browse files
committedMay 22, 2023
Pre-commit: Fix mypy warning in aiida.orm.utils.serialize
1 parent 513830b commit c259224

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎aiida/orm/utils/serialize.py

+2
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def serialize(data: Any, encoding: str | None = None) -> str | bytes:
210210
:param encoding: optional encoding for the serialized string
211211
:return: string representation of the serialized data structure or byte array if specific encoding is specified
212212
"""
213+
serialized: bytes | str
214+
213215
if encoding is not None:
214216
serialized = yaml.dump(data, encoding=encoding, Dumper=AiiDADumper)
215217
else:

0 commit comments

Comments
 (0)
Please sign in to comment.