22
33from typing import Any , Dict , List , Optional , Union
44
5- from frouros .callbacks .streaming .base import StreamingCallback
6- from frouros .utils .stats import Stat
5+ from frouros .callbacks .streaming .base import BaseCallbackStreaming
6+ from frouros .utils .stats import BaseStat
77
88
9- class History (StreamingCallback ):
9+ class History (BaseCallbackStreaming ):
1010 """History callback class."""
1111
1212 def __init__ (self , name : Optional [str ] = None ) -> None :
@@ -49,7 +49,7 @@ def on_update_end(self, value: Union[int, float], **kwargs) -> None:
4949 # add_addtional_vars is called (avoid the same computation)
5050 self .history [var ].append (
5151 additional_var .get ()
52- if isinstance (additional_var , Stat )
52+ if isinstance (additional_var , BaseStat )
5353 else additional_var
5454 )
5555
@@ -64,11 +64,11 @@ def on_update_end(self, value: Union[int, float], **kwargs) -> None:
6464 #
6565 # :raises TypeError: Type error exception
6666 # """
67- # if not isinstance(detector, ConceptDriftBase ):
67+ # if not isinstance(detector, BaseConceptDrift ):
6868 # raise TypeError(
6969 # f"callback {self.__class__.name} cannot be used with detector"
7070 # f" {detector.__class__name}. Must be used with a detector of "
71- # f"type ConceptDriftBase ."
71+ # f"type BaseConceptDrift ."
7272 # )
7373 # self.detector = detector
7474
0 commit comments