File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -198,26 +198,18 @@ def everythings(
198198def native_unions (
199199 draw : DrawFn ,
200200 include_strings = True ,
201- include_bools = True ,
202- include_ints = True ,
203201 include_floats = True ,
204202 include_nones = True ,
205203 include_bytes = True ,
206204 include_datetimes = True ,
207205 include_objectids = False ,
208206 include_literals = True ,
209207) -> tuple [Any , Any ]:
210- types = []
211- strats = {}
208+ types = [bool , int ]
209+ strats = {bool : booleans (), int : integers () }
212210 if include_strings :
213211 types .append (str )
214212 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 ()
221213 if include_floats :
222214 types .append (float )
223215 strats [float ] = floats (allow_nan = False )
You can’t perform that action at this time.
0 commit comments