Skip to content

Commit 87a7c20

Browse files
committed
style: appease flake8 docstring requirements
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
1 parent 0de5904 commit 87a7c20

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • aries_cloudagent/messaging/models

aries_cloudagent/messaging/models/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def deserialize(
140140
*,
141141
unknown: Optional[str] = None,
142142
) -> ModelType:
143+
"""Convert from JSON representation to a model instance."""
143144
...
144145

145146
@overload
@@ -151,6 +152,7 @@ def deserialize(
151152
none2none: Literal[False],
152153
unknown: Optional[str] = None,
153154
) -> ModelType:
155+
"""Convert from JSON representation to a model instance."""
154156
...
155157

156158
@overload
@@ -162,6 +164,7 @@ def deserialize(
162164
none2none: Literal[True],
163165
unknown: Optional[str] = None,
164166
) -> Optional[ModelType]:
167+
"""Convert from JSON representation to a model instance."""
165168
...
166169

167170
@classmethod
@@ -208,6 +211,7 @@ def serialize(
208211
as_string: Literal[True],
209212
unknown: Optional[str] = None,
210213
) -> str:
214+
"""Create a JSON-compatible dict representation of the model instance."""
211215
...
212216

213217
@overload
@@ -216,6 +220,7 @@ def serialize(
216220
*,
217221
unknown: Optional[str] = None,
218222
) -> dict:
223+
"""Create a JSON-compatible dict representation of the model instance."""
219224
...
220225

221226
def serialize(

0 commit comments

Comments
 (0)