@@ -32,7 +32,13 @@ class HybridCompatibilityMixin:
3232 unsampled endpoints have a different number of degrees of freedom.
3333 """
3434
35- def __init__ (self , * args , hybrid_system , hybrid_positions , ** kwargs ):
35+ def __init__ (
36+ self ,
37+ * args ,
38+ hybrid_system : openmm .System | None = None ,
39+ hybrid_positions : unit .Quantity | None = None ,
40+ ** kwargs
41+ ):
3642 self ._hybrid_system = hybrid_system
3743 self ._hybrid_positions = hybrid_positions
3844 super (HybridCompatibilityMixin , self ).__init__ (* args , ** kwargs )
@@ -167,7 +173,13 @@ class HybridRepexSampler(HybridCompatibilityMixin,
167173 number of positions
168174 """
169175
170- def __init__ (self , * args , hybrid_system , hybrid_positions , ** kwargs ):
176+ def __init__ (
177+ self ,
178+ * args ,
179+ hybrid_system : openmm .System | None = None ,
180+ hybrid_positions : unit .Quantity | None = None ,
181+ ** kwargs
182+ ):
171183 super (HybridRepexSampler , self ).__init__ (
172184 * args ,
173185 hybrid_system = hybrid_system ,
@@ -182,7 +194,13 @@ class HybridSAMSSampler(HybridCompatibilityMixin, sams.SAMSSampler):
182194 of positions
183195 """
184196
185- def __init__ (self , * args , hybrid_system , hybrid_positions , ** kwargs ):
197+ def __init__ (
198+ self ,
199+ * args ,
200+ hybrid_system : openmm .System | None = None ,
201+ hybrid_positions : unit .Quantity | None = None ,
202+ ** kwargs
203+ ):
186204 super (HybridSAMSSampler , self ).__init__ (
187205 * args ,
188206 hybrid_system = hybrid_system ,
@@ -197,7 +215,13 @@ class HybridMultiStateSampler(HybridCompatibilityMixin,
197215 MultiStateSampler that supports unsample end states with a different
198216 number of positions
199217 """
200- def __init__ (self , * args , hybrid_system , hybrid_positions , ** kwargs ):
218+ def __init__ (
219+ self ,
220+ * args ,
221+ hybrid_system : openmm .System | None = None ,
222+ hybrid_positions : unit .Quantity | None = None ,
223+ ** kwargs
224+ ):
201225 super (HybridMultiStateSampler , self ).__init__ (
202226 * args ,
203227 hybrid_system = hybrid_system ,
0 commit comments