File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -198,26 +198,18 @@ def everythings(
198
198
def native_unions (
199
199
draw : DrawFn ,
200
200
include_strings = True ,
201
- include_bools = True ,
202
- include_ints = True ,
203
201
include_floats = True ,
204
202
include_nones = True ,
205
203
include_bytes = True ,
206
204
include_datetimes = True ,
207
205
include_objectids = False ,
208
206
include_literals = True ,
209
207
) -> tuple [Any , Any ]:
210
- types = []
211
- strats = {}
208
+ types = [bool , int ]
209
+ strats = {bool : booleans (), int : integers () }
212
210
if include_strings :
213
211
types .append (str )
214
212
strats [str ] = text ()
215
- if include_bools :
216
- types .append (bool )
217
- strats [bool ] = booleans ()
218
- if include_ints :
219
- types .append (int )
220
- strats [int ] = integers ()
221
213
if include_floats :
222
214
types .append (float )
223
215
strats [float ] = floats (allow_nan = False )
You can’t perform that action at this time.
0 commit comments