Skip to content

Commit 2eb8097

Browse files
committed
Linting serialization module
1 parent a137a5f commit 2eb8097

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dbldatagen/serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SerializableToDict:
99
"""
1010

1111
@classmethod
12-
def _fromInitializationDict(cls, options):
12+
def _fromInitializationDict(cls: object, options: dict) -> object:
1313
""" Converts a Python dictionary to an object using the object's constructor.
1414
:param options: Python dictionary with class constructor options
1515
:return: An instance of the class
@@ -29,7 +29,7 @@ def _fromInitializationDict(cls, options):
2929
_ir[key] = value
3030
return cls(**_ir)
3131

32-
def _toInitializationDict(self):
32+
def _toInitializationDict(self) -> dict:
3333
""" Converts an object to a Python dictionary. Keys represent the object's
3434
constructor arguments.
3535
:return: Python dictionary representation of the object

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ exclude = [
153153
"dbldatagen/html_utils.py",
154154
"dbldatagen/nrange.py",
155155
"dbldatagen/schema_parser.py",
156-
"dbldatagen/serialization.py",
157156
"dbldatagen/text_generator_plugins.py",
158157
"dbldatagen/text_generators.py"
159158
]

0 commit comments

Comments
 (0)