Skip to content

Commit 81db2e9

Browse files
committed
fixed mypy method assign error in dataanalyzer
1 parent 1f5f4a7 commit 81db2e9

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
@@ -120,7 +120,7 @@ def __init_subclass__(cls, **kwargs: dict[str, Any]) -> None:
120120
raise TypeError(f"No data model set for {cls.__name__}")
121121

122122
if hasattr(cls, "analyze_data"):
123-
cls.analyze_data = analyze_decorator(cls.analyze_data)
123+
setattr(cls, "analyze_data", analyze_decorator(cls.analyze_data))
124124

125125
@abc.abstractmethod
126126
def analyze_data(

0 commit comments

Comments
 (0)