Skip to content

Commit e4854a0

Browse files
committed
fixed mypy method assign error in dataanalyzer
1 parent ef3d718 commit e4854a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodescraper/interfaces/dataanalyzertask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init_subclass__(cls, **kwargs: dict[str, Any]) -> None:
119119
raise TypeError(f"No data model set for {cls.__name__}")
120120

121121
if hasattr(cls, "analyze_data"):
122-
cls.analyze_data = analyze_decorator(cls.analyze_data)
122+
setattr(cls, "analyze_data", analyze_decorator(cls.analyze_data))
123123

124124
@abc.abstractmethod
125125
def analyze_data(

0 commit comments

Comments
 (0)