@@ -29,7 +29,7 @@ class HypothesisRandom(Random, abc.ABC):
29
29
"""A subclass of Random designed to expose the seed it was initially
30
30
provided with."""
31
31
32
- def __init__ (self , note_method_calls : bool ) -> None :
32
+ def __init__ (self , * , note_method_calls : bool ) -> None :
33
33
self ._note_method_calls = note_method_calls
34
34
35
35
def __deepcopy__ (self , table ):
@@ -179,7 +179,7 @@ def normalize_zero(f: float) -> float:
179
179
class ArtificialRandom (HypothesisRandom ):
180
180
VERSION = 10 ** 6
181
181
182
- def __init__ (self , note_method_calls : bool , data : ConjectureData ) -> None :
182
+ def __init__ (self , * , note_method_calls : bool , data : ConjectureData ) -> None :
183
183
super ().__init__ (note_method_calls = note_method_calls )
184
184
self .__data = data
185
185
self .__state = RandomState ()
@@ -397,7 +397,7 @@ def convert_kwargs(name, kwargs):
397
397
398
398
class TrueRandom (HypothesisRandom ):
399
399
def __init__ (self , seed , note_method_calls ):
400
- super ().__init__ (note_method_calls )
400
+ super ().__init__ (note_method_calls = note_method_calls )
401
401
self .__seed = seed
402
402
self .__random = Random (seed )
403
403
@@ -433,7 +433,7 @@ def setstate(self, state):
433
433
434
434
435
435
class RandomStrategy (SearchStrategy [HypothesisRandom ]):
436
- def __init__ (self , note_method_calls : bool , use_true_random : bool ) -> None :
436
+ def __init__ (self , * , note_method_calls : bool , use_true_random : bool ) -> None :
437
437
self .__note_method_calls = note_method_calls
438
438
self .__use_true_random = use_true_random
439
439
0 commit comments