File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ():
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments