@@ -135,12 +135,10 @@ def to_tensor(
135135 return buf
136136
137137 @typing .overload
138- def add (self , data : "ReplayBuffer" , validate_args : bool = False ) -> None :
139- ...
138+ def add (self , data : "ReplayBuffer" , validate_args : bool = False ) -> None : ...
140139
141140 @typing .overload
142- def add (self , data : Dict [str , np .ndarray ], validate_args : bool = False ) -> None :
143- ...
141+ def add (self , data : Dict [str , np .ndarray ], validate_args : bool = False ) -> None : ...
144142
145143 def add (self , data : "ReplayBuffer" | Dict [str , np .ndarray ], validate_args : bool = False ) -> None :
146144 """Add data to the replay buffer. If the replay buffer is full, then the oldest data is overwritten.
@@ -617,12 +615,10 @@ def __len__(self) -> int:
617615 return self .buffer_size
618616
619617 @typing .overload
620- def add (self , data : "ReplayBuffer" , validate_args : bool = False ) -> None :
621- ...
618+ def add (self , data : "ReplayBuffer" , validate_args : bool = False ) -> None : ...
622619
623620 @typing .overload
624- def add (self , data : Dict [str , np .ndarray ], validate_args : bool = False ) -> None :
625- ...
621+ def add (self , data : Dict [str , np .ndarray ], validate_args : bool = False ) -> None : ...
626622
627623 def add (
628624 self ,
@@ -860,17 +856,17 @@ def __len__(self) -> int:
860856 return self ._cum_lengths [- 1 ] if len (self ._buf ) > 0 else 0
861857
862858 @typing .overload
863- def add (self , data : "ReplayBuffer" , env_idxes : Sequence [int ] | None = None , validate_args : bool = False ) -> None :
864- ...
859+ def add (
860+ self , data : "ReplayBuffer" , env_idxes : Sequence [int ] | None = None , validate_args : bool = False
861+ ) -> None : ...
865862
866863 @typing .overload
867864 def add (
868865 self ,
869866 data : Dict [str , np .ndarray ],
870867 env_idxes : Sequence [int ] | None = None ,
871868 validate_args : bool = False ,
872- ) -> None :
873- ...
869+ ) -> None : ...
874870
875871 def add (
876872 self ,
0 commit comments