Skip to content

Commit 7a8abbc

Browse files
committed
Removing ANN102 for cls
1 parent 2eb8097 commit 7a8abbc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dbldatagen/serialization.py

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

1111
@classmethod
12-
def _fromInitializationDict(cls: object, options: dict) -> object:
12+
def _fromInitializationDict(cls, 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
1616
"""
17-
_options = options.copy()
17+
_options: dict = options.copy()
1818
_options.pop("kind")
1919
_ir = {}
2020
for key, value in _options.items():

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ ignore = [
188188
"SIM108", # Use ternary operator
189189
"UP007", # Use X | Y for type annotations (keep Union for compatibility)
190190
"ANN101", # Missing type annotation for `self` in method
191+
"ANN102", # Missing type annotation for `cls` in method
191192
]
192193

193194
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)